@esri/calcite-components 1.0.0-next.542 → 1.0.0-next.545
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/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/p-059b6315.js +6 -0
- package/dist/calcite/{p-fc725a19.js → p-06712b22.js} +2 -2
- package/dist/calcite/{p-8fee8f7a.system.entry.js → p-07f1ec4c.system.entry.js} +2 -2
- package/dist/calcite/{p-1cbd2a71.system.entry.js → p-08017521.system.entry.js} +2 -2
- package/dist/calcite/p-0933dd38.entry.js +6 -0
- package/dist/calcite/{p-af39014c.system.entry.js → p-09513558.system.entry.js} +2 -2
- package/dist/calcite/{p-5e012476.entry.js → p-0b7eff00.entry.js} +2 -2
- package/dist/calcite/{p-bc8eaea9.js → p-0dd3325b.js} +2 -2
- package/dist/calcite/p-0eed4434.entry.js +6 -0
- package/dist/calcite/{p-5c8b2cc3.system.entry.js → p-0fed34a3.system.entry.js} +2 -2
- package/dist/calcite/{p-4e7a1082.system.entry.js → p-10933bb8.system.entry.js} +2 -2
- package/dist/calcite/{p-2521ee60.js → p-10b5a7d3.js} +1 -1
- package/dist/calcite/{p-fbe1de96.system.js → p-125968db.system.js} +3 -3
- package/dist/calcite/{p-d8ec2511.system.js → p-14120933.system.js} +1 -1
- package/dist/calcite/{p-5ee51f4f.entry.js → p-165d407f.entry.js} +2 -2
- package/dist/calcite/{p-f110de0d.system.entry.js → p-171f79cd.system.entry.js} +2 -2
- package/dist/calcite/{p-de004d4e.entry.js → p-19acf1aa.entry.js} +2 -2
- package/dist/calcite/{p-2d347abb.entry.js → p-1ab61780.entry.js} +2 -2
- package/dist/calcite/{p-a2a18f76.system.js → p-1c3d9a00.system.js} +2 -2
- package/dist/calcite/{p-f28fdcb3.system.js → p-1d115ed6.system.js} +1 -1
- package/dist/calcite/{p-5ad7caf5.system.js → p-216924b5.system.js} +1 -1
- package/dist/calcite/{p-189bce24.system.js → p-26cef117.system.js} +2 -2
- package/dist/calcite/{p-b23c14af.system.js → p-28c957d6.system.js} +1 -1
- package/dist/calcite/{p-e27d6c80.system.entry.js → p-2a0cfe91.system.entry.js} +2 -2
- package/dist/calcite/p-2a2ed05c.system.js +6 -0
- package/dist/calcite/{p-c9107d4a.entry.js → p-2abc77ed.entry.js} +2 -2
- package/dist/calcite/{p-40c82da2.js → p-30a83253.js} +1 -1
- package/dist/calcite/{p-a294d8df.entry.js → p-33efb339.entry.js} +2 -2
- package/dist/calcite/{p-8d689884.entry.js → p-34e0d018.entry.js} +2 -2
- package/dist/calcite/{p-3b0c47bc.entry.js → p-366dc49f.entry.js} +2 -2
- package/dist/calcite/{p-ec3ceed7.entry.js → p-36bb89b0.entry.js} +2 -2
- package/dist/calcite/{p-9cb1f832.entry.js → p-382ef597.entry.js} +2 -2
- package/dist/calcite/{p-c5a58674.system.entry.js → p-39572acc.system.entry.js} +2 -2
- package/dist/calcite/{p-24a2748b.system.entry.js → p-3960c1a2.system.entry.js} +2 -2
- package/dist/calcite/p-3ca99921.entry.js +6 -0
- package/dist/calcite/{p-dafcd561.entry.js → p-3d0f9058.entry.js} +2 -2
- package/dist/calcite/{p-b72163c6.system.js → p-40f4db01.system.js} +2 -2
- package/dist/calcite/{p-4fa7f63f.system.entry.js → p-40fd0812.system.entry.js} +2 -2
- package/dist/calcite/{p-40c90605.system.entry.js → p-421b1041.system.entry.js} +2 -2
- package/dist/calcite/{p-cb82ce61.system.entry.js → p-426a08ee.system.entry.js} +2 -2
- package/dist/calcite/{p-ac93cf01.js → p-44aa00e2.js} +2 -2
- package/dist/calcite/{p-9266ec9b.system.entry.js → p-45381bd8.system.entry.js} +2 -2
- package/dist/calcite/{p-8398a46c.system.entry.js → p-46eb815c.system.entry.js} +2 -2
- package/dist/calcite/{p-3588ffbe.system.js → p-4754fd7f.system.js} +2 -2
- package/dist/calcite/{p-9f8cb5d7.entry.js → p-48ec1e5b.entry.js} +2 -2
- package/dist/calcite/{p-c02ea785.system.entry.js → p-49c3daaa.system.entry.js} +2 -2
- package/dist/calcite/{p-d3c8c6dc.system.entry.js → p-49dc69ef.system.entry.js} +2 -2
- package/dist/calcite/{p-a97db22f.system.entry.js → p-4a508f15.system.entry.js} +2 -2
- package/dist/calcite/{p-730feaac.entry.js → p-4b6e7d5f.entry.js} +2 -2
- package/dist/calcite/{p-5a344e51.system.entry.js → p-4c03898a.system.entry.js} +2 -2
- package/dist/calcite/{p-c897d290.entry.js → p-4c06220c.entry.js} +2 -2
- package/dist/calcite/{p-feff7d3d.system.entry.js → p-4c423666.system.entry.js} +2 -2
- package/dist/calcite/{p-401bedfa.js → p-4f706cb7.js} +2 -2
- package/dist/calcite/{p-31fe85bd.entry.js → p-50aa2d9a.entry.js} +2 -2
- package/dist/calcite/{p-859c4bf2.js → p-51528f35.js} +2 -2
- package/dist/calcite/{p-02fa48b4.system.entry.js → p-51c4745a.system.entry.js} +2 -2
- package/dist/calcite/{p-736d91b4.system.entry.js → p-5502ed77.system.entry.js} +2 -2
- package/dist/calcite/{p-94f64d43.js → p-55b60020.js} +1 -1
- package/dist/calcite/{p-ef6cd7f0.system.js → p-57921e33.system.js} +1 -1
- package/dist/calcite/{p-758210a6.system.js → p-5cc19e1c.system.js} +2 -2
- package/dist/calcite/{p-215da5cf.js → p-5d4755cf.js} +1 -1
- package/dist/calcite/{p-199c0634.entry.js → p-61a7329d.entry.js} +2 -2
- package/dist/calcite/{p-c8202b3b.system.entry.js → p-6585703d.system.entry.js} +2 -2
- package/dist/calcite/{p-56921684.entry.js → p-66604bf0.entry.js} +2 -2
- package/dist/calcite/{p-860148e4.entry.js → p-686faef5.entry.js} +2 -2
- package/dist/calcite/{p-1abed29e.entry.js → p-68b68cb1.entry.js} +2 -2
- package/dist/calcite/{p-8ba16744.js → p-6a8dca5c.js} +2 -2
- package/dist/calcite/{p-7c6f09b0.js → p-6d99324d.js} +1 -1
- package/dist/calcite/{p-65812c3e.system.entry.js → p-77cd5ae7.system.entry.js} +2 -2
- package/dist/calcite/{p-4f0552b6.system.js → p-77db2b28.system.js} +1 -1
- package/dist/calcite/{p-c9043cd0.entry.js → p-7835d9c6.entry.js} +2 -2
- package/dist/calcite/{p-12aa3439.system.entry.js → p-7839585a.system.entry.js} +3 -3
- package/dist/calcite/{p-9b04ae0e.system.js → p-783fcd16.system.js} +2 -2
- package/dist/calcite/{p-79a3cacb.system.entry.js → p-79fb832a.system.entry.js} +2 -2
- package/dist/calcite/{p-458a86d1.js → p-7d1f33a7.js} +1 -1
- package/dist/calcite/{p-45063908.entry.js → p-8109972f.entry.js} +2 -2
- package/dist/calcite/{p-5077ef95.entry.js → p-811c0946.entry.js} +2 -2
- package/dist/calcite/{p-aa02195d.entry.js → p-82fd4d63.entry.js} +2 -2
- package/dist/calcite/{p-583eeef8.system.entry.js → p-831bee4b.system.entry.js} +2 -2
- package/dist/calcite/{p-6050b07b.entry.js → p-836f2267.entry.js} +2 -2
- package/dist/calcite/{p-c32857bf.js → p-865547b6.js} +1 -1
- package/dist/calcite/{p-a0e22b40.system.entry.js → p-8678ac36.system.entry.js} +2 -2
- package/dist/calcite/{p-c97a46c9.js → p-867ea31c.js} +1 -1
- package/dist/calcite/{p-4c700a95.system.js → p-86a3be16.system.js} +1 -1
- package/dist/calcite/{p-c016f99b.system.entry.js → p-891bd723.system.entry.js} +2 -2
- package/dist/calcite/{p-091fe715.entry.js → p-8b0ed7a6.entry.js} +2 -2
- package/dist/calcite/{p-8649e3d5.entry.js → p-8bb47f2c.entry.js} +2 -2
- package/dist/calcite/{p-f4e50797.entry.js → p-8d4b4dca.entry.js} +2 -2
- package/dist/calcite/p-8e89c5ca.entry.js +6 -0
- package/dist/calcite/{p-a5e6bf31.system.entry.js → p-8fdb3372.system.entry.js} +2 -2
- package/dist/calcite/{p-35685e7d.entry.js → p-9078536b.entry.js} +2 -2
- package/dist/calcite/{p-be051242.js → p-91a63409.js} +1 -1
- package/dist/calcite/{p-522bb3a2.system.js → p-91cf193c.system.js} +1 -1
- package/dist/calcite/{p-66f5f144.entry.js → p-92871457.entry.js} +2 -2
- package/dist/calcite/p-92e60516.js +6 -0
- package/dist/calcite/{p-a3a14046.entry.js → p-96887b19.entry.js} +2 -2
- package/dist/calcite/{p-c093ffb7.system.entry.js → p-97399359.system.entry.js} +2 -2
- package/dist/calcite/{p-904d181a.system.entry.js → p-9bad1791.system.entry.js} +2 -2
- package/dist/calcite/{p-45ba3887.entry.js → p-9c2366ae.entry.js} +2 -2
- package/dist/calcite/{p-fd2de516.entry.js → p-9e5fa3ce.entry.js} +2 -2
- package/dist/calcite/{p-5347695b.entry.js → p-a11cc161.entry.js} +2 -2
- package/dist/calcite/p-a18a4874.system.js +6 -0
- package/dist/calcite/{p-943370c3.system.entry.js → p-a2f31213.system.entry.js} +2 -2
- package/dist/calcite/{p-6569dac7.system.js → p-a5617c0b.system.js} +1 -1
- package/dist/calcite/{p-bab230dd.system.entry.js → p-a597179f.system.entry.js} +2 -2
- package/dist/calcite/{p-cb42018a.system.entry.js → p-a60da399.system.entry.js} +2 -2
- package/dist/calcite/{p-fef333e6.system.entry.js → p-a7cd6e07.system.entry.js} +2 -2
- package/dist/calcite/{p-8568e804.entry.js → p-a84c51e4.entry.js} +2 -2
- package/dist/calcite/{p-36f1e854.entry.js → p-a8eded9b.entry.js} +2 -2
- package/dist/calcite/{p-83186e54.system.entry.js → p-aa2304a9.system.entry.js} +2 -2
- package/dist/calcite/{p-66745ea6.js → p-abddf259.js} +2 -2
- package/dist/calcite/{p-20cdb742.entry.js → p-adf03aa5.entry.js} +2 -2
- package/dist/calcite/{p-701ef8ed.entry.js → p-af77d6d8.entry.js} +2 -2
- package/dist/calcite/{p-d821b90c.js → p-af8e7771.js} +1 -1
- package/dist/calcite/{p-eb16be11.system.entry.js → p-b080d795.system.entry.js} +2 -2
- package/dist/calcite/{p-f54d9f01.entry.js → p-b1ef2c4c.entry.js} +2 -2
- package/dist/calcite/{p-e9132aee.system.js → p-b2dcf840.system.js} +1 -1
- package/dist/calcite/{p-150cb93c.system.entry.js → p-b9204866.system.entry.js} +2 -2
- package/dist/calcite/{p-61bdaa7c.system.entry.js → p-bb1ffcd5.system.entry.js} +2 -2
- package/dist/calcite/{p-7db0f912.system.entry.js → p-bd91b3e2.system.entry.js} +2 -2
- package/dist/calcite/{p-06ce076c.system.entry.js → p-bfa9422b.system.entry.js} +2 -2
- package/dist/calcite/{p-29bdb405.system.entry.js → p-c1f5e0e3.system.entry.js} +3 -3
- package/dist/calcite/{p-eb97e9a1.entry.js → p-c3be24b2.entry.js} +2 -2
- package/dist/calcite/{p-2aeb0cac.entry.js → p-c45913f4.entry.js} +2 -2
- package/dist/calcite/{p-f8258c51.system.js → p-c87b0281.system.js} +2 -2
- package/dist/calcite/{p-7844752c.js → p-c9b4869d.js} +1 -1
- package/dist/calcite/{p-a2dd0fec.system.entry.js → p-c9bcd72e.system.entry.js} +2 -2
- package/dist/calcite/p-cd5d0f01.system.entry.js +6 -0
- package/dist/calcite/{p-b3d0ad42.system.entry.js → p-cea09e89.system.entry.js} +2 -2
- package/dist/calcite/{p-775d79a5.js → p-cf15be2d.js} +1 -1
- package/dist/calcite/{p-ee24136f.system.entry.js → p-cf35f23d.system.entry.js} +3 -3
- package/dist/calcite/{p-f2f57aef.entry.js → p-cff58306.entry.js} +2 -2
- package/dist/calcite/{p-c8d1c71b.system.entry.js → p-d0e461cc.system.entry.js} +2 -2
- package/dist/calcite/{p-7e7e1755.entry.js → p-d1474b1a.entry.js} +2 -2
- package/dist/calcite/{p-604f9928.system.entry.js → p-d1a98bc1.system.entry.js} +2 -2
- package/dist/calcite/{p-809cf38f.entry.js → p-d26be0a8.entry.js} +2 -2
- package/dist/calcite/{p-2a8f5795.system.js → p-d5d6b4f2.system.js} +2 -2
- package/dist/calcite/{p-0ec1c7e5.entry.js → p-d687626a.entry.js} +2 -2
- package/dist/calcite/{p-856abd76.system.entry.js → p-d74b6640.system.entry.js} +2 -2
- package/dist/calcite/{p-33c316e8.system.entry.js → p-d787ef6f.system.entry.js} +2 -2
- package/dist/calcite/{p-5853bffc.entry.js → p-db787990.entry.js} +2 -2
- package/dist/calcite/{p-510a0d8b.entry.js → p-dbe31568.entry.js} +2 -2
- package/dist/calcite/{p-50262cab.system.js → p-ddc68710.system.js} +1 -1
- package/dist/calcite/{p-0031e235.entry.js → p-ddea9f57.entry.js} +2 -2
- package/dist/calcite/{p-406cd4ce.system.entry.js → p-dec72229.system.entry.js} +2 -2
- package/dist/calcite/{p-a3d896a0.entry.js → p-e0f4fa7a.entry.js} +2 -2
- package/dist/calcite/{p-15f4d3b3.system.js → p-e29707d8.system.js} +1 -1
- package/dist/calcite/{p-c6dd6658.system.js → p-e2ff7289.system.js} +2 -2
- package/dist/calcite/{p-9153a2f4.entry.js → p-ebb01425.entry.js} +2 -2
- package/dist/calcite/{p-4484bef3.system.entry.js → p-ef00f12b.system.entry.js} +3 -3
- package/dist/calcite/{p-c3591d7d.system.entry.js → p-f0828b38.system.entry.js} +2 -2
- package/dist/calcite/{p-a8c8ec3f.system.entry.js → p-f15c2e86.system.entry.js} +2 -2
- package/dist/calcite/{p-3b255a95.system.js → p-f381813f.system.js} +1 -1
- package/dist/calcite/p-f5882583.entry.js +6 -0
- package/dist/calcite/{p-5b97ac7d.js → p-f73ac0d1.js} +1 -1
- package/dist/calcite/{p-817c2aa2.entry.js → p-f864e8da.entry.js} +2 -2
- package/dist/calcite/{p-0e449ec8.system.entry.js → p-f89e2c44.system.entry.js} +2 -2
- package/dist/calcite/{p-25b802a6.system.entry.js → p-f9ea2e8c.system.entry.js} +2 -2
- package/dist/calcite/{p-efc43338.js → p-fac07d53.js} +2 -2
- package/dist/calcite/{p-57af6607.entry.js → p-fadc93cf.entry.js} +2 -2
- package/dist/calcite/{p-bab0fbb4.system.js → p-fc15b223.system.js} +1 -1
- package/dist/calcite/{p-aca964df.js → p-fca44ef4.js} +2 -2
- package/dist/calcite/{p-7ba87ba4.entry.js → p-fcc86332.entry.js} +2 -2
- package/dist/calcite/{p-3f28cc07.system.entry.js → p-fd17bea9.system.entry.js} +3 -3
- package/dist/calcite/{p-3c409895.entry.js → p-fe79b4f5.entry.js} +2 -2
- package/dist/calcite/{p-97c1ff00.system.entry.js → p-ff369cc9.system.entry.js} +2 -2
- package/dist/calcite/p-ff782b2c.system.entry.js +6 -0
- package/dist/calcite/{p-90d10753.entry.js → p-ffa9e0fb.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-71fc68a4.js → ExpandToggle-bb606091.js} +5 -5
- package/dist/cjs/{Heading-e30d85e7.js → Heading-0f2e7118.js} +2 -2
- package/dist/cjs/{array-6016b045.js → array-e09585d4.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
- 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 +10 -8
- 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 +10 -12
- 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 +11 -11
- package/dist/cjs/calcite-input-text.cjs.entry.js +330 -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 +5 -5
- 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 +3 -3
- package/dist/cjs/{conditionalSlot-a9a627b2.js → conditionalSlot-72d7279a.js} +3 -3
- package/dist/cjs/{debounce-91904607.js → debounce-d03b3c0d.js} +1 -1
- package/dist/cjs/{dom-76a52cb1.js → dom-7d31f23c.js} +2 -2
- package/dist/cjs/{filter-e37e78c3.js → filter-5d0a59f0.js} +2 -2
- package/dist/cjs/{floating-ui-5f4d771f.js → floating-ui-2421d0a3.js} +2 -2
- package/dist/cjs/{form-c451786c.js → form-f81a1159.js} +3 -3
- package/dist/cjs/{guid-876fbf35.js → guid-c4d68bba.js} +1 -1
- package/dist/cjs/{index-a5471115.js → index-a14d74bf.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-23d34512.js → interactive-7dd3d0fb.js} +1 -1
- package/dist/cjs/{interfaces-b52b4404.js → interfaces-a7cfada4.js} +1 -1
- package/dist/cjs/{key-4b110645.js → key-4c570734.js} +1 -1
- package/dist/cjs/{label-188525cf.js → label-db6eed6b.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-a5a3af1a.js → locale-d072cf3c.js} +2 -2
- package/dist/cjs/{math-df5354f8.js → math-fbf643c3.js} +1 -1
- package/dist/cjs/{observers-9272f97d.js → observers-36d8653e.js} +1 -1
- package/dist/cjs/{resources-43229262.js → resources-02e2cc33.js} +3 -3
- package/dist/cjs/{resources-556fdab9.js → resources-0db49bd5.js} +1 -1
- package/dist/cjs/{resources-65cb9a27.js → resources-71fa072e.js} +5 -5
- package/dist/cjs/{resources-1fed56da.js → resources-bb07fd5f.js} +1 -1
- package/dist/cjs/{sortable.esm-47b0c200.js → sortable.esm-9e46a946.js} +1 -1
- package/dist/cjs/{utils-5010f3a0.js → utils-83aa80f3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- 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/accordion-item/interfaces.js +1 -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 +5 -5
- 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.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 +3 -3
- 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 +14 -7
- 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-date-picker/resources.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.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +400 -0
- package/dist/collection/components/input-text/input-text.js +899 -0
- package/dist/collection/components/input-text/resources.js +24 -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.js +1 -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 +2 -10
- 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/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +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/floating-ui.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/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 +4 -4
- 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 +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.d.ts +11 -0
- package/dist/components/calcite-input-text.js +382 -0
- 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 +3 -5
- 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 +1 -1
- 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 +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 +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +5 -3
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- 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 +1 -1
- 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 +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 +1 -1
- 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/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 +594 -278
- package/dist/esm/{ExpandToggle-b7a16305.js → ExpandToggle-261700fa.js} +5 -5
- package/dist/esm/{Heading-2b37e7cd.js → Heading-efa4556c.js} +2 -2
- package/dist/esm/{array-59fdfb05.js → array-a5a01182.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- package/dist/esm/calcite-action-bar.entry.js +10 -10
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +10 -10
- package/dist/esm/calcite-action-pad.entry.js +9 -9
- 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 +10 -8
- 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 +10 -12
- 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 +11 -11
- package/dist/esm/calcite-input-text.entry.js +326 -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 +5 -5
- 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 +3 -3
- package/dist/esm/{conditionalSlot-6cf4e756.js → conditionalSlot-669e0410.js} +3 -3
- package/dist/esm/{debounce-f02dba14.js → debounce-6de0511c.js} +1 -1
- package/dist/esm/{dom-94d33250.js → dom-23885dd1.js} +2 -2
- package/dist/esm/{filter-d4bef334.js → filter-c67483d8.js} +2 -2
- package/dist/esm/{floating-ui-76095bb7.js → floating-ui-9c812ea6.js} +2 -2
- package/dist/esm/{form-e2ab07d5.js → form-bd3527b0.js} +3 -3
- package/dist/esm/{guid-e3325695.js → guid-da1507c2.js} +1 -1
- package/dist/esm/{index-311779b6.js → index-66416f62.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-fef24a72.js → interactive-44cac9af.js} +1 -1
- package/dist/esm/{interfaces-746a108e.js → interfaces-e5d85d5e.js} +1 -1
- package/dist/esm/{key-735f8831.js → key-e6236d7a.js} +1 -1
- package/dist/esm/{label-ff91bcdd.js → label-237c930c.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-1eb91ee3.js → locale-8ff71bfb.js} +2 -2
- package/dist/esm/{math-4e4eb7ae.js → math-5ac97cd0.js} +1 -1
- package/dist/esm/{observers-60f6b2a1.js → observers-8d9b9c5f.js} +1 -1
- package/dist/esm/{resources-b6cb66e7.js → resources-1e411380.js} +3 -3
- package/dist/esm/{resources-abf9ed03.js → resources-1f2c04d2.js} +1 -1
- package/dist/esm/{resources-e5427ff3.js → resources-b1fb5bcc.js} +5 -5
- package/dist/esm/{resources-9971247b.js → resources-c818df7b.js} +1 -1
- package/dist/esm/{sortable.esm-fafc20f8.js → sortable.esm-ed006e45.js} +1 -1
- package/dist/esm/{utils-1cdfe04d.js → utils-9bcb0906.js} +1 -1
- package/dist/esm-es5/ExpandToggle-261700fa.js +6 -0
- package/dist/esm-es5/{Heading-2b37e7cd.js → Heading-efa4556c.js} +2 -2
- package/dist/esm-es5/{array-59fdfb05.js → array-a5a01182.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +2 -2
- package/dist/esm-es5/calcite-input-text.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 +3 -3
- 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-6cf4e756.js → conditionalSlot-669e0410.js} +2 -2
- package/dist/esm-es5/{debounce-f02dba14.js → debounce-6de0511c.js} +1 -1
- package/dist/esm-es5/{dom-94d33250.js → dom-23885dd1.js} +2 -2
- package/dist/esm-es5/{filter-d4bef334.js → filter-c67483d8.js} +2 -2
- package/dist/esm-es5/{floating-ui-76095bb7.js → floating-ui-9c812ea6.js} +2 -2
- package/dist/esm-es5/{form-e2ab07d5.js → form-bd3527b0.js} +2 -2
- package/dist/esm-es5/{guid-e3325695.js → guid-da1507c2.js} +1 -1
- package/dist/esm-es5/{index-311779b6.js → index-66416f62.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-fef24a72.js → interactive-44cac9af.js} +1 -1
- package/dist/esm-es5/{interfaces-746a108e.js → interfaces-e5d85d5e.js} +1 -1
- package/dist/esm-es5/{key-735f8831.js → key-e6236d7a.js} +1 -1
- package/dist/esm-es5/{label-ff91bcdd.js → label-237c930c.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-1eb91ee3.js → locale-8ff71bfb.js} +2 -2
- package/dist/esm-es5/{math-4e4eb7ae.js → math-5ac97cd0.js} +1 -1
- package/dist/esm-es5/{observers-60f6b2a1.js → observers-8d9b9c5f.js} +1 -1
- package/dist/esm-es5/{resources-b6cb66e7.js → resources-1e411380.js} +2 -2
- package/dist/esm-es5/{resources-abf9ed03.js → resources-1f2c04d2.js} +1 -1
- package/dist/esm-es5/{resources-e5427ff3.js → resources-b1fb5bcc.js} +2 -2
- package/dist/esm-es5/{resources-9971247b.js → resources-c818df7b.js} +1 -1
- package/dist/esm-es5/{sortable.esm-fafc20f8.js → sortable.esm-ed006e45.js} +1 -1
- package/dist/esm-es5/{utils-1cdfe04d.js → utils-9bcb0906.js} +1 -1
- package/dist/extras/docs-json.json +638 -119
- 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/dropdown/dropdown.d.ts +4 -3
- package/dist/types/components/dropdown/interfaces.d.ts +6 -0
- package/dist/types/components/input-text/input-text.d.ts +170 -0
- package/dist/types/components/input-text/resources.d.ts +19 -0
- package/dist/types/components/slider/slider.d.ts +0 -1
- package/dist/types/components.d.ts +234 -2
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +627 -277
- package/package.json +4 -4
- package/dist/calcite/p-11f7fff8.js +0 -6
- package/dist/calcite/p-201101eb.js +0 -6
- package/dist/calcite/p-3e75ced5.entry.js +0 -6
- package/dist/calcite/p-4367d80d.system.js +0 -6
- package/dist/calcite/p-504a723f.system.js +0 -6
- package/dist/calcite/p-6c5d58a0.entry.js +0 -6
- package/dist/calcite/p-7c136488.entry.js +0 -6
- package/dist/calcite/p-d53b1902.entry.js +0 -6
- package/dist/calcite/p-e0785593.system.entry.js +0 -6
- package/dist/esm-es5/ExpandToggle-b7a16305.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.545
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5734,7 +5734,7 @@ const CSS_UTILITY = {
|
|
|
5734
5734
|
lightTheme,
|
|
5735
5735
|
rtl: "calcite--rtl"
|
|
5736
5736
|
};
|
|
5737
|
-
const TEXT$
|
|
5737
|
+
const TEXT$u = {
|
|
5738
5738
|
loading: "Loading"
|
|
5739
5739
|
};
|
|
5740
5740
|
|
|
@@ -5962,11 +5962,11 @@ function processMutations$1(mutations) {
|
|
|
5962
5962
|
});
|
|
5963
5963
|
}
|
|
5964
5964
|
|
|
5965
|
-
const SLOTS$
|
|
5965
|
+
const SLOTS$s = {
|
|
5966
5966
|
actionsStart: "actions-start",
|
|
5967
5967
|
actionsEnd: "actions-end"
|
|
5968
5968
|
};
|
|
5969
|
-
const CSS$
|
|
5969
|
+
const CSS$S = {
|
|
5970
5970
|
icon: "icon",
|
|
5971
5971
|
header: "header",
|
|
5972
5972
|
headerContent: "header-content",
|
|
@@ -6049,25 +6049,25 @@ class AccordionItem {
|
|
|
6049
6049
|
// --------------------------------------------------------------------------
|
|
6050
6050
|
renderActionsStart() {
|
|
6051
6051
|
const { el } = this;
|
|
6052
|
-
return getSlotted(el, SLOTS$
|
|
6052
|
+
return getSlotted(el, SLOTS$s.actionsStart) ? (hAsync("div", { class: CSS$S.actionsStart }, hAsync("slot", { name: SLOTS$s.actionsStart }))) : null;
|
|
6053
6053
|
}
|
|
6054
6054
|
renderActionsEnd() {
|
|
6055
6055
|
const { el } = this;
|
|
6056
|
-
return getSlotted(el, SLOTS$
|
|
6056
|
+
return getSlotted(el, SLOTS$s.actionsEnd) ? (hAsync("div", { class: CSS$S.actionsEnd }, hAsync("slot", { name: SLOTS$s.actionsEnd }))) : null;
|
|
6057
6057
|
}
|
|
6058
6058
|
render() {
|
|
6059
6059
|
const dir = getElementDir(this.el);
|
|
6060
|
-
const iconEl = hAsync("calcite-icon", { class: CSS$
|
|
6060
|
+
const iconEl = hAsync("calcite-icon", { class: CSS$S.icon, icon: this.icon, scale: "s" });
|
|
6061
6061
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
6062
6062
|
[`icon-position--${this.iconPosition}`]: true,
|
|
6063
6063
|
[`icon-type--${this.iconType}`]: true
|
|
6064
|
-
} }, hAsync("div", { class: { [CSS$
|
|
6064
|
+
} }, hAsync("div", { class: { [CSS$S.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.active || this.expanded), class: CSS$S.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, this.icon ? iconEl : null, hAsync("div", { class: CSS$S.headerText }, hAsync("span", { class: CSS$S.heading }, this.heading || this.itemTitle), this.itemSubtitle || this.description ? (hAsync("span", { class: CSS$S.description }, this.description || this.itemSubtitle)) : null), hAsync("calcite-icon", { class: CSS$S.expandIcon, icon: this.iconType === "chevron"
|
|
6065
6065
|
? "chevronDown"
|
|
6066
6066
|
: this.iconType === "caret"
|
|
6067
6067
|
? "caretDown"
|
|
6068
6068
|
: this.expanded || this.active
|
|
6069
6069
|
? "minus"
|
|
6070
|
-
: "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
6070
|
+
: "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$S.content }, hAsync("slot", null)))));
|
|
6071
6071
|
}
|
|
6072
6072
|
//--------------------------------------------------------------------------
|
|
6073
6073
|
//
|
|
@@ -6156,7 +6156,7 @@ class AccordionItem {
|
|
|
6156
6156
|
}; }
|
|
6157
6157
|
}
|
|
6158
6158
|
|
|
6159
|
-
const CSS$
|
|
6159
|
+
const CSS$R = {
|
|
6160
6160
|
button: "button",
|
|
6161
6161
|
buttonTextVisible: "button--text-visible",
|
|
6162
6162
|
buttonCompact: "button--compact",
|
|
@@ -6166,7 +6166,7 @@ const CSS$Q = {
|
|
|
6166
6166
|
textContainer: "text-container",
|
|
6167
6167
|
textContainerVisible: "text-container--visible"
|
|
6168
6168
|
};
|
|
6169
|
-
const TEXT$
|
|
6169
|
+
const TEXT$t = {
|
|
6170
6170
|
loading: "Loading"
|
|
6171
6171
|
};
|
|
6172
6172
|
|
|
@@ -6247,7 +6247,7 @@ class Action {
|
|
|
6247
6247
|
*
|
|
6248
6248
|
* @default "Loading"
|
|
6249
6249
|
*/
|
|
6250
|
-
this.intlLoading = TEXT$
|
|
6250
|
+
this.intlLoading = TEXT$t.loading;
|
|
6251
6251
|
/**
|
|
6252
6252
|
* When true, a busy indicator is displayed.
|
|
6253
6253
|
*/
|
|
@@ -6306,8 +6306,8 @@ class Action {
|
|
|
6306
6306
|
renderTextContainer() {
|
|
6307
6307
|
const { text, textEnabled } = this;
|
|
6308
6308
|
const textContainerClasses = {
|
|
6309
|
-
[CSS$
|
|
6310
|
-
[CSS$
|
|
6309
|
+
[CSS$R.textContainer]: true,
|
|
6310
|
+
[CSS$R.textContainerVisible]: textEnabled
|
|
6311
6311
|
};
|
|
6312
6312
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6313
6313
|
}
|
|
@@ -6321,18 +6321,18 @@ class Action {
|
|
|
6321
6321
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6322
6322
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6323
6323
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6324
|
-
[CSS$
|
|
6325
|
-
[CSS$
|
|
6324
|
+
[CSS$R.slotContainer]: true,
|
|
6325
|
+
[CSS$R.slotContainerHidden]: loading
|
|
6326
6326
|
} }, hAsync("slot", null)));
|
|
6327
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6327
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$R.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6328
6328
|
}
|
|
6329
6329
|
render() {
|
|
6330
6330
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6331
6331
|
const ariaLabel = label || text;
|
|
6332
6332
|
const buttonClasses = {
|
|
6333
|
-
[CSS$
|
|
6334
|
-
[CSS$
|
|
6335
|
-
[CSS$
|
|
6333
|
+
[CSS$R.button]: true,
|
|
6334
|
+
[CSS$R.buttonTextVisible]: textEnabled,
|
|
6335
|
+
[CSS$R.buttonCompact]: compact
|
|
6336
6336
|
};
|
|
6337
6337
|
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())));
|
|
6338
6338
|
}
|
|
@@ -6363,11 +6363,11 @@ class Action {
|
|
|
6363
6363
|
}; }
|
|
6364
6364
|
}
|
|
6365
6365
|
|
|
6366
|
-
const CSS$
|
|
6366
|
+
const CSS$Q = {
|
|
6367
6367
|
menu: "menu",
|
|
6368
6368
|
defaultTrigger: "default-trigger"
|
|
6369
6369
|
};
|
|
6370
|
-
const SLOTS$
|
|
6370
|
+
const SLOTS$r = {
|
|
6371
6371
|
tooltip: "tooltip",
|
|
6372
6372
|
trigger: "trigger"
|
|
6373
6373
|
};
|
|
@@ -6375,11 +6375,11 @@ const ICONS$f = {
|
|
|
6375
6375
|
menu: "ellipsis"
|
|
6376
6376
|
};
|
|
6377
6377
|
|
|
6378
|
-
const SLOTS$
|
|
6378
|
+
const SLOTS$q = {
|
|
6379
6379
|
menuActions: "menu-actions",
|
|
6380
6380
|
menuTooltip: "menu-tooltip"
|
|
6381
6381
|
};
|
|
6382
|
-
const TEXT$
|
|
6382
|
+
const TEXT$s = {
|
|
6383
6383
|
more: "More"
|
|
6384
6384
|
};
|
|
6385
6385
|
const ICONS$e = {
|
|
@@ -6405,7 +6405,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
6405
6405
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
6406
6406
|
};
|
|
6407
6407
|
const queryActions = (el) => {
|
|
6408
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
6408
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$r.trigger : true);
|
|
6409
6409
|
};
|
|
6410
6410
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
6411
6411
|
let needToSlotCount = overflowCount;
|
|
@@ -6413,7 +6413,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6413
6413
|
let slottedWithinGroupCount = 0;
|
|
6414
6414
|
const groupActions = queryActions(group).reverse();
|
|
6415
6415
|
groupActions.forEach((groupAction) => {
|
|
6416
|
-
if (groupAction.slot === SLOTS$
|
|
6416
|
+
if (groupAction.slot === SLOTS$q.menuActions) {
|
|
6417
6417
|
groupAction.removeAttribute("slot");
|
|
6418
6418
|
groupAction.textEnabled = expanded;
|
|
6419
6419
|
}
|
|
@@ -6423,7 +6423,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6423
6423
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
6424
6424
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
6425
6425
|
groupAction.textEnabled = true;
|
|
6426
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
6426
|
+
groupAction.setAttribute("slot", SLOTS$q.menuActions);
|
|
6427
6427
|
slottedWithinGroupCount++;
|
|
6428
6428
|
if (slottedWithinGroupCount > 1) {
|
|
6429
6429
|
needToSlotCount--;
|
|
@@ -6446,7 +6446,7 @@ function getCalcitePosition(position, el) {
|
|
|
6446
6446
|
}
|
|
6447
6447
|
function toggleChildActionText({ parent, expanded }) {
|
|
6448
6448
|
queryActions(parent)
|
|
6449
|
-
.filter((el) => el.slot !== SLOTS$
|
|
6449
|
+
.filter((el) => el.slot !== SLOTS$q.menuActions)
|
|
6450
6450
|
.forEach((action) => (action.textEnabled = expanded));
|
|
6451
6451
|
parent
|
|
6452
6452
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -6475,14 +6475,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
6475
6475
|
return actionNode;
|
|
6476
6476
|
};
|
|
6477
6477
|
|
|
6478
|
-
const CSS$
|
|
6478
|
+
const CSS$P = {
|
|
6479
6479
|
actionGroupBottom: "action-group--bottom"
|
|
6480
6480
|
};
|
|
6481
|
-
const SLOTS$
|
|
6481
|
+
const SLOTS$p = {
|
|
6482
6482
|
bottomActions: "bottom-actions",
|
|
6483
6483
|
expandTooltip: "expand-tooltip"
|
|
6484
6484
|
};
|
|
6485
|
-
const TEXT$
|
|
6485
|
+
const TEXT$r = {
|
|
6486
6486
|
expand: "Expand",
|
|
6487
6487
|
collapse: "Collapse"
|
|
6488
6488
|
};
|
|
@@ -7814,7 +7814,7 @@ class ActionBar {
|
|
|
7814
7814
|
const actions = queryActions(el);
|
|
7815
7815
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
7816
7816
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
7817
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
7817
|
+
const groupCount = getSlotted(el, SLOTS$p.bottomActions) || !expandDisabled
|
|
7818
7818
|
? actionGroups.length + 1
|
|
7819
7819
|
: actionGroups.length;
|
|
7820
7820
|
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
|
@@ -7916,11 +7916,11 @@ class ActionBar {
|
|
|
7916
7916
|
// --------------------------------------------------------------------------
|
|
7917
7917
|
renderBottomActionGroup() {
|
|
7918
7918
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
7919
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
7920
|
-
const expandLabel = intlExpand || TEXT$
|
|
7921
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7919
|
+
const tooltip = getSlotted(el, SLOTS$p.expandTooltip);
|
|
7920
|
+
const expandLabel = intlExpand || TEXT$r.expand;
|
|
7921
|
+
const collapseLabel = intlCollapse || TEXT$r.collapse;
|
|
7922
7922
|
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;
|
|
7923
|
-
return getSlotted(el, SLOTS$
|
|
7923
|
+
return getSlotted(el, SLOTS$p.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$P.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$p.bottomActions }), hAsync("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
|
|
7924
7924
|
}
|
|
7925
7925
|
render() {
|
|
7926
7926
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8010,13 +8010,13 @@ class ActionGroup {
|
|
|
8010
8010
|
// --------------------------------------------------------------------------
|
|
8011
8011
|
renderTooltip() {
|
|
8012
8012
|
const { el } = this;
|
|
8013
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
8014
|
-
return hasTooltip ? hAsync("slot", { name: SLOTS$
|
|
8013
|
+
const hasTooltip = getSlotted(el, SLOTS$q.menuTooltip);
|
|
8014
|
+
return hasTooltip ? hAsync("slot", { name: SLOTS$q.menuTooltip, slot: SLOTS$r.tooltip }) : null;
|
|
8015
8015
|
}
|
|
8016
8016
|
renderMenu() {
|
|
8017
8017
|
const { el, expanded, intlMore, menuOpen, scale, layout } = this;
|
|
8018
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
8019
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
8018
|
+
const hasMenuItems = getSlotted(el, SLOTS$q.menuActions);
|
|
8019
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$s.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$r.trigger, text: intlMore || TEXT$s.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$q.menuActions }), this.renderTooltip())) : null;
|
|
8020
8020
|
}
|
|
8021
8021
|
render() {
|
|
8022
8022
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8094,7 +8094,7 @@ class ActionMenu {
|
|
|
8094
8094
|
// --------------------------------------------------------------------------
|
|
8095
8095
|
this.connectMenuButtonEl = () => {
|
|
8096
8096
|
const { el, menuButtonId, menuId, open, label } = this;
|
|
8097
|
-
const menuButtonEl = getSlotted(el, SLOTS$
|
|
8097
|
+
const menuButtonEl = getSlotted(el, SLOTS$r.trigger) || this.defaultMenuButtonEl;
|
|
8098
8098
|
if (this.menuButtonEl === menuButtonEl) {
|
|
8099
8099
|
return;
|
|
8100
8100
|
}
|
|
@@ -8117,7 +8117,7 @@ class ActionMenu {
|
|
|
8117
8117
|
if (!menuButtonEl.text) {
|
|
8118
8118
|
menuButtonEl.text = label;
|
|
8119
8119
|
}
|
|
8120
|
-
menuButtonEl.addEventListener("
|
|
8120
|
+
menuButtonEl.addEventListener("pointerdown", this.menuButtonClick);
|
|
8121
8121
|
menuButtonEl.addEventListener("keydown", this.menuButtonKeyDown);
|
|
8122
8122
|
};
|
|
8123
8123
|
this.disconnectMenuButtonEl = () => {
|
|
@@ -8125,7 +8125,7 @@ class ActionMenu {
|
|
|
8125
8125
|
if (!menuButtonEl) {
|
|
8126
8126
|
return;
|
|
8127
8127
|
}
|
|
8128
|
-
menuButtonEl.removeEventListener("
|
|
8128
|
+
menuButtonEl.removeEventListener("pointerdown", this.menuButtonClick);
|
|
8129
8129
|
menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
|
|
8130
8130
|
};
|
|
8131
8131
|
this.setDefaultMenuButtonEl = (el) => {
|
|
@@ -8291,17 +8291,17 @@ class ActionMenu {
|
|
|
8291
8291
|
}
|
|
8292
8292
|
renderMenuButton() {
|
|
8293
8293
|
const { label, scale, expanded } = this;
|
|
8294
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$
|
|
8294
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$r.trigger }, hAsync("calcite-action", { class: CSS$Q.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
8295
8295
|
return menuButtonSlot;
|
|
8296
8296
|
}
|
|
8297
8297
|
renderMenuItems() {
|
|
8298
8298
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
8299
8299
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8300
8300
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8301
|
-
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$
|
|
8301
|
+
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$Q.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, hAsync("slot", null))));
|
|
8302
8302
|
}
|
|
8303
8303
|
render() {
|
|
8304
|
-
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$
|
|
8304
|
+
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$r.tooltip, onSlotchange: this.updateTooltip })));
|
|
8305
8305
|
}
|
|
8306
8306
|
isValidKey(key, supportedKeys) {
|
|
8307
8307
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -8327,21 +8327,21 @@ class ActionMenu {
|
|
|
8327
8327
|
"activeMenuItemIndex": [32],
|
|
8328
8328
|
"setFocus": [64]
|
|
8329
8329
|
},
|
|
8330
|
-
"$listeners$": [[
|
|
8330
|
+
"$listeners$": [[9, "pointerdown", "closeCalciteActionMenuOnClick"]],
|
|
8331
8331
|
"$lazyBundleId$": "-",
|
|
8332
8332
|
"$attrsToReflect$": [["expanded", "expanded"], ["open", "open"], ["placement", "placement"], ["scale", "scale"]]
|
|
8333
8333
|
}; }
|
|
8334
8334
|
}
|
|
8335
8335
|
|
|
8336
|
-
const CSS$
|
|
8336
|
+
const CSS$O = {
|
|
8337
8337
|
actionGroupBottom: "action-group--bottom",
|
|
8338
8338
|
container: "container"
|
|
8339
8339
|
};
|
|
8340
|
-
const TEXT$
|
|
8340
|
+
const TEXT$q = {
|
|
8341
8341
|
expand: "Expand",
|
|
8342
8342
|
collapse: "Collapse"
|
|
8343
8343
|
};
|
|
8344
|
-
const SLOTS$
|
|
8344
|
+
const SLOTS$o = {
|
|
8345
8345
|
expandTooltip: "expand-tooltip"
|
|
8346
8346
|
};
|
|
8347
8347
|
|
|
@@ -8438,14 +8438,14 @@ class ActionPad {
|
|
|
8438
8438
|
// --------------------------------------------------------------------------
|
|
8439
8439
|
renderBottomActionGroup() {
|
|
8440
8440
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
8441
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
8442
|
-
const expandLabel = intlExpand || TEXT$
|
|
8443
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8441
|
+
const tooltip = getSlotted(el, SLOTS$o.expandTooltip);
|
|
8442
|
+
const expandLabel = intlExpand || TEXT$q.expand;
|
|
8443
|
+
const collapseLabel = intlCollapse || TEXT$q.collapse;
|
|
8444
8444
|
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;
|
|
8445
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8445
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$O.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$o.expandTooltip }), expandToggleNode)) : null;
|
|
8446
8446
|
}
|
|
8447
8447
|
render() {
|
|
8448
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8448
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$O.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8449
8449
|
}
|
|
8450
8450
|
get el() { return getElement(this); }
|
|
8451
8451
|
static get watchers() { return {
|
|
@@ -8471,7 +8471,7 @@ class ActionPad {
|
|
|
8471
8471
|
}; }
|
|
8472
8472
|
}
|
|
8473
8473
|
|
|
8474
|
-
const TEXT$
|
|
8474
|
+
const TEXT$p = {
|
|
8475
8475
|
intlClose: "Close"
|
|
8476
8476
|
};
|
|
8477
8477
|
const DURATIONS = {
|
|
@@ -8479,7 +8479,7 @@ const DURATIONS = {
|
|
|
8479
8479
|
medium: 10000,
|
|
8480
8480
|
fast: 6000
|
|
8481
8481
|
};
|
|
8482
|
-
const SLOTS$
|
|
8482
|
+
const SLOTS$n = {
|
|
8483
8483
|
title: "title",
|
|
8484
8484
|
message: "message",
|
|
8485
8485
|
link: "link"
|
|
@@ -8537,7 +8537,7 @@ class Alert {
|
|
|
8537
8537
|
*
|
|
8538
8538
|
* @default "Close"
|
|
8539
8539
|
*/
|
|
8540
|
-
this.intlClose = TEXT$
|
|
8540
|
+
this.intlClose = TEXT$p.intlClose;
|
|
8541
8541
|
/** Specifies the placement of the component */
|
|
8542
8542
|
this.placement = "bottom";
|
|
8543
8543
|
/** Specifies the size of the component. */
|
|
@@ -8635,7 +8635,7 @@ class Alert {
|
|
|
8635
8635
|
container: true,
|
|
8636
8636
|
queued,
|
|
8637
8637
|
[placement]: true
|
|
8638
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerEl }, 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$
|
|
8638
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerEl }, 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$n.title }), hAsync("slot", { name: SLOTS$n.message }), hAsync("slot", { name: SLOTS$n.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8639
8639
|
}
|
|
8640
8640
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8641
8641
|
alertSync(event) {
|
|
@@ -9003,7 +9003,7 @@ class Avatar {
|
|
|
9003
9003
|
}; }
|
|
9004
9004
|
}
|
|
9005
9005
|
|
|
9006
|
-
const CSS$
|
|
9006
|
+
const CSS$N = {
|
|
9007
9007
|
article: "article",
|
|
9008
9008
|
content: "content",
|
|
9009
9009
|
headerContainer: "header-container",
|
|
@@ -9022,13 +9022,13 @@ const CSS$M = {
|
|
|
9022
9022
|
invalid: "invalid",
|
|
9023
9023
|
loading: "loading"
|
|
9024
9024
|
};
|
|
9025
|
-
const TEXT$
|
|
9025
|
+
const TEXT$o = {
|
|
9026
9026
|
collapse: "Collapse",
|
|
9027
9027
|
expand: "Expand",
|
|
9028
9028
|
loading: "Loading",
|
|
9029
9029
|
options: "Options"
|
|
9030
9030
|
};
|
|
9031
|
-
const SLOTS$
|
|
9031
|
+
const SLOTS$m = {
|
|
9032
9032
|
icon: "icon",
|
|
9033
9033
|
control: "control",
|
|
9034
9034
|
headerMenuActions: "header-menu-actions"
|
|
@@ -9085,25 +9085,25 @@ class Block {
|
|
|
9085
9085
|
*
|
|
9086
9086
|
* @default "Collapse"
|
|
9087
9087
|
*/
|
|
9088
|
-
this.intlCollapse = TEXT$
|
|
9088
|
+
this.intlCollapse = TEXT$o.collapse;
|
|
9089
9089
|
/**
|
|
9090
9090
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
9091
9091
|
*
|
|
9092
9092
|
* @default "Expand"
|
|
9093
9093
|
*/
|
|
9094
|
-
this.intlExpand = TEXT$
|
|
9094
|
+
this.intlExpand = TEXT$o.expand;
|
|
9095
9095
|
/**
|
|
9096
9096
|
* string to override English loading text
|
|
9097
9097
|
*
|
|
9098
9098
|
* @default "Loading"
|
|
9099
9099
|
*/
|
|
9100
|
-
this.intlLoading = TEXT$
|
|
9100
|
+
this.intlLoading = TEXT$o.loading;
|
|
9101
9101
|
/**
|
|
9102
9102
|
* Text string used for the actions menu
|
|
9103
9103
|
*
|
|
9104
9104
|
* @default "Options"
|
|
9105
9105
|
*/
|
|
9106
|
-
this.intlOptions = TEXT$
|
|
9106
|
+
this.intlOptions = TEXT$o.options;
|
|
9107
9107
|
/**
|
|
9108
9108
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
9109
9109
|
*/
|
|
@@ -9162,32 +9162,32 @@ class Block {
|
|
|
9162
9162
|
const { el, status } = this;
|
|
9163
9163
|
const showingLoadingStatus = this.loading && !this.open;
|
|
9164
9164
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
9165
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
9166
|
-
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$
|
|
9167
|
-
[CSS$
|
|
9168
|
-
[CSS$
|
|
9169
|
-
[CSS$
|
|
9170
|
-
[CSS$
|
|
9165
|
+
const hasIcon = getSlotted(el, SLOTS$m.icon) || statusIcon;
|
|
9166
|
+
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$m.icon })) : (hAsync("calcite-icon", { class: {
|
|
9167
|
+
[CSS$N.statusIcon]: true,
|
|
9168
|
+
[CSS$N.valid]: status == "valid",
|
|
9169
|
+
[CSS$N.invalid]: status == "invalid",
|
|
9170
|
+
[CSS$N.loading]: showingLoadingStatus
|
|
9171
9171
|
}, icon: statusIcon, scale: "m" }));
|
|
9172
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
9172
|
+
return hasIcon ? hAsync("div", { class: CSS$N.icon }, iconEl) : null;
|
|
9173
9173
|
}
|
|
9174
9174
|
renderTitle() {
|
|
9175
9175
|
const { heading, headingLevel, summary, description } = this;
|
|
9176
|
-
return heading || summary || description ? (hAsync("div", { class: CSS$
|
|
9176
|
+
return heading || summary || description ? (hAsync("div", { class: CSS$N.title }, hAsync(Heading, { class: CSS$N.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (hAsync("div", { class: CSS$N.description }, summary || description)) : null)) : null;
|
|
9177
9177
|
}
|
|
9178
9178
|
render() {
|
|
9179
9179
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
9180
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9181
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
9182
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
9183
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
9180
|
+
const toggleLabel = open ? intlCollapse || TEXT$o.collapse : intlExpand || TEXT$o.expand;
|
|
9181
|
+
const headerContent = (hAsync("header", { class: CSS$N.header }, this.renderIcon(), this.renderTitle()));
|
|
9182
|
+
const hasControl = !!getSlotted(el, SLOTS$m.control);
|
|
9183
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$m.headerMenuActions);
|
|
9184
9184
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
9185
9185
|
const { guid } = this;
|
|
9186
9186
|
const regionId = `${guid}-region`;
|
|
9187
9187
|
const buttonId = `${guid}-button`;
|
|
9188
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
9188
|
+
const headerNode = (hAsync("div", { class: CSS$N.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$N.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$N.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$N.controlContainer }, hAsync("slot", { name: SLOTS$m.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$o.options }, hAsync("slot", { name: SLOTS$m.headerMenuActions }))) : null));
|
|
9189
9189
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
9190
|
-
[CSS$
|
|
9190
|
+
[CSS$N.article]: true
|
|
9191
9191
|
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
9192
9192
|
content: true,
|
|
9193
9193
|
"content--spaced": !this.disablePadding
|
|
@@ -9221,7 +9221,7 @@ class Block {
|
|
|
9221
9221
|
}; }
|
|
9222
9222
|
}
|
|
9223
9223
|
|
|
9224
|
-
const CSS$
|
|
9224
|
+
const CSS$M = {
|
|
9225
9225
|
content: "content",
|
|
9226
9226
|
invalid: "invalid",
|
|
9227
9227
|
toggle: "toggle",
|
|
@@ -9233,7 +9233,7 @@ const CSS$L = {
|
|
|
9233
9233
|
statusIcon: "status-icon",
|
|
9234
9234
|
valid: "valid"
|
|
9235
9235
|
};
|
|
9236
|
-
const TEXT$
|
|
9236
|
+
const TEXT$n = {
|
|
9237
9237
|
collapse: "Collapse",
|
|
9238
9238
|
expand: "Expand"
|
|
9239
9239
|
};
|
|
@@ -9292,9 +9292,9 @@ class BlockSection {
|
|
|
9292
9292
|
const { status } = this;
|
|
9293
9293
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
9294
9294
|
const statusIconClasses = {
|
|
9295
|
-
[CSS$
|
|
9296
|
-
[CSS$
|
|
9297
|
-
[CSS$
|
|
9295
|
+
[CSS$M.statusIcon]: true,
|
|
9296
|
+
[CSS$M.valid]: status == "valid",
|
|
9297
|
+
[CSS$M.invalid]: status == "invalid"
|
|
9298
9298
|
};
|
|
9299
9299
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
9300
9300
|
}
|
|
@@ -9306,18 +9306,18 @@ class BlockSection {
|
|
|
9306
9306
|
: dir === "rtl"
|
|
9307
9307
|
? ICONS$b.menuClosedLeft
|
|
9308
9308
|
: ICONS$b.menuClosedRight;
|
|
9309
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9309
|
+
const toggleLabel = open ? intlCollapse || TEXT$n.collapse : intlExpand || TEXT$n.expand;
|
|
9310
9310
|
const { guid } = this;
|
|
9311
9311
|
const regionId = `${guid}-region`;
|
|
9312
9312
|
const buttonId = `${guid}-button`;
|
|
9313
9313
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9314
|
-
[CSS$
|
|
9315
|
-
[CSS$
|
|
9316
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
9317
|
-
[CSS$
|
|
9318
|
-
[CSS$
|
|
9319
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
9320
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
9314
|
+
[CSS$M.toggle]: true,
|
|
9315
|
+
[CSS$M.toggleSwitch]: true
|
|
9316
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$M.toggleSwitchContent }, hAsync("span", { class: CSS$M.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9317
|
+
[CSS$M.sectionHeader]: true,
|
|
9318
|
+
[CSS$M.toggle]: true
|
|
9319
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$M.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
9320
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$M.content, hidden: !open, id: regionId }, hAsync("slot", null))));
|
|
9321
9321
|
}
|
|
9322
9322
|
get el() { return getElement(this); }
|
|
9323
9323
|
static get style() { return blockSectionCss; }
|
|
@@ -9366,7 +9366,7 @@ class BlockSection {
|
|
|
9366
9366
|
}
|
|
9367
9367
|
})(HTMLFormElement.prototype);
|
|
9368
9368
|
|
|
9369
|
-
const CSS$
|
|
9369
|
+
const CSS$L = {
|
|
9370
9370
|
buttonLoader: "calcite-button--loader",
|
|
9371
9371
|
content: "content",
|
|
9372
9372
|
contentSlotted: "content--slotted",
|
|
@@ -9378,7 +9378,7 @@ const CSS$K = {
|
|
|
9378
9378
|
iconStartEmpty: "icon-start-empty",
|
|
9379
9379
|
iconEndEmpty: "icon-end-empty"
|
|
9380
9380
|
};
|
|
9381
|
-
const TEXT$
|
|
9381
|
+
const TEXT$m = {
|
|
9382
9382
|
loading: "Loading"
|
|
9383
9383
|
};
|
|
9384
9384
|
|
|
@@ -9726,7 +9726,7 @@ class Button {
|
|
|
9726
9726
|
*
|
|
9727
9727
|
* @default "Loading"
|
|
9728
9728
|
*/
|
|
9729
|
-
this.intlLoading = TEXT$
|
|
9729
|
+
this.intlLoading = TEXT$m.loading;
|
|
9730
9730
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9731
9731
|
this.loading = false;
|
|
9732
9732
|
/** optionally add a round style to the button */
|
|
@@ -9795,14 +9795,14 @@ class Button {
|
|
|
9795
9795
|
render() {
|
|
9796
9796
|
const childElType = this.href ? "a" : "button";
|
|
9797
9797
|
const Tag = childElType;
|
|
9798
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
9799
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9800
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9801
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
9798
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$L.buttonLoader }, hAsync("calcite-loader", { active: true, class: this.loading ? CSS$L.loadingIn : CSS$L.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
9799
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
9800
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
9801
|
+
const contentEl = (hAsync("span", { class: CSS$L.content }, hAsync("slot", null)));
|
|
9802
9802
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
9803
|
-
[CSS$
|
|
9804
|
-
[CSS$
|
|
9805
|
-
[CSS$
|
|
9803
|
+
[CSS$L.contentSlotted]: this.hasContent,
|
|
9804
|
+
[CSS$L.iconStartEmpty]: !this.iconStart,
|
|
9805
|
+
[CSS$L.iconEndEmpty]: !this.iconEnd
|
|
9806
9806
|
}, 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));
|
|
9807
9807
|
}
|
|
9808
9808
|
//--------------------------------------------------------------------------
|
|
@@ -9875,7 +9875,7 @@ class Button {
|
|
|
9875
9875
|
}; }
|
|
9876
9876
|
}
|
|
9877
9877
|
|
|
9878
|
-
const CSS$
|
|
9878
|
+
const CSS$K = {
|
|
9879
9879
|
container: "container",
|
|
9880
9880
|
header: "header",
|
|
9881
9881
|
footer: "footer",
|
|
@@ -9884,14 +9884,14 @@ const CSS$J = {
|
|
|
9884
9884
|
checkboxWrapper: "checkbox-wrapper",
|
|
9885
9885
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
9886
9886
|
};
|
|
9887
|
-
const SLOTS$
|
|
9887
|
+
const SLOTS$l = {
|
|
9888
9888
|
thumbnail: "thumbnail",
|
|
9889
9889
|
title: "title",
|
|
9890
9890
|
subtitle: "subtitle",
|
|
9891
9891
|
footerLeading: "footer-leading",
|
|
9892
9892
|
footerTrailing: "footer-trailing"
|
|
9893
9893
|
};
|
|
9894
|
-
const TEXT$
|
|
9894
|
+
const TEXT$l = {
|
|
9895
9895
|
select: "Select",
|
|
9896
9896
|
deselect: "Deselect",
|
|
9897
9897
|
loading: "Loading"
|
|
@@ -9931,19 +9931,19 @@ class Card {
|
|
|
9931
9931
|
*
|
|
9932
9932
|
* @default "Loading"
|
|
9933
9933
|
*/
|
|
9934
|
-
this.intlLoading = TEXT$
|
|
9934
|
+
this.intlLoading = TEXT$l.loading;
|
|
9935
9935
|
/**
|
|
9936
9936
|
* string to override English select text for checkbox when selectable is true
|
|
9937
9937
|
*
|
|
9938
9938
|
* @default "Select"
|
|
9939
9939
|
*/
|
|
9940
|
-
this.intlSelect = TEXT$
|
|
9940
|
+
this.intlSelect = TEXT$l.select;
|
|
9941
9941
|
/**
|
|
9942
9942
|
* string to override English deselect text for checkbox when selectable is true
|
|
9943
9943
|
*
|
|
9944
9944
|
* @default "Deselect"
|
|
9945
9945
|
*/
|
|
9946
|
-
this.intlDeselect = TEXT$
|
|
9946
|
+
this.intlDeselect = TEXT$l.deselect;
|
|
9947
9947
|
this.thumbnailPosition = "block-start";
|
|
9948
9948
|
//--------------------------------------------------------------------------
|
|
9949
9949
|
//
|
|
@@ -9982,32 +9982,32 @@ class Card {
|
|
|
9982
9982
|
render() {
|
|
9983
9983
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
9984
9984
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
9985
|
-
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$
|
|
9985
|
+
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$K.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
9986
9986
|
}
|
|
9987
9987
|
selectCard() {
|
|
9988
9988
|
this.selected = !this.selected;
|
|
9989
9989
|
this.calciteCardSelect.emit();
|
|
9990
9990
|
}
|
|
9991
9991
|
renderThumbnail() {
|
|
9992
|
-
return getSlotted(this.el, SLOTS$
|
|
9992
|
+
return getSlotted(this.el, SLOTS$l.thumbnail) ? (hAsync("section", { class: CSS$K.thumbnailWrapper }, hAsync("slot", { name: SLOTS$l.thumbnail }))) : null;
|
|
9993
9993
|
}
|
|
9994
9994
|
renderCheckbox() {
|
|
9995
9995
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
9996
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
9996
|
+
return (hAsync("calcite-label", { class: CSS$K.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
9997
9997
|
}
|
|
9998
9998
|
renderHeader() {
|
|
9999
9999
|
const { el } = this;
|
|
10000
|
-
const title = getSlotted(el, SLOTS$
|
|
10001
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
10000
|
+
const title = getSlotted(el, SLOTS$l.title);
|
|
10001
|
+
const subtitle = getSlotted(el, SLOTS$l.subtitle);
|
|
10002
10002
|
const hasHeader = title || subtitle;
|
|
10003
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
10003
|
+
return hasHeader ? (hAsync("header", { class: CSS$K.header }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.subtitle }))) : null;
|
|
10004
10004
|
}
|
|
10005
10005
|
renderFooter() {
|
|
10006
10006
|
const { el } = this;
|
|
10007
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
10008
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
10007
|
+
const leadingFooter = getSlotted(el, SLOTS$l.footerLeading);
|
|
10008
|
+
const trailingFooter = getSlotted(el, SLOTS$l.footerTrailing);
|
|
10009
10009
|
const hasFooter = leadingFooter || trailingFooter;
|
|
10010
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
10010
|
+
return hasFooter ? (hAsync("footer", { class: CSS$K.footer }, hAsync("slot", { name: SLOTS$l.footerLeading }), hAsync("slot", { name: SLOTS$l.footerTrailing }))) : null;
|
|
10011
10011
|
}
|
|
10012
10012
|
get el() { return getElement(this); }
|
|
10013
10013
|
static get style() { return cardCss; }
|
|
@@ -10170,17 +10170,17 @@ class Checkbox {
|
|
|
10170
10170
|
}; }
|
|
10171
10171
|
}
|
|
10172
10172
|
|
|
10173
|
-
const CSS$
|
|
10173
|
+
const CSS$J = {
|
|
10174
10174
|
title: "title",
|
|
10175
10175
|
close: "close",
|
|
10176
10176
|
imageContainer: "image-container",
|
|
10177
10177
|
chipIcon: "chip-icon",
|
|
10178
10178
|
closeIcon: "close-icon"
|
|
10179
10179
|
};
|
|
10180
|
-
const TEXT$
|
|
10180
|
+
const TEXT$k = {
|
|
10181
10181
|
close: "Close"
|
|
10182
10182
|
};
|
|
10183
|
-
const SLOTS$
|
|
10183
|
+
const SLOTS$k = {
|
|
10184
10184
|
image: "image"
|
|
10185
10185
|
};
|
|
10186
10186
|
const ICONS$a = {
|
|
@@ -10219,7 +10219,7 @@ class Chip {
|
|
|
10219
10219
|
*
|
|
10220
10220
|
* @default "Close"
|
|
10221
10221
|
*/
|
|
10222
|
-
this.dismissLabel = TEXT$
|
|
10222
|
+
this.dismissLabel = TEXT$k.close;
|
|
10223
10223
|
/** flip the icon in rtl */
|
|
10224
10224
|
this.iconFlipRtl = false;
|
|
10225
10225
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -10266,13 +10266,13 @@ class Chip {
|
|
|
10266
10266
|
//--------------------------------------------------------------------------
|
|
10267
10267
|
renderChipImage() {
|
|
10268
10268
|
const { el } = this;
|
|
10269
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
10270
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
10269
|
+
const hasChipImage = getSlotted(el, SLOTS$k.image);
|
|
10270
|
+
return hasChipImage ? (hAsync("div", { class: CSS$J.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$k.image }))) : null;
|
|
10271
10271
|
}
|
|
10272
10272
|
render() {
|
|
10273
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
10274
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
10275
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
10273
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$J.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
10274
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$J.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$J.closeIcon, icon: ICONS$a.close, scale: "s" })));
|
|
10275
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$J.title, id: this.guid }, hAsync("slot", null)), this.closable || this.dismissible ? closeButton : null));
|
|
10276
10276
|
}
|
|
10277
10277
|
get el() { return getElement(this); }
|
|
10278
10278
|
static get style() { return chipCss; }
|
|
@@ -12408,7 +12408,7 @@ function zeroArray(array, length) {
|
|
|
12408
12408
|
|
|
12409
12409
|
var color = Color;
|
|
12410
12410
|
|
|
12411
|
-
const CSS$
|
|
12411
|
+
const CSS$I = {
|
|
12412
12412
|
container: "container",
|
|
12413
12413
|
controlSection: "control-section",
|
|
12414
12414
|
hexOptions: "color-hex-options",
|
|
@@ -12446,7 +12446,7 @@ const HSV_LIMITS = {
|
|
|
12446
12446
|
s: 100,
|
|
12447
12447
|
v: 100
|
|
12448
12448
|
};
|
|
12449
|
-
const TEXT$
|
|
12449
|
+
const TEXT$j = {
|
|
12450
12450
|
b: "B",
|
|
12451
12451
|
blue: "Blue",
|
|
12452
12452
|
deleteColor: "Delete color",
|
|
@@ -12574,115 +12574,115 @@ class ColorPicker {
|
|
|
12574
12574
|
*
|
|
12575
12575
|
* @default "B"
|
|
12576
12576
|
*/
|
|
12577
|
-
this.intlB = TEXT$
|
|
12577
|
+
this.intlB = TEXT$j.b;
|
|
12578
12578
|
/**
|
|
12579
12579
|
* Label used for the blue channel description
|
|
12580
12580
|
*
|
|
12581
12581
|
* @default "Blue"
|
|
12582
12582
|
*/
|
|
12583
|
-
this.intlBlue = TEXT$
|
|
12583
|
+
this.intlBlue = TEXT$j.blue;
|
|
12584
12584
|
/**
|
|
12585
12585
|
* Label used for the delete color button.
|
|
12586
12586
|
*
|
|
12587
12587
|
* @default "Delete color"
|
|
12588
12588
|
*/
|
|
12589
|
-
this.intlDeleteColor = TEXT$
|
|
12589
|
+
this.intlDeleteColor = TEXT$j.deleteColor;
|
|
12590
12590
|
/**
|
|
12591
12591
|
* Label used for the green channel
|
|
12592
12592
|
*
|
|
12593
12593
|
* @default "G"
|
|
12594
12594
|
*/
|
|
12595
|
-
this.intlG = TEXT$
|
|
12595
|
+
this.intlG = TEXT$j.g;
|
|
12596
12596
|
/**
|
|
12597
12597
|
* Label used for the green channel description
|
|
12598
12598
|
*
|
|
12599
12599
|
* @default "Green"
|
|
12600
12600
|
*/
|
|
12601
|
-
this.intlGreen = TEXT$
|
|
12601
|
+
this.intlGreen = TEXT$j.green;
|
|
12602
12602
|
/**
|
|
12603
12603
|
* Label used for the hue channel
|
|
12604
12604
|
*
|
|
12605
12605
|
* @default "H"
|
|
12606
12606
|
*/
|
|
12607
|
-
this.intlH = TEXT$
|
|
12607
|
+
this.intlH = TEXT$j.h;
|
|
12608
12608
|
/**
|
|
12609
12609
|
* Label used for the HSV mode
|
|
12610
12610
|
*
|
|
12611
12611
|
* @default "HSV"
|
|
12612
12612
|
*/
|
|
12613
|
-
this.intlHsv = TEXT$
|
|
12613
|
+
this.intlHsv = TEXT$j.hsv;
|
|
12614
12614
|
/**
|
|
12615
12615
|
* Label used for the hex input
|
|
12616
12616
|
*
|
|
12617
12617
|
* @default "Hex"
|
|
12618
12618
|
*/
|
|
12619
|
-
this.intlHex = TEXT$
|
|
12619
|
+
this.intlHex = TEXT$j.hex;
|
|
12620
12620
|
/**
|
|
12621
12621
|
* Label used for the hue channel description
|
|
12622
12622
|
*
|
|
12623
12623
|
* @default "Hue"
|
|
12624
12624
|
*/
|
|
12625
|
-
this.intlHue = TEXT$
|
|
12625
|
+
this.intlHue = TEXT$j.hue;
|
|
12626
12626
|
/**
|
|
12627
12627
|
* Label used for the hex input when there is no color selected.
|
|
12628
12628
|
*
|
|
12629
12629
|
* @default "No color"
|
|
12630
12630
|
*/
|
|
12631
|
-
this.intlNoColor = TEXT$
|
|
12631
|
+
this.intlNoColor = TEXT$j.noColor;
|
|
12632
12632
|
/**
|
|
12633
12633
|
* Label used for the red channel
|
|
12634
12634
|
*
|
|
12635
12635
|
* @default "R"
|
|
12636
12636
|
*/
|
|
12637
|
-
this.intlR = TEXT$
|
|
12637
|
+
this.intlR = TEXT$j.r;
|
|
12638
12638
|
/**
|
|
12639
12639
|
* Label used for the red channel description
|
|
12640
12640
|
*
|
|
12641
12641
|
* @default "Red"
|
|
12642
12642
|
*/
|
|
12643
|
-
this.intlRed = TEXT$
|
|
12643
|
+
this.intlRed = TEXT$j.red;
|
|
12644
12644
|
/**
|
|
12645
12645
|
* Label used for the RGB mode
|
|
12646
12646
|
*
|
|
12647
12647
|
* @default "RGB"
|
|
12648
12648
|
*/
|
|
12649
|
-
this.intlRgb = TEXT$
|
|
12649
|
+
this.intlRgb = TEXT$j.rgb;
|
|
12650
12650
|
/**
|
|
12651
12651
|
* Label used for the saturation channel
|
|
12652
12652
|
*
|
|
12653
12653
|
* @default "S"
|
|
12654
12654
|
*/
|
|
12655
|
-
this.intlS = TEXT$
|
|
12655
|
+
this.intlS = TEXT$j.s;
|
|
12656
12656
|
/**
|
|
12657
12657
|
* Label used for the saturation channel description
|
|
12658
12658
|
*
|
|
12659
12659
|
* @default "Saturation"
|
|
12660
12660
|
*/
|
|
12661
|
-
this.intlSaturation = TEXT$
|
|
12661
|
+
this.intlSaturation = TEXT$j.saturation;
|
|
12662
12662
|
/**
|
|
12663
12663
|
* Label used for the save color button.
|
|
12664
12664
|
*
|
|
12665
12665
|
* @default "Save color"
|
|
12666
12666
|
*/
|
|
12667
|
-
this.intlSaveColor = TEXT$
|
|
12667
|
+
this.intlSaveColor = TEXT$j.saveColor;
|
|
12668
12668
|
/**
|
|
12669
12669
|
* Label used for the saved colors section
|
|
12670
12670
|
*
|
|
12671
12671
|
* @default "Saved"
|
|
12672
12672
|
*/
|
|
12673
|
-
this.intlSaved = TEXT$
|
|
12673
|
+
this.intlSaved = TEXT$j.saved;
|
|
12674
12674
|
/**
|
|
12675
12675
|
* Label used for the value channel
|
|
12676
12676
|
*
|
|
12677
12677
|
* @default "V"
|
|
12678
12678
|
*/
|
|
12679
|
-
this.intlV = TEXT$
|
|
12679
|
+
this.intlV = TEXT$j.v;
|
|
12680
12680
|
/**
|
|
12681
12681
|
* Label used for the
|
|
12682
12682
|
*
|
|
12683
12683
|
* @default "Value"
|
|
12684
12684
|
*/
|
|
12685
|
-
this.intlValue = TEXT$
|
|
12685
|
+
this.intlValue = TEXT$j.value;
|
|
12686
12686
|
/**
|
|
12687
12687
|
* The scale of the color picker.
|
|
12688
12688
|
*/
|
|
@@ -12949,7 +12949,7 @@ class ColorPicker {
|
|
|
12949
12949
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
12950
12950
|
const active = channelMode === activeChannelMode;
|
|
12951
12951
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
12952
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
12952
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$I.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
12953
12953
|
};
|
|
12954
12954
|
this.renderChannelsTab = (channelMode) => {
|
|
12955
12955
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -12960,11 +12960,11 @@ class ColorPicker {
|
|
|
12960
12960
|
? [intlRed, intlGreen, intlBlue]
|
|
12961
12961
|
: [intlHue, intlSaturation, intlValue];
|
|
12962
12962
|
const direction = getElementDir(this.el);
|
|
12963
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
12963
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$I.control, key: channelMode }, hAsync("div", { class: CSS$I.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
12964
12964
|
/* the channel container is ltr, so we apply the host's direction */
|
|
12965
12965
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
12966
12966
|
};
|
|
12967
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$
|
|
12967
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$I.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() }));
|
|
12968
12968
|
this.deleteColor = () => {
|
|
12969
12969
|
const colorToDelete = this.color.hex();
|
|
12970
12970
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -13067,7 +13067,7 @@ class ColorPicker {
|
|
|
13067
13067
|
this.shiftKeyChannelAdjustment = 0;
|
|
13068
13068
|
const key = event.key;
|
|
13069
13069
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
13070
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
13070
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$I.channel); })) {
|
|
13071
13071
|
return;
|
|
13072
13072
|
}
|
|
13073
13073
|
const { shiftKey } = event;
|
|
@@ -13138,20 +13138,20 @@ class ColorPicker {
|
|
|
13138
13138
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
13139
13139
|
const noColor = color === null;
|
|
13140
13140
|
const vertical = scopeOrientation === "vertical";
|
|
13141
|
-
return (hAsync("div", { class: CSS$
|
|
13142
|
-
[CSS$
|
|
13143
|
-
[CSS$
|
|
13144
|
-
}, 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$
|
|
13145
|
-
[CSS$
|
|
13146
|
-
[CSS$
|
|
13147
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
13148
|
-
[CSS$
|
|
13149
|
-
[CSS$
|
|
13150
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
13151
|
-
[CSS$
|
|
13152
|
-
[CSS$
|
|
13153
|
-
}, 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$
|
|
13154
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
13141
|
+
return (hAsync("div", { class: CSS$I.container }, hAsync("div", { class: CSS$I.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
13142
|
+
[CSS$I.colorFieldAndSlider]: true,
|
|
13143
|
+
[CSS$I.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
13144
|
+
}, 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$I.scope]: true, [CSS$I.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$I.scope]: true, [CSS$I.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: {
|
|
13145
|
+
[CSS$I.controlSection]: true,
|
|
13146
|
+
[CSS$I.section]: true
|
|
13147
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$I.hexOptions }, hAsync("span", { class: {
|
|
13148
|
+
[CSS$I.header]: true,
|
|
13149
|
+
[CSS$I.headerHex]: true
|
|
13150
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$I.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
13151
|
+
[CSS$I.colorModeContainer]: true,
|
|
13152
|
+
[CSS$I.splitSection]: true
|
|
13153
|
+
}, 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$I.savedColorsSection]: true, [CSS$I.section]: true } }, hAsync("div", { class: CSS$I.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$I.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$I.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$I.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$I.savedColors }, [
|
|
13154
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$I.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
13155
13155
|
])) : null))));
|
|
13156
13156
|
}
|
|
13157
13157
|
// --------------------------------------------------------------------------
|
|
@@ -13397,7 +13397,7 @@ class ColorPicker {
|
|
|
13397
13397
|
}; }
|
|
13398
13398
|
}
|
|
13399
13399
|
|
|
13400
|
-
const CSS$
|
|
13400
|
+
const CSS$H = {
|
|
13401
13401
|
container: "container",
|
|
13402
13402
|
preview: "preview",
|
|
13403
13403
|
input: "input"
|
|
@@ -13426,13 +13426,13 @@ class ColorPickerHexInput {
|
|
|
13426
13426
|
*
|
|
13427
13427
|
* @default "Hex"
|
|
13428
13428
|
*/
|
|
13429
|
-
this.intlHex = TEXT$
|
|
13429
|
+
this.intlHex = TEXT$j.hex;
|
|
13430
13430
|
/**
|
|
13431
13431
|
* Label used for the hex input when there is no color selected.
|
|
13432
13432
|
*
|
|
13433
13433
|
* @default "No color"
|
|
13434
13434
|
*/
|
|
13435
|
-
this.intlNoColor = TEXT$
|
|
13435
|
+
this.intlNoColor = TEXT$j.noColor;
|
|
13436
13436
|
/**
|
|
13437
13437
|
* The component's scale.
|
|
13438
13438
|
*/
|
|
@@ -13526,7 +13526,7 @@ class ColorPickerHexInput {
|
|
|
13526
13526
|
render() {
|
|
13527
13527
|
const { intlHex, value } = this;
|
|
13528
13528
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13529
|
-
return (hAsync("div", { class: CSS$
|
|
13529
|
+
return (hAsync("div", { class: CSS$H.container }, hAsync("calcite-input", { class: CSS$H.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$H.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13530
13530
|
}
|
|
13531
13531
|
//--------------------------------------------------------------------------
|
|
13532
13532
|
//
|
|
@@ -13602,7 +13602,7 @@ class ColorPickerHexInput {
|
|
|
13602
13602
|
}; }
|
|
13603
13603
|
}
|
|
13604
13604
|
|
|
13605
|
-
const CSS$
|
|
13605
|
+
const CSS$G = {
|
|
13606
13606
|
swatch: "swatch",
|
|
13607
13607
|
noColorIcon: "no-color-icon"
|
|
13608
13608
|
};
|
|
@@ -13647,7 +13647,7 @@ class ColorPickerSwatch {
|
|
|
13647
13647
|
const hex = internalColor.hex();
|
|
13648
13648
|
const theme = getThemeName(el);
|
|
13649
13649
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
13650
|
-
return (hAsync("svg", { class: CSS$
|
|
13650
|
+
return (hAsync("svg", { class: CSS$G.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%" })));
|
|
13651
13651
|
}
|
|
13652
13652
|
get el() { return getElement(this); }
|
|
13653
13653
|
static get watchers() { return {
|
|
@@ -15309,7 +15309,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
15309
15309
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
15310
15310
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
15311
15311
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
15312
|
-
const TEXT$
|
|
15312
|
+
const TEXT$i = {
|
|
15313
15313
|
removeTag: "Remove tag"
|
|
15314
15314
|
};
|
|
15315
15315
|
|
|
@@ -15399,7 +15399,7 @@ class Combobox {
|
|
|
15399
15399
|
*
|
|
15400
15400
|
* @default "Remove tag"
|
|
15401
15401
|
*/
|
|
15402
|
-
this.intlRemoveTag = TEXT$
|
|
15402
|
+
this.intlRemoveTag = TEXT$i.removeTag;
|
|
15403
15403
|
//--------------------------------------------------------------------------
|
|
15404
15404
|
//
|
|
15405
15405
|
// Private State/Props
|
|
@@ -16179,13 +16179,13 @@ class Combobox {
|
|
|
16179
16179
|
"reposition": [64],
|
|
16180
16180
|
"setFocus": [64]
|
|
16181
16181
|
},
|
|
16182
|
-
"$listeners$": [[
|
|
16182
|
+
"$listeners$": [[5, "pointerdown", "documentClickHandler"], [0, "calciteComboboxItemChange", "calciteComboboxItemChangeHandler"]],
|
|
16183
16183
|
"$lazyBundleId$": "-",
|
|
16184
16184
|
"$attrsToReflect$": [["active", "active"], ["open", "open"], ["disabled", "disabled"], ["name", "name"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
16185
16185
|
}; }
|
|
16186
16186
|
}
|
|
16187
16187
|
|
|
16188
|
-
const CSS$
|
|
16188
|
+
const CSS$F = {
|
|
16189
16189
|
icon: "icon",
|
|
16190
16190
|
iconActive: "icon--active",
|
|
16191
16191
|
custom: "icon--custom",
|
|
@@ -16277,18 +16277,18 @@ class ComboboxItem {
|
|
|
16277
16277
|
// --------------------------------------------------------------------------
|
|
16278
16278
|
renderIcon(isSingle) {
|
|
16279
16279
|
const { icon, disabled, selected } = this;
|
|
16280
|
-
const level = `${CSS$
|
|
16280
|
+
const level = `${CSS$F.icon}--indent`;
|
|
16281
16281
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
16282
16282
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
16283
16283
|
const showDot = isSingle && !icon && !disabled;
|
|
16284
16284
|
return showDot ? (hAsync("span", { class: {
|
|
16285
|
-
[CSS$
|
|
16286
|
-
[CSS$
|
|
16285
|
+
[CSS$F.icon]: true,
|
|
16286
|
+
[CSS$F.dot]: true,
|
|
16287
16287
|
[level]: true
|
|
16288
16288
|
} })) : (hAsync("calcite-icon", { class: {
|
|
16289
|
-
[CSS$
|
|
16290
|
-
[CSS$
|
|
16291
|
-
[CSS$
|
|
16289
|
+
[CSS$F.icon]: !icon,
|
|
16290
|
+
[CSS$F.custom]: !!icon,
|
|
16291
|
+
[CSS$F.iconActive]: icon && selected,
|
|
16292
16292
|
[level]: true
|
|
16293
16293
|
}, icon: icon || iconPath, scale: "s" }));
|
|
16294
16294
|
}
|
|
@@ -16301,13 +16301,13 @@ class ComboboxItem {
|
|
|
16301
16301
|
render() {
|
|
16302
16302
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
16303
16303
|
const classes = {
|
|
16304
|
-
[CSS$
|
|
16305
|
-
[CSS$
|
|
16306
|
-
[CSS$
|
|
16307
|
-
[CSS$
|
|
16304
|
+
[CSS$F.label]: true,
|
|
16305
|
+
[CSS$F.selected]: this.selected,
|
|
16306
|
+
[CSS$F.active]: this.active,
|
|
16307
|
+
[CSS$F.single]: isSingleSelect
|
|
16308
16308
|
};
|
|
16309
16309
|
const depth = getDepth();
|
|
16310
|
-
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$
|
|
16310
|
+
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$F.title }, this.textLabel)), this.renderChildren())));
|
|
16311
16311
|
}
|
|
16312
16312
|
get el() { return getElement(this); }
|
|
16313
16313
|
static get watchers() { return {
|
|
@@ -16336,7 +16336,7 @@ class ComboboxItem {
|
|
|
16336
16336
|
}; }
|
|
16337
16337
|
}
|
|
16338
16338
|
|
|
16339
|
-
const CSS$
|
|
16339
|
+
const CSS$E = {
|
|
16340
16340
|
list: "list",
|
|
16341
16341
|
label: "label",
|
|
16342
16342
|
title: "title"
|
|
@@ -16369,8 +16369,8 @@ class ComboboxItemGroup {
|
|
|
16369
16369
|
// --------------------------------------------------------------------------
|
|
16370
16370
|
render() {
|
|
16371
16371
|
const { el, scale } = this;
|
|
16372
|
-
const indent = `${CSS$
|
|
16373
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
16372
|
+
const indent = `${CSS$E.label}--indent-${getDepth()}`;
|
|
16373
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$E.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$E.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$E.title }, this.label)), hAsync("slot", null)));
|
|
16374
16374
|
}
|
|
16375
16375
|
get el() { return getElement(this); }
|
|
16376
16376
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -16777,7 +16777,7 @@ function getDaysDiff(date1, date2) {
|
|
|
16777
16777
|
}
|
|
16778
16778
|
|
|
16779
16779
|
const HEADING_LEVEL$6 = 2;
|
|
16780
|
-
const TEXT$
|
|
16780
|
+
const TEXT$h = {
|
|
16781
16781
|
nextMonth: "Next month",
|
|
16782
16782
|
prevMonth: "Previous month",
|
|
16783
16783
|
year: "Year"
|
|
@@ -16795,19 +16795,19 @@ class DatePicker {
|
|
|
16795
16795
|
*
|
|
16796
16796
|
* @default "Previous month"
|
|
16797
16797
|
*/
|
|
16798
|
-
this.intlPrevMonth = TEXT$
|
|
16798
|
+
this.intlPrevMonth = TEXT$h.prevMonth;
|
|
16799
16799
|
/**
|
|
16800
16800
|
* Localized string for "next month" (used for aria label)
|
|
16801
16801
|
*
|
|
16802
16802
|
* @default "Next month"
|
|
16803
16803
|
*/
|
|
16804
|
-
this.intlNextMonth = TEXT$
|
|
16804
|
+
this.intlNextMonth = TEXT$h.nextMonth;
|
|
16805
16805
|
/**
|
|
16806
16806
|
* Localized string for "year" (used for aria label)
|
|
16807
16807
|
*
|
|
16808
16808
|
* @default "Year"
|
|
16809
16809
|
*/
|
|
16810
|
-
this.intlYear = TEXT$
|
|
16810
|
+
this.intlYear = TEXT$h.year;
|
|
16811
16811
|
/** BCP 47 language tag for desired language and country format */
|
|
16812
16812
|
this.locale = document.documentElement.lang || "en";
|
|
16813
16813
|
/** specify the scale of the date picker */
|
|
@@ -17822,7 +17822,7 @@ class DatePickerMonthHeader {
|
|
|
17822
17822
|
}; }
|
|
17823
17823
|
}
|
|
17824
17824
|
|
|
17825
|
-
const SLOTS$
|
|
17825
|
+
const SLOTS$j = {
|
|
17826
17826
|
dropdownTrigger: "dropdown-trigger"
|
|
17827
17827
|
};
|
|
17828
17828
|
|
|
@@ -18074,7 +18074,7 @@ class Dropdown {
|
|
|
18074
18074
|
}
|
|
18075
18075
|
render() {
|
|
18076
18076
|
const { open, guid } = this;
|
|
18077
|
-
return (hAsync(Host, null, hAsync("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$
|
|
18077
|
+
return (hAsync(Host, null, hAsync("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$j.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper", ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
18078
18078
|
["calcite-dropdown-content"]: true,
|
|
18079
18079
|
[FloatingCSS.animation]: true,
|
|
18080
18080
|
[FloatingCSS.animationActive]: open
|
|
@@ -18162,7 +18162,9 @@ class Dropdown {
|
|
|
18162
18162
|
handleItemSelect(event) {
|
|
18163
18163
|
this.updateSelectedItems();
|
|
18164
18164
|
event.stopPropagation();
|
|
18165
|
-
this.calciteDropdownSelect.emit(
|
|
18165
|
+
this.calciteDropdownSelect.emit({
|
|
18166
|
+
item: event.detail.requestedDropdownItem
|
|
18167
|
+
});
|
|
18166
18168
|
if (!this.disableCloseOnSelect ||
|
|
18167
18169
|
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
|
18168
18170
|
this.closeCalciteDropdown();
|
|
@@ -18272,13 +18274,13 @@ class Dropdown {
|
|
|
18272
18274
|
"width": [513],
|
|
18273
18275
|
"reposition": [64]
|
|
18274
18276
|
},
|
|
18275
|
-
"$listeners$": [[
|
|
18277
|
+
"$listeners$": [[9, "pointerdown", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "mouseenter", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
18276
18278
|
"$lazyBundleId$": "-",
|
|
18277
18279
|
"$attrsToReflect$": [["active", "active"], ["open", "open"], ["disableCloseOnSelect", "disable-close-on-select"], ["disabled", "disabled"], ["placement", "placement"], ["scale", "scale"], ["type", "type"], ["width", "width"]]
|
|
18278
18280
|
}; }
|
|
18279
18281
|
}
|
|
18280
18282
|
|
|
18281
|
-
const CSS$
|
|
18283
|
+
const CSS$D = {
|
|
18282
18284
|
containerSmall: "container--s",
|
|
18283
18285
|
containerMedium: "container--m",
|
|
18284
18286
|
containerLarge: "container--l"
|
|
@@ -18313,9 +18315,9 @@ class DropdownGroup {
|
|
|
18313
18315
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
18314
18316
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
18315
18317
|
container: true,
|
|
18316
|
-
[CSS$
|
|
18317
|
-
[CSS$
|
|
18318
|
-
[CSS$
|
|
18318
|
+
[CSS$D.containerSmall]: scale === "s",
|
|
18319
|
+
[CSS$D.containerMedium]: scale === "m",
|
|
18320
|
+
[CSS$D.containerLarge]: scale === "l"
|
|
18319
18321
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
18320
18322
|
}
|
|
18321
18323
|
//--------------------------------------------------------------------------
|
|
@@ -18355,7 +18357,7 @@ class DropdownGroup {
|
|
|
18355
18357
|
}; }
|
|
18356
18358
|
}
|
|
18357
18359
|
|
|
18358
|
-
const CSS$
|
|
18360
|
+
const CSS$C = {
|
|
18359
18361
|
containerLink: "container--link",
|
|
18360
18362
|
containerSmall: "container--s",
|
|
18361
18363
|
containerMedium: "container--m",
|
|
@@ -18428,13 +18430,13 @@ class DropdownItem {
|
|
|
18428
18430
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
18429
18431
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
18430
18432
|
container: true,
|
|
18431
|
-
[CSS$
|
|
18432
|
-
[CSS$
|
|
18433
|
-
[CSS$
|
|
18434
|
-
[CSS$
|
|
18435
|
-
[CSS$
|
|
18436
|
-
[CSS$
|
|
18437
|
-
[CSS$
|
|
18433
|
+
[CSS$C.containerLink]: !!this.href,
|
|
18434
|
+
[CSS$C.containerSmall]: scale === "s",
|
|
18435
|
+
[CSS$C.containerMedium]: scale === "m",
|
|
18436
|
+
[CSS$C.containerLarge]: scale === "l",
|
|
18437
|
+
[CSS$C.containerMulti]: this.selectionMode === "multi",
|
|
18438
|
+
[CSS$C.containerSingle]: this.selectionMode === "single",
|
|
18439
|
+
[CSS$C.containerNone]: this.selectionMode === "none"
|
|
18438
18440
|
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
18439
18441
|
}
|
|
18440
18442
|
//--------------------------------------------------------------------------
|
|
@@ -18540,7 +18542,7 @@ class DropdownItem {
|
|
|
18540
18542
|
}; }
|
|
18541
18543
|
}
|
|
18542
18544
|
|
|
18543
|
-
const CSS$
|
|
18545
|
+
const CSS$B = {
|
|
18544
18546
|
button: "button"
|
|
18545
18547
|
};
|
|
18546
18548
|
const ICONS$9 = {
|
|
@@ -18613,7 +18615,7 @@ class Fab {
|
|
|
18613
18615
|
render() {
|
|
18614
18616
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
18615
18617
|
const title = !textEnabled ? label || text || null : null;
|
|
18616
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
18618
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$B.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
18617
18619
|
this.buttonEl = buttonEl;
|
|
18618
18620
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
18619
18621
|
}
|
|
@@ -18640,11 +18642,11 @@ class Fab {
|
|
|
18640
18642
|
}; }
|
|
18641
18643
|
}
|
|
18642
18644
|
|
|
18643
|
-
const CSS$
|
|
18645
|
+
const CSS$A = {
|
|
18644
18646
|
container: "container",
|
|
18645
18647
|
searchIcon: "search-icon"
|
|
18646
18648
|
};
|
|
18647
|
-
const TEXT$
|
|
18649
|
+
const TEXT$g = {
|
|
18648
18650
|
filterLabel: "Filter",
|
|
18649
18651
|
clear: "Clear filter"
|
|
18650
18652
|
};
|
|
@@ -18758,7 +18760,7 @@ class Filter {
|
|
|
18758
18760
|
// --------------------------------------------------------------------------
|
|
18759
18761
|
render() {
|
|
18760
18762
|
const { disabled, scale } = this;
|
|
18761
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
18763
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$A.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$g.filterLabel, clearable: true, disabled: disabled, icon: ICONS$8.search, intlClear: this.intlClear || TEXT$g.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
18762
18764
|
this.textInput = el;
|
|
18763
18765
|
}, scale: scale, type: "text", value: this.value })))));
|
|
18764
18766
|
}
|
|
@@ -18788,7 +18790,7 @@ class Filter {
|
|
|
18788
18790
|
}; }
|
|
18789
18791
|
}
|
|
18790
18792
|
|
|
18791
|
-
const CSS$
|
|
18793
|
+
const CSS$z = {
|
|
18792
18794
|
frame: "frame",
|
|
18793
18795
|
frameAdvancing: "frame--advancing",
|
|
18794
18796
|
frameRetreating: "frame--retreating"
|
|
@@ -18890,9 +18892,9 @@ class Flow {
|
|
|
18890
18892
|
render() {
|
|
18891
18893
|
const { flowDirection } = this;
|
|
18892
18894
|
const frameDirectionClasses = {
|
|
18893
|
-
[CSS$
|
|
18894
|
-
[CSS$
|
|
18895
|
-
[CSS$
|
|
18895
|
+
[CSS$z.frame]: true,
|
|
18896
|
+
[CSS$z.frameAdvancing]: flowDirection === "advancing",
|
|
18897
|
+
[CSS$z.frameRetreating]: flowDirection === "retreating"
|
|
18896
18898
|
};
|
|
18897
18899
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
18898
18900
|
}
|
|
@@ -19144,7 +19146,7 @@ class Graph {
|
|
|
19144
19146
|
}; }
|
|
19145
19147
|
}
|
|
19146
19148
|
|
|
19147
|
-
const CSS$
|
|
19149
|
+
const CSS$y = {
|
|
19148
19150
|
handle: "handle",
|
|
19149
19151
|
handleActivated: "handle--activated"
|
|
19150
19152
|
};
|
|
@@ -19213,7 +19215,7 @@ class Handle {
|
|
|
19213
19215
|
render() {
|
|
19214
19216
|
return (
|
|
19215
19217
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
19216
|
-
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
19218
|
+
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$y.handle]: true, [CSS$y.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
19217
19219
|
this.handleButton = el;
|
|
19218
19220
|
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
19219
19221
|
}
|
|
@@ -19233,7 +19235,7 @@ class Handle {
|
|
|
19233
19235
|
}; }
|
|
19234
19236
|
}
|
|
19235
19237
|
|
|
19236
|
-
const CSS$
|
|
19238
|
+
const CSS$x = {
|
|
19237
19239
|
icon: "icon",
|
|
19238
19240
|
flipRtl: "flip-rtl"
|
|
19239
19241
|
};
|
|
@@ -19294,7 +19296,7 @@ class Icon {
|
|
|
19294
19296
|
const semantic = !!textLabel;
|
|
19295
19297
|
const paths = [].concat(pathData || "");
|
|
19296
19298
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { class: {
|
|
19297
|
-
[CSS$
|
|
19299
|
+
[CSS$x.flipRtl]: dir === "rtl" && flipRtl,
|
|
19298
19300
|
svg: true
|
|
19299
19301
|
}, 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 }))))));
|
|
19300
19302
|
}
|
|
@@ -19340,7 +19342,7 @@ class Icon {
|
|
|
19340
19342
|
}; }
|
|
19341
19343
|
}
|
|
19342
19344
|
|
|
19343
|
-
const CSS$
|
|
19345
|
+
const CSS$w = {
|
|
19344
19346
|
wrapper: "wrapper",
|
|
19345
19347
|
confirmChangesButton: "confirm-changes-button",
|
|
19346
19348
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -19349,7 +19351,7 @@ const CSS$v = {
|
|
|
19349
19351
|
enableEditingButton: "enable-editing-button",
|
|
19350
19352
|
controlsWrapper: "controls-wrapper"
|
|
19351
19353
|
};
|
|
19352
|
-
const TEXT$
|
|
19354
|
+
const TEXT$f = {
|
|
19353
19355
|
intlEnablingEditing: "Click to edit",
|
|
19354
19356
|
intlCancelEditing: "Cancel",
|
|
19355
19357
|
intlConfirmChanges: "Save"
|
|
@@ -19384,19 +19386,19 @@ class InlineEditable {
|
|
|
19384
19386
|
*
|
|
19385
19387
|
* @default "Click to edit"
|
|
19386
19388
|
*/
|
|
19387
|
-
this.intlEnableEditing = TEXT$
|
|
19389
|
+
this.intlEnableEditing = TEXT$f.intlEnablingEditing;
|
|
19388
19390
|
/**
|
|
19389
19391
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
19390
19392
|
*
|
|
19391
19393
|
* @default "Cancel"
|
|
19392
19394
|
*/
|
|
19393
|
-
this.intlCancelEditing = TEXT$
|
|
19395
|
+
this.intlCancelEditing = TEXT$f.intlCancelEditing;
|
|
19394
19396
|
/**
|
|
19395
19397
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
19396
19398
|
*
|
|
19397
19399
|
* @default "Save"
|
|
19398
19400
|
*/
|
|
19399
|
-
this.intlConfirmChanges = TEXT$
|
|
19401
|
+
this.intlConfirmChanges = TEXT$f.intlConfirmChanges;
|
|
19400
19402
|
this.mutationObserver = createObserver();
|
|
19401
19403
|
this.enableEditing = () => {
|
|
19402
19404
|
var _a, _b;
|
|
@@ -19501,12 +19503,12 @@ class InlineEditable {
|
|
|
19501
19503
|
updateHostInteraction(this);
|
|
19502
19504
|
}
|
|
19503
19505
|
render() {
|
|
19504
|
-
return (hAsync("div", { class: CSS$
|
|
19506
|
+
return (hAsync("div", { class: CSS$w.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$w.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$w.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$w.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
19505
19507
|
opacity: this.editingEnabled ? "0" : "1",
|
|
19506
19508
|
width: this.editingEnabled ? "0" : "inherit"
|
|
19507
19509
|
}, type: "button" }), this.shouldShowControls && [
|
|
19508
|
-
hAsync("div", { class: CSS$
|
|
19509
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
19510
|
+
hAsync("div", { class: CSS$w.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$w.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
19511
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$w.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" })
|
|
19510
19512
|
])));
|
|
19511
19513
|
}
|
|
19512
19514
|
//--------------------------------------------------------------------------
|
|
@@ -19588,7 +19590,7 @@ class InlineEditable {
|
|
|
19588
19590
|
}; }
|
|
19589
19591
|
}
|
|
19590
19592
|
|
|
19591
|
-
const CSS$
|
|
19593
|
+
const CSS$v = {
|
|
19592
19594
|
loader: "loader",
|
|
19593
19595
|
clearButton: "clear-button",
|
|
19594
19596
|
editingEnabled: "editing-enabled",
|
|
@@ -19612,10 +19614,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
19612
19614
|
time: "clock",
|
|
19613
19615
|
search: "search"
|
|
19614
19616
|
};
|
|
19615
|
-
const SLOTS$
|
|
19617
|
+
const SLOTS$i = {
|
|
19616
19618
|
action: "action"
|
|
19617
19619
|
};
|
|
19618
|
-
const TEXT$
|
|
19620
|
+
const TEXT$e = {
|
|
19619
19621
|
clear: "Clear value"
|
|
19620
19622
|
};
|
|
19621
19623
|
|
|
@@ -19669,7 +19671,7 @@ class Input {
|
|
|
19669
19671
|
*
|
|
19670
19672
|
* @default "Loading"
|
|
19671
19673
|
*/
|
|
19672
|
-
this.intlLoading = TEXT$
|
|
19674
|
+
this.intlLoading = TEXT$u.loading;
|
|
19673
19675
|
/** When true, the icon is flipped in RTL. */
|
|
19674
19676
|
this.iconFlipRtl = false;
|
|
19675
19677
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -20148,34 +20150,34 @@ class Input {
|
|
|
20148
20150
|
// --------------------------------------------------------------------------
|
|
20149
20151
|
render() {
|
|
20150
20152
|
const dir = getElementDir(this.el);
|
|
20151
|
-
const loader = (hAsync("div", { class: CSS$
|
|
20152
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$
|
|
20153
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
20153
|
+
const loader = (hAsync("div", { class: CSS$v.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
20154
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$e.clear, class: CSS$v.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
20155
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$v.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
20154
20156
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
20155
20157
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
20156
|
-
[CSS$
|
|
20157
|
-
[CSS$
|
|
20158
|
+
[CSS$v.numberButtonItem]: true,
|
|
20159
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
20158
20160
|
}, "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" })));
|
|
20159
20161
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
20160
|
-
[CSS$
|
|
20161
|
-
[CSS$
|
|
20162
|
+
[CSS$v.numberButtonItem]: true,
|
|
20163
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
20162
20164
|
}, "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" })));
|
|
20163
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
20164
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
20165
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
20165
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$v.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
20166
|
+
const prefixText = hAsync("div", { class: CSS$v.prefix }, this.prefixText);
|
|
20167
|
+
const suffixText = hAsync("div", { class: CSS$v.suffix }, this.suffixText);
|
|
20166
20168
|
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;
|
|
20167
20169
|
const childEl = this.type !== "number"
|
|
20168
20170
|
? [
|
|
20169
20171
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
20170
|
-
[CSS$
|
|
20171
|
-
[CSS$
|
|
20172
|
+
[CSS$v.editingEnabled]: this.editingEnabled,
|
|
20173
|
+
[CSS$v.inlineChild]: !!this.inlineEditableEl
|
|
20172
20174
|
}, 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 }),
|
|
20173
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
20175
|
+
this.isTextarea ? (hAsync("div", { class: CSS$v.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
20174
20176
|
]
|
|
20175
20177
|
: null;
|
|
20176
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
20178
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$v.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
20177
20179
|
? numberButtonsHorizontalDown
|
|
20178
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
20180
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$v.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$v.actionWrapper }, hAsync("slot", { name: SLOTS$i.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
20179
20181
|
? numberButtonsVertical
|
|
20180
20182
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
20181
20183
|
? numberButtonsHorizontalUp
|
|
@@ -20238,7 +20240,7 @@ class Input {
|
|
|
20238
20240
|
}; }
|
|
20239
20241
|
}
|
|
20240
20242
|
|
|
20241
|
-
const CSS$
|
|
20243
|
+
const CSS$u = {
|
|
20242
20244
|
menu: "menu-container",
|
|
20243
20245
|
menuActive: "menu-container--active"
|
|
20244
20246
|
};
|
|
@@ -20283,19 +20285,19 @@ class InputDatePicker {
|
|
|
20283
20285
|
*
|
|
20284
20286
|
* @default "Previous month"
|
|
20285
20287
|
*/
|
|
20286
|
-
this.intlPrevMonth = TEXT$
|
|
20288
|
+
this.intlPrevMonth = TEXT$h.prevMonth;
|
|
20287
20289
|
/**
|
|
20288
20290
|
* Localized string for "next month" (used for aria label)
|
|
20289
20291
|
*
|
|
20290
20292
|
* @default "Next month"
|
|
20291
20293
|
*/
|
|
20292
|
-
this.intlNextMonth = TEXT$
|
|
20294
|
+
this.intlNextMonth = TEXT$h.nextMonth;
|
|
20293
20295
|
/**
|
|
20294
20296
|
* Localized string for "year" (used for aria label)
|
|
20295
20297
|
*
|
|
20296
20298
|
* @default "Year"
|
|
20297
20299
|
*/
|
|
20298
|
-
this.intlYear = TEXT$
|
|
20300
|
+
this.intlYear = TEXT$h.year;
|
|
20299
20301
|
/** BCP 47 language tag for desired language and country format */
|
|
20300
20302
|
this.locale = document.documentElement.lang || "en";
|
|
20301
20303
|
/** specify the scale of the date picker */
|
|
@@ -20573,8 +20575,8 @@ class InputDatePicker {
|
|
|
20573
20575
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
20574
20576
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
20575
20577
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputInput: this.inputInput, 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 })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
20576
|
-
[CSS$
|
|
20577
|
-
[CSS$
|
|
20578
|
+
[CSS$u.menu]: true,
|
|
20579
|
+
[CSS$u.menuActive]: this.open
|
|
20578
20580
|
}, ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
20579
20581
|
["calendar-picker-wrapper"]: true,
|
|
20580
20582
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
@@ -20887,7 +20889,7 @@ class InputMessage {
|
|
|
20887
20889
|
}; }
|
|
20888
20890
|
}
|
|
20889
20891
|
|
|
20890
|
-
const CSS$
|
|
20892
|
+
const CSS$t = {
|
|
20891
20893
|
loader: "loader",
|
|
20892
20894
|
clearButton: "clear-button",
|
|
20893
20895
|
editingEnabled: "editing-enabled",
|
|
@@ -20903,10 +20905,10 @@ const CSS$s = {
|
|
|
20903
20905
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
20904
20906
|
numberButtonItem: "number-button-item"
|
|
20905
20907
|
};
|
|
20906
|
-
const SLOTS$
|
|
20908
|
+
const SLOTS$h = {
|
|
20907
20909
|
action: "action"
|
|
20908
20910
|
};
|
|
20909
|
-
const TEXT$
|
|
20911
|
+
const TEXT$d = {
|
|
20910
20912
|
clear: "Clear value"
|
|
20911
20913
|
};
|
|
20912
20914
|
|
|
@@ -20960,7 +20962,7 @@ class InputNumber {
|
|
|
20960
20962
|
*
|
|
20961
20963
|
* @default "Loading"
|
|
20962
20964
|
*/
|
|
20963
|
-
this.intlLoading = TEXT$
|
|
20965
|
+
this.intlLoading = TEXT$u.loading;
|
|
20964
20966
|
/** When true, the icon is flipped in RTL. */
|
|
20965
20967
|
this.iconFlipRtl = false;
|
|
20966
20968
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -21361,25 +21363,25 @@ class InputNumber {
|
|
|
21361
21363
|
// --------------------------------------------------------------------------
|
|
21362
21364
|
render() {
|
|
21363
21365
|
const dir = getElementDir(this.el);
|
|
21364
|
-
const loader = (hAsync("div", { class: CSS$
|
|
21365
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$
|
|
21366
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
21366
|
+
const loader = (hAsync("div", { class: CSS$t.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
21367
|
+
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" })));
|
|
21368
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$t.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
21367
21369
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
21368
21370
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
21369
|
-
[CSS$
|
|
21370
|
-
[CSS$
|
|
21371
|
+
[CSS$t.numberButtonItem]: true,
|
|
21372
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21371
21373
|
}, "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" })));
|
|
21372
21374
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
21373
|
-
[CSS$
|
|
21374
|
-
[CSS$
|
|
21375
|
+
[CSS$t.numberButtonItem]: true,
|
|
21376
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21375
21377
|
}, "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" })));
|
|
21376
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
21377
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
21378
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
21378
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$t.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
21379
|
+
const prefixText = hAsync("div", { class: CSS$t.prefix }, this.prefixText);
|
|
21380
|
+
const suffixText = hAsync("div", { class: CSS$t.suffix }, this.suffixText);
|
|
21379
21381
|
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 }));
|
|
21380
|
-
return (hAsync(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
21382
|
+
return (hAsync(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$t.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
21381
21383
|
? numberButtonsHorizontalDown
|
|
21382
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
21384
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$t.wrapper }, 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.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
21383
21385
|
? numberButtonsHorizontalUp
|
|
21384
21386
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
21385
21387
|
}
|
|
@@ -21437,6 +21439,355 @@ class InputNumber {
|
|
|
21437
21439
|
}; }
|
|
21438
21440
|
}
|
|
21439
21441
|
|
|
21442
|
+
const CSS$s = {
|
|
21443
|
+
loader: "loader",
|
|
21444
|
+
clearButton: "clear-button",
|
|
21445
|
+
editingEnabled: "editing-enabled",
|
|
21446
|
+
inlineChild: "inline-child",
|
|
21447
|
+
inputIcon: "icon",
|
|
21448
|
+
prefix: "prefix",
|
|
21449
|
+
suffix: "suffix",
|
|
21450
|
+
wrapper: "element-wrapper",
|
|
21451
|
+
inputWrapper: "wrapper",
|
|
21452
|
+
actionWrapper: "action-wrapper",
|
|
21453
|
+
resizeIconWrapper: "resize-icon-wrapper"
|
|
21454
|
+
};
|
|
21455
|
+
const SLOTS$g = {
|
|
21456
|
+
action: "action"
|
|
21457
|
+
};
|
|
21458
|
+
const TEXT$c = {
|
|
21459
|
+
clear: "Clear value"
|
|
21460
|
+
};
|
|
21461
|
+
|
|
21462
|
+
const inputTextCss = "@-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-text: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-text{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-text{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-text{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-text{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-text{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-input-text:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-text-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-text-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*/.sc-calcite-input-text-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-text-h[disabled] .sc-calcite-input-text-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-text-h [calcite-hydrated][disabled].sc-calcite-input-text{opacity:1}/*!@input*/input.sc-calcite-input-text{-webkit-transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;transition:var(--calcite-animation-timing), block-size 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-block-size:100%;inline-size:100%;max-inline-size: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);color:var(--calcite-ui-text-1)}/*!@:host input*/.sc-calcite-input-text-h input.sc-calcite-input-text{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-text-h input.sc-calcite-input-text:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.sc-calcite-input-text-h input.sc-calcite-input-text::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.sc-calcite-input-text-h input.sc-calcite-input-text::placeholder,.sc-calcite-input-text-h input.sc-calcite-input-text:-ms-input-placeholder,.sc-calcite-input-text-h input.sc-calcite-input-text::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-text-h input.sc-calcite-input-text:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-text-h input[readonly].sc-calcite-input-text{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-text-h input[readonly].sc-calcite-input-text:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-text-h calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-3)}/*!@input*/input.sc-calcite-input-text{outline-color:transparent}/*!@input:focus*/input.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-text-h input.sc-calcite-input-text{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-text-h input.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-text-h input.sc-calcite-input-text{-webkit-padding-start:2rem;padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-text-h input.sc-calcite-input-text{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-text-h input.sc-calcite-input-text{-webkit-padding-start:3rem;padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-text{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-text{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}/*!@input[type=text]::-ms-clear, \ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input-text::-ms-clear,input[type=text].sc-calcite-input-text::-ms-reveal{display:none;block-size:0px;inline-size:0px}/*!@.clear-button*/.clear-button.sc-calcite-input-text{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-block-size: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-text: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-text:hover calcite-icon.sc-calcite-input-text{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-text:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-text:active calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-text:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-text{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-text{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-text,.suffix.sc-calcite-input-text{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;block-size:auto;min-block-size: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-text{-ms-flex-order:2;order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-text{-ms-flex-order:5;order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-text-h input.sc-calcite-input-text{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-text-h input.sc-calcite-input-text{text-align:end}/*!@.wrapper*/.wrapper.sc-calcite-input-text{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-text{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;block-size:0.75rem;inline-size: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-text calcite-icon.sc-calcite-input-text{inset-block-end: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-text .resize-icon-wrapper.sc-calcite-input-text calcite-icon.sc-calcite-input-text{-webkit-transform:rotate(45deg);transform:rotate(45deg)}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-text-h input.sc-calcite-input-text{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-text-h input.sc-calcite-input-text{border-block-start-color:var(--calcite-ui-border-1)}/*!@.inline-child*/.inline-child.sc-calcite-input-text{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}/*!@.inline-child .editing-enabled*/.inline-child.sc-calcite-input-text .editing-enabled.sc-calcite-input-text{background-color:inherit}/*!@.inline-child:not(.editing-enabled)*/.inline-child.sc-calcite-input-text: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-text-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
21463
|
+
|
|
21464
|
+
/**
|
|
21465
|
+
* @slot action - A slot for positioning a button next to the component.
|
|
21466
|
+
*/
|
|
21467
|
+
class InputText {
|
|
21468
|
+
constructor(hostRef) {
|
|
21469
|
+
registerInstance(this, hostRef);
|
|
21470
|
+
this.calciteInternalInputTextFocus = createEvent(this, "calciteInternalInputTextFocus", 7);
|
|
21471
|
+
this.calciteInternalInputTextBlur = createEvent(this, "calciteInternalInputTextBlur", 7);
|
|
21472
|
+
this.calciteInputTextInput = createEvent(this, "calciteInputTextInput", 7);
|
|
21473
|
+
this.calciteInputTextChange = createEvent(this, "calciteInputTextChange", 7);
|
|
21474
|
+
//--------------------------------------------------------------------------
|
|
21475
|
+
//
|
|
21476
|
+
// Properties
|
|
21477
|
+
//
|
|
21478
|
+
//--------------------------------------------------------------------------
|
|
21479
|
+
/** Specifies the text alignment of the component's value. */
|
|
21480
|
+
this.alignment = "start";
|
|
21481
|
+
/**
|
|
21482
|
+
* When true, the component is focused on page load.
|
|
21483
|
+
*
|
|
21484
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
21485
|
+
*/
|
|
21486
|
+
this.autofocus = false;
|
|
21487
|
+
/**
|
|
21488
|
+
* When true, a clear button is displayed when the component has a value.
|
|
21489
|
+
*/
|
|
21490
|
+
this.clearable = false;
|
|
21491
|
+
/**
|
|
21492
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
21493
|
+
*
|
|
21494
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
21495
|
+
*/
|
|
21496
|
+
this.disabled = false;
|
|
21497
|
+
/**
|
|
21498
|
+
* When true, the component will not be visible.
|
|
21499
|
+
*
|
|
21500
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
21501
|
+
*/
|
|
21502
|
+
this.hidden = false;
|
|
21503
|
+
/**
|
|
21504
|
+
* Accessible name that will appear while loading.
|
|
21505
|
+
*
|
|
21506
|
+
* @default "Loading"
|
|
21507
|
+
*/
|
|
21508
|
+
this.intlLoading = TEXT$u.loading;
|
|
21509
|
+
/** When true, the icon is flipped in RTL. */
|
|
21510
|
+
this.iconFlipRtl = false;
|
|
21511
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
21512
|
+
this.loading = false;
|
|
21513
|
+
/**
|
|
21514
|
+
* When true, the value cannot be modified.
|
|
21515
|
+
*
|
|
21516
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
21517
|
+
*/
|
|
21518
|
+
this.readOnly = false;
|
|
21519
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
21520
|
+
this.required = false;
|
|
21521
|
+
/** Specifies the size of the component. */
|
|
21522
|
+
this.scale = "m";
|
|
21523
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
21524
|
+
this.status = "idle";
|
|
21525
|
+
/**
|
|
21526
|
+
* @internal
|
|
21527
|
+
*/
|
|
21528
|
+
this.editingEnabled = false;
|
|
21529
|
+
/** The component's value. */
|
|
21530
|
+
this.value = "";
|
|
21531
|
+
this.previousValueOrigin = "initial";
|
|
21532
|
+
this.mutationObserver = createObserver();
|
|
21533
|
+
this.userChangedValue = false;
|
|
21534
|
+
//--------------------------------------------------------------------------
|
|
21535
|
+
//
|
|
21536
|
+
// Private Methods
|
|
21537
|
+
//
|
|
21538
|
+
//--------------------------------------------------------------------------
|
|
21539
|
+
this.keyDownHandler = (event) => {
|
|
21540
|
+
if (this.readOnly || this.disabled) {
|
|
21541
|
+
return;
|
|
21542
|
+
}
|
|
21543
|
+
if (this.isClearable && event.key === "Escape") {
|
|
21544
|
+
this.clearInputTextValue(event);
|
|
21545
|
+
event.preventDefault();
|
|
21546
|
+
}
|
|
21547
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
21548
|
+
submitForm(this);
|
|
21549
|
+
}
|
|
21550
|
+
};
|
|
21551
|
+
this.clearInputTextValue = (nativeEvent) => {
|
|
21552
|
+
this.setValue({
|
|
21553
|
+
committing: true,
|
|
21554
|
+
nativeEvent,
|
|
21555
|
+
origin: "user",
|
|
21556
|
+
value: ""
|
|
21557
|
+
});
|
|
21558
|
+
};
|
|
21559
|
+
this.emitChangeIfUserModified = () => {
|
|
21560
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
21561
|
+
this.calciteInputTextChange.emit();
|
|
21562
|
+
}
|
|
21563
|
+
this.previousEmittedValue = this.value;
|
|
21564
|
+
};
|
|
21565
|
+
this.inputTextBlurHandler = () => {
|
|
21566
|
+
this.calciteInternalInputTextBlur.emit({
|
|
21567
|
+
element: this.childEl,
|
|
21568
|
+
value: this.value
|
|
21569
|
+
});
|
|
21570
|
+
this.emitChangeIfUserModified();
|
|
21571
|
+
};
|
|
21572
|
+
this.inputTextFocusHandler = (event) => {
|
|
21573
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
21574
|
+
if (event.target !== slottedActionEl) {
|
|
21575
|
+
this.setFocus();
|
|
21576
|
+
}
|
|
21577
|
+
this.calciteInternalInputTextFocus.emit({
|
|
21578
|
+
element: this.childEl,
|
|
21579
|
+
value: this.value
|
|
21580
|
+
});
|
|
21581
|
+
};
|
|
21582
|
+
this.inputTextInputHandler = (nativeEvent) => {
|
|
21583
|
+
if (this.disabled || this.readOnly) {
|
|
21584
|
+
return;
|
|
21585
|
+
}
|
|
21586
|
+
this.setValue({
|
|
21587
|
+
nativeEvent,
|
|
21588
|
+
origin: "user",
|
|
21589
|
+
value: nativeEvent.target.value
|
|
21590
|
+
});
|
|
21591
|
+
};
|
|
21592
|
+
this.inputTextKeyDownHandler = (event) => {
|
|
21593
|
+
if (this.disabled || this.readOnly) {
|
|
21594
|
+
return;
|
|
21595
|
+
}
|
|
21596
|
+
if (event.key === "Enter") {
|
|
21597
|
+
this.emitChangeIfUserModified();
|
|
21598
|
+
}
|
|
21599
|
+
};
|
|
21600
|
+
this.setChildElRef = (el) => {
|
|
21601
|
+
this.childEl = el;
|
|
21602
|
+
};
|
|
21603
|
+
this.setInputValue = (newInputValue) => {
|
|
21604
|
+
if (!this.childEl) {
|
|
21605
|
+
return;
|
|
21606
|
+
}
|
|
21607
|
+
this.childEl.value = newInputValue;
|
|
21608
|
+
};
|
|
21609
|
+
this.setPreviousEmittedValue = (newPreviousEmittedValue) => {
|
|
21610
|
+
this.previousEmittedValue = newPreviousEmittedValue;
|
|
21611
|
+
};
|
|
21612
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
21613
|
+
this.previousValue = newPreviousValue;
|
|
21614
|
+
};
|
|
21615
|
+
this.setValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
21616
|
+
this.setPreviousValue(previousValue || this.value);
|
|
21617
|
+
this.previousValueOrigin = origin;
|
|
21618
|
+
this.userChangedValue = origin === "user" && value !== this.value;
|
|
21619
|
+
this.value = value;
|
|
21620
|
+
if (origin === "direct") {
|
|
21621
|
+
this.setInputValue(value);
|
|
21622
|
+
}
|
|
21623
|
+
if (nativeEvent) {
|
|
21624
|
+
const calciteInputTextInputEvent = this.calciteInputTextInput.emit({
|
|
21625
|
+
element: this.childEl,
|
|
21626
|
+
nativeEvent,
|
|
21627
|
+
value: this.value
|
|
21628
|
+
});
|
|
21629
|
+
if (calciteInputTextInputEvent.defaultPrevented) {
|
|
21630
|
+
this.value = this.previousValue;
|
|
21631
|
+
}
|
|
21632
|
+
else if (committing) {
|
|
21633
|
+
this.emitChangeIfUserModified();
|
|
21634
|
+
}
|
|
21635
|
+
}
|
|
21636
|
+
};
|
|
21637
|
+
}
|
|
21638
|
+
disabledWatcher() {
|
|
21639
|
+
this.setDisabledAction();
|
|
21640
|
+
}
|
|
21641
|
+
valueWatcher(newValue, previousValue) {
|
|
21642
|
+
if (!this.userChangedValue) {
|
|
21643
|
+
this.setValue({
|
|
21644
|
+
origin: "direct",
|
|
21645
|
+
previousValue,
|
|
21646
|
+
value: !newValue ? "" : newValue
|
|
21647
|
+
});
|
|
21648
|
+
}
|
|
21649
|
+
this.userChangedValue = false;
|
|
21650
|
+
}
|
|
21651
|
+
updateRequestedIcon() {
|
|
21652
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "text");
|
|
21653
|
+
}
|
|
21654
|
+
get isClearable() {
|
|
21655
|
+
return this.clearable && this.value.length > 0;
|
|
21656
|
+
}
|
|
21657
|
+
//--------------------------------------------------------------------------
|
|
21658
|
+
//
|
|
21659
|
+
// Lifecycle
|
|
21660
|
+
//
|
|
21661
|
+
//--------------------------------------------------------------------------
|
|
21662
|
+
connectedCallback() {
|
|
21663
|
+
var _a;
|
|
21664
|
+
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
21665
|
+
this.status = getElementProp(this.el, "status", this.status);
|
|
21666
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
21667
|
+
if (this.inlineEditableEl) {
|
|
21668
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
21669
|
+
}
|
|
21670
|
+
this.setPreviousEmittedValue(this.value);
|
|
21671
|
+
this.setPreviousValue(this.value);
|
|
21672
|
+
connectLabel(this);
|
|
21673
|
+
connectForm(this);
|
|
21674
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
21675
|
+
this.setDisabledAction();
|
|
21676
|
+
}
|
|
21677
|
+
disconnectedCallback() {
|
|
21678
|
+
var _a;
|
|
21679
|
+
disconnectLabel(this);
|
|
21680
|
+
disconnectForm(this);
|
|
21681
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21682
|
+
}
|
|
21683
|
+
componentWillLoad() {
|
|
21684
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "text");
|
|
21685
|
+
}
|
|
21686
|
+
componentDidRender() {
|
|
21687
|
+
updateHostInteraction(this);
|
|
21688
|
+
}
|
|
21689
|
+
//--------------------------------------------------------------------------
|
|
21690
|
+
//
|
|
21691
|
+
// Public Methods
|
|
21692
|
+
//
|
|
21693
|
+
//--------------------------------------------------------------------------
|
|
21694
|
+
/** Sets focus on the component. */
|
|
21695
|
+
async setFocus() {
|
|
21696
|
+
var _a;
|
|
21697
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21698
|
+
}
|
|
21699
|
+
/** Selects all text of the component's `value`. */
|
|
21700
|
+
async selectText() {
|
|
21701
|
+
var _a;
|
|
21702
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
21703
|
+
}
|
|
21704
|
+
onLabelClick() {
|
|
21705
|
+
this.setFocus();
|
|
21706
|
+
}
|
|
21707
|
+
onFormReset() {
|
|
21708
|
+
this.setValue({
|
|
21709
|
+
origin: "reset",
|
|
21710
|
+
value: this.defaultValue
|
|
21711
|
+
});
|
|
21712
|
+
}
|
|
21713
|
+
syncHiddenFormInput(input) {
|
|
21714
|
+
if (this.minLength != null) {
|
|
21715
|
+
input.minLength = this.minLength;
|
|
21716
|
+
}
|
|
21717
|
+
if (this.maxLength != null) {
|
|
21718
|
+
input.maxLength = this.maxLength;
|
|
21719
|
+
}
|
|
21720
|
+
}
|
|
21721
|
+
setDisabledAction() {
|
|
21722
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
21723
|
+
if (!slottedActionEl) {
|
|
21724
|
+
return;
|
|
21725
|
+
}
|
|
21726
|
+
this.disabled
|
|
21727
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
21728
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
21729
|
+
}
|
|
21730
|
+
// --------------------------------------------------------------------------
|
|
21731
|
+
//
|
|
21732
|
+
// Render Methods
|
|
21733
|
+
//
|
|
21734
|
+
// --------------------------------------------------------------------------
|
|
21735
|
+
render() {
|
|
21736
|
+
const dir = getElementDir(this.el);
|
|
21737
|
+
const loader = (hAsync("div", { class: CSS$s.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
21738
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
21739
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
21740
|
+
const prefixText = hAsync("div", { class: CSS$s.prefix }, this.prefixText);
|
|
21741
|
+
const suffixText = hAsync("div", { class: CSS$s.suffix }, this.suffixText);
|
|
21742
|
+
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
21743
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
21744
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
21745
|
+
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value }));
|
|
21746
|
+
return (hAsync(Host, { onClick: this.inputTextFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, 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.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
21747
|
+
}
|
|
21748
|
+
get el() { return getElement(this); }
|
|
21749
|
+
static get watchers() { return {
|
|
21750
|
+
"disabled": ["disabledWatcher"],
|
|
21751
|
+
"value": ["valueWatcher"],
|
|
21752
|
+
"icon": ["updateRequestedIcon"]
|
|
21753
|
+
}; }
|
|
21754
|
+
static get style() { return inputTextCss; }
|
|
21755
|
+
static get cmpMeta() { return {
|
|
21756
|
+
"$flags$": 9,
|
|
21757
|
+
"$tagName$": "calcite-input-text",
|
|
21758
|
+
"$members$": {
|
|
21759
|
+
"alignment": [513],
|
|
21760
|
+
"autofocus": [4],
|
|
21761
|
+
"clearable": [516],
|
|
21762
|
+
"disabled": [516],
|
|
21763
|
+
"hidden": [4],
|
|
21764
|
+
"icon": [520],
|
|
21765
|
+
"intlClear": [1, "intl-clear"],
|
|
21766
|
+
"intlLoading": [1, "intl-loading"],
|
|
21767
|
+
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
21768
|
+
"label": [1],
|
|
21769
|
+
"loading": [516],
|
|
21770
|
+
"maxLength": [514, "max-length"],
|
|
21771
|
+
"minLength": [514, "min-length"],
|
|
21772
|
+
"name": [513],
|
|
21773
|
+
"placeholder": [1],
|
|
21774
|
+
"prefixText": [1, "prefix-text"],
|
|
21775
|
+
"readOnly": [4, "read-only"],
|
|
21776
|
+
"required": [4],
|
|
21777
|
+
"scale": [1537],
|
|
21778
|
+
"status": [1537],
|
|
21779
|
+
"suffixText": [1, "suffix-text"],
|
|
21780
|
+
"editingEnabled": [1540, "editing-enabled"],
|
|
21781
|
+
"value": [1025],
|
|
21782
|
+
"setFocus": [64],
|
|
21783
|
+
"selectText": [64]
|
|
21784
|
+
},
|
|
21785
|
+
"$listeners$": undefined,
|
|
21786
|
+
"$lazyBundleId$": "-",
|
|
21787
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["clearable", "clearable"], ["disabled", "disabled"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["scale", "scale"], ["status", "status"], ["editingEnabled", "editing-enabled"]]
|
|
21788
|
+
}; }
|
|
21789
|
+
}
|
|
21790
|
+
|
|
21440
21791
|
const maxTenthForMinuteAndSecond = 5;
|
|
21441
21792
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
21442
21793
|
try {
|
|
@@ -23677,7 +24028,7 @@ class Panel {
|
|
|
23677
24028
|
renderMenu() {
|
|
23678
24029
|
const { el, intlOptions, menuOpen } = this;
|
|
23679
24030
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
23680
|
-
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$
|
|
24031
|
+
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$r.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
23681
24032
|
}
|
|
23682
24033
|
renderHeaderNode() {
|
|
23683
24034
|
const { el, showBackButton } = this;
|
|
@@ -26984,11 +27335,9 @@ class Slider {
|
|
|
26984
27335
|
const fixedDecimalAdjustment = Number(adjustment.toFixed(decimalPlaces(step)));
|
|
26985
27336
|
this.setValue(activeProp, this.clamp(fixedDecimalAdjustment, activeProp));
|
|
26986
27337
|
}
|
|
26987
|
-
clickHandler(event) {
|
|
26988
|
-
this.focusActiveHandle(event.clientX);
|
|
26989
|
-
}
|
|
26990
27338
|
pointerDownHandler(event) {
|
|
26991
27339
|
const x = event.clientX || event.pageX;
|
|
27340
|
+
this.focusActiveHandle(x);
|
|
26992
27341
|
const position = this.translate(x);
|
|
26993
27342
|
let prop = "value";
|
|
26994
27343
|
if (isRange(this.value)) {
|
|
@@ -27405,7 +27754,7 @@ class Slider {
|
|
|
27405
27754
|
"tickValues": [32],
|
|
27406
27755
|
"setFocus": [64]
|
|
27407
27756
|
},
|
|
27408
|
-
"$listeners$": [[0, "keydown", "keyDownHandler"], [
|
|
27757
|
+
"$listeners$": [[0, "keydown", "keyDownHandler"], [1, "pointerdown", "pointerDownHandler"]],
|
|
27409
27758
|
"$lazyBundleId$": "-",
|
|
27410
27759
|
"$attrsToReflect$": [["disabled", "disabled"], ["hasHistogram", "has-histogram"], ["labelHandles", "label-handles"], ["labelTicks", "label-ticks"], ["max", "max"], ["min", "min"], ["mirrored", "mirrored"], ["name", "name"], ["required", "required"], ["value", "value"]]
|
|
27411
27760
|
}; }
|
|
@@ -34813,6 +35162,7 @@ registerComponents([
|
|
|
34813
35162
|
InputDatePicker,
|
|
34814
35163
|
InputMessage,
|
|
34815
35164
|
InputNumber,
|
|
35165
|
+
InputText,
|
|
34816
35166
|
InputTimePicker,
|
|
34817
35167
|
Label,
|
|
34818
35168
|
Link,
|