@esri/solutions-components 0.7.23 → 0.7.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/crowdsource-manager/resources.json +1 -3
- package/dist/assets/t9n/crowdsource-manager/resources_en.json +1 -3
- package/dist/assets/t9n/crowdsource-reporter/resources.json +18 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_en.json +18 -1
- package/dist/assets/t9n/delete-button/resources.json +8 -0
- package/dist/assets/t9n/delete-button/resources_en.json +8 -0
- package/dist/assets/t9n/feature-list/resources.json +4 -0
- package/dist/assets/t9n/feature-list/resources_en.json +4 -0
- package/dist/assets/t9n/info-card/resources.json +1 -1
- package/dist/assets/t9n/info-card/resources_en.json +1 -1
- package/dist/assets/t9n/layer-list/resources.json +4 -0
- package/dist/assets/t9n/layer-list/resources_en.json +4 -0
- package/dist/assets/t9n/layer-table/resources.json +0 -9
- package/dist/assets/t9n/layer-table/resources_en.json +0 -9
- package/dist/cjs/basemap-gallery_5.cjs.entry.js +573 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +255 -0
- package/dist/cjs/calcite-alert_3.cjs.entry.js +136 -357
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +2 -1
- package/dist/cjs/{calcite-action-bar_3.cjs.entry.js → calcite-filter_5.cjs.entry.js} +333 -172
- package/dist/cjs/calcite-flow_4.cjs.entry.js +658 -0
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +22 -11
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -1
- package/dist/cjs/{card-manager_3.cjs.entry.js → card-manager_2.cjs.entry.js} +48 -268
- package/dist/cjs/crowdsource-manager.cjs.entry.js +18 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +215 -36
- package/dist/cjs/{basemap-gallery_7.cjs.entry.js → info-card_4.cjs.entry.js} +322 -409
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +41 -1
- package/dist/cjs/layout-manager.cjs.entry.js +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-9db09b63.js → locale-1ff119f5.js} +19 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/popupUtils-8d5b6e94.js +99 -0
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +16 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +23 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +73 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +349 -56
- package/dist/collection/components/delete-button/delete-button.css +19 -0
- package/dist/collection/components/delete-button/delete-button.js +299 -0
- package/dist/collection/components/delete-button/test/delete-button.e2e.js +29 -0
- package/dist/collection/components/delete-button/test/delete-button.spec.js +37 -0
- package/dist/collection/components/feature-list/feature-list.css +38 -0
- package/dist/collection/components/feature-list/feature-list.js +303 -0
- package/dist/collection/components/info-card/info-card.js +65 -21
- package/dist/collection/components/layer-list/layer-list.css +28 -0
- package/dist/collection/components/layer-list/layer-list.js +288 -0
- package/dist/collection/components/layer-table/layer-table.js +63 -116
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +31 -1
- package/dist/collection/demos/crowdsource-reporter.html +42 -70
- package/dist/collection/demos/feature-list.html +43 -0
- package/dist/collection/demos/layer-list.html +43 -0
- package/dist/collection/utils/interfaces.ts +4 -0
- package/dist/components/calcite-flow-item.js +1 -261
- package/dist/components/calcite-flow.js +1 -165
- package/dist/components/card-manager2.js +38 -26
- package/dist/components/crowdsource-manager.js +110 -89
- package/dist/components/crowdsource-reporter.js +463 -42
- package/dist/components/delete-button.d.ts +11 -0
- package/dist/components/delete-button.js +11 -0
- package/dist/components/delete-button2.js +209 -0
- package/dist/components/feature-list.d.ts +11 -0
- package/dist/components/feature-list.js +11 -0
- package/dist/components/feature-list2.js +281 -0
- package/dist/{esm/calcite-flow-item.entry.js → components/flow-item.js} +94 -19
- package/dist/{esm/calcite-flow.entry.js → components/flow.js} +33 -10
- package/dist/components/info-card2.js +87 -136
- package/dist/components/instant-apps-export.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +22 -11
- package/dist/components/instant-apps-language-translator2.js +48 -4
- package/dist/components/layer-list.d.ts +11 -0
- package/dist/components/layer-list.js +11 -0
- package/dist/components/layer-list2.js +268 -0
- package/dist/components/layer-table2.js +126 -165
- package/dist/components/locale.js +19 -2
- package/dist/components/popupUtils.js +97 -0
- package/dist/components/queryUtils.js +1 -1
- package/dist/components/solution-spatial-ref2.js +17 -2
- package/dist/esm/{ExpandToggle-540998b5.js → ExpandToggle-96688cda.js} +1 -1
- package/dist/esm/{ar-35006b74.js → ar-29711364.js} +8 -8
- package/dist/esm/basemap-gallery_5.entry.js +565 -0
- package/dist/esm/{bg-c289978f.js → bg-c0f5033b.js} +8 -8
- package/dist/esm/{bs-6f9fb44a.js → bs-60479ce5.js} +8 -8
- package/dist/esm/buffer-tools_3.entry.js +3 -3
- package/dist/esm/{ca-7962c8b7.js → ca-4317b986.js} +8 -8
- package/dist/esm/calcite-accordion-item.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +251 -0
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu_2.entry.js +5 -5
- package/dist/esm/calcite-action-pad_2.entry.js +4 -4
- package/dist/esm/calcite-action_2.entry.js +3 -3
- package/dist/esm/calcite-alert_3.entry.js +141 -362
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block_2.entry.js +5 -5
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip-group.entry.js +1 -1
- package/dist/esm/calcite-chip.entry.js +3 -3
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
- package/dist/esm/calcite-color-picker.entry.js +3 -3
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
- package/dist/esm/calcite-combobox_6.entry.js +11 -10
- package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/{calcite-action-bar_3.entry.js → calcite-filter_5.entry.js} +363 -204
- package/dist/esm/calcite-flow_4.entry.js +651 -0
- package/dist/esm/calcite-graph_2.entry.js +4 -4
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +4 -4
- package/dist/esm/calcite-input-date-picker_3.entry.js +31 -20
- package/dist/esm/calcite-input-number.entry.js +5 -5
- package/dist/esm/calcite-input-text.entry.js +5 -5
- package/dist/esm/{calcite-input-time-picker-63439178.js → calcite-input-time-picker-2e1b2157.js} +55 -55
- package/dist/esm/calcite-input-time-picker.entry.js +8 -8
- package/dist/esm/calcite-input-time-zone.entry.js +5 -5
- package/dist/esm/calcite-input_2.entry.js +5 -5
- package/dist/esm/calcite-label.entry.js +2 -2
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-menu-item.entry.js +3 -3
- package/dist/esm/calcite-menu.entry.js +3 -3
- package/dist/esm/calcite-meter.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +4 -4
- package/dist/esm/calcite-navigation.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +3 -3
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.entry.js +3 -3
- package/dist/esm/calcite-panel_2.entry.js +3 -3
- package/dist/esm/calcite-pick-list-group.entry.js +1 -1
- package/dist/esm/calcite-pick-list-item.entry.js +3 -3
- package/dist/esm/calcite-pick-list.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +5 -5
- package/dist/esm/calcite-scrim.entry.js +3 -3
- package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
- package/dist/esm/calcite-sheet.entry.js +2 -2
- package/dist/esm/calcite-shell-center-row.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +8 -7
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-stepper-item.entry.js +3 -3
- package/dist/esm/calcite-stepper.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-table-cell_2.entry.js +3 -3
- package/dist/esm/calcite-table-row.entry.js +1 -1
- package/dist/esm/calcite-table.entry.js +3 -3
- package/dist/esm/calcite-text-area.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-time-picker.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +3 -3
- package/dist/esm/calcite-tip.entry.js +3 -3
- package/dist/esm/calcite-tooltip.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- package/dist/esm/{card-manager_3.entry.js → card-manager_2.entry.js} +51 -270
- package/dist/esm/{common-2cf42ac2.js → common-d04ccc0d.js} +1 -1
- package/dist/esm/crowdsource-manager.entry.js +19 -4
- package/dist/esm/crowdsource-reporter.entry.js +215 -36
- package/dist/esm/{cs-6d13069b.js → cs-da404a04.js} +8 -8
- package/dist/esm/{da-14097e6c.js → da-1afac3fa.js} +8 -8
- package/dist/esm/{date-1743b515.js → date-8b4a8f33.js} +1 -1
- package/dist/esm/{de-dff2571b.js → de-98f3129e.js} +8 -8
- package/dist/esm/{de-at-b733db65.js → de-at-ed4817af.js} +8 -8
- package/dist/esm/{de-ch-5ad0cb74.js → de-ch-556c82c8.js} +8 -8
- package/dist/esm/{dom-492b1b24.js → dom-8f926f33.js} +1 -1
- package/dist/esm/{downloadUtils-13579d93.js → downloadUtils-067dc2ff.js} +2 -2
- package/dist/esm/{el-688e05ba.js → el-394dfd74.js} +8 -8
- package/dist/esm/{en-au-357e70d8.js → en-au-6dde1e7e.js} +8 -8
- package/dist/esm/{en-ca-1e0b6b47.js → en-ca-420be416.js} +8 -8
- package/dist/esm/{en-gb-861a17f2.js → en-gb-0a7caa85.js} +8 -8
- package/dist/esm/{es-291ab4bd.js → es-2e1beb99.js} +8 -8
- package/dist/esm/{es-mx-0a7283a7.js → es-mx-ef132a24.js} +8 -8
- package/dist/esm/{et-addd2617.js → et-83d139c1.js} +8 -8
- package/dist/esm/{fi-469884d5.js → fi-8b81ed94.js} +8 -8
- package/dist/esm/{floating-ui-03eb4c82.js → floating-ui-c397f653.js} +1 -1
- package/dist/esm/{focusTrapComponent-2e7de651.js → focusTrapComponent-14368766.js} +1 -1
- package/dist/esm/{form-9bccaf85.js → form-133b00c7.js} +1 -1
- package/dist/esm/{fr-f5cb34ca.js → fr-c47c114a.js} +8 -8
- package/dist/esm/{fr-ch-115d3fda.js → fr-ch-97635343.js} +8 -8
- package/dist/esm/{he-6e5f5c56.js → he-ed2a12b9.js} +8 -8
- package/dist/esm/{hi-503240c2.js → hi-a05727ac.js} +8 -8
- package/dist/esm/{hr-cc08d6fc.js → hr-d01671ca.js} +8 -8
- package/dist/esm/{hu-69ac240d.js → hu-16506ca7.js} +8 -8
- package/dist/esm/{id-99547746.js → id-e9367e87.js} +8 -8
- package/dist/esm/{index.es-04d2e63e.js → index.es-92e46d8b.js} +3 -3
- package/dist/esm/{basemap-gallery_7.entry.js → info-card_4.entry.js} +322 -406
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-language-translator.entry.js +42 -2
- package/dist/esm/{interfaces-341e3ab3.js → interfaces-586e863c.js} +1 -1
- package/dist/esm/{it-dbb6ea7d.js → it-14246b4a.js} +8 -8
- package/dist/esm/{it-ch-a83801f6.js → it-ch-a877e111.js} +8 -8
- package/dist/esm/{ja-79dbb02f.js → ja-67a0cfa0.js} +8 -8
- package/dist/esm/{ko-31ebe067.js → ko-35b0b83a.js} +8 -8
- package/dist/esm/{label-14301f4d.js → label-cd393c81.js} +1 -1
- package/dist/esm/layout-manager.entry.js +3 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-834c52c6.js → locale-13e3c96c.js} +19 -2
- package/dist/esm/{locale-8cfa3086.js → locale-6107ef11.js} +1 -1
- package/dist/esm/{lt-94d3f4b8.js → lt-71014faf.js} +8 -8
- package/dist/esm/{lv-d770ed0d.js → lv-def9df38.js} +8 -8
- package/dist/esm/map-select-tools_3.entry.js +4 -4
- package/dist/esm/{mapViewUtils-8fe70944.js → mapViewUtils-6daedef8.js} +2 -2
- package/dist/esm/{mk-1046d60a.js → mk-bfeac49e.js} +8 -8
- package/dist/esm/{nb-dad0b4b9.js → nb-0723b461.js} +8 -8
- package/dist/esm/{nl-a968c4b7.js → nl-89663165.js} +8 -8
- package/dist/esm/{pl-a0037bd3.js → pl-0157c37c.js} +8 -8
- package/dist/esm/popupUtils-b71f30fc.js +97 -0
- package/dist/esm/{pt-e3d9370c.js → pt-80d1520c.js} +8 -8
- package/dist/esm/{pt-br-44c11565.js → pt-br-ee5003c7.js} +8 -8
- package/dist/esm/public-notification.entry.js +4 -4
- package/dist/esm/{ro-290e025d.js → ro-eff987f8.js} +8 -8
- package/dist/esm/{ru-38ff91f1.js → ru-62839398.js} +8 -8
- package/dist/esm/{shared-list-render-89e4bcff.js → shared-list-render-a2ab63e8.js} +1 -1
- package/dist/esm/{sk-9622a24b.js → sk-c2f4bd58.js} +8 -8
- package/dist/esm/{sl-6bc83a24.js → sl-328ff1db.js} +8 -8
- package/dist/esm/solution-configuration.entry.js +4 -3
- package/dist/esm/solution-contents_3.entry.js +19 -5
- package/dist/esm/{solution-store-b08696f7.js → solution-store-19f7825b.js} +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +4 -3
- package/dist/esm/{sr-35e575d8.js → sr-75a3ad46.js} +8 -8
- package/dist/esm/{sv-d80fa359.js → sv-10da5ef2.js} +8 -8
- package/dist/esm/{t9n-3c5e55ab.js → t9n-f16911e7.js} +1 -1
- package/dist/esm/{th-23e71d40.js → th-aa112042.js} +8 -8
- package/dist/esm/{time-d956a7c8.js → time-855b3426.js} +1 -1
- package/dist/esm/{tr-961fd2f3.js → tr-5925a2f5.js} +8 -8
- package/dist/esm/{uk-4e8a425a.js → uk-c40eeb9f.js} +8 -8
- package/dist/esm/{utils-56206ec2.js → utils-93fd55c4.js} +2 -2
- package/dist/esm/{utils-8287806a.js → utils-c3509713.js} +1 -1
- package/dist/esm/{vi-ad983882.js → vi-27922b93.js} +8 -8
- package/dist/esm/{zh-cn-5b6fd039.js → zh-cn-38a2e1d3.js} +8 -8
- package/dist/esm/{zh-hk-7439b11d.js → zh-hk-e0217bd1.js} +8 -8
- package/dist/esm/{zh-tw-cf384663.js → zh-tw-31f0447c.js} +8 -8
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +42 -70
- package/dist/solutions-components/demos/feature-list.html +43 -0
- package/dist/solutions-components/demos/layer-list.html +43 -0
- package/dist/solutions-components/{p-c634d047.entry.js → p-01032eec.entry.js} +2 -18
- package/dist/solutions-components/{p-e7951fcb.js → p-0392679d.js} +1 -1
- package/dist/solutions-components/{p-3022da2d.js → p-05f702ae.js} +1 -1
- package/dist/solutions-components/{p-4da72ee8.entry.js → p-068f5a8c.entry.js} +1 -1
- package/dist/solutions-components/{p-4f71a1a0.js → p-0d774e41.js} +1 -1
- package/dist/solutions-components/{p-0e723ffc.js → p-0f6b58b2.js} +1 -1
- package/dist/solutions-components/{p-ec8f042e.entry.js → p-10410f92.entry.js} +1 -1
- package/dist/solutions-components/{p-6a4b1e48.entry.js → p-10f2d6b0.entry.js} +2 -2
- package/dist/solutions-components/{p-5d2ccc75.entry.js → p-13be5cf5.entry.js} +1 -1
- package/dist/solutions-components/{p-58054bc2.js → p-14548a83.js} +1 -1
- package/dist/solutions-components/{p-c9f87acb.js → p-14ff1465.js} +2 -2
- package/dist/solutions-components/{p-026b1345.js → p-17668cb7.js} +3 -3
- package/dist/solutions-components/{p-5e530f8c.js → p-1c75bb3d.js} +1 -1
- package/dist/solutions-components/p-1f7046e9.entry.js +6 -0
- package/dist/solutions-components/{p-121a5dac.entry.js → p-234a8293.entry.js} +1 -1
- package/dist/solutions-components/{p-355249fc.js → p-2447b332.js} +1 -1
- package/dist/solutions-components/{p-48828002.entry.js → p-24c699b0.entry.js} +1 -1
- package/dist/solutions-components/{p-9bcbc1cc.js → p-2592e0dd.js} +1 -1
- package/dist/solutions-components/{p-b78a1c21.js → p-28b33708.js} +1 -1
- package/dist/solutions-components/{p-fa6ef970.js → p-2d68a6fd.js} +1 -1
- package/dist/solutions-components/{p-6437fee1.entry.js → p-2e2d01de.entry.js} +1 -1
- package/dist/solutions-components/{p-5e9b05c0.entry.js → p-2f425700.entry.js} +1 -1
- package/dist/solutions-components/p-3606c4b8.entry.js +6 -0
- package/dist/solutions-components/{p-6c3cdd09.entry.js → p-364486d1.entry.js} +1 -1
- package/dist/solutions-components/{p-85a89f1d.entry.js → p-368cbb2c.entry.js} +1 -1
- package/dist/solutions-components/{p-c68a6d4f.js → p-36cbf14f.js} +1 -1
- package/dist/solutions-components/{p-52ad6ff9.entry.js → p-36f247db.entry.js} +1 -1
- package/dist/solutions-components/{p-080249de.js → p-38544b17.js} +1 -1
- package/dist/solutions-components/{p-a0be72b6.entry.js → p-3a73ee38.entry.js} +1 -1
- package/dist/solutions-components/{p-532b7378.entry.js → p-3ad4426b.entry.js} +1 -1
- package/dist/solutions-components/{p-5752785e.entry.js → p-3c10901a.entry.js} +1 -1
- package/dist/solutions-components/{p-6e406a7b.js → p-3c7d0eb9.js} +1 -1
- package/dist/solutions-components/{p-bf23173c.js → p-411b73a7.js} +1 -1
- package/dist/solutions-components/{p-76d60881.entry.js → p-429e1284.entry.js} +1 -1
- package/dist/solutions-components/{p-f3d277c2.entry.js → p-42f0e1fa.entry.js} +1 -1
- package/dist/solutions-components/{p-1fc220c7.js → p-4416d288.js} +1 -1
- package/dist/solutions-components/{p-663a433a.entry.js → p-451b16b3.entry.js} +2 -2
- package/dist/solutions-components/{p-b5d1b979.js → p-4566438a.js} +3 -3
- package/dist/solutions-components/{p-7a06dcdf.js → p-4647b2a6.js} +1 -1
- package/dist/solutions-components/{p-75fbe76c.js → p-480d0789.js} +1 -1
- package/dist/solutions-components/p-49b02dda.entry.js +6 -0
- package/dist/solutions-components/{p-722ae773.js → p-49fb1bfa.js} +2 -2
- package/dist/solutions-components/{p-17183100.js → p-4abf1c34.js} +1 -1
- package/dist/solutions-components/p-4ae36626.js +6 -0
- package/dist/solutions-components/{p-5c3fd315.entry.js → p-4bff69aa.entry.js} +1 -1
- package/dist/solutions-components/{p-f8f18a94.entry.js → p-4ccdac24.entry.js} +1 -1
- package/dist/solutions-components/{p-a3a64af2.entry.js → p-4d402bcf.entry.js} +1 -1
- package/dist/solutions-components/{p-7e82a730.js → p-4d8fc031.js} +1 -1
- package/dist/solutions-components/{p-1c720ed5.entry.js → p-4d99cb49.entry.js} +1 -1
- package/dist/solutions-components/p-4fbadb84.entry.js +6 -0
- package/dist/solutions-components/{p-e0276e26.entry.js → p-5268d845.entry.js} +2 -2
- package/dist/solutions-components/{p-f3f09834.js → p-5e12026e.js} +1 -1
- package/dist/solutions-components/p-5e832d65.entry.js +6 -0
- package/dist/solutions-components/{p-ffee4847.entry.js → p-5fe99315.entry.js} +1 -1
- package/dist/solutions-components/{p-d6208a47.js → p-6105d57c.js} +1 -1
- package/dist/solutions-components/{p-f3dfb34f.entry.js → p-613315a7.entry.js} +1 -1
- package/dist/solutions-components/{p-0d97c2c5.entry.js → p-62eba559.entry.js} +1 -1
- package/dist/solutions-components/{p-40235cb7.entry.js → p-63fa7791.entry.js} +1 -1
- package/dist/solutions-components/{p-cfccae7c.js → p-6604ac77.js} +1 -1
- package/dist/solutions-components/{p-9b1766ef.entry.js → p-674be06c.entry.js} +1 -1
- package/dist/solutions-components/{p-a4aef40c.entry.js → p-67ff8e9a.entry.js} +1 -1
- package/dist/solutions-components/{p-16df3a9e.entry.js → p-685257d1.entry.js} +1 -1
- package/dist/solutions-components/{p-4647c429.js → p-68e0adcf.js} +1 -1
- package/dist/solutions-components/{p-fc8338c6.entry.js → p-68e84199.entry.js} +1 -1
- package/dist/solutions-components/{p-aa3092cf.js → p-69763854.js} +1 -1
- package/dist/solutions-components/{p-e31754c8.js → p-6ae45648.js} +1 -1
- package/dist/solutions-components/{p-98013072.entry.js → p-6cce7009.entry.js} +1 -1
- package/dist/solutions-components/{p-34cacf32.js → p-6d511162.js} +1 -1
- package/dist/solutions-components/{p-337acb3c.js → p-727596e6.js} +1 -1
- package/dist/solutions-components/{p-b170916e.js → p-73100e79.js} +2 -2
- package/dist/solutions-components/{p-23662977.entry.js → p-734bc1b0.entry.js} +2 -2
- package/dist/solutions-components/{p-f3626331.entry.js → p-752ece4a.entry.js} +2 -2
- package/dist/solutions-components/{p-ecdd587c.entry.js → p-75e2a322.entry.js} +3 -3
- package/dist/solutions-components/{p-ca33fa09.entry.js → p-787203af.entry.js} +1 -1
- package/dist/solutions-components/{p-a9fc934d.js → p-79110824.js} +1 -1
- package/dist/solutions-components/{p-b82179c0.js → p-793cad54.js} +1 -1
- package/dist/solutions-components/{p-0250dec5.js → p-797aa505.js} +1 -1
- package/dist/solutions-components/{p-133de052.entry.js → p-7ebd34df.entry.js} +1 -1
- package/dist/solutions-components/{p-8934e858.entry.js → p-809b7e47.entry.js} +2 -2
- package/dist/solutions-components/{p-ca97465b.js → p-83fd31d5.js} +1 -1
- package/dist/solutions-components/{p-2e1f7c0e.entry.js → p-84378c8d.entry.js} +2 -2
- package/dist/solutions-components/p-864b1d72.entry.js +6 -0
- package/dist/solutions-components/{p-50ea26de.entry.js → p-8b47b607.entry.js} +1 -1
- package/dist/solutions-components/{p-f4e91113.js → p-8d49a084.js} +1 -1
- package/dist/solutions-components/{p-f84848b0.entry.js → p-8fabb8a4.entry.js} +1 -1
- package/dist/solutions-components/p-8fc072ca.entry.js +6 -0
- package/dist/solutions-components/{p-29602eff.entry.js → p-96c2ed64.entry.js} +1 -1
- package/dist/solutions-components/{p-b42bde59.entry.js → p-978d936a.entry.js} +1 -1
- package/dist/solutions-components/{p-79ba73cb.js → p-981e9549.js} +1 -1
- package/dist/solutions-components/{p-02714171.entry.js → p-98308b13.entry.js} +2 -2
- package/dist/solutions-components/p-99c5701d.entry.js +6 -0
- package/dist/solutions-components/{p-fe68d502.js → p-9cbfd8cd.js} +1 -1
- package/dist/solutions-components/{p-8f8fe5d0.entry.js → p-a09c8edf.entry.js} +1 -1
- package/dist/solutions-components/p-a2d3df14.entry.js +6 -0
- package/dist/solutions-components/{p-ac6a3e13.js → p-a5272d7e.js} +1 -1
- package/dist/solutions-components/p-a5c5b24d.js +6 -0
- package/dist/solutions-components/{p-5d9ad152.entry.js → p-a5e93c7e.entry.js} +1 -1
- package/dist/solutions-components/{p-07b31dc9.js → p-a6bb4148.js} +1 -1
- package/dist/solutions-components/{p-11b59592.entry.js → p-a8c9ac0b.entry.js} +2 -2
- package/dist/solutions-components/{p-41f7bc94.entry.js → p-a9bd945b.entry.js} +1 -1
- package/dist/solutions-components/p-ab006ace.js +21 -0
- package/dist/solutions-components/{p-634835fe.js → p-abdd289e.js} +1 -1
- package/dist/solutions-components/{p-43e67b3c.entry.js → p-aca29f67.entry.js} +2 -2
- package/dist/solutions-components/{p-8118146c.entry.js → p-ad96cd8b.entry.js} +1 -1
- package/dist/solutions-components/{p-8772a573.js → p-af1bb992.js} +1 -1
- package/dist/solutions-components/{p-36eb8399.js → p-b1b768f7.js} +4 -4
- package/dist/solutions-components/{p-dd37c504.js → p-b29677ca.js} +1 -1
- package/dist/solutions-components/{p-82b4ab94.js → p-b2c5e62b.js} +1 -1
- package/dist/solutions-components/{p-db436a77.entry.js → p-b326b592.entry.js} +1 -1
- package/dist/solutions-components/{p-a4772574.js → p-b7285bd5.js} +1 -1
- package/dist/solutions-components/{p-8b5b4662.js → p-b8959537.js} +1 -1
- package/dist/solutions-components/p-ba56035f.entry.js +6 -0
- package/dist/solutions-components/{p-c21f578f.js → p-baf4cb37.js} +1 -1
- package/dist/solutions-components/{p-799c3f19.js → p-bfebff0e.js} +1 -1
- package/dist/solutions-components/p-c0ed2b83.entry.js +6 -0
- package/dist/solutions-components/p-c0f97ed2.entry.js +6 -0
- package/dist/solutions-components/{p-4af32c75.js → p-c1cf3ebc.js} +1 -1
- package/dist/solutions-components/{p-cfb83693.js → p-c3190f85.js} +1 -1
- package/dist/solutions-components/{p-0511c98c.js → p-c4ebb5d1.js} +1 -1
- package/dist/solutions-components/p-c56fd16c.entry.js +11 -0
- package/dist/solutions-components/{p-2d1b8cfa.js → p-c6b9a129.js} +1 -1
- package/dist/solutions-components/{p-1cb4c542.entry.js → p-c7e7da9a.entry.js} +1 -1
- package/dist/solutions-components/{p-d8b3d156.entry.js → p-ca4023f4.entry.js} +1 -1
- package/dist/solutions-components/p-cb1d29d4.entry.js +17 -0
- package/dist/solutions-components/p-cc88bb42.entry.js +6 -0
- package/dist/solutions-components/{p-034d43fb.js → p-cdee3846.js} +1 -1
- package/dist/solutions-components/{p-c5cb8804.js → p-cfb3d66a.js} +1 -1
- package/dist/solutions-components/{p-ebbeec9f.entry.js → p-d2d7d6b4.entry.js} +2 -2
- package/dist/solutions-components/{p-dd071507.js → p-d44e2fd7.js} +1 -1
- package/dist/solutions-components/{p-48a5ae32.entry.js → p-d50f34c4.entry.js} +1 -1
- package/dist/solutions-components/{p-5953ebe8.entry.js → p-d9061e5d.entry.js} +1 -1
- package/dist/solutions-components/{p-414240b2.js → p-d9a59fcc.js} +1 -1
- package/dist/solutions-components/{p-24286e8c.entry.js → p-db69f4ba.entry.js} +1 -1
- package/dist/solutions-components/{p-ede84883.js → p-de281b08.js} +2 -2
- package/dist/solutions-components/{p-a11fca14.js → p-df118036.js} +1 -1
- package/dist/solutions-components/p-e274f3b0.entry.js +23 -0
- package/dist/solutions-components/p-e3061220.entry.js +6 -0
- package/dist/solutions-components/{p-4613e205.js → p-e6d4bdce.js} +1 -1
- package/dist/solutions-components/{p-3c5d3b4a.js → p-e6dfc80f.js} +1 -1
- package/dist/solutions-components/{p-92ea9e81.js → p-e834d132.js} +1 -1
- package/dist/solutions-components/{p-f9eb2f2d.js → p-ee4e5212.js} +1 -1
- package/dist/solutions-components/{p-efce2e85.js → p-ef05dea5.js} +1 -1
- package/dist/solutions-components/{p-5fd1eb64.js → p-f0d68a3f.js} +2 -2
- package/dist/solutions-components/p-f17941f1.entry.js +6 -0
- package/dist/solutions-components/{p-9e3b8632.entry.js → p-f1e6ce96.entry.js} +1 -1
- package/dist/solutions-components/p-f54f3719.entry.js +17 -0
- package/dist/solutions-components/{p-fdb1ace8.entry.js → p-fb1c6811.entry.js} +2 -2
- package/dist/solutions-components/p-fec77450.js +21 -0
- package/dist/solutions-components/{p-50764143.entry.js → p-ff460d05.entry.js} +3 -3
- package/dist/solutions-components/{p-d1ca57f3.entry.js → p-ff7c9bc3.entry.js} +1 -1
- package/dist/solutions-components/{p-0b47b407.js → p-ffa2c430.js} +1 -1
- package/dist/solutions-components/{p-89520d31.entry.js → p-ffbed9b2.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +4 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +159 -11
- package/dist/types/components/delete-button/delete-button.d.ts +120 -0
- package/dist/types/components/feature-list/feature-list.d.ts +128 -0
- package/dist/types/components/info-card/info-card.d.ts +19 -0
- package/dist/types/components/layer-list/layer-list.d.ts +133 -0
- package/dist/types/components/layer-table/layer-table.d.ts +12 -40
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +5 -1
- package/dist/types/components.d.ts +269 -11
- package/dist/types/preact.d.ts +15 -1
- package/dist/types/utils/interfaces.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-filter_2.cjs.entry.js +0 -237
- package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -197
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -184
- package/dist/cjs/resources-55ba2752.js +0 -29
- package/dist/esm/calcite-filter_2.entry.js +0 -232
- package/dist/esm/calcite-handle.entry.js +0 -180
- package/dist/esm/resources-221791b0.js +0 -26
- package/dist/solutions-components/p-0200864c.entry.js +0 -11
- package/dist/solutions-components/p-02fad071.entry.js +0 -6
- package/dist/solutions-components/p-04f05bc5.entry.js +0 -6
- package/dist/solutions-components/p-166d5bcc.entry.js +0 -6
- package/dist/solutions-components/p-1711c535.entry.js +0 -6
- package/dist/solutions-components/p-1f88a556.entry.js +0 -6
- package/dist/solutions-components/p-2ddd9cf8.entry.js +0 -6
- package/dist/solutions-components/p-3cf20613.entry.js +0 -17
- package/dist/solutions-components/p-43546966.entry.js +0 -6
- package/dist/solutions-components/p-6b943f52.js +0 -21
- package/dist/solutions-components/p-79f95735.entry.js +0 -11
- package/dist/solutions-components/p-7f333e23.js +0 -11
- package/dist/solutions-components/p-897037f0.entry.js +0 -6
- package/dist/solutions-components/p-8c7fc78f.entry.js +0 -11
- package/dist/solutions-components/p-941ab8c0.js +0 -6
- package/dist/solutions-components/p-96974e5f.js +0 -6
- package/dist/solutions-components/p-a32b61ee.entry.js +0 -6
- package/dist/solutions-components/p-ad9fbb2a.entry.js +0 -6
- package/dist/solutions-components/p-bacc9b0d.entry.js +0 -6
- package/dist/solutions-components/p-c252997f.entry.js +0 -17
- package/dist/solutions-components/p-c5db42ad.entry.js +0 -6
- package/dist/solutions-components/p-e89c5860.entry.js +0 -6
- package/dist/solutions-components/p-eb9b003a.entry.js +0 -11
- package/dist/solutions-components/p-eff7f407.entry.js +0 -6
@@ -3,262 +3,343 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { r as registerInstance, c as createEvent, h,
|
7
|
-
import {
|
8
|
-
import { s as slotChangeGetAssignedElements, u as slotChangeHasAssignedElement, f as focusFirstTabbable, t as toAriaBoolean, z as getFirstTabbable, a as getElementDir } from './dom-492b1b24.js';
|
9
|
-
import { a as setComponentLoaded, s as setUpLoadableComponent, c as componentFocusable } from './loadable-c3685e51.js';
|
10
|
-
import { c as connectLocalized, d as disconnectLocalized, n as numberStringFormatter } from './locale-8cfa3086.js';
|
11
|
-
import { c as createObserver } from './observers-8ce200f2.js';
|
12
|
-
import { u as updateMessages, c as connectMessages, s as setUpMessages, d as disconnectMessages } from './t9n-3c5e55ab.js';
|
13
|
-
import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, g as geActionDimensions, a as overflowActions, E as ExpandToggle, b as getOverflowCount } from './ExpandToggle-540998b5.js';
|
14
|
-
import { d as debounce } from './debounce-229b1a22.js';
|
6
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement, H as Host } from './index-7183ce4a.js';
|
7
|
+
import { f as filter } from './filter-8b806ae6.js';
|
15
8
|
import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive } from './interactive-20bb1dc4.js';
|
16
|
-
import {
|
9
|
+
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable-c3685e51.js';
|
10
|
+
import { c as connectLocalized, d as disconnectLocalized, n as numberStringFormatter } from './locale-6107ef11.js';
|
11
|
+
import { u as updateMessages, s as setUpMessages, c as connectMessages, d as disconnectMessages } from './t9n-f16911e7.js';
|
12
|
+
import { d as debounce } from './debounce-229b1a22.js';
|
13
|
+
import { t as toAriaBoolean, u as slotChangeHasAssignedElement, B as getFirstTabbable, a as getElementDir } from './dom-8f926f33.js';
|
14
|
+
import { c as createObserver } from './observers-8ce200f2.js';
|
15
|
+
import { u as updateListItemChildren, a as getListItemChildren, M as MAX_COLUMNS, g as getDepth, I as ICONS$2, C as CSS$4, S as SLOTS$2, b as getListItemChildLists } from './utils-86d242a6.js';
|
17
16
|
import { d as dragActive, a as disconnectSortableComponent, c as connectSortableComponent } from './sortableComponent-65956286.js';
|
18
|
-
import
|
17
|
+
import './browser-b4c16201.js';
|
18
|
+
import './key-af303047.js';
|
19
19
|
import './guid-36c6c6a5.js';
|
20
20
|
import './resources-cdc36705.js';
|
21
|
-
import './key-af303047.js';
|
22
|
-
import './resources-4bcfc016.js';
|
23
|
-
import './resources-1a8d4d77.js';
|
24
|
-
import './browser-b4c16201.js';
|
25
21
|
|
26
22
|
/*!
|
27
23
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
28
24
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
29
25
|
* v2.0.0
|
30
26
|
*/
|
31
|
-
const CSS$
|
32
|
-
|
27
|
+
const CSS$3 = {
|
28
|
+
container: "container",
|
29
|
+
searchIcon: "search-icon",
|
33
30
|
};
|
34
|
-
const
|
35
|
-
|
36
|
-
|
37
|
-
expandTooltip: "expand-tooltip",
|
31
|
+
const ICONS$1 = {
|
32
|
+
search: "search",
|
33
|
+
close: "x",
|
38
34
|
};
|
35
|
+
const DEBOUNCE_TIMEOUT = 250;
|
39
36
|
|
40
|
-
const
|
37
|
+
const filterCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;inline-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{display:flex;inline-size:100%;padding:0.5rem}label{position:relative;margin-inline:0.25rem;margin-block:0px;display:flex;inline-size:100%;align-items:center;overflow:hidden}input[type=text]{margin-block-end:0.25rem;inline-size:100%;border-style:none;background-color:transparent;padding-block:0.25rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);padding-inline-end:0.25rem;padding-inline-start:1.5rem;transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{inline-size:100%}.search-icon{position:absolute;display:flex;color:var(--calcite-color-text-2);inset-inline-start:0;transition:inset-inline-start var(--calcite-animation-timing), inset-inline-end var(--calcite-animation-timing), opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-color-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{display:flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-color-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-color-text-1)}:host([hidden]){display:none}[hidden]{display:none}";
|
41
38
|
|
42
|
-
const
|
39
|
+
const Filter = class {
|
43
40
|
constructor(hostRef) {
|
44
41
|
registerInstance(this, hostRef);
|
45
|
-
this.
|
46
|
-
this.mutationObserver = createObserver("mutation", () => {
|
47
|
-
const { el, expanded } = this;
|
48
|
-
toggleChildActionText({ el, expanded });
|
49
|
-
this.overflowActions();
|
50
|
-
});
|
51
|
-
this.resizeObserver = createObserver("resize", (entries) => this.resizeHandlerEntries(entries));
|
42
|
+
this.calciteFilterChange = createEvent(this, "calciteFilterChange", 6);
|
52
43
|
// --------------------------------------------------------------------------
|
53
44
|
//
|
54
45
|
// Private Methods
|
55
46
|
//
|
56
47
|
// --------------------------------------------------------------------------
|
57
|
-
this.
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
group.menuOpen = false;
|
63
|
-
}
|
64
|
-
});
|
65
|
-
}
|
66
|
-
};
|
67
|
-
this.resizeHandlerEntries = (entries) => {
|
68
|
-
entries.forEach(this.resizeHandler);
|
48
|
+
this.filterDebounced = debounce((value, emit = false, onFilter) => this.updateFiltered(filter(this.items, value), emit, onFilter), DEBOUNCE_TIMEOUT);
|
49
|
+
this.inputHandler = (event) => {
|
50
|
+
const target = event.target;
|
51
|
+
this.value = target.value;
|
52
|
+
this.filterDebounced(target.value, true);
|
69
53
|
};
|
70
|
-
this.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
(layout === "vertical" && !height) ||
|
78
|
-
(layout === "horizontal" && !width)) {
|
79
|
-
return;
|
54
|
+
this.keyDownHandler = (event) => {
|
55
|
+
if (event.key === "Escape") {
|
56
|
+
this.clear();
|
57
|
+
event.preventDefault();
|
58
|
+
}
|
59
|
+
if (event.key === "Enter") {
|
60
|
+
event.preventDefault();
|
80
61
|
}
|
81
|
-
const actions = queryActions(el);
|
82
|
-
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
83
|
-
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
84
|
-
this.setGroupLayout(actionGroups);
|
85
|
-
const groupCount = this.hasActionsEnd || this.hasBottomActions || !expandDisabled
|
86
|
-
? actionGroups.length + 1
|
87
|
-
: actionGroups.length;
|
88
|
-
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
89
|
-
const overflowCount = getOverflowCount({
|
90
|
-
layout,
|
91
|
-
actionCount,
|
92
|
-
actionHeight,
|
93
|
-
actionWidth,
|
94
|
-
height,
|
95
|
-
width,
|
96
|
-
groupCount,
|
97
|
-
});
|
98
|
-
overflowActions({
|
99
|
-
actionGroups,
|
100
|
-
expanded,
|
101
|
-
overflowCount,
|
102
|
-
});
|
103
|
-
}, overflowActionsDebounceInMs);
|
104
|
-
this.toggleExpand = () => {
|
105
|
-
this.expanded = !this.expanded;
|
106
|
-
this.calciteActionBarToggle.emit();
|
107
|
-
};
|
108
|
-
this.setExpandToggleRef = (el) => {
|
109
|
-
this.expandToggleEl = el;
|
110
|
-
};
|
111
|
-
this.handleDefaultSlotChange = (event) => {
|
112
|
-
const groups = slotChangeGetAssignedElements(event).filter((el) => el.matches("calcite-action-group"));
|
113
|
-
this.setGroupLayout(groups);
|
114
|
-
};
|
115
|
-
this.handleActionsEndSlotChange = (event) => {
|
116
|
-
this.hasActionsEnd = slotChangeHasAssignedElement(event);
|
117
|
-
};
|
118
|
-
this.handleBottomActionsSlotChange = (event) => {
|
119
|
-
this.hasBottomActions = slotChangeHasAssignedElement(event);
|
120
62
|
};
|
121
|
-
this.
|
122
|
-
|
123
|
-
this.
|
63
|
+
this.clear = () => {
|
64
|
+
this.value = "";
|
65
|
+
this.filterDebounced("", true);
|
66
|
+
this.setFocus();
|
124
67
|
};
|
125
|
-
this.
|
126
|
-
this.
|
127
|
-
this.
|
128
|
-
this.
|
129
|
-
this.
|
130
|
-
this.
|
131
|
-
this.scale = undefined;
|
68
|
+
this.items = [];
|
69
|
+
this.disabled = false;
|
70
|
+
this.filteredItems = [];
|
71
|
+
this.placeholder = undefined;
|
72
|
+
this.scale = "m";
|
73
|
+
this.value = "";
|
132
74
|
this.messages = undefined;
|
133
75
|
this.messageOverrides = undefined;
|
134
76
|
this.effectiveLocale = undefined;
|
135
|
-
this.hasActionsEnd = false;
|
136
|
-
this.hasBottomActions = false;
|
137
|
-
this.expandTooltip = undefined;
|
138
77
|
this.defaultMessages = undefined;
|
139
78
|
}
|
140
|
-
|
141
|
-
this.
|
142
|
-
}
|
143
|
-
expandedHandler() {
|
144
|
-
const { el, expanded } = this;
|
145
|
-
toggleChildActionText({ el, expanded });
|
146
|
-
this.overflowActions();
|
147
|
-
}
|
148
|
-
layoutHandler() {
|
149
|
-
this.updateGroups();
|
150
|
-
}
|
151
|
-
overflowDisabledHandler(overflowActionsDisabled) {
|
152
|
-
var _a, _b;
|
153
|
-
if (overflowActionsDisabled) {
|
154
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
155
|
-
return;
|
156
|
-
}
|
157
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(this.el);
|
158
|
-
this.overflowActions();
|
79
|
+
watchItemsHandler() {
|
80
|
+
this.filterDebounced(this.value);
|
159
81
|
}
|
160
82
|
onMessagesChange() {
|
161
83
|
/* wired up by t9n util */
|
162
84
|
}
|
85
|
+
valueHandler(value) {
|
86
|
+
this.filterDebounced(value);
|
87
|
+
}
|
163
88
|
effectiveLocaleChange() {
|
164
89
|
updateMessages(this, this.effectiveLocale);
|
165
90
|
}
|
166
|
-
|
91
|
+
//--------------------------------------------------------------------------
|
167
92
|
//
|
168
93
|
// Lifecycle
|
169
94
|
//
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
this.overflowActions();
|
95
|
+
//--------------------------------------------------------------------------
|
96
|
+
async componentWillLoad() {
|
97
|
+
setUpLoadableComponent(this);
|
98
|
+
this.updateFiltered(filter(this.items, this.value));
|
99
|
+
await setUpMessages(this);
|
176
100
|
}
|
177
101
|
connectedCallback() {
|
178
|
-
|
179
|
-
const { el, expanded } = this;
|
102
|
+
connectInteractive(this);
|
180
103
|
connectLocalized(this);
|
181
104
|
connectMessages(this);
|
182
|
-
toggleChildActionText({ el, expanded });
|
183
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });
|
184
|
-
if (!this.overflowActionsDisabled) {
|
185
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
|
186
|
-
}
|
187
|
-
this.overflowActions();
|
188
|
-
connectConditionalSlotComponent(this);
|
189
105
|
}
|
190
|
-
|
191
|
-
|
192
|
-
await setUpMessages(this);
|
106
|
+
componentDidRender() {
|
107
|
+
updateHostInteraction(this);
|
193
108
|
}
|
194
109
|
disconnectedCallback() {
|
195
|
-
|
196
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
197
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
198
|
-
disconnectConditionalSlotComponent(this);
|
110
|
+
disconnectInteractive(this);
|
199
111
|
disconnectLocalized(this);
|
200
112
|
disconnectMessages(this);
|
113
|
+
this.filterDebounced.cancel();
|
114
|
+
}
|
115
|
+
componentDidLoad() {
|
116
|
+
setComponentLoaded(this);
|
201
117
|
}
|
202
118
|
// --------------------------------------------------------------------------
|
203
119
|
//
|
204
|
-
// Methods
|
120
|
+
// Public Methods
|
205
121
|
//
|
206
122
|
// --------------------------------------------------------------------------
|
207
123
|
/**
|
208
|
-
*
|
124
|
+
* Performs a filter on the component.
|
125
|
+
*
|
126
|
+
* This method can be useful because filtering is delayed and asynchronous.
|
209
127
|
*
|
210
|
-
* @
|
128
|
+
* @param {string} value - The filter text value.
|
129
|
+
* @returns {Promise<void>}
|
211
130
|
*/
|
212
|
-
async
|
213
|
-
|
131
|
+
async filter(value = this.value) {
|
132
|
+
return new Promise((resolve) => {
|
133
|
+
this.value = value;
|
134
|
+
this.filterDebounced(value, false, resolve);
|
135
|
+
});
|
214
136
|
}
|
215
|
-
/**
|
216
|
-
* Sets focus on the component's first focusable element.
|
217
|
-
*/
|
137
|
+
/** Sets focus on the component. */
|
218
138
|
async setFocus() {
|
139
|
+
var _a;
|
219
140
|
await componentFocusable(this);
|
220
|
-
|
141
|
+
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
221
142
|
}
|
222
|
-
|
223
|
-
this.
|
224
|
-
|
225
|
-
|
226
|
-
|
143
|
+
updateFiltered(filtered, emit = false, callback) {
|
144
|
+
this.filteredItems = filtered;
|
145
|
+
if (emit) {
|
146
|
+
this.calciteFilterChange.emit();
|
147
|
+
}
|
148
|
+
callback === null || callback === void 0 ? void 0 : callback();
|
227
149
|
}
|
228
150
|
// --------------------------------------------------------------------------
|
229
151
|
//
|
230
152
|
// Render Methods
|
231
153
|
//
|
232
154
|
// --------------------------------------------------------------------------
|
233
|
-
|
234
|
-
const {
|
235
|
-
|
155
|
+
render() {
|
156
|
+
const { disabled, scale } = this;
|
157
|
+
return (h(Fragment, null, h("div", { class: CSS$3.container }, h("label", null, h("calcite-input", { clearable: true, disabled: disabled, icon: ICONS$1.search, label: this.messages.label, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
236
158
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
237
|
-
ref:
|
238
|
-
|
159
|
+
ref: (el) => {
|
160
|
+
this.textInput = el;
|
161
|
+
} })))));
|
162
|
+
}
|
163
|
+
static get delegatesFocus() { return true; }
|
164
|
+
static get assetsDirs() { return ["assets"]; }
|
165
|
+
get el() { return getElement(this); }
|
166
|
+
static get watchers() { return {
|
167
|
+
"items": ["watchItemsHandler"],
|
168
|
+
"messageOverrides": ["onMessagesChange"],
|
169
|
+
"value": ["valueHandler"],
|
170
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
171
|
+
}; }
|
172
|
+
};
|
173
|
+
Filter.style = filterCss;
|
174
|
+
|
175
|
+
/*!
|
176
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
177
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
178
|
+
* v2.0.0
|
179
|
+
*/
|
180
|
+
const CSS$2 = {
|
181
|
+
handle: "handle",
|
182
|
+
handleActivated: "handle--activated",
|
183
|
+
};
|
184
|
+
const ICONS = {
|
185
|
+
drag: "drag",
|
186
|
+
};
|
187
|
+
|
188
|
+
const handleCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.handle{display:flex;align-items:center;justify-content:center;align-self:stretch;border-style:none;background-color:transparent;outline-color:transparent;color:var(--calcite-color-border-input);padding-block:0.75rem;padding-inline:0.25rem;line-height:0}.handle calcite-icon{color:inherit}:host(:not([disabled])) .handle{cursor:move}:host(:not([disabled])) .handle:hover{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:not([disabled])) .handle:focus{color:var(--calcite-color-text-1);outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host(:not([disabled])) .handle--activated{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";
|
189
|
+
|
190
|
+
const Handle = class {
|
191
|
+
constructor(hostRef) {
|
192
|
+
registerInstance(this, hostRef);
|
193
|
+
this.calciteHandleNudge = createEvent(this, "calciteHandleNudge", 6);
|
194
|
+
this.calciteInternalHandleChange = createEvent(this, "calciteInternalHandleChange", 6);
|
195
|
+
this.handleKeyDown = (event) => {
|
196
|
+
if (this.disabled) {
|
197
|
+
return;
|
198
|
+
}
|
199
|
+
switch (event.key) {
|
200
|
+
case " ":
|
201
|
+
this.activated = !this.activated;
|
202
|
+
event.preventDefault();
|
203
|
+
break;
|
204
|
+
case "ArrowUp":
|
205
|
+
if (!this.activated) {
|
206
|
+
return;
|
207
|
+
}
|
208
|
+
event.preventDefault();
|
209
|
+
this.calciteHandleNudge.emit({ direction: "up" });
|
210
|
+
break;
|
211
|
+
case "ArrowDown":
|
212
|
+
if (!this.activated) {
|
213
|
+
return;
|
214
|
+
}
|
215
|
+
event.preventDefault();
|
216
|
+
this.calciteHandleNudge.emit({ direction: "down" });
|
217
|
+
break;
|
218
|
+
}
|
219
|
+
};
|
220
|
+
this.handleBlur = () => {
|
221
|
+
if (this.disabled) {
|
222
|
+
return;
|
223
|
+
}
|
224
|
+
this.activated = false;
|
225
|
+
};
|
226
|
+
this.activated = false;
|
227
|
+
this.disabled = false;
|
228
|
+
this.dragHandle = undefined;
|
229
|
+
this.messages = undefined;
|
230
|
+
this.setPosition = undefined;
|
231
|
+
this.setSize = undefined;
|
232
|
+
this.label = undefined;
|
233
|
+
this.messageOverrides = undefined;
|
234
|
+
this.effectiveLocale = undefined;
|
235
|
+
this.defaultMessages = undefined;
|
236
|
+
}
|
237
|
+
handleAriaTextChange() {
|
238
|
+
const message = this.getAriaText("live");
|
239
|
+
if (message) {
|
240
|
+
this.calciteInternalHandleChange.emit({
|
241
|
+
message,
|
242
|
+
});
|
243
|
+
}
|
244
|
+
}
|
245
|
+
onMessagesChange() {
|
246
|
+
/* wired up by t9n util */
|
247
|
+
}
|
248
|
+
//--------------------------------------------------------------------------
|
249
|
+
//
|
250
|
+
// Lifecycle
|
251
|
+
//
|
252
|
+
//--------------------------------------------------------------------------
|
253
|
+
connectedCallback() {
|
254
|
+
connectInteractive(this);
|
255
|
+
connectMessages(this);
|
256
|
+
connectLocalized(this);
|
257
|
+
}
|
258
|
+
async componentWillLoad() {
|
259
|
+
setUpLoadableComponent(this);
|
260
|
+
await setUpMessages(this);
|
261
|
+
}
|
262
|
+
componentDidLoad() {
|
263
|
+
setComponentLoaded(this);
|
264
|
+
}
|
265
|
+
componentDidRender() {
|
266
|
+
updateHostInteraction(this);
|
267
|
+
}
|
268
|
+
disconnectedCallback() {
|
269
|
+
disconnectInteractive(this);
|
270
|
+
disconnectMessages(this);
|
271
|
+
disconnectLocalized(this);
|
272
|
+
}
|
273
|
+
effectiveLocaleChange() {
|
274
|
+
updateMessages(this, this.effectiveLocale);
|
239
275
|
}
|
276
|
+
// --------------------------------------------------------------------------
|
277
|
+
//
|
278
|
+
// Methods
|
279
|
+
//
|
280
|
+
// --------------------------------------------------------------------------
|
281
|
+
/** Sets focus on the component. */
|
282
|
+
async setFocus() {
|
283
|
+
var _a;
|
284
|
+
await componentFocusable(this);
|
285
|
+
(_a = this.handleButton) === null || _a === void 0 ? void 0 : _a.focus();
|
286
|
+
}
|
287
|
+
// --------------------------------------------------------------------------
|
288
|
+
//
|
289
|
+
// Private Methods
|
290
|
+
//
|
291
|
+
// --------------------------------------------------------------------------
|
292
|
+
getAriaText(type) {
|
293
|
+
const { setPosition, setSize, label, messages, activated } = this;
|
294
|
+
if (!messages || !label || typeof setSize !== "number" || typeof setPosition !== "number") {
|
295
|
+
return null;
|
296
|
+
}
|
297
|
+
const text = type === "label"
|
298
|
+
? activated
|
299
|
+
? messages.dragHandleChange
|
300
|
+
: messages.dragHandleIdle
|
301
|
+
: activated
|
302
|
+
? messages.dragHandleActive
|
303
|
+
: messages.dragHandleCommit;
|
304
|
+
const replacePosition = text.replace("{position}", setPosition.toString());
|
305
|
+
const replaceLabel = replacePosition.replace("{itemLabel}", label);
|
306
|
+
return replaceLabel.replace("{total}", setSize.toString());
|
307
|
+
}
|
308
|
+
// --------------------------------------------------------------------------
|
309
|
+
//
|
310
|
+
// Render Methods
|
311
|
+
//
|
312
|
+
// --------------------------------------------------------------------------
|
240
313
|
render() {
|
241
|
-
|
314
|
+
var _a;
|
315
|
+
return (
|
316
|
+
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
317
|
+
h("span", { "aria-disabled": this.disabled ? toAriaBoolean(this.disabled) : null, "aria-label": this.disabled ? null : this.getAriaText("label"), "aria-pressed": this.disabled ? null : toAriaBoolean(this.activated), class: { [CSS$2.handle]: true, [CSS$2.handleActivated]: !this.disabled && this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabIndex: this.disabled ? null : 0, title: (_a = this.messages) === null || _a === void 0 ? void 0 : _a.dragHandle,
|
318
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
319
|
+
ref: (el) => {
|
320
|
+
this.handleButton = el;
|
321
|
+
} }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
242
322
|
}
|
243
323
|
static get assetsDirs() { return ["assets"]; }
|
244
324
|
get el() { return getElement(this); }
|
245
325
|
static get watchers() { return {
|
246
|
-
"
|
247
|
-
"
|
248
|
-
"
|
249
|
-
"
|
326
|
+
"messages": ["handleAriaTextChange"],
|
327
|
+
"label": ["handleAriaTextChange"],
|
328
|
+
"activated": ["handleAriaTextChange"],
|
329
|
+
"setPosition": ["handleAriaTextChange"],
|
330
|
+
"setSize": ["handleAriaTextChange"],
|
250
331
|
"messageOverrides": ["onMessagesChange"],
|
251
332
|
"effectiveLocale": ["effectiveLocaleChange"]
|
252
333
|
}; }
|
253
334
|
};
|
254
|
-
|
335
|
+
Handle.style = handleCss;
|
255
336
|
|
256
337
|
/*!
|
257
338
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
258
339
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
259
340
|
* v2.0.0
|
260
341
|
*/
|
261
|
-
const CSS = {
|
342
|
+
const CSS$1 = {
|
262
343
|
container: "container",
|
263
344
|
table: "table",
|
264
345
|
scrim: "scrim",
|
@@ -268,11 +349,31 @@ const CSS = {
|
|
268
349
|
assistiveText: "assistive-text",
|
269
350
|
};
|
270
351
|
const debounceTimeout = 0;
|
271
|
-
const SLOTS = {
|
352
|
+
const SLOTS$1 = {
|
272
353
|
filterActionsStart: "filter-actions-start",
|
273
354
|
filterActionsEnd: "filter-actions-end",
|
274
355
|
};
|
275
356
|
|
357
|
+
/*!
|
358
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
359
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
360
|
+
* v2.0.0
|
361
|
+
*/
|
362
|
+
const CSS = {
|
363
|
+
container: "container",
|
364
|
+
actionsStart: "actions-start",
|
365
|
+
contentStart: "content-start",
|
366
|
+
content: "content",
|
367
|
+
contentEnd: "content-end",
|
368
|
+
actionsEnd: "actions-end",
|
369
|
+
};
|
370
|
+
const SLOTS = {
|
371
|
+
actionsStart: "actions-start",
|
372
|
+
contentStart: "content-start",
|
373
|
+
contentEnd: "content-end",
|
374
|
+
actionsEnd: "actions-end",
|
375
|
+
};
|
376
|
+
|
276
377
|
const listCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}.stack{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}::slotted(calcite-list-item){--tw-shadow:0 -1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 -1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:1px}::slotted(calcite-list-item:first-of-type){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item[data-filter]){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:0px}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-color-foreground-1)}.sticky-pos th{padding:0px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";
|
277
378
|
|
278
379
|
const listItemSelector = "calcite-list-item";
|
@@ -644,9 +745,9 @@ const List = class {
|
|
644
745
|
// --------------------------------------------------------------------------
|
645
746
|
render() {
|
646
747
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
647
|
-
return (h("div", { class: CSS.container }, this.dragEnabled ? (h("span", { "aria-live": "assertive", class: CSS.assistiveText }, this.assistiveText)) : null, this.renderItemAriaLive(), loading ? h("calcite-scrim", { class: CSS.scrim, loading: loading }) : null, h("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (h("thead", null, h("tr", { class: { [CSS.sticky]: true } }, h("th", { colSpan: MAX_COLUMNS }, h("calcite-stack", { class: CSS.stack }, h("slot", { name: SLOTS.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS
|
748
|
+
return (h("div", { class: CSS$1.container }, this.dragEnabled ? (h("span", { "aria-live": "assertive", class: CSS$1.assistiveText }, this.assistiveText)) : null, this.renderItemAriaLive(), loading ? h("calcite-scrim", { class: CSS$1.scrim, loading: loading }) : null, h("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$1.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (h("thead", null, h("tr", { class: { [CSS$1.sticky]: true } }, h("th", { colSpan: MAX_COLUMNS }, h("calcite-stack", { class: CSS$1.stack }, h("slot", { name: SLOTS$1.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS.actionsStart }), h("calcite-filter", { "aria-label": filterPlaceholder, disabled: disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilterChange, placeholder: filterPlaceholder, value: filterText,
|
648
749
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
649
|
-
ref: this.setFilterEl }), h("slot", { name: SLOTS.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS
|
750
|
+
ref: this.setFilterEl }), h("slot", { name: SLOTS$1.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS.actionsEnd })))))) : null, h("tbody", { class: CSS$1.tableContainer }, h("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
650
751
|
}
|
651
752
|
// --------------------------------------------------------------------------
|
652
753
|
//
|
@@ -659,7 +760,7 @@ const List = class {
|
|
659
760
|
locale: effectiveLocale,
|
660
761
|
numberingSystem,
|
661
762
|
};
|
662
|
-
return !parentListEl ? (h("div", { "aria-live": "polite", class: CSS.assistiveText }, filterEnabled && filterText && (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) ? (h("div", { key: "aria-filter-enabled" }, messages.filterEnabled)) : null, h("div", { key: "aria-item-count" }, messages.total.replace("{count}", numberStringFormatter.localize(enabledListItems.length.toString()))), enabledListItems.length ? (h("ol", { key: "aria-item-list" }, enabledListItems.map((item) => (h("li", null, item.label))))) : null)) : null;
|
763
|
+
return !parentListEl ? (h("div", { "aria-live": "polite", class: CSS$1.assistiveText }, filterEnabled && filterText && (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) ? (h("div", { key: "aria-filter-enabled" }, messages.filterEnabled)) : null, h("div", { key: "aria-item-count" }, messages.total.replace("{count}", numberStringFormatter.localize(enabledListItems.length.toString()))), enabledListItems.length ? (h("ol", { key: "aria-item-list" }, enabledListItems.map((item) => (h("li", null, item.label))))) : null)) : null;
|
663
764
|
}
|
664
765
|
connectObserver() {
|
665
766
|
var _a;
|
@@ -1054,65 +1155,65 @@ const ListItem = class {
|
|
1054
1155
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
1055
1156
|
return null;
|
1056
1157
|
}
|
1057
|
-
return (h("td", { class: CSS$
|
1158
|
+
return (h("td", { class: CSS$4.selectionContainer, key: "selection-container", onClick: this.itemClicked }, h("calcite-icon", { icon: selected
|
1058
1159
|
? selectionMode === "multiple"
|
1059
|
-
? ICONS.selectedMultiple
|
1060
|
-
: ICONS.selectedSingle
|
1061
|
-
: ICONS.unselected, scale: "s" })));
|
1160
|
+
? ICONS$2.selectedMultiple
|
1161
|
+
: ICONS$2.selectedSingle
|
1162
|
+
: ICONS$2.unselected, scale: "s" })));
|
1062
1163
|
}
|
1063
1164
|
renderDragHandle() {
|
1064
|
-
return this.dragHandle ? (h("td", { class: CSS$
|
1165
|
+
return this.dragHandle ? (h("td", { class: CSS$4.dragContainer, key: "drag-handle-container" }, h("calcite-handle", { disabled: this.dragDisabled, label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
1065
1166
|
}
|
1066
1167
|
renderOpen() {
|
1067
1168
|
const { el, open, openable, parentListEl } = this;
|
1068
1169
|
const dir = getElementDir(el);
|
1069
1170
|
const icon = openable
|
1070
1171
|
? open
|
1071
|
-
? ICONS.open
|
1172
|
+
? ICONS$2.open
|
1072
1173
|
: dir === "rtl"
|
1073
|
-
? ICONS.closedRTL
|
1074
|
-
: ICONS.closedLTR
|
1075
|
-
: ICONS.blank;
|
1174
|
+
? ICONS$2.closedRTL
|
1175
|
+
: ICONS$2.closedLTR
|
1176
|
+
: ICONS$2.blank;
|
1076
1177
|
const clickHandler = openable ? this.toggleOpen : this.itemClicked;
|
1077
|
-
return openable || (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (h("td", { class: CSS$
|
1178
|
+
return openable || (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (h("td", { class: CSS$4.openContainer, key: "open-container", onClick: clickHandler }, h("calcite-icon", { icon: icon, key: icon, scale: "s" }))) : null;
|
1078
1179
|
}
|
1079
1180
|
renderActionsStart() {
|
1080
1181
|
const { label, hasActionsStart } = this;
|
1081
|
-
return (h("td", { "aria-label": label, class: CSS$
|
1182
|
+
return (h("td", { "aria-label": label, class: CSS$4.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
1082
1183
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1083
|
-
ref: (el) => (this.actionsStartEl = el) }, h("slot", { name: SLOTS$
|
1184
|
+
ref: (el) => (this.actionsStartEl = el) }, h("slot", { name: SLOTS$2.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
1084
1185
|
}
|
1085
1186
|
renderActionsEnd() {
|
1086
1187
|
const { label, hasActionsEnd, closable, messages } = this;
|
1087
|
-
return (h("td", { "aria-label": label, class: CSS$
|
1188
|
+
return (h("td", { "aria-label": label, class: CSS$4.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
1088
1189
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1089
|
-
ref: (el) => (this.actionsEndEl = el) }, h("slot", { name: SLOTS$
|
1190
|
+
ref: (el) => (this.actionsEndEl = el) }, h("slot", { name: SLOTS$2.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (h("calcite-action", { appearance: "transparent", icon: ICONS$2.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
1090
1191
|
}
|
1091
1192
|
renderContentStart() {
|
1092
1193
|
const { hasContentStart } = this;
|
1093
|
-
return (h("div", { class: CSS$
|
1194
|
+
return (h("div", { class: CSS$4.contentStart, hidden: !hasContentStart }, h("slot", { name: SLOTS$2.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
1094
1195
|
}
|
1095
1196
|
renderCustomContent() {
|
1096
1197
|
const { hasCustomContent } = this;
|
1097
|
-
return (h("div", { class: CSS$
|
1198
|
+
return (h("div", { class: CSS$4.customContent, hidden: !hasCustomContent }, h("slot", { name: SLOTS$2.content, onSlotchange: this.handleContentSlotChange })));
|
1098
1199
|
}
|
1099
1200
|
renderContentEnd() {
|
1100
1201
|
const { hasContentEnd } = this;
|
1101
|
-
return (h("div", { class: CSS$
|
1202
|
+
return (h("div", { class: CSS$4.contentEnd, hidden: !hasContentEnd }, h("slot", { name: SLOTS$2.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
1102
1203
|
}
|
1103
1204
|
renderContentBottom() {
|
1104
1205
|
const { hasContentBottom, visualLevel } = this;
|
1105
|
-
return (h("div", { class: CSS$
|
1206
|
+
return (h("div", { class: CSS$4.contentBottom, hidden: !hasContentBottom, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, h("slot", { name: SLOTS$2.contentBottom, onSlotchange: this.handleContentBottomSlotChange })));
|
1106
1207
|
}
|
1107
1208
|
renderDefaultContainer() {
|
1108
1209
|
return (h("div", { class: {
|
1109
|
-
[CSS$
|
1110
|
-
[CSS$
|
1210
|
+
[CSS$4.nestedContainer]: true,
|
1211
|
+
[CSS$4.nestedContainerHidden]: this.openable && !this.open,
|
1111
1212
|
} }, h("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) })));
|
1112
1213
|
}
|
1113
1214
|
renderContentProperties() {
|
1114
1215
|
const { label, description, hasCustomContent } = this;
|
1115
|
-
return !hasCustomContent && (!!label || !!description) ? (h("div", { class: CSS$
|
1216
|
+
return !hasCustomContent && (!!label || !!description) ? (h("div", { class: CSS$4.content, key: "content" }, label ? (h("div", { class: CSS$4.label, key: "label" }, label)) : null, description ? (h("div", { class: CSS$4.description, key: "description" }, description)) : null)) : null;
|
1116
1217
|
}
|
1117
1218
|
renderContentContainer() {
|
1118
1219
|
const { description, label, selectionMode, hasCustomContent } = this;
|
@@ -1124,9 +1225,9 @@ const ListItem = class {
|
|
1124
1225
|
this.renderContentEnd(),
|
1125
1226
|
];
|
1126
1227
|
return (h("td", { "aria-label": label, class: {
|
1127
|
-
[CSS$
|
1128
|
-
[CSS$
|
1129
|
-
[CSS$
|
1228
|
+
[CSS$4.contentContainer]: true,
|
1229
|
+
[CSS$4.contentContainerSelectable]: selectionMode !== "none",
|
1230
|
+
[CSS$4.contentContainerHasCenterContent]: hasCenterContent,
|
1130
1231
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
1131
1232
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1132
1233
|
ref: (el) => (this.contentEl = el) }, content));
|
@@ -1137,9 +1238,9 @@ const ListItem = class {
|
|
1137
1238
|
const borderSelected = showBorder && selected;
|
1138
1239
|
const borderUnselected = showBorder && !selected;
|
1139
1240
|
return (h(Host, null, h("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
|
1140
|
-
[CSS$
|
1141
|
-
[CSS$
|
1142
|
-
[CSS$
|
1241
|
+
[CSS$4.container]: true,
|
1242
|
+
[CSS$4.containerBorderSelected]: borderSelected,
|
1243
|
+
[CSS$4.containerBorderUnselected]: borderUnselected,
|
1143
1244
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` }, tabIndex: active ? 0 : -1,
|
1144
1245
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1145
1246
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), this.renderContentBottom(), this.renderDefaultContainer()));
|
@@ -1194,4 +1295,62 @@ const ListItem = class {
|
|
1194
1295
|
};
|
1195
1296
|
ListItem.style = listItemCss;
|
1196
1297
|
|
1197
|
-
|
1298
|
+
const stackCss = ":host([disabled]) .content{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) .content *,:host([disabled]) .content ::slotted(*){pointer-events:none}:host{display:flex;flex:1 1 0%;flex-direction:column}.container{display:flex;flex:1 1 auto;align-items:stretch;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;padding-inline:var(--calcite-stack-padding-inline, 0.75rem);padding-block:var(--calcite-stack-padding-block, 0.5rem)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-handle),.actions-end ::slotted(calcite-dropdown){align-self:stretch;color:inherit}:host([hidden]){display:none}[hidden]{display:none}";
|
1299
|
+
|
1300
|
+
const Stack = class {
|
1301
|
+
constructor(hostRef) {
|
1302
|
+
registerInstance(this, hostRef);
|
1303
|
+
// --------------------------------------------------------------------------
|
1304
|
+
//
|
1305
|
+
// Private Methods
|
1306
|
+
//
|
1307
|
+
// --------------------------------------------------------------------------
|
1308
|
+
this.handleActionsStartSlotChange = (event) => {
|
1309
|
+
this.hasActionsStart = slotChangeHasAssignedElement(event);
|
1310
|
+
};
|
1311
|
+
this.handleActionsEndSlotChange = (event) => {
|
1312
|
+
this.hasActionsEnd = slotChangeHasAssignedElement(event);
|
1313
|
+
};
|
1314
|
+
this.handleContentStartSlotChange = (event) => {
|
1315
|
+
this.hasContentStart = slotChangeHasAssignedElement(event);
|
1316
|
+
};
|
1317
|
+
this.handleContentEndSlotChange = (event) => {
|
1318
|
+
this.hasContentEnd = slotChangeHasAssignedElement(event);
|
1319
|
+
};
|
1320
|
+
this.disabled = false;
|
1321
|
+
this.hasActionsStart = false;
|
1322
|
+
this.hasActionsEnd = false;
|
1323
|
+
this.hasContentStart = false;
|
1324
|
+
this.hasContentEnd = false;
|
1325
|
+
}
|
1326
|
+
// --------------------------------------------------------------------------
|
1327
|
+
//
|
1328
|
+
// Render Methods
|
1329
|
+
//
|
1330
|
+
// --------------------------------------------------------------------------
|
1331
|
+
renderActionsStart() {
|
1332
|
+
const { hasActionsStart } = this;
|
1333
|
+
return (h("div", { class: CSS.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, h("slot", { name: SLOTS.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
1334
|
+
}
|
1335
|
+
renderActionsEnd() {
|
1336
|
+
const { hasActionsEnd } = this;
|
1337
|
+
return (h("div", { class: CSS.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, h("slot", { name: SLOTS.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
1338
|
+
}
|
1339
|
+
renderContentStart() {
|
1340
|
+
const { hasContentStart } = this;
|
1341
|
+
return (h("div", { class: CSS.contentStart, hidden: !hasContentStart }, h("slot", { name: SLOTS.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
1342
|
+
}
|
1343
|
+
renderDefaultContent() {
|
1344
|
+
return (h("div", { class: CSS.content }, h("slot", null)));
|
1345
|
+
}
|
1346
|
+
renderContentEnd() {
|
1347
|
+
const { hasContentEnd } = this;
|
1348
|
+
return (h("div", { class: CSS.contentEnd, hidden: !hasContentEnd }, h("slot", { name: SLOTS.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
1349
|
+
}
|
1350
|
+
render() {
|
1351
|
+
return (h(Host, null, h("div", { class: CSS.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
1352
|
+
}
|
1353
|
+
};
|
1354
|
+
Stack.style = stackCss;
|
1355
|
+
|
1356
|
+
export { Filter as calcite_filter, Handle as calcite_handle, List as calcite_list, ListItem as calcite_list_item, Stack as calcite_stack };
|