@esri/calcite-components 1.0.0-beta.96 → 1.0.0-beta.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-5b80ddbf.entry.js → p-0179da3b.entry.js} +2 -2
- package/dist/calcite/{p-5897d751.entry.js → p-024fe1f1.entry.js} +2 -2
- package/dist/calcite/{p-4f2adaaf.js → p-0d071f85.js} +2 -2
- package/dist/calcite/{p-0bed1036.entry.js → p-0fff59f2.entry.js} +2 -2
- package/dist/calcite/{p-be2b65ee.entry.js → p-1426a902.entry.js} +2 -2
- package/dist/calcite/{p-c68538e0.entry.js → p-17403a2c.entry.js} +2 -2
- package/dist/calcite/{p-b41e1e4f.entry.js → p-19c9d723.entry.js} +2 -2
- package/dist/calcite/{p-c02455d4.js → p-237be014.js} +1 -1
- package/dist/calcite/{p-1af072c8.entry.js → p-270981ec.entry.js} +2 -2
- package/dist/calcite/{p-e39761ae.js → p-2bfe7bf0.js} +1 -1
- package/dist/calcite/{p-fb451108.entry.js → p-2ca33d5d.entry.js} +2 -2
- package/dist/calcite/{p-3c892875.js → p-2ccf0c96.js} +1 -1
- package/dist/calcite/{p-310bf615.entry.js → p-2e7f8804.entry.js} +2 -2
- package/dist/calcite/{p-4c5ac926.js → p-307dbb99.js} +1 -1
- package/dist/calcite/{p-1229fa6d.entry.js → p-30dd3042.entry.js} +2 -2
- package/dist/calcite/{p-600eec01.entry.js → p-32b741f2.entry.js} +2 -2
- package/dist/calcite/{p-6edbfe7a.entry.js → p-33fc8b64.entry.js} +2 -2
- package/dist/calcite/{p-0727a03b.js → p-34aa594d.js} +2 -2
- package/dist/calcite/{p-f9db728c.js → p-37d82340.js} +2 -2
- package/dist/calcite/{p-aa097223.entry.js → p-3ab785d4.entry.js} +2 -2
- package/dist/calcite/{p-e520047a.entry.js → p-3c868efd.entry.js} +2 -2
- package/dist/calcite/{p-483720f0.entry.js → p-3cf5d86e.entry.js} +2 -2
- package/dist/calcite/{p-6f703767.entry.js → p-3d94fc1f.entry.js} +2 -2
- package/dist/calcite/p-405f6298.js +6 -0
- package/dist/calcite/{p-ee8bba91.js → p-420e1a42.js} +1 -1
- package/dist/calcite/{p-4540d613.entry.js → p-42830224.entry.js} +2 -2
- package/dist/calcite/{p-13f17010.js → p-452677fb.js} +1 -1
- package/dist/calcite/{p-210859d3.entry.js → p-45869cdb.entry.js} +2 -2
- package/dist/calcite/{p-08415f4f.js → p-49891df2.js} +2 -2
- package/dist/calcite/{p-61ed30ba.entry.js → p-4e7a7965.entry.js} +2 -2
- package/dist/calcite/{p-0b6b6b1b.js → p-4f5d5947.js} +1 -1
- package/dist/calcite/{p-bcc5c668.entry.js → p-51158143.entry.js} +2 -2
- package/dist/calcite/{p-dfabac33.entry.js → p-5b4661e3.entry.js} +2 -2
- package/dist/calcite/p-5bbb5694.entry.js +6 -0
- package/dist/calcite/{p-83cbc6d4.entry.js → p-5f9f7730.entry.js} +2 -2
- package/dist/calcite/{p-3f192117.js → p-610a4162.js} +1 -1
- package/dist/calcite/{p-b6d8d647.js → p-682e9096.js} +1 -1
- package/dist/calcite/{p-98b84c0f.entry.js → p-6abc9376.entry.js} +2 -2
- package/dist/calcite/{p-f56d863e.js → p-6b574a1b.js} +2 -2
- package/dist/calcite/{p-598afc72.entry.js → p-6f1ef7c1.entry.js} +2 -2
- package/dist/calcite/p-6f9a8698.entry.js +6 -0
- package/dist/calcite/{p-c2911c3c.entry.js → p-80a02e3f.entry.js} +2 -2
- package/dist/calcite/{p-d8e9053b.entry.js → p-8138b9eb.entry.js} +2 -2
- package/dist/calcite/{p-5baaa8ec.entry.js → p-8158e41d.entry.js} +2 -2
- package/dist/calcite/p-816edca5.entry.js +6 -0
- package/dist/calcite/{p-033e56dc.js → p-81faec11.js} +2 -2
- package/dist/calcite/{p-561f1808.entry.js → p-83a5ce7d.entry.js} +2 -2
- package/dist/calcite/p-83dafe11.entry.js +6 -0
- package/dist/calcite/{p-3b128396.entry.js → p-8af32663.entry.js} +2 -2
- package/dist/calcite/{p-196141d3.entry.js → p-8b92ced6.entry.js} +2 -2
- package/dist/calcite/{p-de64753f.entry.js → p-9080a320.entry.js} +2 -2
- package/dist/calcite/p-922d6283.entry.js +6 -0
- package/dist/calcite/{p-6422e887.entry.js → p-929f37bb.entry.js} +2 -2
- package/dist/calcite/{p-96a31967.js → p-92cffb63.js} +2 -2
- package/dist/calcite/{p-18132899.entry.js → p-93c2100f.entry.js} +2 -2
- package/dist/calcite/{p-b5ea3e89.js → p-96032ed1.js} +1 -1
- package/dist/calcite/{p-40a60ac0.js → p-98d174f0.js} +1 -1
- package/dist/calcite/{p-1ca81a06.js → p-9c6e95b0.js} +1 -1
- package/dist/calcite/{p-450a89b4.js → p-9c9227e3.js} +2 -2
- package/dist/calcite/{p-8cc4679e.js → p-a0074e38.js} +1 -1
- package/dist/calcite/{p-fdbc1a87.entry.js → p-a6a3e7ea.entry.js} +2 -2
- package/dist/calcite/{p-30f1f11c.entry.js → p-a6c91277.entry.js} +2 -2
- package/dist/calcite/{p-e724dd06.entry.js → p-af04bcf8.entry.js} +2 -2
- package/dist/calcite/{p-441fba11.js → p-af07aadf.js} +1 -1
- package/dist/calcite/{p-bcbf1921.entry.js → p-b17ec112.entry.js} +2 -2
- package/dist/calcite/{p-51643d9f.entry.js → p-b57ee50a.entry.js} +2 -2
- package/dist/calcite/{p-37e6c0af.entry.js → p-b5bc21c1.entry.js} +2 -2
- package/dist/calcite/{p-423e61e6.js → p-b5c3a997.js} +2 -2
- package/dist/calcite/{p-43886d77.entry.js → p-be2f1d85.entry.js} +2 -2
- package/dist/calcite/{p-2a12e026.entry.js → p-c11f8bde.entry.js} +2 -2
- package/dist/calcite/{p-aa06470a.entry.js → p-c88982a1.entry.js} +2 -2
- package/dist/calcite/p-cfaa40f7.entry.js +6 -0
- package/dist/calcite/{p-b1228ffa.entry.js → p-d24684fc.entry.js} +2 -2
- package/dist/calcite/{p-f05d0119.entry.js → p-d58a9010.entry.js} +2 -2
- package/dist/calcite/{p-d30c2118.entry.js → p-d6de9ebf.entry.js} +2 -2
- package/dist/calcite/p-dc72800c.entry.js +6 -0
- package/dist/calcite/{p-0a364c49.entry.js → p-de98292b.entry.js} +2 -2
- package/dist/calcite/{p-bc3c7799.js → p-e0437ddc.js} +1 -1
- package/dist/calcite/{p-6af188b5.entry.js → p-e5333eaa.entry.js} +2 -2
- package/dist/calcite/{p-179c1bc9.js → p-e6d8dad9.js} +2 -2
- package/dist/calcite/{p-7a50deba.js → p-e73d3b3e.js} +2 -2
- package/dist/calcite/p-ec652256.entry.js +6 -0
- package/dist/calcite/{p-a44dcb4b.js → p-ee0626c8.js} +1 -1
- package/dist/calcite/{p-bbcafefb.entry.js → p-f14aa8a0.entry.js} +2 -2
- package/dist/calcite/{p-d17467fd.js → p-f37301e2.js} +2 -2
- package/dist/calcite/{p-844de364.entry.js → p-f45dea23.entry.js} +2 -2
- package/dist/calcite/{p-847da2d2.entry.js → p-fdf044a5.entry.js} +2 -2
- package/dist/calcite/{p-e101165f.entry.js → p-ff080112.entry.js} +2 -2
- package/dist/calcite/{p-30d7d4da.entry.js → p-ff233082.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-fc7bbe3d.js → ExpandToggle-55de8bdf.js} +5 -5
- package/dist/cjs/{Heading-22395b92.js → Heading-60920dbe.js} +2 -2
- package/dist/cjs/{app-globals-6606611f.js → app-globals-47f5764f.js} +2 -2
- package/dist/cjs/{array-e3bb210b.js → array-e3a23914.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +10 -9
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- 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 +7 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +48 -27
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +21 -18
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +208 -195
- package/dist/cjs/calcite-input-message.cjs.entry.js +7 -12
- package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input.cjs.entry.js +12 -12
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +5 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +8 -8
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-popover_2.cjs.entry.js +16 -14
- 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 +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
- 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 +9 -9
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +18 -12
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-99e51afe.js → conditionalSlot-f62c357a.js} +3 -3
- package/dist/cjs/{debounce-1ad9c9c5.js → debounce-3c20d30d.js} +1 -1
- package/dist/cjs/{dom-fdaf919a.js → dom-2b919cb6.js} +3 -3
- package/dist/cjs/{filter-edd10f6d.js → filter-8d5ad69e.js} +2 -2
- package/dist/cjs/{floating-ui-84635bb5.js → floating-ui-86869ced.js} +18 -10
- package/dist/cjs/{form-9e23e659.js → form-45498958.js} +3 -3
- package/dist/cjs/{guid-ba414ece.js → guid-acbbb0e7.js} +1 -1
- package/dist/cjs/{index-89b75f9d.js → index-b27b231c.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-9891c7ff.js → interactive-3d681fb9.js} +1 -1
- package/dist/cjs/{interfaces-70afd954.js → interfaces-d50256c0.js} +1 -1
- package/dist/cjs/{key-08efaede.js → key-6a28a7af.js} +1 -1
- package/dist/cjs/{label-fd565fe7.js → label-5d4931f7.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-89bd7314.js → locale-f8c619b2.js} +4 -4
- package/dist/cjs/{math-12e520d7.js → math-60c4e5ee.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-ef072a2b.js → nonChromiumPlatformUtils-81b344a7.js} +6 -6
- package/dist/cjs/{observers-b15136c8.js → observers-664fbf90.js} +1 -1
- package/dist/cjs/{openCloseComponent-2d4454a1.js → openCloseComponent-097bf74e.js} +1 -1
- package/dist/cjs/{resources-e0dc19ba.js → resources-3fd6da1b.js} +1 -1
- package/dist/cjs/{resources-09d49437.js → resources-5091a9e6.js} +1 -1
- package/dist/cjs/{resources-e0e028db.js → resources-9751af1f.js} +55 -12
- package/dist/cjs/{resources-f315ffb3.js → resources-c882f865.js} +5 -5
- package/dist/cjs/{resources-713e13b0.js → resources-cd7cba5c.js} +1 -1
- package/dist/cjs/{resources-4a9729ee.js → resources-d6a8f446.js} +1 -1
- package/dist/cjs/{sortable.esm-5aaf8877.js → sortable.esm-0a247e37.js} +1 -1
- package/dist/cjs/{utils-1369197b.js → utils-c4988806.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +12 -7
- package/dist/collection/components/accordion-item/accordion-item.js +2 -1
- package/dist/collection/components/accordion-item/resources.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.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.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.css +1 -0
- 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/resources.js +1 -1
- package/dist/collection/components/button/button.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/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.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.css +0 -10
- package/dist/collection/components/combobox/combobox.js +7 -7
- 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 +37 -18
- 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 +13 -2
- 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 +13 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +0 -10
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.css +1 -0
- package/dist/collection/components/dropdown-group/dropdown-group.js +4 -4
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +7 -4
- 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/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +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/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.css +0 -15
- package/dist/collection/components/input-date-picker/input-date-picker.js +200 -195
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.css +16 -6
- package/dist/collection/components/input-message/input-message.js +3 -14
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.css +4 -3
- 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.css +7 -0
- package/dist/collection/components/loader/loader.js +3 -14
- 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.css +26 -7
- package/dist/collection/components/popover/popover.js +28 -3
- 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/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/resources.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/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/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/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/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.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.css +5 -3
- 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 +3 -2
- package/dist/collection/components/tree/tree.js +6 -3
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +1 -1
- package/dist/collection/components/tree-item/tree-item.js +5 -3
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.css +12 -0
- 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/config.js +1 -1
- package/dist/collection/utils/date.js +51 -9
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +16 -8
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +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 +1 -1
- package/dist/components/calcite-accordion-item.js +2 -1
- package/dist/components/calcite-accordion.js +3 -3
- package/dist/components/calcite-action-bar.js +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- 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 +6 -6
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +3 -3
- package/dist/components/calcite-dropdown-item.js +7 -4
- 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-item.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 +1 -1
- package/dist/components/calcite-input-date-picker.js +197 -183
- package/dist/components/calcite-input-message.js +3 -8
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-tree-item.js +5 -3
- package/dist/components/calcite-tree.js +5 -2
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +2 -2
- package/dist/components/checkbox.js +1 -1
- 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 +13 -2
- package/dist/components/date-picker-month-header.js +14 -2
- package/dist/components/date-picker-month.js +2 -2
- package/dist/components/date-picker.js +19 -20
- package/dist/components/date.js +52 -10
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +3 -3
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +15 -7
- package/dist/components/form.js +1 -1
- 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.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +3 -2
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/loader.js +3 -8
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +7 -4
- 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 +1 -1
- package/dist/components/tab-nav.js +1 -1
- 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/tooltip.js +2 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-947164fe.js → ExpandToggle-17841eb6.js} +5 -5
- package/dist/esm/{Heading-257e631d.js → Heading-9ad4465e.js} +2 -2
- package/dist/esm/{app-globals-5b11622a.js → app-globals-2b62c69a.js} +2 -2
- package/dist/esm/{array-1589fdff.js → array-bdb71f86.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +10 -9
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +9 -9
- 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 +7 -7
- package/dist/esm/calcite-alert.entry.js +10 -10
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +11 -11
- package/dist/esm/calcite-button.entry.js +9 -9
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +7 -7
- package/dist/esm/calcite-color-picker_3.entry.js +10 -10
- package/dist/esm/calcite-combobox_3.entry.js +19 -19
- package/dist/esm/calcite-date-picker_4.entry.js +48 -27
- package/dist/esm/calcite-dropdown_3.entry.js +21 -18
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +8 -8
- package/dist/esm/calcite-flow-item.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +12 -12
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +208 -195
- package/dist/esm/calcite-input-message.entry.js +7 -12
- package/dist/esm/calcite-input-number.entry.js +12 -12
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
- package/dist/esm/calcite-input.entry.js +12 -12
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +5 -10
- package/dist/esm/calcite-modal.entry.js +8 -8
- package/dist/esm/calcite-notice.entry.js +8 -8
- package/dist/esm/calcite-option_3.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +8 -8
- package/dist/esm/calcite-panel.entry.js +10 -10
- package/dist/esm/calcite-pick-list_3.entry.js +12 -12
- package/dist/esm/calcite-popover_2.entry.js +16 -14
- 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 +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +9 -9
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +8 -8
- 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 +9 -9
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip_2.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +18 -12
- package/dist/esm/calcite-value-list_2.entry.js +13 -13
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-b3e64dc7.js → conditionalSlot-c749c7e1.js} +3 -3
- package/dist/esm/{debounce-ea9692d7.js → debounce-247d9570.js} +1 -1
- package/dist/esm/{dom-a73e8a2b.js → dom-bbdd8cab.js} +3 -3
- package/dist/esm/{filter-3ba1a381.js → filter-8a951b65.js} +2 -2
- package/dist/esm/{floating-ui-984dfec0.js → floating-ui-68e49c75.js} +18 -10
- package/dist/esm/{form-0e21de45.js → form-993bce3a.js} +3 -3
- package/dist/esm/{guid-6f7dc9eb.js → guid-3c14f5cd.js} +1 -1
- package/dist/esm/{index-14216daa.js → index-7b536c47.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-c7d0aec8.js → interactive-fc7d4437.js} +1 -1
- package/dist/esm/{interfaces-ed0a53af.js → interfaces-dc00bbf3.js} +1 -1
- package/dist/esm/{key-51ed0d1a.js → key-41222930.js} +1 -1
- package/dist/esm/{label-d2cf5bd5.js → label-5ccbdccb.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-0be23f6a.js → locale-4001e60f.js} +4 -4
- package/dist/esm/{math-7cf93944.js → math-fc031ff1.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-fc3598fa.js → nonChromiumPlatformUtils-da9810bf.js} +6 -6
- package/dist/esm/{observers-22e20270.js → observers-513bffd3.js} +1 -1
- package/dist/esm/{openCloseComponent-4d8348cf.js → openCloseComponent-17631c32.js} +1 -1
- package/dist/esm/{resources-aad6b1a9.js → resources-1b6fcc76.js} +1 -1
- package/dist/esm/{resources-47333b80.js → resources-8de3b64f.js} +1 -1
- package/dist/esm/{resources-d9cc509f.js → resources-c8c07116.js} +1 -1
- package/dist/esm/{resources-15329bef.js → resources-d7bce9b2.js} +5 -5
- package/dist/esm/{resources-712a7c01.js → resources-dcee7909.js} +54 -12
- package/dist/esm/{resources-22c8d6b5.js → resources-f878b23a.js} +1 -1
- package/dist/esm/{sortable.esm-679051e1.js → sortable.esm-de934228.js} +1 -1
- package/dist/esm/{utils-e76f2be0.js → utils-e47932e0.js} +1 -1
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +4 -4
- package/dist/types/components/accordion/interfaces.d.ts +1 -0
- package/dist/types/components/chip/assets/chip/t9n/index.d.ts +1 -1
- package/dist/types/components/combobox/combobox.d.ts +4 -4
- package/dist/types/components/combobox/interfaces.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +3 -5
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +2 -0
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +2 -0
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +1 -1
- package/dist/types/components/dropdown-group/interfaces.d.ts +1 -1
- package/dist/types/components/filter/assets/filter/t9n/index.d.ts +1 -1
- package/dist/types/components/flow-item/assets/flow-item/t9n/index.d.ts +5 -0
- package/dist/types/components/inline-editable/assets/inline-editable/t9n/index.d.ts +1 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +14 -28
- package/dist/types/components/input-message/input-message.d.ts +1 -6
- package/dist/types/components/loader/loader.d.ts +1 -6
- package/dist/types/components/pagination/assets/pagination/t9n/index.d.ts +2 -2
- package/dist/types/components/panel/assets/panel/t9n/index.d.ts +0 -1
- package/dist/types/components/popover/popover.d.ts +3 -0
- package/dist/types/components/tree/interfaces.d.ts +3 -2
- package/dist/types/components/value-list/assets/value-list/t9n/index.d.ts +0 -1
- package/dist/types/components.d.ts +27 -19
- package/dist/types/utils/date.d.ts +22 -2
- package/dist/types/utils/floating-ui/nonChromiumPlatformUtils.d.ts +1 -2
- package/dist/types/utils/floating-ui.d.ts +4 -0
- package/hydrate/index.js +341 -253
- package/package.json +6 -6
- package/readme.md +2 -2
- package/dist/calcite/p-054f9257.entry.js +0 -6
- package/dist/calcite/p-38e8edca.entry.js +0 -6
- package/dist/calcite/p-40ffeac5.entry.js +0 -6
- package/dist/calcite/p-52da185f.entry.js +0 -6
- package/dist/calcite/p-810d9179.entry.js +0 -6
- package/dist/calcite/p-a2ab49da.entry.js +0 -6
- package/dist/calcite/p-c8e251b9.entry.js +0 -6
- package/dist/calcite/p-f98a4a16.js +0 -6
- package/dist/calcite/p-fb4a87d7.entry.js +0 -6
- package/dist/collection/demos/_assets/demo-dom-swapper.js +0 -45
- package/dist/extras/docs-json.d.ts +0 -124
- package/dist/extras/docs-json.json +0 -24596
- package/dist/types/preact.d.ts +0 -413
|
@@ -1,29 +1,29 @@
|
|
|
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-beta.
|
|
4
|
+
* v1.0.0-beta.98
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
7
|
-
import { T as TEXT, d as
|
|
8
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
|
9
|
-
import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-
|
|
10
|
-
import { d as defaultMenuPlacement, f as filterComputedPlacements, c as connectFloatingUI, u as updateAfterClose, r as reposition, a as disconnectFloatingUI, F as FloatingCSS } from './floating-ui-
|
|
11
|
-
import { u as updateHostInteraction } from './interactive-
|
|
12
|
-
import { t as toAriaBoolean } from './dom-
|
|
13
|
-
import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './openCloseComponent-
|
|
14
|
-
import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale-
|
|
15
|
-
import { n as numberKeys } from './key-
|
|
16
|
-
import './debounce-
|
|
17
|
-
import './resources-
|
|
18
|
-
import './guid-
|
|
19
|
-
import './observers-
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7b536c47.js';
|
|
7
|
+
import { T as TEXT, d as datePartsFromLocalizedString, a as dateFromLocalizedString, i as inRange, b as dateToISO, g as getValueAsDateRange, s as setEndOfDay, c as dateFromISO, e as getLocaleData, f as dateFromRange } from './resources-dcee7909.js';
|
|
8
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-5ccbdccb.js';
|
|
9
|
+
import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-993bce3a.js';
|
|
10
|
+
import { d as defaultMenuPlacement, f as filterComputedPlacements, c as connectFloatingUI, u as updateAfterClose, r as reposition, a as disconnectFloatingUI, F as FloatingCSS } from './floating-ui-68e49c75.js';
|
|
11
|
+
import { u as updateHostInteraction } from './interactive-fc7d4437.js';
|
|
12
|
+
import { t as toAriaBoolean } from './dom-bbdd8cab.js';
|
|
13
|
+
import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './openCloseComponent-17631c32.js';
|
|
14
|
+
import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale-4001e60f.js';
|
|
15
|
+
import { n as numberKeys } from './key-41222930.js';
|
|
16
|
+
import './debounce-247d9570.js';
|
|
17
|
+
import './resources-c8c07116.js';
|
|
18
|
+
import './guid-3c14f5cd.js';
|
|
19
|
+
import './observers-513bffd3.js';
|
|
20
20
|
|
|
21
21
|
const CSS = {
|
|
22
22
|
menu: "menu-container",
|
|
23
23
|
menuActive: "menu-container--active"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
const inputDatePickerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);
|
|
26
|
+
const inputDatePickerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{display:block;position:absolute;z-index:900;pointer-events:none;visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .menu-container{visibility:visible}.menu-container--active{visibility:visible}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
27
27
|
|
|
28
28
|
const InputDatePicker = class {
|
|
29
29
|
constructor(hostRef) {
|
|
@@ -50,6 +50,8 @@ const InputDatePicker = class {
|
|
|
50
50
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
51
51
|
*/
|
|
52
52
|
this.readOnly = false;
|
|
53
|
+
/** Selected date as a string in ISO format (YYYY-MM-DD) */
|
|
54
|
+
this.value = "";
|
|
53
55
|
/**
|
|
54
56
|
* When `true`, the component is active.
|
|
55
57
|
*
|
|
@@ -108,9 +110,25 @@ const InputDatePicker = class {
|
|
|
108
110
|
this.proximitySelectionDisabled = false;
|
|
109
111
|
/** Defines the layout of the component. */
|
|
110
112
|
this.layout = "horizontal";
|
|
113
|
+
this.calciteInternalInputInputHandler = (event) => {
|
|
114
|
+
const target = event.target;
|
|
115
|
+
const value = target.value;
|
|
116
|
+
const { year } = datePartsFromLocalizedString(value, this.localeData);
|
|
117
|
+
if (year && year.length < 4) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const date = dateFromLocalizedString(value, this.localeData);
|
|
121
|
+
if (inRange(date, this.min, this.max)) {
|
|
122
|
+
this.datePickerActiveDate = date;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.calciteInternalInputBlurHandler = () => {
|
|
126
|
+
this.commitValue();
|
|
127
|
+
};
|
|
111
128
|
this.effectiveLocale = "";
|
|
112
129
|
this.focusedInput = "start";
|
|
113
130
|
this.globalAttributes = {};
|
|
131
|
+
this.userChangedValue = false;
|
|
114
132
|
this.openTransitionProp = "opacity";
|
|
115
133
|
//--------------------------------------------------------------------------
|
|
116
134
|
//
|
|
@@ -137,8 +155,16 @@ const InputDatePicker = class {
|
|
|
137
155
|
this.open = false;
|
|
138
156
|
};
|
|
139
157
|
this.keyDownHandler = (event) => {
|
|
158
|
+
var _a, _b;
|
|
140
159
|
const { defaultPrevented, key } = event;
|
|
141
160
|
if (key === "Enter" && !defaultPrevented) {
|
|
161
|
+
this.commitValue();
|
|
162
|
+
if (this.shouldFocusRangeEnd()) {
|
|
163
|
+
(_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
164
|
+
}
|
|
165
|
+
else if (this.shouldFocusRangeStart()) {
|
|
166
|
+
(_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
167
|
+
}
|
|
142
168
|
if (submitForm(this)) {
|
|
143
169
|
event.preventDefault();
|
|
144
170
|
}
|
|
@@ -149,9 +175,6 @@ const InputDatePicker = class {
|
|
|
149
175
|
event.preventDefault();
|
|
150
176
|
}
|
|
151
177
|
};
|
|
152
|
-
this.inputBlur = (event) => {
|
|
153
|
-
this.blur(event.currentTarget);
|
|
154
|
-
};
|
|
155
178
|
this.startInputFocus = () => {
|
|
156
179
|
if (!this.readOnly) {
|
|
157
180
|
this.open = true;
|
|
@@ -164,18 +187,6 @@ const InputDatePicker = class {
|
|
|
164
187
|
}
|
|
165
188
|
this.focusedInput = "end";
|
|
166
189
|
};
|
|
167
|
-
this.startInputInput = () => {
|
|
168
|
-
const parsedValue = this.parseNumerals(this.startInput.value);
|
|
169
|
-
const formattedValue = this.formatNumerals(parsedValue);
|
|
170
|
-
this.startInput.value = formattedValue;
|
|
171
|
-
this.input(parsedValue);
|
|
172
|
-
};
|
|
173
|
-
this.endInputInput = () => {
|
|
174
|
-
const parsedValue = this.parseNumerals(this.endInput.value);
|
|
175
|
-
const formattedValue = this.formatNumerals(parsedValue);
|
|
176
|
-
this.endInput.value = formattedValue;
|
|
177
|
-
this.input(parsedValue);
|
|
178
|
-
};
|
|
179
190
|
this.setFloatingEl = (el) => {
|
|
180
191
|
if (el) {
|
|
181
192
|
this.floatingEl = el;
|
|
@@ -193,23 +204,25 @@ const InputDatePicker = class {
|
|
|
193
204
|
/**
|
|
194
205
|
* Event handler for when the selected date changes
|
|
195
206
|
*
|
|
196
|
-
* @param event
|
|
207
|
+
* @param event CalciteDatePicker custom change event
|
|
197
208
|
*/
|
|
198
209
|
this.handleDateChange = (event) => {
|
|
199
210
|
if (this.range) {
|
|
200
211
|
return;
|
|
201
212
|
}
|
|
202
|
-
|
|
213
|
+
event.stopPropagation();
|
|
214
|
+
this.setValue(event.detail);
|
|
215
|
+
this.localizeInputValues();
|
|
203
216
|
};
|
|
204
217
|
this.handleDateRangeChange = (event) => {
|
|
205
218
|
var _a, _b;
|
|
206
219
|
if (!this.range || !event.detail) {
|
|
207
220
|
return;
|
|
208
221
|
}
|
|
222
|
+
event.stopPropagation();
|
|
209
223
|
const { startDate, endDate } = event.detail;
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.value = [this.start, this.end];
|
|
224
|
+
this.setRangeValue([startDate, endDate]);
|
|
225
|
+
this.localizeInputValues();
|
|
213
226
|
if (this.shouldFocusRangeEnd()) {
|
|
214
227
|
(_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
215
228
|
}
|
|
@@ -217,6 +230,71 @@ const InputDatePicker = class {
|
|
|
217
230
|
(_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
218
231
|
}
|
|
219
232
|
};
|
|
233
|
+
this.setInputValue = (newValue, input = "start") => {
|
|
234
|
+
const inputEl = this[`${input}Input`];
|
|
235
|
+
if (!inputEl) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
inputEl.value = newValue;
|
|
239
|
+
};
|
|
240
|
+
this.setRangeValue = (value) => {
|
|
241
|
+
if (!this.range) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
const { value: oldValue } = this;
|
|
245
|
+
const oldValueIsArray = Array.isArray(oldValue);
|
|
246
|
+
const valueIsArray = Array.isArray(value);
|
|
247
|
+
const newStartDate = valueIsArray ? value[0] : "";
|
|
248
|
+
const newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
|
|
249
|
+
const newEndDate = valueIsArray ? value[1] : "";
|
|
250
|
+
const newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
|
|
251
|
+
const newValue = newStartDateISO || newEndDateISO ? [newStartDateISO, newEndDateISO] : "";
|
|
252
|
+
if (newValue === oldValue) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
this.userChangedValue = true;
|
|
256
|
+
this.value = newValue;
|
|
257
|
+
this.valueAsDate = newValue ? getValueAsDateRange(newValue) : undefined;
|
|
258
|
+
this.start = newStartDateISO;
|
|
259
|
+
this.end = newEndDateISO;
|
|
260
|
+
const eventDetail = {
|
|
261
|
+
startDate: newStartDate,
|
|
262
|
+
endDate: newEndDate ? setEndOfDay(newEndDate) : null
|
|
263
|
+
};
|
|
264
|
+
const changeEvent = this.calciteInputDatePickerChange.emit();
|
|
265
|
+
const rangeChangeEvent = this.calciteDatePickerRangeChange.emit(eventDetail);
|
|
266
|
+
if ((changeEvent && changeEvent.defaultPrevented) ||
|
|
267
|
+
(rangeChangeEvent && rangeChangeEvent.defaultPrevented)) {
|
|
268
|
+
this.value = oldValue;
|
|
269
|
+
if (oldValueIsArray) {
|
|
270
|
+
this.setInputValue(oldValue[0], "start");
|
|
271
|
+
this.setInputValue(oldValue[1], "end");
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this.value = oldValue;
|
|
275
|
+
this.setInputValue(oldValue);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
this.setValue = (value) => {
|
|
280
|
+
if (this.range) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
const oldValue = this.value;
|
|
284
|
+
const newValue = dateToISO(value);
|
|
285
|
+
if (newValue === oldValue) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
this.userChangedValue = true;
|
|
289
|
+
this.valueAsDate = newValue ? dateFromISO(newValue) : undefined;
|
|
290
|
+
this.value = newValue || "";
|
|
291
|
+
const changeEvent = this.calciteInputDatePickerChange.emit();
|
|
292
|
+
const deprecatedDatePickerChangeEvent = this.calciteDatePickerChange.emit(value);
|
|
293
|
+
if (changeEvent.defaultPrevented || deprecatedDatePickerChangeEvent.defaultPrevented) {
|
|
294
|
+
this.value = oldValue;
|
|
295
|
+
this.setInputValue(oldValue);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
220
298
|
this.commonDateSeparators = [".", "-", "/"];
|
|
221
299
|
this.formatNumerals = (value) => value
|
|
222
300
|
? value
|
|
@@ -230,34 +308,31 @@ const InputDatePicker = class {
|
|
|
230
308
|
: char)
|
|
231
309
|
.join("")
|
|
232
310
|
: "";
|
|
233
|
-
this.parseNumerals = (value) => value
|
|
234
|
-
? value
|
|
235
|
-
.split("")
|
|
236
|
-
.map((char) => numberKeys.includes(char) ? numberStringFormatter.delocalize(char) : char)
|
|
237
|
-
.join("")
|
|
238
|
-
: "";
|
|
239
311
|
}
|
|
240
312
|
handleDisabledAndReadOnlyChange(value) {
|
|
241
313
|
if (!value) {
|
|
242
314
|
this.open = false;
|
|
243
315
|
}
|
|
244
316
|
}
|
|
245
|
-
|
|
246
|
-
if (
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
this.
|
|
259
|
-
this.end = undefined;
|
|
317
|
+
valueWatcher(newValue) {
|
|
318
|
+
if (!this.userChangedValue) {
|
|
319
|
+
if (Array.isArray(newValue)) {
|
|
320
|
+
this.valueAsDate = getValueAsDateRange(newValue);
|
|
321
|
+
this.start = newValue[0];
|
|
322
|
+
this.end = newValue[1];
|
|
323
|
+
}
|
|
324
|
+
else if (newValue) {
|
|
325
|
+
this.valueAsDate = dateFromISO(newValue);
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
this.valueAsDate = undefined;
|
|
329
|
+
}
|
|
330
|
+
this.localizeInputValues();
|
|
260
331
|
}
|
|
332
|
+
this.userChangedValue = false;
|
|
333
|
+
}
|
|
334
|
+
valueAsDateWatcher(valueAsDate) {
|
|
335
|
+
this.datePickerActiveDate = valueAsDate;
|
|
261
336
|
}
|
|
262
337
|
flipPlacementsHandler() {
|
|
263
338
|
this.setFilteredPlacements();
|
|
@@ -300,9 +375,6 @@ const InputDatePicker = class {
|
|
|
300
375
|
// Event Listeners
|
|
301
376
|
//
|
|
302
377
|
//--------------------------------------------------------------------------
|
|
303
|
-
handleDateOrRangeChange() {
|
|
304
|
-
this.calciteInputDatePickerChange.emit();
|
|
305
|
-
}
|
|
306
378
|
calciteDaySelectHandler() {
|
|
307
379
|
if (this.shouldFocusRangeStart() || this.shouldFocusRangeEnd()) {
|
|
308
380
|
return;
|
|
@@ -351,7 +423,13 @@ const InputDatePicker = class {
|
|
|
351
423
|
this.end = this.value[1];
|
|
352
424
|
}
|
|
353
425
|
else if (this.value) {
|
|
354
|
-
|
|
426
|
+
try {
|
|
427
|
+
this.valueAsDate = dateFromISO(this.value);
|
|
428
|
+
}
|
|
429
|
+
catch (error) {
|
|
430
|
+
this.warnAboutInvalidValue(this.value);
|
|
431
|
+
this.value = "";
|
|
432
|
+
}
|
|
355
433
|
this.start = "";
|
|
356
434
|
this.end = "";
|
|
357
435
|
}
|
|
@@ -384,6 +462,7 @@ const InputDatePicker = class {
|
|
|
384
462
|
this.onMaxChanged(this.max);
|
|
385
463
|
}
|
|
386
464
|
componentDidLoad() {
|
|
465
|
+
this.localizeInputValues();
|
|
387
466
|
this.reposition(true);
|
|
388
467
|
}
|
|
389
468
|
disconnectedCallback() {
|
|
@@ -398,18 +477,13 @@ const InputDatePicker = class {
|
|
|
398
477
|
}
|
|
399
478
|
render() {
|
|
400
479
|
var _a, _b;
|
|
401
|
-
const { disabled, readOnly } = this;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
:
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
: "";
|
|
409
|
-
const formattedDate = date
|
|
410
|
-
? this.formatNumerals(date.toLocaleDateString(this.effectiveLocale))
|
|
411
|
-
: "";
|
|
412
|
-
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: this.effectiveLocale, "number-button-type": "none", numberingSystem: this.numberingSystem, onCalciteInputInput: this.startInputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
480
|
+
const { disabled, effectiveLocale, numberingSystem, readOnly } = this;
|
|
481
|
+
numberStringFormatter.numberFormatOptions = {
|
|
482
|
+
numberingSystem,
|
|
483
|
+
locale: effectiveLocale,
|
|
484
|
+
useGrouping: false
|
|
485
|
+
};
|
|
486
|
+
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text" })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
413
487
|
[CSS.menu]: true,
|
|
414
488
|
[CSS.menuActive]: this.open
|
|
415
489
|
}, ref: this.setFloatingEl }, h("div", { class: {
|
|
@@ -417,10 +491,10 @@ const InputDatePicker = class {
|
|
|
417
491
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
418
492
|
[FloatingCSS.animation]: true,
|
|
419
493
|
[FloatingCSS.animationActive]: this.open
|
|
420
|
-
}, ref: this.setTransitionEl }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang:
|
|
494
|
+
}, ref: this.setTransitionEl }, h("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang: effectiveLocale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, 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" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
421
495
|
input: true,
|
|
422
496
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
423
|
-
}, disabled: disabled, icon: "calendar", lang:
|
|
497
|
+
}, disabled: disabled, icon: "calendar", lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text" }))))), h(HiddenFormInputSlot, { component: this })));
|
|
424
498
|
}
|
|
425
499
|
setReferenceEl() {
|
|
426
500
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -445,6 +519,51 @@ const InputDatePicker = class {
|
|
|
445
519
|
onClose() {
|
|
446
520
|
this.calciteInputDatePickerClose.emit();
|
|
447
521
|
}
|
|
522
|
+
commitValue() {
|
|
523
|
+
const { focusedInput, value } = this;
|
|
524
|
+
const focusedInputName = `${focusedInput}Input`;
|
|
525
|
+
const focusedInputValue = this[focusedInputName].value;
|
|
526
|
+
const date = dateFromLocalizedString(focusedInputValue, this.localeData);
|
|
527
|
+
const dateAsISO = dateToISO(date);
|
|
528
|
+
const valueIsArray = Array.isArray(value);
|
|
529
|
+
if (this.range) {
|
|
530
|
+
const focusedInputValueIndex = focusedInput === "start" ? 0 : 1;
|
|
531
|
+
if (valueIsArray) {
|
|
532
|
+
if (dateAsISO === value[focusedInputValueIndex]) {
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
if (date) {
|
|
536
|
+
this.setRangeValue([
|
|
537
|
+
focusedInput === "start" ? date : dateFromISO(value[0]),
|
|
538
|
+
focusedInput === "end" ? date : dateFromISO(value[1])
|
|
539
|
+
]);
|
|
540
|
+
this.localizeInputValues();
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
this.setRangeValue([
|
|
544
|
+
focusedInput === "end" && dateFromISO(value[0]),
|
|
545
|
+
focusedInput === "start" && dateFromISO(value[1])
|
|
546
|
+
]);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
if (date) {
|
|
551
|
+
this.setRangeValue([
|
|
552
|
+
focusedInput === "start" ? date : dateFromISO(value[0]),
|
|
553
|
+
focusedInput === "end" ? date : dateFromISO(value[1])
|
|
554
|
+
]);
|
|
555
|
+
this.localizeInputValues();
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
if (dateAsISO === value) {
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
this.setValue(date);
|
|
564
|
+
this.localizeInputValues();
|
|
565
|
+
}
|
|
566
|
+
}
|
|
448
567
|
startWatcher(start) {
|
|
449
568
|
this.startAsDate = dateFromISO(start);
|
|
450
569
|
}
|
|
@@ -454,97 +573,6 @@ const InputDatePicker = class {
|
|
|
454
573
|
async loadLocaleData() {
|
|
455
574
|
this.localeData = await getLocaleData(this.effectiveLocale);
|
|
456
575
|
}
|
|
457
|
-
clearCurrentValue() {
|
|
458
|
-
if (!this.range) {
|
|
459
|
-
if (typeof this.value === "string" && this.value) {
|
|
460
|
-
this.calciteDatePickerChange.emit();
|
|
461
|
-
}
|
|
462
|
-
this.value = "";
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
const { focusedInput } = this;
|
|
466
|
-
if (focusedInput === "start") {
|
|
467
|
-
if (this.start) {
|
|
468
|
-
this.calciteDatePickerRangeChange.emit();
|
|
469
|
-
}
|
|
470
|
-
this.value = Array.isArray(this.value) ? ["", this.value[1] || ""] : [""];
|
|
471
|
-
this.start = undefined;
|
|
472
|
-
}
|
|
473
|
-
else if (focusedInput === "end") {
|
|
474
|
-
if (this.end) {
|
|
475
|
-
this.calciteDatePickerRangeChange.emit();
|
|
476
|
-
}
|
|
477
|
-
this.value = Array.isArray(this.value) ? [this.value[0] || "", ""] : ["", ""];
|
|
478
|
-
this.end = undefined;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* If inputted string is a valid date, update value/active
|
|
483
|
-
*
|
|
484
|
-
* @param value
|
|
485
|
-
*/
|
|
486
|
-
input(value) {
|
|
487
|
-
const date = this.getDateFromInput(value);
|
|
488
|
-
if (!date) {
|
|
489
|
-
this.clearCurrentValue();
|
|
490
|
-
return;
|
|
491
|
-
}
|
|
492
|
-
if (!this.range) {
|
|
493
|
-
this.value = dateToISO(date);
|
|
494
|
-
this.calciteDatePickerChange.emit(date);
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
const { focusedInput } = this;
|
|
498
|
-
if (focusedInput === "start") {
|
|
499
|
-
if (!this.startAsDate || !sameDate(date, this.startAsDate)) {
|
|
500
|
-
const startDateISO = dateToISO(date);
|
|
501
|
-
this.value = Array.isArray(this.value)
|
|
502
|
-
? [startDateISO, this.value[1] || ""]
|
|
503
|
-
: [startDateISO];
|
|
504
|
-
this.start = startDateISO;
|
|
505
|
-
this.calciteDatePickerRangeChange.emit({
|
|
506
|
-
startDate: date,
|
|
507
|
-
endDate: this.endAsDate
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
else if (focusedInput === "end") {
|
|
512
|
-
if (!this.endAsDate || !sameDate(date, this.endAsDate)) {
|
|
513
|
-
const endDateISO = dateToISO(date);
|
|
514
|
-
this.value = Array.isArray(this.value)
|
|
515
|
-
? [this.value[0] || "", endDateISO]
|
|
516
|
-
: ["", endDateISO];
|
|
517
|
-
this.end = endDateISO;
|
|
518
|
-
this.calciteDatePickerRangeChange.emit({
|
|
519
|
-
startDate: this.startAsDate,
|
|
520
|
-
endDate: setEndOfDay(date)
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* Clean up invalid date from input on blur
|
|
527
|
-
*
|
|
528
|
-
* @param target
|
|
529
|
-
*/
|
|
530
|
-
blur(target) {
|
|
531
|
-
const { focusedInput, endAsDate, range, startAsDate, valueAsDate } = this;
|
|
532
|
-
const locale = this.effectiveLocale;
|
|
533
|
-
const date = this.getDateFromInput(target.value);
|
|
534
|
-
if (!date) {
|
|
535
|
-
if (!range && valueAsDate) {
|
|
536
|
-
target.value = this.formatNumerals(Array.isArray(valueAsDate)
|
|
537
|
-
? valueAsDate[focusedInput === "end" ? 1 : 0].toLocaleDateString(locale)
|
|
538
|
-
: valueAsDate.toLocaleDateString(locale));
|
|
539
|
-
}
|
|
540
|
-
else if (focusedInput === "start" && startAsDate) {
|
|
541
|
-
target.value = this.formatNumerals(startAsDate.toLocaleDateString(locale));
|
|
542
|
-
}
|
|
543
|
-
else if (focusedInput === "end" && endAsDate) {
|
|
544
|
-
target.value = this.formatNumerals(endAsDate.toLocaleDateString(locale));
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
576
|
shouldFocusRangeStart() {
|
|
549
577
|
return !!(this.endAsDate &&
|
|
550
578
|
!this.startAsDate &&
|
|
@@ -557,40 +585,25 @@ const InputDatePicker = class {
|
|
|
557
585
|
this.focusedInput === "start" &&
|
|
558
586
|
this.endInput);
|
|
559
587
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
const validDay = day > 0;
|
|
573
|
-
const validMonth = month > -1;
|
|
574
|
-
const date = new Date(year, month, day);
|
|
575
|
-
date.setFullYear(year);
|
|
576
|
-
const validDate = !isNaN(date.getTime());
|
|
577
|
-
const validLength = value.split(separator).filter((c) => c).length > 2;
|
|
578
|
-
const validYear = year.toString().length > 0;
|
|
579
|
-
if (validDay &&
|
|
580
|
-
validMonth &&
|
|
581
|
-
validDate &&
|
|
582
|
-
validLength &&
|
|
583
|
-
validYear &&
|
|
584
|
-
inRange(date, this.min, this.max)) {
|
|
585
|
-
return date;
|
|
586
|
-
}
|
|
587
|
-
return false;
|
|
588
|
+
localizeInputValues() {
|
|
589
|
+
const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
590
|
+
const endDate = this.range
|
|
591
|
+
? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)
|
|
592
|
+
: null;
|
|
593
|
+
const localizedDate = date && this.formatNumerals(date.toLocaleDateString(this.effectiveLocale));
|
|
594
|
+
const localizedEndDate = endDate && this.formatNumerals(endDate.toLocaleDateString(this.effectiveLocale));
|
|
595
|
+
localizedDate && this.setInputValue(localizedDate, "start");
|
|
596
|
+
this.range && localizedEndDate && this.setInputValue(localizedEndDate, "end");
|
|
597
|
+
}
|
|
598
|
+
warnAboutInvalidValue(value) {
|
|
599
|
+
console.warn(`The specified value "${value}" does not conform to the required format, "yyyy-MM-dd".`);
|
|
588
600
|
}
|
|
589
601
|
get el() { return getElement(this); }
|
|
590
602
|
static get watchers() { return {
|
|
591
603
|
"disabled": ["handleDisabledAndReadOnlyChange"],
|
|
592
604
|
"readOnly": ["handleDisabledAndReadOnlyChange"],
|
|
593
|
-
"value": ["
|
|
605
|
+
"value": ["valueWatcher"],
|
|
606
|
+
"valueAsDate": ["valueAsDateWatcher"],
|
|
594
607
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
595
608
|
"min": ["onMinChanged"],
|
|
596
609
|
"max": ["onMaxChanged"],
|
|
@@ -1,12 +1,12 @@
|
|
|
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-beta.
|
|
4
|
+
* v1.0.0-beta.98
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
7
|
-
import { s as setRequestedIcon, e as getElementProp } from './dom-
|
|
8
|
-
import './resources-
|
|
9
|
-
import './guid-
|
|
6
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-7b536c47.js';
|
|
7
|
+
import { s as setRequestedIcon, e as getElementProp } from './dom-bbdd8cab.js';
|
|
8
|
+
import './resources-c8c07116.js';
|
|
9
|
+
import './guid-3c14f5cd.js';
|
|
10
10
|
|
|
11
11
|
var StatusIconDefaults;
|
|
12
12
|
(function (StatusIconDefaults) {
|
|
@@ -15,7 +15,7 @@ var StatusIconDefaults;
|
|
|
15
15
|
StatusIconDefaults["idle"] = "information";
|
|
16
16
|
})(StatusIconDefaults || (StatusIconDefaults = {}));
|
|
17
17
|
|
|
18
|
-
const inputMessageCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=m]),:host([scale=l]){--calcite-input-message-spacing-value:0.25rem}:host{visibility:hidden;box-sizing:border-box;display:flex;block-size:0px;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);visibility:visible;
|
|
18
|
+
const inputMessageCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([active][scale=m]),:host([active][scale=l]){--calcite-input-message-spacing-value:0.25rem}:host{visibility:hidden;box-sizing:border-box;display:flex;block-size:0px;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([active]){visibility:visible;block-size:auto;opacity:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([active][scale=m]),:host([active][scale=l]){margin-block-start:var(--calcite-input-message-spacing-value)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-ui-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-ui-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-ui-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-ui-brand)}:host([status][active]){color:var(--calcite-ui-text-1)}:host([status][scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([status][scale=m]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([status][scale=l]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}";
|
|
19
19
|
|
|
20
20
|
const InputMessage = class {
|
|
21
21
|
constructor(hostRef) {
|
|
@@ -25,12 +25,7 @@ const InputMessage = class {
|
|
|
25
25
|
// Properties
|
|
26
26
|
//
|
|
27
27
|
//--------------------------------------------------------------------------
|
|
28
|
-
/**
|
|
29
|
-
* When `true`, the component is active.
|
|
30
|
-
*
|
|
31
|
-
* @deprecated use global `hidden` attribute instead.
|
|
32
|
-
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
33
|
-
*/
|
|
28
|
+
/** When `true`, the component is active. */
|
|
34
29
|
this.active = false;
|
|
35
30
|
/** Specifies the size of the component. */
|
|
36
31
|
this.scale = "m";
|