@esri/solutions-components 0.10.10 → 0.10.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-4bf03edc.js +115 -0
- package/dist/cjs/FloatingArrow-7eca410a.js +48 -0
- package/dist/cjs/Heading-2333bcd2.js +25 -0
- package/dist/cjs/Validation-aa47298a.js +20 -0
- package/dist/cjs/app-globals-7f35a2ee.js +67 -0
- package/dist/cjs/ar-cecfe7a4.js +106 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/array-59824898.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +9 -9
- package/dist/cjs/bg-4fc20839.js +84 -0
- package/dist/cjs/browser-69696af0.js +35 -0
- package/dist/cjs/bs-3bffda26.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +11 -11
- package/dist/cjs/ca-368f111b.js +73 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +24 -24
- package/dist/cjs/calcite-accordion.cjs.entry.js +18 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -16
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +28 -28
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +18 -18
- package/dist/cjs/calcite-action_2.cjs.entry.js +49 -19
- package/dist/cjs/calcite-alert_4.cjs.entry.js +154 -118
- package/dist/cjs/calcite-avatar.cjs.entry.js +176 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js +11 -11
- package/dist/cjs/calcite-block_5.cjs.entry.js +96 -64
- package/dist/cjs/calcite-button.cjs.entry.js +21 -34
- package/dist/cjs/calcite-card-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-card.cjs.entry.js +13 -13
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-carousel.cjs.entry.js +13 -13
- package/dist/cjs/calcite-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/calcite-chip-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip_2.cjs.entry.js +31 -21
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker.cjs.entry.js +32 -52
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +43 -37
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dialog.cjs.entry.js +308 -36
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +22 -22
- package/dist/cjs/calcite-fab.cjs.entry.js +9 -9
- package/dist/cjs/calcite-filter_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-flow_6.cjs.entry.js +132 -46
- package/dist/cjs/calcite-graph_2.cjs.entry.js +26 -22
- package/dist/cjs/calcite-icon.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-number.cjs.entry.js +39 -34
- package/dist/cjs/calcite-input-text.cjs.entry.js +32 -27
- package/dist/cjs/calcite-input-time-picker-de202530.js +1861 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +21 -22
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +168 -87
- package/dist/cjs/calcite-input_2.cjs.entry.js +41 -36
- package/dist/cjs/calcite-label.cjs.entry.js +11 -8
- package/dist/cjs/calcite-link.cjs.entry.js +11 -11
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-menu-item.cjs.entry.js +14 -14
- package/dist/cjs/calcite-menu.cjs.entry.js +11 -11
- package/dist/cjs/calcite-meter.cjs.entry.js +12 -12
- package/dist/cjs/calcite-modal.cjs.entry.js +21 -21
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +7 -7
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +74 -0
- package/dist/cjs/calcite-navigation.cjs.entry.js +9 -9
- package/dist/cjs/calcite-notice.cjs.entry.js +18 -18
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_2.cjs.entry.js +18 -15
- package/dist/cjs/calcite-pagination.cjs.entry.js +14 -14
- package/dist/cjs/calcite-panel_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list.cjs.entry.js +14 -14
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +13 -7
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-rating.cjs.entry.js +17 -17
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +19 -16
- package/dist/cjs/calcite-sheet.cjs.entry.js +17 -15
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +53 -53
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +11 -11
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-stepper.cjs.entry.js +12 -12
- package/dist/cjs/calcite-switch.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +30 -20
- package/dist/cjs/calcite-table-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-table.cjs.entry.js +14 -14
- package/dist/cjs/calcite-text-area.cjs.entry.js +24 -21
- package/dist/cjs/calcite-tile-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tile.cjs.entry.js +10 -10
- package/dist/cjs/calcite-time-picker.cjs.entry.js +32 -32
- package/dist/cjs/calcite-tip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tooltip.cjs.entry.js +18 -14
- package/dist/cjs/calcite-tree_3.cjs.entry.js +44 -26
- package/dist/cjs/card-manager_3.cjs.entry.js +6 -6
- package/dist/cjs/component-a4c6a35d.js +33 -0
- package/dist/cjs/conditionalSlot-6b5d9b84.js +54 -0
- package/dist/cjs/config-afe9063b.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +3 -3
- package/dist/cjs/constants-0a4fc296.js +812 -0
- package/dist/cjs/continent-cdee1112.js +34 -0
- package/dist/cjs/country-a8539532.js +446 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +29 -26
- package/dist/cjs/cs-1386c8b8.js +149 -0
- package/dist/cjs/da-68d9e5ce.js +69 -0
- package/dist/cjs/date-5a57b606.js +264 -0
- package/dist/cjs/de-at-017d79c1.js +92 -0
- package/dist/cjs/de-ch-f892b97a.js +92 -0
- package/dist/cjs/de-f3b48b7d.js +93 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
- package/dist/cjs/dom-6a9b6275.js +1215 -0
- package/dist/cjs/downloadUtils-e6e2f8c4.js +3163 -0
- package/dist/cjs/el-16691582.js +68 -0
- package/dist/cjs/en-au-3cba8189.js +68 -0
- package/dist/cjs/en-ca-e63c64a3.js +67 -0
- package/dist/cjs/en-gb-66e297eb.js +71 -0
- package/dist/cjs/es-473df127.js +68 -0
- package/dist/cjs/es-mx-b8fc355d.js +67 -0
- package/dist/cjs/et-dfe831e4.js +94 -0
- package/dist/cjs/feature-comments.cjs.entry.js +2 -2
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +58 -14
- package/dist/cjs/features-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/fi-8ab8c685.js +117 -0
- package/dist/cjs/filter-1f98198b.js +778 -0
- package/dist/cjs/floating-ui-b20fd1f7.js +2373 -0
- package/dist/cjs/focusTrapComponent-a4531bc7.js +1018 -0
- package/dist/cjs/form-5229f1c8.js +381 -0
- package/dist/cjs/fr-ch-9cdf5409.js +68 -0
- package/dist/cjs/fr-fbc089e3.js +70 -0
- package/dist/cjs/guid-02e5380f.js +26 -0
- package/dist/cjs/he-33e82ae7.js +107 -0
- package/dist/cjs/helpers-3a8234e8.js +940 -0
- package/dist/cjs/hi-bc15c04d.js +67 -0
- package/dist/cjs/hr-94438cce.js +82 -0
- package/dist/cjs/hu-e076cebf.js +90 -0
- package/dist/cjs/id-81a2fef0.js +68 -0
- package/dist/cjs/index-5a0af791.js +1782 -0
- package/dist/cjs/index-6189d0bb.js +62 -0
- package/dist/cjs/index-866b8a4c.js +127 -0
- package/dist/cjs/index-d21e03cd.js +14 -0
- package/dist/cjs/index-da709a10.js +201 -0
- package/dist/cjs/index.es-fa362797.js +11317 -0
- package/dist/cjs/input-33270a99.js +60 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-create.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-export.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-header.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +9 -11
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +19 -19
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +17 -17
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +39 -54
- package/dist/cjs/instant-apps-splash.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +6 -6
- package/dist/cjs/interactive-89f913ba.js +167 -0
- package/dist/cjs/it-549faba6.js +68 -0
- package/dist/cjs/it-ch-f2165d11.js +68 -0
- package/dist/cjs/ja-2c7ee1fb.js +74 -0
- package/dist/cjs/key-d6da79d8.js +19 -0
- package/dist/cjs/ko-ac460bc7.js +74 -0
- package/dist/cjs/label-26ee0ddb.js +186 -0
- package/dist/cjs/languageUtil-a3e1eafd.js +69 -0
- package/dist/cjs/layout-manager.cjs.entry.js +4 -4
- package/dist/cjs/list-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/loadModules-8567855e.js +23 -0
- package/dist/cjs/loadable-2e2626dc.js +98 -0
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/locale-42c21404.js +605 -0
- package/dist/cjs/locale-a09603ee.js +160 -0
- package/dist/cjs/locale-a1bcb6eb.js +120 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/logger-1c9bfcfd.js +61 -0
- package/dist/cjs/lt-8fd46749.js +99 -0
- package/dist/cjs/lv-49bc9ddb.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +9 -9
- package/dist/cjs/math-2911c0c9.js +60 -0
- package/dist/cjs/mk-5a82adab.js +68 -0
- package/dist/cjs/nb-24cd76dd.js +69 -0
- package/dist/cjs/nl-f6394232.js +69 -0
- package/dist/cjs/observers-8fed90f3.js +58 -0
- package/dist/cjs/openCloseComponent-14628d11.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
- package/dist/cjs/pl-1b2c1ac1.js +116 -0
- package/dist/cjs/popupUtils-92e52dbf.js +121 -0
- package/dist/cjs/pt-b9970ff4.js +69 -0
- package/dist/cjs/pt-br-bfdc1da5.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +7 -7
- package/dist/cjs/publicNotificationStore-f229e839.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/resources-151788f3.js +23 -0
- package/dist/cjs/resources-3eec4ddc.js +27 -0
- package/dist/cjs/resources-41443a57.js +26 -0
- package/dist/cjs/resources-44478618.js +29 -0
- package/dist/cjs/resources-9fb1bc89.js +68 -0
- package/dist/cjs/resources-dfe71ff2.js +39 -0
- package/dist/cjs/resources-e23d63db.js +39 -0
- package/dist/cjs/resources-e96455bb.js +68 -0
- package/dist/cjs/resources-ed5f0434.js +21 -0
- package/dist/cjs/resources-fac4579f.js +23 -0
- package/dist/cjs/ro-d3dcee3e.js +68 -0
- package/dist/cjs/ru-86dc7992.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +2 -2
- package/dist/cjs/shared-list-render-54fa8d30.js +361 -0
- package/dist/cjs/sk-f4477e9e.js +150 -0
- package/dist/cjs/sl-056c7a3e.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +8 -8
- package/dist/cjs/solution-contents_3.cjs.entry.js +8 -8
- package/dist/cjs/solution-store-1218246d.js +1353 -0
- package/dist/cjs/solutions-components.cjs.js +7 -7
- package/dist/cjs/sortableComponent-9bfb9488.js +2748 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
- package/dist/cjs/sr-98be5235.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +3 -3
- package/dist/cjs/sv-cb8dd245.js +73 -0
- package/dist/cjs/t9n-42ba6ea3.js +108 -0
- package/dist/cjs/th-9d1805bf.js +67 -0
- package/dist/cjs/time-d48f5d3e.js +301 -0
- package/dist/cjs/time-zones-cd027b1e.js +367 -0
- package/dist/cjs/tr-833a6ecc.js +68 -0
- package/dist/cjs/uk-df027a8a.js +106 -0
- package/dist/cjs/utils-051e0119.js +78 -0
- package/dist/cjs/utils-357c41eb.js +2304 -0
- package/dist/cjs/utils-a2799a10.js +130 -0
- package/dist/cjs/vi-2f15ae72.js +72 -0
- package/dist/cjs/zh-cn-ede80e9d.js +96 -0
- package/dist/cjs/zh-hk-5de99bec.js +94 -0
- package/dist/cjs/zh-tw-9cf1d1bd.js +94 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/create-feature/create-feature.css +13 -0
- package/dist/collection/components/create-feature/create-feature.js +112 -13
- package/dist/collection/components/create-related-feature/create-related-feature.js +11 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +44 -23
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.js +29 -9
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.css +13 -2
- package/dist/collection/components/feature-list/feature-list.js +70 -8
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/crowdsource-reporter.html +11 -3
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +2 -2
- package/dist/components/action-bar.js +2 -2
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +2 -2
- package/dist/components/action-pad.js +2 -2
- package/dist/components/action.js +2 -2
- package/dist/components/alert.js +141 -103
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/block.js +8 -10
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +7 -22
- package/dist/components/calcite-accordion-item.js +15 -15
- package/dist/components/calcite-accordion.js +15 -5
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- package/dist/components/calcite-carousel-item.js +1 -1
- package/dist/components/calcite-carousel.js +1 -1
- package/dist/components/calcite-color-picker.js +19 -39
- package/dist/components/calcite-combobox-item-group.js +1 -69
- package/dist/components/calcite-dialog.js +303 -22
- package/dist/components/calcite-fab.js +2 -2
- package/dist/components/calcite-inline-editable.js +4 -4
- package/dist/components/calcite-input-time-picker.js +38 -40
- package/dist/components/calcite-input-time-zone.js +166 -79
- package/dist/components/calcite-list-item-group.js +2 -2
- package/dist/components/calcite-menu-item.js +4 -4
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-navigation-logo.js +3 -3
- package/dist/components/calcite-navigation.js +3 -3
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-radio-button-group.js +6 -2
- package/dist/components/calcite-rating.js +3 -3
- package/dist/components/calcite-sheet.js +7 -5
- package/dist/components/calcite-shell-center-row.js +3 -3
- package/dist/components/calcite-sortable-list.js +3 -3
- package/dist/components/calcite-split-button.js +2 -2
- package/dist/components/calcite-stepper-item.js +4 -4
- package/dist/components/calcite-stepper.js +3 -3
- package/dist/components/calcite-table-row.js +2 -2
- package/dist/components/calcite-table.js +4 -4
- package/dist/components/calcite-text-area.js +8 -5
- package/dist/components/calcite-tile-group.js +2 -2
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +3 -3
- package/dist/components/calcite-tile.js +3 -3
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +76 -0
- package/dist/components/combobox-item.js +20 -6
- package/dist/components/combobox.js +18 -12
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +5 -5
- package/dist/components/continent.js +31 -0
- package/dist/components/country.js +444 -0
- package/dist/components/create-feature2.js +82 -14
- package/dist/components/create-related-feature2.js +11 -2
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +39 -29
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +10 -7
- package/dist/components/dropdown-group.js +2 -2
- package/dist/components/dropdown-item.js +4 -4
- package/dist/components/dropdown.js +6 -6
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +24 -15
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +64 -13
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +3 -3
- package/dist/components/floating-ui.js +17 -6
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/flow-item.js +14 -5
- package/dist/components/flow.js +2 -2
- package/dist/components/focusTrapComponent.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 +3 -3
- package/dist/components/icon.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/components/index4.js +4 -196
- package/dist/components/index5.js +51 -62
- package/dist/components/index6.js +125 -0
- package/dist/components/info-card2.js +2 -2
- package/dist/components/input-date-picker.js +27 -20
- package/dist/components/input-message.js +2 -2
- package/dist/components/input-number.js +24 -19
- package/dist/components/input-text.js +17 -12
- package/dist/components/input.js +25 -20
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +39 -7
- package/dist/components/instant-apps-landing-page.js +8 -10
- package/dist/components/instant-apps-language-switcher.js +8 -8
- package/dist/components/instant-apps-language-translator2.js +759 -8
- package/dist/components/instant-apps-sign-in2.js +34 -49
- package/dist/components/interactive.js +2 -4
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +5 -2
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/link.js +4 -4
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/list-item.js +2 -2
- package/dist/components/list.js +2 -2
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +41 -6
- package/dist/components/locale2.js +23 -3
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/logger.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/modal.js +5 -5
- package/dist/components/navigation-user.js +3 -3
- package/dist/components/notice.js +4 -4
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/option.js +1 -1
- package/dist/components/pagination.js +3 -3
- package/dist/components/panel.js +10 -6
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/pick-list-item.js +2 -2
- package/dist/components/popover.js +6 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/radio-button.js +2 -2
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.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/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/scrim.js +2 -2
- package/dist/components/segmented-control-item.js +2 -2
- package/dist/components/segmented-control.js +6 -3
- package/dist/components/select.js +6 -3
- package/dist/components/share-item.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +3 -3
- package/dist/components/shell.js +3 -3
- package/dist/components/slider.js +12 -8
- package/dist/components/solution-configuration.js +11 -17
- package/dist/components/solution-contents2.js +2 -8
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +9 -15
- package/dist/components/solution-organization-variables2.js +2 -8
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +7 -13
- package/dist/components/solution-variables2.js +2 -8
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/spatial-ref.js +2 -8
- package/dist/components/stack.js +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +5 -5
- package/dist/components/tab.js +2 -2
- package/dist/components/table-cell.js +3 -3
- package/dist/components/table-header.js +15 -5
- package/dist/components/tabs.js +2 -2
- package/dist/components/time-picker.js +21 -21
- package/dist/components/time-zones.js +365 -0
- package/dist/components/tooltip.js +10 -6
- package/dist/components/tree-item.js +33 -20
- package/dist/components/tree.js +3 -3
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +8 -3
- package/dist/components/utils3.js +1 -1
- package/dist/components/value-list-item.js +2 -2
- package/dist/components/value-list.js +2 -2
- package/dist/esm/ExpandToggle-bddb5e82.js +108 -0
- package/dist/esm/FloatingArrow-adf66cf8.js +46 -0
- package/dist/esm/Heading-20345c69.js +22 -0
- package/dist/esm/Validation-63949b7d.js +18 -0
- package/dist/esm/app-globals-5d3ac5ed.js +65 -0
- package/dist/esm/ar-c466a382.js +104 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/array-dd6e2c7d.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +9 -9
- package/dist/esm/bg-9cb15225.js +82 -0
- package/dist/esm/browser-552eb2d0.js +32 -0
- package/dist/esm/bs-f5629d7c.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +11 -11
- package/dist/esm/ca-4bf4a8d1.js +71 -0
- package/dist/esm/calcite-accordion-item.entry.js +24 -24
- package/dist/esm/calcite-accordion.entry.js +18 -8
- package/dist/esm/calcite-action-bar.entry.js +16 -16
- package/dist/esm/calcite-action-group.entry.js +14 -14
- package/dist/esm/calcite-action-menu_3.entry.js +28 -28
- package/dist/esm/calcite-action-pad_2.entry.js +18 -18
- package/dist/esm/calcite-action_2.entry.js +49 -19
- package/dist/esm/calcite-alert_4.entry.js +154 -118
- package/dist/esm/calcite-avatar.entry.js +172 -0
- package/dist/esm/calcite-block-section.entry.js +11 -11
- package/dist/esm/calcite-block_5.entry.js +96 -64
- package/dist/esm/calcite-button.entry.js +21 -34
- package/dist/esm/calcite-card-group.entry.js +7 -7
- package/dist/esm/calcite-card.entry.js +13 -13
- package/dist/esm/calcite-carousel-item.entry.js +3 -3
- package/dist/esm/calcite-carousel.entry.js +13 -13
- package/dist/esm/calcite-checkbox.entry.js +12 -12
- package/dist/esm/calcite-chip-group.entry.js +7 -7
- package/dist/esm/calcite-chip_2.entry.js +31 -21
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +9 -9
- package/dist/esm/calcite-color-picker.entry.js +32 -52
- package/dist/esm/calcite-combobox-item-group.entry.js +7 -7
- package/dist/esm/calcite-combobox_3.entry.js +43 -37
- package/dist/esm/calcite-date-picker-day_3.entry.js +14 -14
- package/dist/esm/calcite-dialog.entry.js +308 -36
- package/dist/esm/calcite-dropdown_2.entry.js +22 -22
- package/dist/esm/calcite-fab.entry.js +9 -9
- package/dist/esm/calcite-filter_5.entry.js +27 -27
- package/dist/esm/calcite-flow_6.entry.js +132 -46
- package/dist/esm/calcite-graph_2.entry.js +26 -22
- package/dist/esm/calcite-icon.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +17 -17
- package/dist/esm/calcite-input-number.entry.js +39 -34
- package/dist/esm/calcite-input-text.entry.js +32 -27
- package/dist/esm/calcite-input-time-picker-60dbdc25.js +1858 -0
- package/dist/esm/calcite-input-time-picker.entry.js +21 -22
- package/dist/esm/calcite-input-time-zone.entry.js +168 -87
- package/dist/esm/calcite-input_2.entry.js +41 -36
- package/dist/esm/calcite-label.entry.js +11 -8
- package/dist/esm/calcite-link.entry.js +11 -11
- package/dist/esm/calcite-list-item-group.entry.js +6 -6
- package/dist/esm/calcite-menu-item.entry.js +14 -14
- package/dist/esm/calcite-menu.entry.js +11 -11
- package/dist/esm/calcite-meter.entry.js +12 -12
- package/dist/esm/calcite-modal.entry.js +21 -21
- package/dist/esm/calcite-navigation-logo.entry.js +7 -7
- package/dist/esm/calcite-navigation-user.entry.js +70 -0
- package/dist/esm/calcite-navigation.entry.js +9 -9
- package/dist/esm/calcite-notice.entry.js +18 -18
- package/dist/esm/calcite-option-group.entry.js +2 -2
- package/dist/esm/calcite-option_2.entry.js +18 -15
- package/dist/esm/calcite-pagination.entry.js +14 -14
- package/dist/esm/calcite-panel_2.entry.js +23 -23
- package/dist/esm/calcite-pick-list-group.entry.js +12 -12
- package/dist/esm/calcite-pick-list-item.entry.js +17 -17
- package/dist/esm/calcite-pick-list.entry.js +14 -14
- package/dist/esm/calcite-radio-button-group.entry.js +13 -7
- package/dist/esm/calcite-radio-button.entry.js +13 -13
- package/dist/esm/calcite-rating.entry.js +17 -17
- package/dist/esm/calcite-segmented-control_2.entry.js +19 -16
- package/dist/esm/calcite-sheet.entry.js +17 -15
- package/dist/esm/calcite-shell-center-row.entry.js +10 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +53 -53
- package/dist/esm/calcite-sortable-list.entry.js +11 -11
- package/dist/esm/calcite-split-button.entry.js +6 -6
- package/dist/esm/calcite-stepper-item.entry.js +15 -15
- package/dist/esm/calcite-stepper.entry.js +12 -12
- package/dist/esm/calcite-switch.entry.js +13 -13
- package/dist/esm/calcite-table-cell_2.entry.js +30 -20
- package/dist/esm/calcite-table-row.entry.js +10 -10
- package/dist/esm/calcite-table.entry.js +14 -14
- package/dist/esm/calcite-text-area.entry.js +24 -21
- package/dist/esm/calcite-tile-group.entry.js +9 -9
- package/dist/esm/calcite-tile-select-group.entry.js +6 -6
- package/dist/esm/calcite-tile-select.entry.js +10 -10
- package/dist/esm/calcite-tile.entry.js +10 -10
- package/dist/esm/calcite-time-picker.entry.js +32 -32
- package/dist/esm/calcite-tip-group.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +13 -13
- package/dist/esm/calcite-tip.entry.js +15 -15
- package/dist/esm/calcite-tooltip.entry.js +18 -14
- package/dist/esm/calcite-tree_3.entry.js +44 -26
- package/dist/esm/card-manager_3.entry.js +6 -6
- package/dist/esm/component-c2c32481.js +30 -0
- package/dist/esm/conditionalSlot-60e775f3.js +51 -0
- package/dist/esm/config-2fa7bb77.js +36 -0
- package/dist/esm/consent-manager.entry.js +3 -3
- package/dist/esm/constants-045d6a1b.js +808 -0
- package/dist/esm/continent-125eb777.js +31 -0
- package/dist/esm/country-2d5661ee.js +444 -0
- package/dist/esm/crowdsource-manager.entry.js +4 -4
- package/dist/esm/crowdsource-reporter.entry.js +29 -26
- package/dist/esm/cs-41ed0d89.js +147 -0
- package/dist/esm/da-a8c74a48.js +67 -0
- package/dist/esm/date-45f24c42.js +248 -0
- package/dist/esm/de-9a636f1a.js +91 -0
- package/dist/esm/de-at-26352836.js +90 -0
- package/dist/esm/de-ch-25495449.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +2 -2
- package/dist/esm/dom-b5c50286.js +1180 -0
- package/dist/esm/downloadUtils-74bc82ae.js +3156 -0
- package/dist/esm/el-82ffddec.js +66 -0
- package/dist/esm/en-au-0f081a3c.js +66 -0
- package/dist/esm/en-ca-f04aeac2.js +65 -0
- package/dist/esm/en-gb-81e968d6.js +69 -0
- package/dist/esm/es-e058977a.js +66 -0
- package/dist/esm/es-mx-14a1f320.js +65 -0
- package/dist/esm/et-4a06c642.js +92 -0
- package/dist/esm/feature-comments.entry.js +2 -2
- package/dist/esm/feature-form-flow-item.entry.js +2 -2
- package/dist/esm/feature-list.entry.js +58 -14
- package/dist/esm/features-flow-item.entry.js +2 -2
- package/dist/esm/fi-9673a0e6.js +115 -0
- package/dist/esm/filter-23b3858b.js +775 -0
- package/dist/esm/floating-ui-ba0acfca.js +2365 -0
- package/dist/esm/focusTrapComponent-6ec0f681.js +1013 -0
- package/dist/esm/form-ba965042.js +372 -0
- package/dist/esm/fr-94ff7253.js +68 -0
- package/dist/esm/fr-ch-00b7e60e.js +66 -0
- package/dist/esm/guid-4c746a7f.js +24 -0
- package/dist/esm/he-faefbd69.js +105 -0
- package/dist/esm/helpers-3be8dbbc.js +913 -0
- package/dist/esm/hi-923b9ffd.js +65 -0
- package/dist/esm/hr-6ed6939b.js +80 -0
- package/dist/esm/hu-25918d1e.js +88 -0
- package/dist/esm/id-520427a1.js +66 -0
- package/dist/esm/index-2c724afd.js +199 -0
- package/dist/esm/index-87ec7c0a.js +71 -0
- package/dist/esm/index-ad182a71.js +125 -0
- package/dist/esm/index-b793d9aa.js +1748 -0
- package/dist/esm/index-f5d562b1.js +60 -0
- package/dist/esm/index-f8c935d6.js +12 -0
- package/dist/esm/index.es-40ce1695.js +11230 -0
- package/dist/esm/input-d11f5ac8.js +58 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +7 -7
- package/dist/esm/instant-apps-control-panel.entry.js +3 -3
- package/dist/esm/instant-apps-create.entry.js +5 -5
- package/dist/esm/instant-apps-export-views.entry.js +5 -5
- package/dist/esm/instant-apps-export.entry.js +5 -5
- package/dist/esm/instant-apps-header.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend.entry.js +7 -7
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +5 -5
- package/dist/esm/instant-apps-landing-page.entry.js +9 -11
- package/dist/esm/instant-apps-language-switcher.entry.js +15 -15
- package/dist/esm/instant-apps-language-translator.entry.js +15 -15
- package/dist/esm/instant-apps-measurement.entry.js +5 -5
- package/dist/esm/instant-apps-popover.entry.js +5 -5
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +5 -5
- package/dist/esm/instant-apps-sign-in.entry.js +39 -54
- package/dist/esm/instant-apps-splash.entry.js +5 -5
- package/dist/esm/instant-apps-time-filter.entry.js +6 -6
- package/dist/esm/interactive-742ba555.js +162 -0
- package/dist/esm/it-7751f7dc.js +66 -0
- package/dist/esm/it-ch-cec3226b.js +66 -0
- package/dist/esm/ja-1df4233a.js +72 -0
- package/dist/esm/key-58898f0a.js +16 -0
- package/dist/esm/ko-a104769f.js +72 -0
- package/dist/esm/label-0b82858a.js +179 -0
- package/dist/esm/languageUtil-2b6e191a.js +66 -0
- package/dist/esm/layout-manager.entry.js +4 -4
- package/dist/esm/list-flow-item.entry.js +2 -2
- package/dist/esm/loadModules-03ba7abe.js +21 -0
- package/dist/esm/loadable-73f289b6.js +93 -0
- package/dist/esm/loader.js +7 -7
- package/dist/esm/locale-21e40b0c.js +591 -0
- package/dist/esm/locale-adb5ff0b.js +115 -0
- package/dist/esm/locale-b1d53fb1.js +155 -0
- package/dist/esm/location-flow-item.entry.js +2 -2
- package/dist/esm/logger-0d6e5bfe.js +59 -0
- package/dist/esm/lt-747213da.js +97 -0
- package/dist/esm/lv-06088b99.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +9 -9
- package/dist/esm/math-8c04292e.js +54 -0
- package/dist/esm/mk-5f581ea0.js +66 -0
- package/dist/esm/nb-f9d01bec.js +67 -0
- package/dist/esm/nl-48b9338d.js +67 -0
- package/dist/esm/observers-e2484555.js +56 -0
- package/dist/esm/openCloseComponent-7b8f2e24.js +63 -0
- package/dist/esm/pci-calculator.entry.js +2 -2
- package/dist/esm/pl-2ff50be7.js +114 -0
- package/dist/esm/popupUtils-00c655fb.js +119 -0
- package/dist/esm/pt-br-45ae496b.js +65 -0
- package/dist/esm/pt-ed25c80b.js +67 -0
- package/dist/esm/public-notification.entry.js +7 -7
- package/dist/esm/publicNotificationStore-7b0b97b6.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +2 -2
- package/dist/esm/resources-2d6e35cf.js +20 -0
- package/dist/esm/resources-30b747d4.js +23 -0
- package/dist/esm/resources-5ba50a1d.js +19 -0
- package/dist/esm/resources-64237427.js +63 -0
- package/dist/esm/resources-8665df6b.js +62 -0
- package/dist/esm/resources-896b6b00.js +35 -0
- package/dist/esm/resources-8f90cf93.js +22 -0
- package/dist/esm/resources-bc5c2adb.js +21 -0
- package/dist/esm/resources-cfbcc1ed.js +24 -0
- package/dist/esm/resources-defbb49f.js +34 -0
- package/dist/esm/ro-c5727d93.js +66 -0
- package/dist/esm/ru-ecb35906.js +126 -0
- package/dist/esm/share-item.entry.js +2 -2
- package/dist/esm/shared-list-render-4053f1dc.js +339 -0
- package/dist/esm/sk-e9c31458.js +148 -0
- package/dist/esm/sl-063df216.js +168 -0
- package/dist/esm/solution-configuration.entry.js +8 -8
- package/dist/esm/solution-contents_3.entry.js +8 -8
- package/dist/esm/solution-store-61fd39ea.js +1351 -0
- package/dist/esm/solutions-components.js +8 -8
- package/dist/esm/sortableComponent-3f9e9322.js +2745 -0
- package/dist/esm/spatial-ref.entry.js +4 -4
- package/dist/esm/sr-68f70e45.js +101 -0
- package/dist/esm/store-manager.entry.js +3 -3
- package/dist/esm/sv-b5a85ee5.js +71 -0
- package/dist/esm/t9n-2fb3af62.js +103 -0
- package/dist/esm/th-3a5ed31b.js +65 -0
- package/dist/esm/time-a215e415.js +286 -0
- package/dist/esm/time-zones-211c88e3.js +365 -0
- package/dist/esm/tr-b8829177.js +66 -0
- package/dist/esm/uk-c74df043.js +104 -0
- package/dist/esm/utils-13c5908e.js +65 -0
- package/dist/esm/utils-1f0d1828.js +2274 -0
- package/dist/esm/utils-5b977646.js +121 -0
- package/dist/esm/vi-a5092b10.js +70 -0
- package/dist/esm/zh-cn-f1e998fb.js +94 -0
- package/dist/esm/zh-hk-3ec32fe3.js +92 -0
- package/dist/esm/zh-tw-33f4a290.js +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +85 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +240 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +320 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +91 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +116 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +78 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +105 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +428 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +81 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +338 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +156 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +802 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +339 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +73 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +330 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +45 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +179 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +501 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +78 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +256 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +66 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +74 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +455 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +248 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +101 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +72 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +294 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +96 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +189 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +338 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +141 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +84 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +199 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +76 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +140 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +98 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +94 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +51 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +102 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +74 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +93 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +650 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +295 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +504 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +417 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +125 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +75 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +138 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +152 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +106 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +348 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +79 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +301 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +50 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +281 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +187 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +529 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +142 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +137 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +112 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +288 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +36 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +36 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +151 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +364 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +96 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +83 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +183 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +199 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +110 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +168 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +96 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +182 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +76 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +120 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +179 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +252 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +267 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +209 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +124 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +394 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +395 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +72 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +192 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +116 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +150 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +479 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +188 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +105 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +158 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +422 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +135 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +170 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +154 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +82 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +101 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +300 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +297 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +86 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +239 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +68 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +144 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +151 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +47 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +194 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +121 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +41 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +338 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +109 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +125 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-control-panel/instant-apps-control-panel.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-create/instant-apps-create.css +150 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +92 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export-views/instant-apps-export-views.css +92 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +108 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +180 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +124 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +18 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element/instant-apps-interactive-legend-group-legend-element.css +10 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element-caption/instant-apps-interactive-legend-group-legend-element-caption.css +65 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element/instant-apps-interactive-legend-layer-element.css +17 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +66 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element/instant-apps-interactive-legend-legend-element.css +10 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +51 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-relationship/instant-apps-interactive-legend-relationship.css +15 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +12 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +33 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +228 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +13 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-ckeditor-wrapper/instant-apps-ckeditor-wrapper.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-item/instant-apps-language-translator-item.css +90 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-search/instant-apps-language-translator-search.css +34 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +86 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement-tool/instant-apps-measurement-tool.css +6 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +6 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +58 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popovers/instant-apps-popovers.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +200 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +90 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +286 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +13 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-time-filter/instant-apps-time-filter.css +42 -0
- package/dist/solutions-components/assets/dialog/t9n/index.d.ts +2 -0
- package/dist/solutions-components/assets/dialog/t9n/messages.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_en.json +3 -1
- package/dist/solutions-components/assets/icon/closedCaption16.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption16F.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption24.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption24F.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption32.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption32F.json +1 -0
- package/dist/solutions-components/assets/icon/flag16.json +1 -0
- package/dist/solutions-components/assets/icon/flag16F.json +1 -0
- package/dist/solutions-components/assets/icon/flag24.json +1 -0
- package/dist/solutions-components/assets/icon/flag24F.json +1 -0
- package/dist/solutions-components/assets/icon/flag32.json +1 -0
- package/dist/solutions-components/assets/icon/flag32F.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash16.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash24.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash32.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection16.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection24.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection32.json +1 -0
- package/dist/solutions-components/assets/icon/transcript16.json +1 -0
- package/dist/solutions-components/assets/icon/transcript16F.json +1 -0
- package/dist/solutions-components/assets/icon/transcript24.json +1 -0
- package/dist/solutions-components/assets/icon/transcript24F.json +1 -0
- package/dist/solutions-components/assets/icon/transcript32.json +1 -0
- package/dist/solutions-components/assets/icon/transcript32F.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/index.d.ts +261 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_en.json +262 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +11 -3
- package/dist/solutions-components/p-0005175a.js +16 -0
- package/dist/solutions-components/p-004d601f.entry.js +6 -0
- package/dist/solutions-components/p-00d131cd.entry.js +11 -0
- package/dist/solutions-components/p-013188f8.entry.js +6 -0
- package/dist/solutions-components/p-01df774b.js +11 -0
- package/dist/solutions-components/p-0215daed.js +6 -0
- package/dist/solutions-components/p-022c49af.js +489 -0
- package/dist/solutions-components/p-04f09e7f.entry.js +11 -0
- package/dist/solutions-components/p-0558fbc7.js +143 -0
- package/dist/solutions-components/p-058b77d7.entry.js +6 -0
- package/dist/solutions-components/p-05b7d3ce.js +6 -0
- package/dist/solutions-components/p-06084e6c.js +11 -0
- package/dist/solutions-components/p-064e43e0.entry.js +6 -0
- package/dist/solutions-components/p-089bc565.js +11 -0
- package/dist/solutions-components/p-0fe5de6b.entry.js +6 -0
- package/dist/solutions-components/p-1061076b.js +6 -0
- package/dist/solutions-components/p-14fbc662.js +11 -0
- package/dist/solutions-components/p-1500d4c7.js +6 -0
- package/dist/solutions-components/p-16d4eb72.entry.js +16 -0
- package/dist/solutions-components/p-172fcecd.entry.js +11 -0
- package/dist/solutions-components/p-1892c357.js +11 -0
- package/dist/solutions-components/p-18f18ab3.js +11 -0
- package/dist/solutions-components/p-1900269a.entry.js +6 -0
- package/dist/solutions-components/p-19a942c4.entry.js +16 -0
- package/dist/solutions-components/p-1a9a47a0.js +11 -0
- package/dist/solutions-components/p-1bbe9e22.js +6 -0
- package/dist/solutions-components/p-1d71e81f.js +11 -0
- package/dist/solutions-components/p-1d99dfcd.entry.js +11 -0
- package/dist/solutions-components/p-1e455668.js +6 -0
- package/dist/solutions-components/p-1ed47f10.entry.js +21 -0
- package/dist/solutions-components/p-1f40908b.entry.js +11 -0
- package/dist/solutions-components/p-2058b5d9.js +36 -0
- package/dist/solutions-components/p-207b4e70.entry.js +11 -0
- package/dist/solutions-components/p-24997e81.js +6 -0
- package/dist/solutions-components/p-25a1fe4d.js +6 -0
- package/dist/solutions-components/p-25c584f4.entry.js +17 -0
- package/dist/solutions-components/p-26eb6f09.js +6 -0
- package/dist/solutions-components/p-274cad02.entry.js +6 -0
- package/dist/solutions-components/p-2ab773ed.js +6 -0
- package/dist/solutions-components/p-2c423f9c.js +6 -0
- package/dist/solutions-components/p-2d1afda0.entry.js +17 -0
- package/dist/solutions-components/p-2ed8e994.entry.js +17 -0
- package/dist/solutions-components/p-3110db7a.entry.js +6 -0
- package/dist/solutions-components/p-31f7dd8e.entry.js +6 -0
- package/dist/solutions-components/p-32be7387.js +6 -0
- package/dist/solutions-components/p-336b8f46.js +6 -0
- package/dist/solutions-components/p-371dbb0f.entry.js +6 -0
- package/dist/solutions-components/p-388725c2.entry.js +6 -0
- package/dist/solutions-components/p-3917c6f8.entry.js +11 -0
- package/dist/solutions-components/p-3a74aab6.entry.js +6 -0
- package/dist/solutions-components/p-3c1945a9.js +6 -0
- package/dist/solutions-components/p-3d0666fe.js +6 -0
- package/dist/solutions-components/p-3d6b18ec.entry.js +11 -0
- package/dist/solutions-components/p-3df511e0.entry.js +6 -0
- package/dist/solutions-components/p-3eff6da3.js +11 -0
- package/dist/solutions-components/p-3f9238e9.entry.js +11 -0
- package/dist/solutions-components/p-40724bfb.js +11 -0
- package/dist/solutions-components/p-40d7e510.js +6 -0
- package/dist/solutions-components/p-415cf05e.js +12 -0
- package/dist/solutions-components/p-4216af0e.js +6 -0
- package/dist/solutions-components/p-42a8493c.entry.js +6 -0
- package/dist/solutions-components/p-44240d03.js +18 -0
- package/dist/solutions-components/p-4514dc6f.entry.js +11 -0
- package/dist/solutions-components/p-47f6f996.entry.js +6 -0
- package/dist/solutions-components/p-49118e69.js +6 -0
- package/dist/solutions-components/p-4a0d9efe.entry.js +6 -0
- package/dist/solutions-components/p-4cd4cb85.js +6 -0
- package/dist/solutions-components/p-4de4fff6.entry.js +6 -0
- package/dist/solutions-components/p-4f06e105.entry.js +11 -0
- package/dist/solutions-components/p-4f074a84.entry.js +11 -0
- package/dist/solutions-components/p-4f474f64.js +6 -0
- package/dist/solutions-components/p-4fc5ab17.js +6 -0
- package/dist/solutions-components/p-51270f04.entry.js +6 -0
- package/dist/solutions-components/p-52576649.entry.js +17 -0
- package/dist/solutions-components/p-534cd147.js +6 -0
- package/dist/solutions-components/p-544cd7fd.entry.js +11 -0
- package/dist/solutions-components/p-56601650.js +11 -0
- package/dist/solutions-components/p-569ccf2c.entry.js +11 -0
- package/dist/solutions-components/p-56b9dc0d.entry.js +11 -0
- package/dist/solutions-components/p-580a4537.js +11 -0
- package/dist/solutions-components/p-58405b19.entry.js +11 -0
- package/dist/solutions-components/p-5c1366f7.entry.js +11 -0
- package/dist/solutions-components/p-5cca7ef7.entry.js +17 -0
- package/dist/solutions-components/p-5dcec135.js +21 -0
- package/dist/solutions-components/p-5ee4ba5c.js +6 -0
- package/dist/solutions-components/p-6070857c.js +6 -0
- package/dist/solutions-components/p-61f47dfa.entry.js +11 -0
- package/dist/solutions-components/p-621e306e.js +6 -0
- package/dist/solutions-components/p-62c6764c.js +6 -0
- package/dist/solutions-components/p-66be22db.entry.js +11 -0
- package/dist/solutions-components/p-682d053f.entry.js +6 -0
- package/dist/solutions-components/p-68ec5c15.js +17 -0
- package/dist/solutions-components/p-6d6c3d56.js +6 -0
- package/dist/solutions-components/p-6eb37ed2.js +7 -0
- package/dist/solutions-components/p-6f253995.js +61 -0
- package/dist/solutions-components/p-6fb5c228.entry.js +11 -0
- package/dist/solutions-components/p-70b46ea4.js +6 -0
- package/dist/solutions-components/p-712269bc.entry.js +29 -0
- package/dist/solutions-components/p-720a12c0.js +6 -0
- package/dist/solutions-components/p-7324cb9f.js +6 -0
- package/dist/solutions-components/p-7699e80b.js +11 -0
- package/dist/solutions-components/p-7987d73b.entry.js +6 -0
- package/dist/solutions-components/p-7a61d771.entry.js +11 -0
- package/dist/solutions-components/p-7b0b9681.js +6 -0
- package/dist/solutions-components/p-7b68d1ea.js +6 -0
- package/dist/solutions-components/p-7bfecd07.js +6 -0
- package/dist/solutions-components/p-7c00971f.js +6 -0
- package/dist/solutions-components/p-7ca6f4d5.entry.js +6 -0
- package/dist/solutions-components/p-7d32b6a4.entry.js +11 -0
- package/dist/solutions-components/p-7d484762.entry.js +6 -0
- package/dist/solutions-components/p-7eb5d31a.js +6 -0
- package/dist/solutions-components/p-81790f41.js +6 -0
- package/dist/solutions-components/p-8208ba6c.entry.js +6 -0
- package/dist/solutions-components/p-8241cd35.js +11 -0
- package/dist/solutions-components/p-83786108.js +6 -0
- package/dist/solutions-components/p-84a049f7.entry.js +6 -0
- package/dist/solutions-components/p-8524bacc.js +11 -0
- package/dist/solutions-components/p-86d877d8.entry.js +17 -0
- package/dist/solutions-components/p-89195780.entry.js +29 -0
- package/dist/solutions-components/p-8a177acd.entry.js +11 -0
- package/dist/solutions-components/p-8c2d05c1.js +6 -0
- package/dist/solutions-components/p-8ce7e559.entry.js +11 -0
- package/dist/solutions-components/p-8d576a9a.js +6 -0
- package/dist/solutions-components/p-8df67871.entry.js +11 -0
- package/dist/solutions-components/p-8f07cef3.entry.js +11 -0
- package/dist/solutions-components/p-8f0ee4b0.js +17 -0
- package/dist/solutions-components/p-8f218bfe.entry.js +11 -0
- package/dist/solutions-components/p-900fee65.js +21 -0
- package/dist/solutions-components/p-92baaf77.entry.js +11 -0
- package/dist/solutions-components/p-939bc1b4.js +16 -0
- package/dist/solutions-components/p-93fd86cd.entry.js +6 -0
- package/dist/solutions-components/p-960baebc.entry.js +6 -0
- package/dist/solutions-components/p-969008d8.entry.js +6 -0
- package/dist/solutions-components/p-97331a60.entry.js +12 -0
- package/dist/solutions-components/p-976ad17d.entry.js +6 -0
- package/dist/solutions-components/p-99af3f50.js +6 -0
- package/dist/solutions-components/p-9ab3df4f.js +11 -0
- package/dist/solutions-components/p-9d0528ac.js +6 -0
- package/dist/solutions-components/p-9dc4186e.entry.js +11 -0
- package/dist/solutions-components/p-9ec1aa8c.js +6 -0
- package/dist/solutions-components/p-9f0b8f8b.js +11 -0
- package/dist/solutions-components/p-9f574f86.entry.js +6 -0
- package/dist/solutions-components/p-9f63a45c.js +11 -0
- package/dist/solutions-components/p-9f8b30b5.entry.js +11 -0
- package/dist/solutions-components/p-a0db88ed.js +6 -0
- package/dist/solutions-components/p-a2246051.entry.js +17 -0
- package/dist/solutions-components/p-a432f638.entry.js +6 -0
- package/dist/solutions-components/p-a474882d.js +6 -0
- package/dist/solutions-components/p-a5609b81.js +11 -0
- package/dist/solutions-components/p-a6935ddf.js +6 -0
- package/dist/solutions-components/p-a6aba7d4.entry.js +6 -0
- package/dist/solutions-components/p-a72f5cc6.js +6 -0
- package/dist/solutions-components/p-a84b3d50.js +6 -0
- package/dist/solutions-components/p-a858460b.entry.js +47 -0
- package/dist/solutions-components/p-a94a0072.js +6 -0
- package/dist/solutions-components/p-a957cdd8.entry.js +11 -0
- package/dist/solutions-components/p-aa0ac2d2.js +16 -0
- package/dist/solutions-components/p-aa3140aa.entry.js +6 -0
- package/dist/solutions-components/p-aa71106f.entry.js +11 -0
- package/dist/solutions-components/p-ac122d9e.js +6 -0
- package/dist/solutions-components/p-ac52e0ba.js +11 -0
- package/dist/solutions-components/p-acaae81d.js +11 -0
- package/dist/solutions-components/p-aeb86188.js +11 -0
- package/dist/solutions-components/p-afcd5996.js +11 -0
- package/dist/solutions-components/p-b12af1e0.entry.js +17 -0
- package/dist/solutions-components/p-b1bc21ac.js +11 -0
- package/dist/solutions-components/p-b39c5275.js +11 -0
- package/dist/solutions-components/p-b3f2bb6f.js +6 -0
- package/dist/solutions-components/p-b448a7a7.js +6 -0
- package/dist/solutions-components/p-b5963a0f.js +6 -0
- package/dist/solutions-components/p-b7c200a0.entry.js +12 -0
- package/dist/solutions-components/p-b8eee32e.js +6 -0
- package/dist/solutions-components/p-bb9ac684.entry.js +6 -0
- package/dist/solutions-components/p-bc0aaf2f.entry.js +11 -0
- package/dist/solutions-components/p-bc14b643.entry.js +12 -0
- package/dist/solutions-components/p-bc1d8894.js +11 -0
- package/dist/solutions-components/p-bc33d298.js +6 -0
- package/dist/solutions-components/p-bcc79697.js +11 -0
- package/dist/solutions-components/p-beb23ced.entry.js +6 -0
- package/dist/solutions-components/p-bef2141e.entry.js +6 -0
- package/dist/solutions-components/p-bfa395e9.js +6 -0
- package/dist/solutions-components/p-c2964e00.entry.js +11 -0
- package/dist/solutions-components/p-c5e13ebc.js +11 -0
- package/dist/solutions-components/p-c638d28e.js +11 -0
- package/dist/solutions-components/p-c71745d0.entry.js +6 -0
- package/dist/solutions-components/p-c7bfe120.entry.js +6 -0
- package/dist/solutions-components/p-c7e2d3e6.entry.js +6 -0
- package/dist/solutions-components/p-c89f1175.entry.js +11 -0
- package/dist/solutions-components/p-c8b149b8.entry.js +6 -0
- package/dist/solutions-components/p-c911c46d.entry.js +11 -0
- package/dist/solutions-components/p-c9260b4c.entry.js +6 -0
- package/dist/solutions-components/p-c9a45311.entry.js +6 -0
- package/dist/solutions-components/p-ca3430fd.entry.js +21 -0
- package/dist/solutions-components/p-ca65d7ff.entry.js +12 -0
- package/dist/solutions-components/p-cabc6e5c.entry.js +17 -0
- package/dist/solutions-components/p-cb5ddaae.js +6 -0
- package/dist/solutions-components/p-cb5de432.entry.js +11 -0
- package/dist/solutions-components/p-cde8d6e5.entry.js +11 -0
- package/dist/solutions-components/p-d301b8fd.js +6 -0
- package/dist/solutions-components/p-d3453ce8.entry.js +6 -0
- package/dist/solutions-components/p-d4d4b4e3.entry.js +6 -0
- package/dist/solutions-components/p-d4e58347.entry.js +6 -0
- package/dist/solutions-components/p-d52da3ad.js +6 -0
- package/dist/solutions-components/p-d559f79c.js +11 -0
- package/dist/solutions-components/p-d5dae468.js +6 -0
- package/dist/solutions-components/p-d62336e2.entry.js +6 -0
- package/dist/solutions-components/p-d6e62ea2.js +6 -0
- package/dist/solutions-components/p-da713b07.entry.js +6 -0
- package/dist/solutions-components/p-da9cee72.entry.js +11 -0
- package/dist/solutions-components/p-dc58c4da.entry.js +6 -0
- package/dist/solutions-components/p-dc7710b5.js +11 -0
- package/dist/solutions-components/p-dd3530da.entry.js +11 -0
- package/dist/solutions-components/p-de02a060.entry.js +11 -0
- package/dist/solutions-components/p-de197552.js +6 -0
- package/dist/solutions-components/p-df191993.entry.js +11 -0
- package/dist/solutions-components/p-e1917512.js +6 -0
- package/dist/solutions-components/p-e33e07a4.entry.js +11 -0
- package/dist/solutions-components/p-e83d2d34.entry.js +24 -0
- package/dist/solutions-components/p-e98c4f93.js +11 -0
- package/dist/solutions-components/p-ead8696c.js +16 -0
- package/dist/solutions-components/p-ec702c30.entry.js +11 -0
- package/dist/solutions-components/p-ed60dff0.entry.js +11 -0
- package/dist/solutions-components/p-ed7cba2a.entry.js +11 -0
- package/dist/solutions-components/p-ee157540.entry.js +22 -0
- package/dist/solutions-components/p-eeaa122b.entry.js +11 -0
- package/dist/solutions-components/p-ef4f2c1d.entry.js +6 -0
- package/dist/solutions-components/p-f0345689.entry.js +16 -0
- package/dist/solutions-components/p-f25d5c18.entry.js +6 -0
- package/dist/solutions-components/p-f31a44b7.js +11 -0
- package/dist/solutions-components/p-f32f57a3.entry.js +6 -0
- package/dist/solutions-components/p-f47d6a10.entry.js +11 -0
- package/dist/solutions-components/p-f69ca69c.js +6 -0
- package/dist/solutions-components/p-f7d3ef3e.entry.js +6 -0
- package/dist/solutions-components/p-f89104bc.entry.js +6 -0
- package/dist/solutions-components/p-f91ae108.entry.js +6 -0
- package/dist/solutions-components/p-f9393949.entry.js +6 -0
- package/dist/solutions-components/p-fc58da4b.entry.js +6 -0
- package/dist/solutions-components/p-fce978b9.entry.js +6 -0
- package/dist/solutions-components/p-fe6f7734.js +11 -0
- package/dist/solutions-components/p-ff8343ec.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +0 -1
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +0 -2
- package/dist/types/components/card-manager/card-manager.d.ts +0 -1
- package/dist/types/components/consent-manager/consent-manager.d.ts +0 -1
- package/dist/types/components/create-feature/create-feature.d.ts +37 -2
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +0 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +10 -6
- package/dist/types/components/delete-button/delete-button.d.ts +0 -1
- package/dist/types/components/edit-card/edit-card.d.ts +0 -1
- package/dist/types/components/feature-details/feature-details.d.ts +4 -1
- package/dist/types/components/feature-list/feature-list.d.ts +18 -2
- package/dist/types/components/floor-filter/floor-filter.d.ts +0 -1
- package/dist/types/components/info-card/info-card.d.ts +0 -1
- package/dist/types/components/layer-list/layer-list.d.ts +0 -1
- package/dist/types/components/layer-table/layer-table.d.ts +0 -1
- package/dist/types/components/map-card/map-card.d.ts +0 -1
- package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +0 -1
- package/dist/types/components/map-fullscreen/map-fullscreen.d.ts +0 -1
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +0 -1
- package/dist/types/components/map-legend/map-legend.d.ts +0 -1
- package/dist/types/components/map-search/map-search.d.ts +0 -1
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +0 -1
- package/dist/types/components/map-tools/map-tools.d.ts +0 -1
- package/dist/types/components/pdf-download/pdf-download.d.ts +0 -1
- package/dist/types/components/public-notification/public-notification.d.ts +0 -1
- package/dist/types/components/refine-selection/refine-selection.d.ts +0 -1
- package/dist/types/components.d.ts +37 -0
- package/dist/types/preact.d.ts +5 -5
- package/dist/types/utils/downloadUtils.d.ts +0 -1
- package/dist/types/utils/interfaces.d.ts +0 -1
- package/dist/types/utils/mapViewUtils.d.ts +0 -1
- package/dist/types/utils/popupUtils.d.ts +0 -1
- package/dist/types/utils/queryUtils.d.ts +0 -1
- package/package.json +7 -7
- package/dist/cjs/ExpandToggle-9cf51aba.js +0 -115
- package/dist/cjs/FloatingArrow-f78d627c.js +0 -48
- package/dist/cjs/Heading-5b274572.js +0 -25
- package/dist/cjs/Validation-a9d22fb7.js +0 -20
- package/dist/cjs/app-globals-62e0da30.js +0 -67
- package/dist/cjs/ar-67bbaacf.js +0 -107
- package/dist/cjs/array-67eea0ed.js +0 -17
- package/dist/cjs/bg-52d767e3.js +0 -85
- package/dist/cjs/browser-02cbd1d9.js +0 -35
- package/dist/cjs/bs-abb7a3ee.js +0 -54
- package/dist/cjs/ca-2618e485.js +0 -74
- package/dist/cjs/calcite-avatar_2.cjs.entry.js +0 -239
- package/dist/cjs/calcite-input-time-picker-be5ad250.js +0 -1863
- package/dist/cjs/component-9d0efa36.js +0 -33
- package/dist/cjs/conditionalSlot-fe01e316.js +0 -54
- package/dist/cjs/config-6a670c0d.js +0 -41
- package/dist/cjs/cs-9566238a.js +0 -150
- package/dist/cjs/da-86f2f759.js +0 -70
- package/dist/cjs/date-163d7302.js +0 -264
- package/dist/cjs/de-at-90927f4b.js +0 -93
- package/dist/cjs/de-ch-7185b180.js +0 -93
- package/dist/cjs/de-e7327417.js +0 -94
- package/dist/cjs/dom-63b93b3b.js +0 -1212
- package/dist/cjs/downloadUtils-60ee99e0.js +0 -3163
- package/dist/cjs/el-ee1c6246.js +0 -69
- package/dist/cjs/en-au-c245e1fa.js +0 -69
- package/dist/cjs/en-ca-44552f66.js +0 -68
- package/dist/cjs/en-gb-cf4bdbbf.js +0 -72
- package/dist/cjs/es-e27b3455.js +0 -69
- package/dist/cjs/es-mx-d5455d49.js +0 -68
- package/dist/cjs/et-521fe75e.js +0 -95
- package/dist/cjs/fi-ba5f1240.js +0 -118
- package/dist/cjs/filter-adc5c5aa.js +0 -778
- package/dist/cjs/floating-ui-1ef64f13.js +0 -2362
- package/dist/cjs/focusTrapComponent-1881eaf7.js +0 -1018
- package/dist/cjs/form-4c0bbbe5.js +0 -381
- package/dist/cjs/fr-014e6869.js +0 -71
- package/dist/cjs/fr-ch-9174a431.js +0 -69
- package/dist/cjs/guid-4bc1bc0f.js +0 -26
- package/dist/cjs/he-ac6a1230.js +0 -108
- package/dist/cjs/helpers-6f7660d4.js +0 -940
- package/dist/cjs/hi-b605b081.js +0 -68
- package/dist/cjs/hr-1f50021e.js +0 -83
- package/dist/cjs/hu-0dbb012b.js +0 -91
- package/dist/cjs/id-be5cad02.js +0 -69
- package/dist/cjs/index-696e53e6.js +0 -1756
- package/dist/cjs/index-a0cca96e.js +0 -201
- package/dist/cjs/index-c0ee2715.js +0 -206
- package/dist/cjs/index.es-38913dfa.js +0 -11317
- package/dist/cjs/input-2d5a669d.js +0 -60
- package/dist/cjs/interactive-272b8484.js +0 -169
- package/dist/cjs/it-2d267c40.js +0 -69
- package/dist/cjs/it-ch-7e63ab0d.js +0 -69
- package/dist/cjs/ja-f84367c9.js +0 -75
- package/dist/cjs/key-e4dd32ff.js +0 -19
- package/dist/cjs/ko-3b4ea66e.js +0 -75
- package/dist/cjs/label-afda7da7.js +0 -186
- package/dist/cjs/languageSwitcher-f0bb94fa.js +0 -60
- package/dist/cjs/languageUtil-f22ce913.js +0 -69
- package/dist/cjs/loadModules-36d49819.js +0 -23
- package/dist/cjs/loadable-ef8f0acf.js +0 -98
- package/dist/cjs/locale-239118c6.js +0 -120
- package/dist/cjs/locale-2dc1252d.js +0 -160
- package/dist/cjs/locale-428354f0.js +0 -584
- package/dist/cjs/logger-bb2cd9dd.js +0 -61
- package/dist/cjs/lt-52ddc840.js +0 -100
- package/dist/cjs/lv-646b5876.js +0 -69
- package/dist/cjs/math-8677dfd7.js +0 -60
- package/dist/cjs/mk-bfa4f151.js +0 -69
- package/dist/cjs/nb-8d337597.js +0 -70
- package/dist/cjs/nl-da233a0d.js +0 -70
- package/dist/cjs/observers-3440c668.js +0 -58
- package/dist/cjs/openCloseComponent-f9bf524b.js +0 -65
- package/dist/cjs/pl-596b9933.js +0 -117
- package/dist/cjs/popupUtils-0cabaa1f.js +0 -121
- package/dist/cjs/pt-bc779aca.js +0 -70
- package/dist/cjs/pt-br-ab04f8b9.js +0 -68
- package/dist/cjs/publicNotificationStore-8d2558c6.js +0 -47
- package/dist/cjs/resources-2f7b1adf.js +0 -23
- package/dist/cjs/resources-361aeee1.js +0 -68
- package/dist/cjs/resources-388b6f7e.js +0 -29
- package/dist/cjs/resources-6ed4d812.js +0 -39
- package/dist/cjs/resources-8556a9ce.js +0 -39
- package/dist/cjs/resources-91cff82d.js +0 -21
- package/dist/cjs/resources-a88c66ba.js +0 -26
- package/dist/cjs/resources-cb7b739c.js +0 -63
- package/dist/cjs/resources-e3034d0f.js +0 -27
- package/dist/cjs/resources-ea500edf.js +0 -23
- package/dist/cjs/ro-8e73fabd.js +0 -69
- package/dist/cjs/ru-a9cf0c93.js +0 -129
- package/dist/cjs/shared-list-render-8da9f754.js +0 -361
- package/dist/cjs/sk-f23f0865.js +0 -151
- package/dist/cjs/sl-66cee3ca.js +0 -171
- package/dist/cjs/solution-store-747a28ab.js +0 -1353
- package/dist/cjs/sortableComponent-842b0585.js +0 -2748
- package/dist/cjs/sr-f6958417.js +0 -104
- package/dist/cjs/sv-b6f30578.js +0 -74
- package/dist/cjs/t9n-e5fb720b.js +0 -108
- package/dist/cjs/th-7266bbe1.js +0 -68
- package/dist/cjs/time-35e40020.js +0 -301
- package/dist/cjs/tr-0ca37955.js +0 -69
- package/dist/cjs/uk-84db760b.js +0 -107
- package/dist/cjs/utils-3f254442.js +0 -72
- package/dist/cjs/utils-42df996f.js +0 -2304
- package/dist/cjs/utils-e486aa01.js +0 -130
- package/dist/cjs/vi-c9c7a4bc.js +0 -73
- package/dist/cjs/zh-cn-c1bd1cac.js +0 -97
- package/dist/cjs/zh-hk-80a1b071.js +0 -95
- package/dist/cjs/zh-tw-b1d0baea.js +0 -95
- package/dist/esm/ExpandToggle-0a6958eb.js +0 -108
- package/dist/esm/FloatingArrow-3593832a.js +0 -46
- package/dist/esm/Heading-dcf63f4d.js +0 -22
- package/dist/esm/Validation-8ddc15e3.js +0 -18
- package/dist/esm/app-globals-e3c6f3f0.js +0 -65
- package/dist/esm/ar-ad19e823.js +0 -105
- package/dist/esm/array-5ce54fce.js +0 -15
- package/dist/esm/bg-d39d00d4.js +0 -83
- package/dist/esm/browser-8c71dd57.js +0 -32
- package/dist/esm/bs-5578d068.js +0 -52
- package/dist/esm/ca-50d49800.js +0 -72
- package/dist/esm/calcite-avatar_2.entry.js +0 -234
- package/dist/esm/calcite-input-time-picker-48568b36.js +0 -1860
- package/dist/esm/component-e3f05da5.js +0 -30
- package/dist/esm/conditionalSlot-33053690.js +0 -51
- package/dist/esm/config-6d8fa5c8.js +0 -37
- package/dist/esm/cs-c01bc02b.js +0 -148
- package/dist/esm/da-30f1c62d.js +0 -68
- package/dist/esm/date-1f2a59fd.js +0 -248
- package/dist/esm/de-at-8b651f1b.js +0 -91
- package/dist/esm/de-ch-16f901cb.js +0 -91
- package/dist/esm/de-f3ff49fe.js +0 -92
- package/dist/esm/dom-982585e7.js +0 -1177
- package/dist/esm/downloadUtils-51c2c502.js +0 -3156
- package/dist/esm/el-3cc5361f.js +0 -67
- package/dist/esm/en-au-5e1ae1c6.js +0 -67
- package/dist/esm/en-ca-eca7afe3.js +0 -66
- package/dist/esm/en-gb-d41a41f9.js +0 -70
- package/dist/esm/es-3119bf5f.js +0 -67
- package/dist/esm/es-mx-765f73cd.js +0 -66
- package/dist/esm/et-524d60ab.js +0 -93
- package/dist/esm/fi-103b9c33.js +0 -116
- package/dist/esm/filter-4fc9cd19.js +0 -775
- package/dist/esm/floating-ui-28a86be6.js +0 -2354
- package/dist/esm/focusTrapComponent-2dc61826.js +0 -1013
- package/dist/esm/form-9827fc54.js +0 -372
- package/dist/esm/fr-a0f46db0.js +0 -69
- package/dist/esm/fr-ch-d4198d14.js +0 -67
- package/dist/esm/guid-5c959cfd.js +0 -24
- package/dist/esm/he-88cc49d1.js +0 -106
- package/dist/esm/helpers-62213648.js +0 -913
- package/dist/esm/hi-3fb3aeaf.js +0 -66
- package/dist/esm/hr-30bc6bf7.js +0 -81
- package/dist/esm/hu-ca65e08b.js +0 -89
- package/dist/esm/id-4c1eee8c.js +0 -67
- package/dist/esm/index-1dc14abf.js +0 -199
- package/dist/esm/index-d8ff08ed.js +0 -204
- package/dist/esm/index-e3f04fa1.js +0 -1722
- package/dist/esm/index.es-afea294f.js +0 -11230
- package/dist/esm/input-bf439d4b.js +0 -58
- package/dist/esm/interactive-1d03c7ff.js +0 -164
- package/dist/esm/it-4cb0e1d5.js +0 -67
- package/dist/esm/it-ch-4de1f33e.js +0 -67
- package/dist/esm/ja-2d531f7b.js +0 -73
- package/dist/esm/key-7f394a98.js +0 -16
- package/dist/esm/ko-1d957d12.js +0 -73
- package/dist/esm/label-38802319.js +0 -179
- package/dist/esm/languageSwitcher-b665499d.js +0 -57
- package/dist/esm/languageUtil-a3e6adf6.js +0 -66
- package/dist/esm/loadModules-9c062d08.js +0 -21
- package/dist/esm/loadable-869378d9.js +0 -93
- package/dist/esm/locale-35ebf4af.js +0 -115
- package/dist/esm/locale-53748f98.js +0 -571
- package/dist/esm/locale-e758c2ee.js +0 -155
- package/dist/esm/logger-c6b14fe1.js +0 -59
- package/dist/esm/lt-d09d3afe.js +0 -98
- package/dist/esm/lv-09f370a6.js +0 -67
- package/dist/esm/math-dbb62ccf.js +0 -54
- package/dist/esm/mk-f19a0976.js +0 -67
- package/dist/esm/nb-458b5aed.js +0 -68
- package/dist/esm/nl-f3c1e8a1.js +0 -68
- package/dist/esm/observers-0f4a5f9e.js +0 -56
- package/dist/esm/openCloseComponent-f118bfc5.js +0 -63
- package/dist/esm/pl-f9862e9b.js +0 -115
- package/dist/esm/popupUtils-d4fe0b41.js +0 -119
- package/dist/esm/pt-4e37d6f8.js +0 -68
- package/dist/esm/pt-br-30daca3c.js +0 -66
- package/dist/esm/publicNotificationStore-065c7136.js +0 -45
- package/dist/esm/resources-098ed485.js +0 -62
- package/dist/esm/resources-0bf41f5d.js +0 -20
- package/dist/esm/resources-124c42d1.js +0 -35
- package/dist/esm/resources-27689859.js +0 -21
- package/dist/esm/resources-3bc82696.js +0 -34
- package/dist/esm/resources-84590a8e.js +0 -24
- package/dist/esm/resources-98bf974e.js +0 -59
- package/dist/esm/resources-a4ff051c.js +0 -23
- package/dist/esm/resources-af396281.js +0 -22
- package/dist/esm/resources-cdba986a.js +0 -19
- package/dist/esm/ro-a83cfcaa.js +0 -67
- package/dist/esm/ru-bb2c629b.js +0 -127
- package/dist/esm/shared-list-render-d8c49a1f.js +0 -339
- package/dist/esm/sk-4cc2af3f.js +0 -149
- package/dist/esm/sl-0df8c942.js +0 -169
- package/dist/esm/solution-store-0586e891.js +0 -1351
- package/dist/esm/sortableComponent-173802fd.js +0 -2745
- package/dist/esm/sr-8d0e01f0.js +0 -102
- package/dist/esm/sv-8971f2c2.js +0 -72
- package/dist/esm/t9n-5371b7ab.js +0 -103
- package/dist/esm/th-32517448.js +0 -66
- package/dist/esm/time-2996215a.js +0 -286
- package/dist/esm/tr-42c9ac73.js +0 -67
- package/dist/esm/uk-d1b99329.js +0 -105
- package/dist/esm/utils-67264f4a.js +0 -2274
- package/dist/esm/utils-72a48b01.js +0 -121
- package/dist/esm/utils-ac0f19ea.js +0 -60
- package/dist/esm/vi-c6ff5a39.js +0 -71
- package/dist/esm/zh-cn-973d18ea.js +0 -95
- package/dist/esm/zh-hk-6fc51e3d.js +0 -93
- package/dist/esm/zh-tw-4e1d2a6a.js +0 -93
- package/dist/solutions-components/p-0034f196.entry.js +0 -21
- package/dist/solutions-components/p-00786a30.entry.js +0 -6
- package/dist/solutions-components/p-016e190c.entry.js +0 -6
- package/dist/solutions-components/p-01cc2423.js +0 -21
- package/dist/solutions-components/p-021da1d4.js +0 -6
- package/dist/solutions-components/p-02c4127b.entry.js +0 -17
- package/dist/solutions-components/p-071a9f50.entry.js +0 -11
- package/dist/solutions-components/p-09b47605.js +0 -36
- package/dist/solutions-components/p-09d62c22.js +0 -6
- package/dist/solutions-components/p-09ded315.js +0 -6
- package/dist/solutions-components/p-0a877c91.entry.js +0 -11
- package/dist/solutions-components/p-0ae5f8fe.js +0 -11
- package/dist/solutions-components/p-0d654053.entry.js +0 -11
- package/dist/solutions-components/p-0dcb7d0c.js +0 -6
- package/dist/solutions-components/p-0fb2abfe.js +0 -6
- package/dist/solutions-components/p-0feb3e7f.js +0 -6
- package/dist/solutions-components/p-104fa4cf.entry.js +0 -6
- package/dist/solutions-components/p-1176ec70.entry.js +0 -6
- package/dist/solutions-components/p-11f138bf.entry.js +0 -6
- package/dist/solutions-components/p-122a81b5.js +0 -21
- package/dist/solutions-components/p-13f83a1a.entry.js +0 -6
- package/dist/solutions-components/p-1452f846.js +0 -6
- package/dist/solutions-components/p-1628325d.entry.js +0 -17
- package/dist/solutions-components/p-16ae29b6.entry.js +0 -11
- package/dist/solutions-components/p-16d69510.js +0 -16
- package/dist/solutions-components/p-1931eae1.entry.js +0 -11
- package/dist/solutions-components/p-1a634d43.js +0 -6
- package/dist/solutions-components/p-1b64ce16.js +0 -6
- package/dist/solutions-components/p-1c785e3a.js +0 -6
- package/dist/solutions-components/p-1cae39b3.js +0 -6
- package/dist/solutions-components/p-1d229886.js +0 -16
- package/dist/solutions-components/p-1ddef837.entry.js +0 -12
- package/dist/solutions-components/p-1ee635a2.entry.js +0 -6
- package/dist/solutions-components/p-210588d0.entry.js +0 -6
- package/dist/solutions-components/p-210d75fe.js +0 -18
- package/dist/solutions-components/p-2162a9d3.js +0 -11
- package/dist/solutions-components/p-22d81e03.js +0 -11
- package/dist/solutions-components/p-2327029a.js +0 -11
- package/dist/solutions-components/p-23f5aa20.entry.js +0 -6
- package/dist/solutions-components/p-24fab352.js +0 -6
- package/dist/solutions-components/p-259ce172.js +0 -6
- package/dist/solutions-components/p-262e91ea.js +0 -11
- package/dist/solutions-components/p-274c182a.entry.js +0 -6
- package/dist/solutions-components/p-2923d5ed.js +0 -489
- package/dist/solutions-components/p-29962ae5.entry.js +0 -6
- package/dist/solutions-components/p-29984000.js +0 -6
- package/dist/solutions-components/p-2b21f196.js +0 -6
- package/dist/solutions-components/p-2d01b83d.entry.js +0 -11
- package/dist/solutions-components/p-2d03b0d7.entry.js +0 -6
- package/dist/solutions-components/p-2eb8993c.entry.js +0 -11
- package/dist/solutions-components/p-2ed4f0cf.entry.js +0 -6
- package/dist/solutions-components/p-2f08fd73.js +0 -16
- package/dist/solutions-components/p-2f2118a7.entry.js +0 -11
- package/dist/solutions-components/p-3058da8b.entry.js +0 -29
- package/dist/solutions-components/p-31f602c0.js +0 -11
- package/dist/solutions-components/p-32ded6e5.entry.js +0 -6
- package/dist/solutions-components/p-33447b6f.js +0 -11
- package/dist/solutions-components/p-34a9bd5d.entry.js +0 -11
- package/dist/solutions-components/p-3581d7dc.entry.js +0 -12
- package/dist/solutions-components/p-376e8412.js +0 -11
- package/dist/solutions-components/p-386429a4.entry.js +0 -6
- package/dist/solutions-components/p-392c6cec.entry.js +0 -6
- package/dist/solutions-components/p-39ae36e9.js +0 -6
- package/dist/solutions-components/p-3b0859ac.entry.js +0 -6
- package/dist/solutions-components/p-3b4170e9.entry.js +0 -22
- package/dist/solutions-components/p-3cc9861e.entry.js +0 -17
- package/dist/solutions-components/p-3e909ad8.entry.js +0 -11
- package/dist/solutions-components/p-3fcbaab8.js +0 -11
- package/dist/solutions-components/p-407d22c9.entry.js +0 -11
- package/dist/solutions-components/p-4250bde1.js +0 -11
- package/dist/solutions-components/p-440c2d17.js +0 -11
- package/dist/solutions-components/p-44194734.js +0 -6
- package/dist/solutions-components/p-482948c4.entry.js +0 -17
- package/dist/solutions-components/p-483fbfa7.entry.js +0 -6
- package/dist/solutions-components/p-4a0838c0.entry.js +0 -6
- package/dist/solutions-components/p-4a5f0a97.entry.js +0 -17
- package/dist/solutions-components/p-4b03ad1e.js +0 -6
- package/dist/solutions-components/p-4b843bc0.entry.js +0 -6
- package/dist/solutions-components/p-4c0b8e55.entry.js +0 -6
- package/dist/solutions-components/p-4d03fed9.js +0 -61
- package/dist/solutions-components/p-4d8ac736.entry.js +0 -6
- package/dist/solutions-components/p-51cfb4a6.entry.js +0 -6
- package/dist/solutions-components/p-57262e5a.js +0 -6
- package/dist/solutions-components/p-5835b3f4.entry.js +0 -11
- package/dist/solutions-components/p-583ecbf6.js +0 -11
- package/dist/solutions-components/p-595ec807.entry.js +0 -11
- package/dist/solutions-components/p-5df3d135.js +0 -16
- package/dist/solutions-components/p-5df4b021.entry.js +0 -11
- package/dist/solutions-components/p-60a80c7f.entry.js +0 -29
- package/dist/solutions-components/p-60efb594.entry.js +0 -11
- package/dist/solutions-components/p-614edd9f.entry.js +0 -6
- package/dist/solutions-components/p-62050072.js +0 -6
- package/dist/solutions-components/p-62414b49.js +0 -6
- package/dist/solutions-components/p-626b6acd.js +0 -6
- package/dist/solutions-components/p-65283b75.entry.js +0 -6
- package/dist/solutions-components/p-65581d83.js +0 -6
- package/dist/solutions-components/p-66daf5ec.entry.js +0 -17
- package/dist/solutions-components/p-680ed47d.js +0 -6
- package/dist/solutions-components/p-681fbb6e.js +0 -6
- package/dist/solutions-components/p-687e9081.entry.js +0 -11
- package/dist/solutions-components/p-6a66d5a9.entry.js +0 -6
- package/dist/solutions-components/p-6b0ecd98.entry.js +0 -11
- package/dist/solutions-components/p-6b64edcd.js +0 -6
- package/dist/solutions-components/p-6c11b89e.js +0 -6
- package/dist/solutions-components/p-6d030079.js +0 -6
- package/dist/solutions-components/p-6d04189c.entry.js +0 -6
- package/dist/solutions-components/p-6f836c0a.entry.js +0 -6
- package/dist/solutions-components/p-70a52e62.entry.js +0 -11
- package/dist/solutions-components/p-70b4e46f.js +0 -11
- package/dist/solutions-components/p-71a2d5b8.entry.js +0 -6
- package/dist/solutions-components/p-73a1e1b9.js +0 -6
- package/dist/solutions-components/p-73ae4b9b.js +0 -11
- package/dist/solutions-components/p-756a5a7f.entry.js +0 -12
- package/dist/solutions-components/p-762eab84.js +0 -6
- package/dist/solutions-components/p-77548c28.entry.js +0 -11
- package/dist/solutions-components/p-77fa776e.entry.js +0 -11
- package/dist/solutions-components/p-78c82389.js +0 -6
- package/dist/solutions-components/p-79fd09fa.js +0 -6
- package/dist/solutions-components/p-7a2f9e5b.entry.js +0 -16
- package/dist/solutions-components/p-7a326ee8.entry.js +0 -11
- package/dist/solutions-components/p-7a64b026.entry.js +0 -17
- package/dist/solutions-components/p-7bdef5f5.entry.js +0 -11
- package/dist/solutions-components/p-7c585a72.js +0 -11
- package/dist/solutions-components/p-7e7ddb11.js +0 -6
- package/dist/solutions-components/p-7ed62b29.js +0 -6
- package/dist/solutions-components/p-8428237a.entry.js +0 -11
- package/dist/solutions-components/p-84478793.js +0 -11
- package/dist/solutions-components/p-8448b98b.js +0 -17
- package/dist/solutions-components/p-85c25564.entry.js +0 -6
- package/dist/solutions-components/p-86660809.js +0 -6
- package/dist/solutions-components/p-88b55caa.entry.js +0 -6
- package/dist/solutions-components/p-8904675a.entry.js +0 -11
- package/dist/solutions-components/p-8a9257ec.entry.js +0 -11
- package/dist/solutions-components/p-8af893c6.entry.js +0 -6
- package/dist/solutions-components/p-8b611f1f.entry.js +0 -6
- package/dist/solutions-components/p-8b922152.js +0 -6
- package/dist/solutions-components/p-8ce3d9f3.entry.js +0 -11
- package/dist/solutions-components/p-8d7479ec.entry.js +0 -6
- package/dist/solutions-components/p-8f3af937.entry.js +0 -24
- package/dist/solutions-components/p-90372205.entry.js +0 -11
- package/dist/solutions-components/p-90dd8aec.js +0 -11
- package/dist/solutions-components/p-91a87888.entry.js +0 -6
- package/dist/solutions-components/p-92744164.entry.js +0 -6
- package/dist/solutions-components/p-93a86792.entry.js +0 -11
- package/dist/solutions-components/p-93c34427.entry.js +0 -6
- package/dist/solutions-components/p-947ef2fa.entry.js +0 -6
- package/dist/solutions-components/p-94b118d5.js +0 -6
- package/dist/solutions-components/p-94f68938.js +0 -6
- package/dist/solutions-components/p-9779be82.js +0 -6
- package/dist/solutions-components/p-988fc332.entry.js +0 -11
- package/dist/solutions-components/p-998933e7.entry.js +0 -6
- package/dist/solutions-components/p-9a2ab5bc.js +0 -11
- package/dist/solutions-components/p-9a370c05.entry.js +0 -47
- package/dist/solutions-components/p-9a46618c.entry.js +0 -6
- package/dist/solutions-components/p-a2150807.entry.js +0 -6
- package/dist/solutions-components/p-a3544947.entry.js +0 -11
- package/dist/solutions-components/p-a3e66f8e.entry.js +0 -11
- package/dist/solutions-components/p-a432be00.js +0 -6
- package/dist/solutions-components/p-a72fd9b4.js +0 -6
- package/dist/solutions-components/p-a7710355.js +0 -143
- package/dist/solutions-components/p-a7b05a79.entry.js +0 -6
- package/dist/solutions-components/p-a8e556aa.js +0 -11
- package/dist/solutions-components/p-ab2c4033.entry.js +0 -6
- package/dist/solutions-components/p-add49b80.entry.js +0 -23
- package/dist/solutions-components/p-af2c8aa9.js +0 -6
- package/dist/solutions-components/p-af3a9822.js +0 -6
- package/dist/solutions-components/p-afad4f05.js +0 -6
- package/dist/solutions-components/p-b05b7f3e.entry.js +0 -11
- package/dist/solutions-components/p-b0609d19.entry.js +0 -11
- package/dist/solutions-components/p-b06ae708.js +0 -6
- package/dist/solutions-components/p-b1c71e50.js +0 -11
- package/dist/solutions-components/p-b470a429.js +0 -6
- package/dist/solutions-components/p-b4f06fe2.entry.js +0 -11
- package/dist/solutions-components/p-b981067f.entry.js +0 -6
- package/dist/solutions-components/p-bb3ce613.js +0 -11
- package/dist/solutions-components/p-beeccd19.entry.js +0 -6
- package/dist/solutions-components/p-c2bafa94.entry.js +0 -6
- package/dist/solutions-components/p-c4d3790a.entry.js +0 -6
- package/dist/solutions-components/p-c5897e36.js +0 -11
- package/dist/solutions-components/p-c5d15c91.js +0 -11
- package/dist/solutions-components/p-c5f22510.js +0 -11
- package/dist/solutions-components/p-c6f8bc28.js +0 -6
- package/dist/solutions-components/p-c742acd9.js +0 -6
- package/dist/solutions-components/p-c7c0c863.entry.js +0 -11
- package/dist/solutions-components/p-c8a8591b.entry.js +0 -11
- package/dist/solutions-components/p-c9fc3253.js +0 -6
- package/dist/solutions-components/p-ca42f3d3.js +0 -11
- package/dist/solutions-components/p-cc47ff22.entry.js +0 -11
- package/dist/solutions-components/p-ccba7d93.js +0 -6
- package/dist/solutions-components/p-cd4d69c1.js +0 -11
- package/dist/solutions-components/p-cdb01b99.entry.js +0 -11
- package/dist/solutions-components/p-cf754ff5.js +0 -11
- package/dist/solutions-components/p-cfca5772.js +0 -11
- package/dist/solutions-components/p-d0ff7db8.js +0 -6
- package/dist/solutions-components/p-d34e12f4.entry.js +0 -11
- package/dist/solutions-components/p-d4e3e979.js +0 -11
- package/dist/solutions-components/p-d655a7a2.entry.js +0 -6
- package/dist/solutions-components/p-d7ee860a.js +0 -11
- package/dist/solutions-components/p-d98d3d33.js +0 -6
- package/dist/solutions-components/p-da2d0073.entry.js +0 -6
- package/dist/solutions-components/p-da9fc69b.entry.js +0 -11
- package/dist/solutions-components/p-dcc35070.js +0 -6
- package/dist/solutions-components/p-de30afd0.entry.js +0 -6
- package/dist/solutions-components/p-e1f30753.entry.js +0 -11
- package/dist/solutions-components/p-e21efd7d.js +0 -11
- package/dist/solutions-components/p-e2f3674f.entry.js +0 -11
- package/dist/solutions-components/p-e4767cc4.entry.js +0 -11
- package/dist/solutions-components/p-e6742158.entry.js +0 -11
- package/dist/solutions-components/p-e8bd5b44.entry.js +0 -11
- package/dist/solutions-components/p-e936f80a.entry.js +0 -21
- package/dist/solutions-components/p-ec561560.js +0 -12
- package/dist/solutions-components/p-ed95c75e.js +0 -11
- package/dist/solutions-components/p-ed9b7fa1.entry.js +0 -6
- package/dist/solutions-components/p-ee056d26.js +0 -17
- package/dist/solutions-components/p-ee0a512f.entry.js +0 -6
- package/dist/solutions-components/p-eefcb751.entry.js +0 -6
- package/dist/solutions-components/p-ef493a84.entry.js +0 -6
- package/dist/solutions-components/p-f012ccbb.js +0 -11
- package/dist/solutions-components/p-f021c564.js +0 -6
- package/dist/solutions-components/p-f2ac5d0e.js +0 -6
- package/dist/solutions-components/p-f39f661e.entry.js +0 -11
- package/dist/solutions-components/p-f3e54df7.entry.js +0 -6
- package/dist/solutions-components/p-f4828ba4.entry.js +0 -6
- package/dist/solutions-components/p-f4c4a2b7.js +0 -7
- package/dist/solutions-components/p-f7d822f7.entry.js +0 -6
- package/dist/solutions-components/p-f83c0ef6.js +0 -11
- package/dist/solutions-components/p-fbeba590.entry.js +0 -11
- package/dist/solutions-components/p-fc02896c.entry.js +0 -6
- package/dist/solutions-components/p-fc474b33.js +0 -6
- package/dist/solutions-components/p-fcfbd587.js +0 -6
- package/dist/solutions-components/p-fdf4caad.js +0 -11
- package/dist/solutions-components/p-fe43ec31.entry.js +0 -16
- package/dist/solutions-components/p-fee0a94a.entry.js +0 -17
- package/dist/solutions-components/p-ffbecb75.js +0 -6
- package/dist/solutions-components_commit.txt +0 -7
- /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/cjs/{index-4c1b0d3c.js → index-04255c05.js} +0 -0
- /package/dist/{esm/index-5110a27a.js → components/index7.js} +0 -0
- /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
- /package/dist/solutions-components/{p-74062e42.js → p-fc17754b.js} +0 -0
@@ -1,2745 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
/**!
|
7
|
-
* Sortable 1.15.1
|
8
|
-
* @author RubaXa <trash@rubaxa.org>
|
9
|
-
* @author owenm <owen23355@gmail.com>
|
10
|
-
* @license MIT
|
11
|
-
*/
|
12
|
-
function ownKeys(object, enumerableOnly) {
|
13
|
-
var keys = Object.keys(object);
|
14
|
-
if (Object.getOwnPropertySymbols) {
|
15
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
16
|
-
if (enumerableOnly) {
|
17
|
-
symbols = symbols.filter(function (sym) {
|
18
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
19
|
-
});
|
20
|
-
}
|
21
|
-
keys.push.apply(keys, symbols);
|
22
|
-
}
|
23
|
-
return keys;
|
24
|
-
}
|
25
|
-
function _objectSpread2(target) {
|
26
|
-
for (var i = 1; i < arguments.length; i++) {
|
27
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
28
|
-
if (i % 2) {
|
29
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
30
|
-
_defineProperty(target, key, source[key]);
|
31
|
-
});
|
32
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
33
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
34
|
-
} else {
|
35
|
-
ownKeys(Object(source)).forEach(function (key) {
|
36
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
37
|
-
});
|
38
|
-
}
|
39
|
-
}
|
40
|
-
return target;
|
41
|
-
}
|
42
|
-
function _typeof(obj) {
|
43
|
-
"@babel/helpers - typeof";
|
44
|
-
|
45
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
46
|
-
_typeof = function (obj) {
|
47
|
-
return typeof obj;
|
48
|
-
};
|
49
|
-
} else {
|
50
|
-
_typeof = function (obj) {
|
51
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
52
|
-
};
|
53
|
-
}
|
54
|
-
return _typeof(obj);
|
55
|
-
}
|
56
|
-
function _defineProperty(obj, key, value) {
|
57
|
-
if (key in obj) {
|
58
|
-
Object.defineProperty(obj, key, {
|
59
|
-
value: value,
|
60
|
-
enumerable: true,
|
61
|
-
configurable: true,
|
62
|
-
writable: true
|
63
|
-
});
|
64
|
-
} else {
|
65
|
-
obj[key] = value;
|
66
|
-
}
|
67
|
-
return obj;
|
68
|
-
}
|
69
|
-
function _extends() {
|
70
|
-
_extends = Object.assign || function (target) {
|
71
|
-
for (var i = 1; i < arguments.length; i++) {
|
72
|
-
var source = arguments[i];
|
73
|
-
for (var key in source) {
|
74
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
75
|
-
target[key] = source[key];
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
79
|
-
return target;
|
80
|
-
};
|
81
|
-
return _extends.apply(this, arguments);
|
82
|
-
}
|
83
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
84
|
-
if (source == null) return {};
|
85
|
-
var target = {};
|
86
|
-
var sourceKeys = Object.keys(source);
|
87
|
-
var key, i;
|
88
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
89
|
-
key = sourceKeys[i];
|
90
|
-
if (excluded.indexOf(key) >= 0) continue;
|
91
|
-
target[key] = source[key];
|
92
|
-
}
|
93
|
-
return target;
|
94
|
-
}
|
95
|
-
function _objectWithoutProperties(source, excluded) {
|
96
|
-
if (source == null) return {};
|
97
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
98
|
-
var key, i;
|
99
|
-
if (Object.getOwnPropertySymbols) {
|
100
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
101
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
102
|
-
key = sourceSymbolKeys[i];
|
103
|
-
if (excluded.indexOf(key) >= 0) continue;
|
104
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
105
|
-
target[key] = source[key];
|
106
|
-
}
|
107
|
-
}
|
108
|
-
return target;
|
109
|
-
}
|
110
|
-
|
111
|
-
var version = "1.15.1";
|
112
|
-
|
113
|
-
function userAgent(pattern) {
|
114
|
-
if (typeof window !== 'undefined' && window.navigator) {
|
115
|
-
return !! /*@__PURE__*/navigator.userAgent.match(pattern);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
119
|
-
var Edge = userAgent(/Edge/i);
|
120
|
-
var FireFox = userAgent(/firefox/i);
|
121
|
-
var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
|
122
|
-
var IOS = userAgent(/iP(ad|od|hone)/i);
|
123
|
-
var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
|
124
|
-
|
125
|
-
var captureMode = {
|
126
|
-
capture: false,
|
127
|
-
passive: false
|
128
|
-
};
|
129
|
-
function on(el, event, fn) {
|
130
|
-
el.addEventListener(event, fn, !IE11OrLess && captureMode);
|
131
|
-
}
|
132
|
-
function off(el, event, fn) {
|
133
|
-
el.removeEventListener(event, fn, !IE11OrLess && captureMode);
|
134
|
-
}
|
135
|
-
function matches( /**HTMLElement*/el, /**String*/selector) {
|
136
|
-
if (!selector) return;
|
137
|
-
selector[0] === '>' && (selector = selector.substring(1));
|
138
|
-
if (el) {
|
139
|
-
try {
|
140
|
-
if (el.matches) {
|
141
|
-
return el.matches(selector);
|
142
|
-
} else if (el.msMatchesSelector) {
|
143
|
-
return el.msMatchesSelector(selector);
|
144
|
-
} else if (el.webkitMatchesSelector) {
|
145
|
-
return el.webkitMatchesSelector(selector);
|
146
|
-
}
|
147
|
-
} catch (_) {
|
148
|
-
return false;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
return false;
|
152
|
-
}
|
153
|
-
function getParentOrHost(el) {
|
154
|
-
return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
155
|
-
}
|
156
|
-
function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
|
157
|
-
if (el) {
|
158
|
-
ctx = ctx || document;
|
159
|
-
do {
|
160
|
-
if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
|
161
|
-
return el;
|
162
|
-
}
|
163
|
-
if (el === ctx) break;
|
164
|
-
/* jshint boss:true */
|
165
|
-
} while (el = getParentOrHost(el));
|
166
|
-
}
|
167
|
-
return null;
|
168
|
-
}
|
169
|
-
var R_SPACE = /\s+/g;
|
170
|
-
function toggleClass(el, name, state) {
|
171
|
-
if (el && name) {
|
172
|
-
if (el.classList) {
|
173
|
-
el.classList[state ? 'add' : 'remove'](name);
|
174
|
-
} else {
|
175
|
-
var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');
|
176
|
-
el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');
|
177
|
-
}
|
178
|
-
}
|
179
|
-
}
|
180
|
-
function css(el, prop, val) {
|
181
|
-
var style = el && el.style;
|
182
|
-
if (style) {
|
183
|
-
if (val === void 0) {
|
184
|
-
if (document.defaultView && document.defaultView.getComputedStyle) {
|
185
|
-
val = document.defaultView.getComputedStyle(el, '');
|
186
|
-
} else if (el.currentStyle) {
|
187
|
-
val = el.currentStyle;
|
188
|
-
}
|
189
|
-
return prop === void 0 ? val : val[prop];
|
190
|
-
} else {
|
191
|
-
if (!(prop in style) && prop.indexOf('webkit') === -1) {
|
192
|
-
prop = '-webkit-' + prop;
|
193
|
-
}
|
194
|
-
style[prop] = val + (typeof val === 'string' ? '' : 'px');
|
195
|
-
}
|
196
|
-
}
|
197
|
-
}
|
198
|
-
function matrix(el, selfOnly) {
|
199
|
-
var appliedTransforms = '';
|
200
|
-
if (typeof el === 'string') {
|
201
|
-
appliedTransforms = el;
|
202
|
-
} else {
|
203
|
-
do {
|
204
|
-
var transform = css(el, 'transform');
|
205
|
-
if (transform && transform !== 'none') {
|
206
|
-
appliedTransforms = transform + ' ' + appliedTransforms;
|
207
|
-
}
|
208
|
-
/* jshint boss:true */
|
209
|
-
} while (!selfOnly && (el = el.parentNode));
|
210
|
-
}
|
211
|
-
var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
212
|
-
/*jshint -W056 */
|
213
|
-
return matrixFn && new matrixFn(appliedTransforms);
|
214
|
-
}
|
215
|
-
function find(ctx, tagName, iterator) {
|
216
|
-
if (ctx) {
|
217
|
-
var list = ctx.getElementsByTagName(tagName),
|
218
|
-
i = 0,
|
219
|
-
n = list.length;
|
220
|
-
if (iterator) {
|
221
|
-
for (; i < n; i++) {
|
222
|
-
iterator(list[i], i);
|
223
|
-
}
|
224
|
-
}
|
225
|
-
return list;
|
226
|
-
}
|
227
|
-
return [];
|
228
|
-
}
|
229
|
-
function getWindowScrollingElement() {
|
230
|
-
var scrollingElement = document.scrollingElement;
|
231
|
-
if (scrollingElement) {
|
232
|
-
return scrollingElement;
|
233
|
-
} else {
|
234
|
-
return document.documentElement;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
|
238
|
-
/**
|
239
|
-
* Returns the "bounding client rect" of given element
|
240
|
-
* @param {HTMLElement} el The element whose boundingClientRect is wanted
|
241
|
-
* @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
|
242
|
-
* @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
|
243
|
-
* @param {[Boolean]} undoScale Whether the container's scale() should be undone
|
244
|
-
* @param {[HTMLElement]} container The parent the element will be placed in
|
245
|
-
* @return {Object} The boundingClientRect of el, with specified adjustments
|
246
|
-
*/
|
247
|
-
function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
|
248
|
-
if (!el.getBoundingClientRect && el !== window) return;
|
249
|
-
var elRect, top, left, bottom, right, height, width;
|
250
|
-
if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
|
251
|
-
elRect = el.getBoundingClientRect();
|
252
|
-
top = elRect.top;
|
253
|
-
left = elRect.left;
|
254
|
-
bottom = elRect.bottom;
|
255
|
-
right = elRect.right;
|
256
|
-
height = elRect.height;
|
257
|
-
width = elRect.width;
|
258
|
-
} else {
|
259
|
-
top = 0;
|
260
|
-
left = 0;
|
261
|
-
bottom = window.innerHeight;
|
262
|
-
right = window.innerWidth;
|
263
|
-
height = window.innerHeight;
|
264
|
-
width = window.innerWidth;
|
265
|
-
}
|
266
|
-
if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
|
267
|
-
// Adjust for translate()
|
268
|
-
container = container || el.parentNode;
|
269
|
-
|
270
|
-
// solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
|
271
|
-
// Not needed on <= IE11
|
272
|
-
if (!IE11OrLess) {
|
273
|
-
do {
|
274
|
-
if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
|
275
|
-
var containerRect = container.getBoundingClientRect();
|
276
|
-
|
277
|
-
// Set relative to edges of padding box of container
|
278
|
-
top -= containerRect.top + parseInt(css(container, 'border-top-width'));
|
279
|
-
left -= containerRect.left + parseInt(css(container, 'border-left-width'));
|
280
|
-
bottom = top + elRect.height;
|
281
|
-
right = left + elRect.width;
|
282
|
-
break;
|
283
|
-
}
|
284
|
-
/* jshint boss:true */
|
285
|
-
} while (container = container.parentNode);
|
286
|
-
}
|
287
|
-
}
|
288
|
-
if (undoScale && el !== window) {
|
289
|
-
// Adjust for scale()
|
290
|
-
var elMatrix = matrix(container || el),
|
291
|
-
scaleX = elMatrix && elMatrix.a,
|
292
|
-
scaleY = elMatrix && elMatrix.d;
|
293
|
-
if (elMatrix) {
|
294
|
-
top /= scaleY;
|
295
|
-
left /= scaleX;
|
296
|
-
width /= scaleX;
|
297
|
-
height /= scaleY;
|
298
|
-
bottom = top + height;
|
299
|
-
right = left + width;
|
300
|
-
}
|
301
|
-
}
|
302
|
-
return {
|
303
|
-
top: top,
|
304
|
-
left: left,
|
305
|
-
bottom: bottom,
|
306
|
-
right: right,
|
307
|
-
width: width,
|
308
|
-
height: height
|
309
|
-
};
|
310
|
-
}
|
311
|
-
|
312
|
-
/**
|
313
|
-
* Returns the content rect of the element (bounding rect minus border and padding)
|
314
|
-
* @param {HTMLElement} el
|
315
|
-
*/
|
316
|
-
function getContentRect(el) {
|
317
|
-
var rect = getRect(el);
|
318
|
-
var paddingLeft = parseInt(css(el, 'padding-left')),
|
319
|
-
paddingTop = parseInt(css(el, 'padding-top')),
|
320
|
-
paddingRight = parseInt(css(el, 'padding-right')),
|
321
|
-
paddingBottom = parseInt(css(el, 'padding-bottom'));
|
322
|
-
rect.top += paddingTop + parseInt(css(el, 'border-top-width'));
|
323
|
-
rect.left += paddingLeft + parseInt(css(el, 'border-left-width'));
|
324
|
-
// Client Width/Height includes padding only
|
325
|
-
rect.width = el.clientWidth - paddingLeft - paddingRight;
|
326
|
-
rect.height = el.clientHeight - paddingTop - paddingBottom;
|
327
|
-
rect.bottom = rect.top + rect.height;
|
328
|
-
rect.right = rect.left + rect.width;
|
329
|
-
return rect;
|
330
|
-
}
|
331
|
-
|
332
|
-
/**
|
333
|
-
* Checks if a side of an element is scrolled past a side of its parents
|
334
|
-
* @param {HTMLElement} el The element who's side being scrolled out of view is in question
|
335
|
-
* @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
|
336
|
-
* @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
|
337
|
-
* @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
|
338
|
-
*/
|
339
|
-
function isScrolledPast(el, elSide, parentSide) {
|
340
|
-
var parent = getParentAutoScrollElement(el, true),
|
341
|
-
elSideVal = getRect(el)[elSide];
|
342
|
-
|
343
|
-
/* jshint boss:true */
|
344
|
-
while (parent) {
|
345
|
-
var parentSideVal = getRect(parent)[parentSide],
|
346
|
-
visible = void 0;
|
347
|
-
if (parentSide === 'top' || parentSide === 'left') {
|
348
|
-
visible = elSideVal >= parentSideVal;
|
349
|
-
} else {
|
350
|
-
visible = elSideVal <= parentSideVal;
|
351
|
-
}
|
352
|
-
if (!visible) return parent;
|
353
|
-
if (parent === getWindowScrollingElement()) break;
|
354
|
-
parent = getParentAutoScrollElement(parent, false);
|
355
|
-
}
|
356
|
-
return false;
|
357
|
-
}
|
358
|
-
|
359
|
-
/**
|
360
|
-
* Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
|
361
|
-
* and non-draggable elements
|
362
|
-
* @param {HTMLElement} el The parent element
|
363
|
-
* @param {Number} childNum The index of the child
|
364
|
-
* @param {Object} options Parent Sortable's options
|
365
|
-
* @return {HTMLElement} The child at index childNum, or null if not found
|
366
|
-
*/
|
367
|
-
function getChild(el, childNum, options, includeDragEl) {
|
368
|
-
var currentChild = 0,
|
369
|
-
i = 0,
|
370
|
-
children = el.children;
|
371
|
-
while (i < children.length) {
|
372
|
-
if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
|
373
|
-
if (currentChild === childNum) {
|
374
|
-
return children[i];
|
375
|
-
}
|
376
|
-
currentChild++;
|
377
|
-
}
|
378
|
-
i++;
|
379
|
-
}
|
380
|
-
return null;
|
381
|
-
}
|
382
|
-
|
383
|
-
/**
|
384
|
-
* Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
|
385
|
-
* @param {HTMLElement} el Parent element
|
386
|
-
* @param {selector} selector Any other elements that should be ignored
|
387
|
-
* @return {HTMLElement} The last child, ignoring ghostEl
|
388
|
-
*/
|
389
|
-
function lastChild(el, selector) {
|
390
|
-
var last = el.lastElementChild;
|
391
|
-
while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
|
392
|
-
last = last.previousElementSibling;
|
393
|
-
}
|
394
|
-
return last || null;
|
395
|
-
}
|
396
|
-
|
397
|
-
/**
|
398
|
-
* Returns the index of an element within its parent for a selected set of
|
399
|
-
* elements
|
400
|
-
* @param {HTMLElement} el
|
401
|
-
* @param {selector} selector
|
402
|
-
* @return {number}
|
403
|
-
*/
|
404
|
-
function index(el, selector) {
|
405
|
-
var index = 0;
|
406
|
-
if (!el || !el.parentNode) {
|
407
|
-
return -1;
|
408
|
-
}
|
409
|
-
|
410
|
-
/* jshint boss:true */
|
411
|
-
while (el = el.previousElementSibling) {
|
412
|
-
if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
|
413
|
-
index++;
|
414
|
-
}
|
415
|
-
}
|
416
|
-
return index;
|
417
|
-
}
|
418
|
-
|
419
|
-
/**
|
420
|
-
* Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
|
421
|
-
* The value is returned in real pixels.
|
422
|
-
* @param {HTMLElement} el
|
423
|
-
* @return {Array} Offsets in the format of [left, top]
|
424
|
-
*/
|
425
|
-
function getRelativeScrollOffset(el) {
|
426
|
-
var offsetLeft = 0,
|
427
|
-
offsetTop = 0,
|
428
|
-
winScroller = getWindowScrollingElement();
|
429
|
-
if (el) {
|
430
|
-
do {
|
431
|
-
var elMatrix = matrix(el),
|
432
|
-
scaleX = elMatrix.a,
|
433
|
-
scaleY = elMatrix.d;
|
434
|
-
offsetLeft += el.scrollLeft * scaleX;
|
435
|
-
offsetTop += el.scrollTop * scaleY;
|
436
|
-
} while (el !== winScroller && (el = el.parentNode));
|
437
|
-
}
|
438
|
-
return [offsetLeft, offsetTop];
|
439
|
-
}
|
440
|
-
|
441
|
-
/**
|
442
|
-
* Returns the index of the object within the given array
|
443
|
-
* @param {Array} arr Array that may or may not hold the object
|
444
|
-
* @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
|
445
|
-
* @return {Number} The index of the object in the array, or -1
|
446
|
-
*/
|
447
|
-
function indexOfObject(arr, obj) {
|
448
|
-
for (var i in arr) {
|
449
|
-
if (!arr.hasOwnProperty(i)) continue;
|
450
|
-
for (var key in obj) {
|
451
|
-
if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
|
452
|
-
}
|
453
|
-
}
|
454
|
-
return -1;
|
455
|
-
}
|
456
|
-
function getParentAutoScrollElement(el, includeSelf) {
|
457
|
-
// skip to window
|
458
|
-
if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
|
459
|
-
var elem = el;
|
460
|
-
var gotSelf = false;
|
461
|
-
do {
|
462
|
-
// we don't need to get elem css if it isn't even overflowing in the first place (performance)
|
463
|
-
if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
|
464
|
-
var elemCSS = css(elem);
|
465
|
-
if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
|
466
|
-
if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
|
467
|
-
if (gotSelf || includeSelf) return elem;
|
468
|
-
gotSelf = true;
|
469
|
-
}
|
470
|
-
}
|
471
|
-
/* jshint boss:true */
|
472
|
-
} while (elem = elem.parentNode);
|
473
|
-
return getWindowScrollingElement();
|
474
|
-
}
|
475
|
-
function extend(dst, src) {
|
476
|
-
if (dst && src) {
|
477
|
-
for (var key in src) {
|
478
|
-
if (src.hasOwnProperty(key)) {
|
479
|
-
dst[key] = src[key];
|
480
|
-
}
|
481
|
-
}
|
482
|
-
}
|
483
|
-
return dst;
|
484
|
-
}
|
485
|
-
function isRectEqual(rect1, rect2) {
|
486
|
-
return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
|
487
|
-
}
|
488
|
-
var _throttleTimeout;
|
489
|
-
function throttle(callback, ms) {
|
490
|
-
return function () {
|
491
|
-
if (!_throttleTimeout) {
|
492
|
-
var args = arguments,
|
493
|
-
_this = this;
|
494
|
-
if (args.length === 1) {
|
495
|
-
callback.call(_this, args[0]);
|
496
|
-
} else {
|
497
|
-
callback.apply(_this, args);
|
498
|
-
}
|
499
|
-
_throttleTimeout = setTimeout(function () {
|
500
|
-
_throttleTimeout = void 0;
|
501
|
-
}, ms);
|
502
|
-
}
|
503
|
-
};
|
504
|
-
}
|
505
|
-
function cancelThrottle() {
|
506
|
-
clearTimeout(_throttleTimeout);
|
507
|
-
_throttleTimeout = void 0;
|
508
|
-
}
|
509
|
-
function scrollBy(el, x, y) {
|
510
|
-
el.scrollLeft += x;
|
511
|
-
el.scrollTop += y;
|
512
|
-
}
|
513
|
-
function clone(el) {
|
514
|
-
var Polymer = window.Polymer;
|
515
|
-
var $ = window.jQuery || window.Zepto;
|
516
|
-
if (Polymer && Polymer.dom) {
|
517
|
-
return Polymer.dom(el).cloneNode(true);
|
518
|
-
} else if ($) {
|
519
|
-
return $(el).clone(true)[0];
|
520
|
-
} else {
|
521
|
-
return el.cloneNode(true);
|
522
|
-
}
|
523
|
-
}
|
524
|
-
var expando = 'Sortable' + new Date().getTime();
|
525
|
-
|
526
|
-
function AnimationStateManager() {
|
527
|
-
var animationStates = [],
|
528
|
-
animationCallbackId;
|
529
|
-
return {
|
530
|
-
captureAnimationState: function captureAnimationState() {
|
531
|
-
animationStates = [];
|
532
|
-
if (!this.options.animation) return;
|
533
|
-
var children = [].slice.call(this.el.children);
|
534
|
-
children.forEach(function (child) {
|
535
|
-
if (css(child, 'display') === 'none' || child === Sortable.ghost) return;
|
536
|
-
animationStates.push({
|
537
|
-
target: child,
|
538
|
-
rect: getRect(child)
|
539
|
-
});
|
540
|
-
var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
|
541
|
-
|
542
|
-
// If animating: compensate for current animation
|
543
|
-
if (child.thisAnimationDuration) {
|
544
|
-
var childMatrix = matrix(child, true);
|
545
|
-
if (childMatrix) {
|
546
|
-
fromRect.top -= childMatrix.f;
|
547
|
-
fromRect.left -= childMatrix.e;
|
548
|
-
}
|
549
|
-
}
|
550
|
-
child.fromRect = fromRect;
|
551
|
-
});
|
552
|
-
},
|
553
|
-
addAnimationState: function addAnimationState(state) {
|
554
|
-
animationStates.push(state);
|
555
|
-
},
|
556
|
-
removeAnimationState: function removeAnimationState(target) {
|
557
|
-
animationStates.splice(indexOfObject(animationStates, {
|
558
|
-
target: target
|
559
|
-
}), 1);
|
560
|
-
},
|
561
|
-
animateAll: function animateAll(callback) {
|
562
|
-
var _this = this;
|
563
|
-
if (!this.options.animation) {
|
564
|
-
clearTimeout(animationCallbackId);
|
565
|
-
if (typeof callback === 'function') callback();
|
566
|
-
return;
|
567
|
-
}
|
568
|
-
var animating = false,
|
569
|
-
animationTime = 0;
|
570
|
-
animationStates.forEach(function (state) {
|
571
|
-
var time = 0,
|
572
|
-
target = state.target,
|
573
|
-
fromRect = target.fromRect,
|
574
|
-
toRect = getRect(target),
|
575
|
-
prevFromRect = target.prevFromRect,
|
576
|
-
prevToRect = target.prevToRect,
|
577
|
-
animatingRect = state.rect,
|
578
|
-
targetMatrix = matrix(target, true);
|
579
|
-
if (targetMatrix) {
|
580
|
-
// Compensate for current animation
|
581
|
-
toRect.top -= targetMatrix.f;
|
582
|
-
toRect.left -= targetMatrix.e;
|
583
|
-
}
|
584
|
-
target.toRect = toRect;
|
585
|
-
if (target.thisAnimationDuration) {
|
586
|
-
// Could also check if animatingRect is between fromRect and toRect
|
587
|
-
if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) &&
|
588
|
-
// Make sure animatingRect is on line between toRect & fromRect
|
589
|
-
(animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
|
590
|
-
// If returning to same place as started from animation and on same axis
|
591
|
-
time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
|
592
|
-
}
|
593
|
-
}
|
594
|
-
|
595
|
-
// if fromRect != toRect: animate
|
596
|
-
if (!isRectEqual(toRect, fromRect)) {
|
597
|
-
target.prevFromRect = fromRect;
|
598
|
-
target.prevToRect = toRect;
|
599
|
-
if (!time) {
|
600
|
-
time = _this.options.animation;
|
601
|
-
}
|
602
|
-
_this.animate(target, animatingRect, toRect, time);
|
603
|
-
}
|
604
|
-
if (time) {
|
605
|
-
animating = true;
|
606
|
-
animationTime = Math.max(animationTime, time);
|
607
|
-
clearTimeout(target.animationResetTimer);
|
608
|
-
target.animationResetTimer = setTimeout(function () {
|
609
|
-
target.animationTime = 0;
|
610
|
-
target.prevFromRect = null;
|
611
|
-
target.fromRect = null;
|
612
|
-
target.prevToRect = null;
|
613
|
-
target.thisAnimationDuration = null;
|
614
|
-
}, time);
|
615
|
-
target.thisAnimationDuration = time;
|
616
|
-
}
|
617
|
-
});
|
618
|
-
clearTimeout(animationCallbackId);
|
619
|
-
if (!animating) {
|
620
|
-
if (typeof callback === 'function') callback();
|
621
|
-
} else {
|
622
|
-
animationCallbackId = setTimeout(function () {
|
623
|
-
if (typeof callback === 'function') callback();
|
624
|
-
}, animationTime);
|
625
|
-
}
|
626
|
-
animationStates = [];
|
627
|
-
},
|
628
|
-
animate: function animate(target, currentRect, toRect, duration) {
|
629
|
-
if (duration) {
|
630
|
-
css(target, 'transition', '');
|
631
|
-
css(target, 'transform', '');
|
632
|
-
var elMatrix = matrix(this.el),
|
633
|
-
scaleX = elMatrix && elMatrix.a,
|
634
|
-
scaleY = elMatrix && elMatrix.d,
|
635
|
-
translateX = (currentRect.left - toRect.left) / (scaleX || 1),
|
636
|
-
translateY = (currentRect.top - toRect.top) / (scaleY || 1);
|
637
|
-
target.animatingX = !!translateX;
|
638
|
-
target.animatingY = !!translateY;
|
639
|
-
css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
|
640
|
-
this.forRepaintDummy = repaint(target); // repaint
|
641
|
-
|
642
|
-
css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
|
643
|
-
css(target, 'transform', 'translate3d(0,0,0)');
|
644
|
-
typeof target.animated === 'number' && clearTimeout(target.animated);
|
645
|
-
target.animated = setTimeout(function () {
|
646
|
-
css(target, 'transition', '');
|
647
|
-
css(target, 'transform', '');
|
648
|
-
target.animated = false;
|
649
|
-
target.animatingX = false;
|
650
|
-
target.animatingY = false;
|
651
|
-
}, duration);
|
652
|
-
}
|
653
|
-
}
|
654
|
-
};
|
655
|
-
}
|
656
|
-
function repaint(target) {
|
657
|
-
return target.offsetWidth;
|
658
|
-
}
|
659
|
-
function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
660
|
-
return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
661
|
-
}
|
662
|
-
|
663
|
-
var plugins = [];
|
664
|
-
var defaults = {
|
665
|
-
initializeByDefault: true
|
666
|
-
};
|
667
|
-
var PluginManager = {
|
668
|
-
mount: function mount(plugin) {
|
669
|
-
// Set default static properties
|
670
|
-
for (var option in defaults) {
|
671
|
-
if (defaults.hasOwnProperty(option) && !(option in plugin)) {
|
672
|
-
plugin[option] = defaults[option];
|
673
|
-
}
|
674
|
-
}
|
675
|
-
plugins.forEach(function (p) {
|
676
|
-
if (p.pluginName === plugin.pluginName) {
|
677
|
-
throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
|
678
|
-
}
|
679
|
-
});
|
680
|
-
plugins.push(plugin);
|
681
|
-
},
|
682
|
-
pluginEvent: function pluginEvent(eventName, sortable, evt) {
|
683
|
-
var _this = this;
|
684
|
-
this.eventCanceled = false;
|
685
|
-
evt.cancel = function () {
|
686
|
-
_this.eventCanceled = true;
|
687
|
-
};
|
688
|
-
var eventNameGlobal = eventName + 'Global';
|
689
|
-
plugins.forEach(function (plugin) {
|
690
|
-
if (!sortable[plugin.pluginName]) return;
|
691
|
-
// Fire global events if it exists in this sortable
|
692
|
-
if (sortable[plugin.pluginName][eventNameGlobal]) {
|
693
|
-
sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
|
694
|
-
sortable: sortable
|
695
|
-
}, evt));
|
696
|
-
}
|
697
|
-
|
698
|
-
// Only fire plugin event if plugin is enabled in this sortable,
|
699
|
-
// and plugin has event defined
|
700
|
-
if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
|
701
|
-
sortable[plugin.pluginName][eventName](_objectSpread2({
|
702
|
-
sortable: sortable
|
703
|
-
}, evt));
|
704
|
-
}
|
705
|
-
});
|
706
|
-
},
|
707
|
-
initializePlugins: function initializePlugins(sortable, el, defaults, options) {
|
708
|
-
plugins.forEach(function (plugin) {
|
709
|
-
var pluginName = plugin.pluginName;
|
710
|
-
if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
|
711
|
-
var initialized = new plugin(sortable, el, sortable.options);
|
712
|
-
initialized.sortable = sortable;
|
713
|
-
initialized.options = sortable.options;
|
714
|
-
sortable[pluginName] = initialized;
|
715
|
-
|
716
|
-
// Add default options from plugin
|
717
|
-
_extends(defaults, initialized.defaults);
|
718
|
-
});
|
719
|
-
for (var option in sortable.options) {
|
720
|
-
if (!sortable.options.hasOwnProperty(option)) continue;
|
721
|
-
var modified = this.modifyOption(sortable, option, sortable.options[option]);
|
722
|
-
if (typeof modified !== 'undefined') {
|
723
|
-
sortable.options[option] = modified;
|
724
|
-
}
|
725
|
-
}
|
726
|
-
},
|
727
|
-
getEventProperties: function getEventProperties(name, sortable) {
|
728
|
-
var eventProperties = {};
|
729
|
-
plugins.forEach(function (plugin) {
|
730
|
-
if (typeof plugin.eventProperties !== 'function') return;
|
731
|
-
_extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
|
732
|
-
});
|
733
|
-
return eventProperties;
|
734
|
-
},
|
735
|
-
modifyOption: function modifyOption(sortable, name, value) {
|
736
|
-
var modifiedValue;
|
737
|
-
plugins.forEach(function (plugin) {
|
738
|
-
// Plugin must exist on the Sortable
|
739
|
-
if (!sortable[plugin.pluginName]) return;
|
740
|
-
|
741
|
-
// If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
|
742
|
-
if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
|
743
|
-
modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
|
744
|
-
}
|
745
|
-
});
|
746
|
-
return modifiedValue;
|
747
|
-
}
|
748
|
-
};
|
749
|
-
|
750
|
-
function dispatchEvent(_ref) {
|
751
|
-
var sortable = _ref.sortable,
|
752
|
-
rootEl = _ref.rootEl,
|
753
|
-
name = _ref.name,
|
754
|
-
targetEl = _ref.targetEl,
|
755
|
-
cloneEl = _ref.cloneEl,
|
756
|
-
toEl = _ref.toEl,
|
757
|
-
fromEl = _ref.fromEl,
|
758
|
-
oldIndex = _ref.oldIndex,
|
759
|
-
newIndex = _ref.newIndex,
|
760
|
-
oldDraggableIndex = _ref.oldDraggableIndex,
|
761
|
-
newDraggableIndex = _ref.newDraggableIndex,
|
762
|
-
originalEvent = _ref.originalEvent,
|
763
|
-
putSortable = _ref.putSortable,
|
764
|
-
extraEventProperties = _ref.extraEventProperties;
|
765
|
-
sortable = sortable || rootEl && rootEl[expando];
|
766
|
-
if (!sortable) return;
|
767
|
-
var evt,
|
768
|
-
options = sortable.options,
|
769
|
-
onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1);
|
770
|
-
// Support for new CustomEvent feature
|
771
|
-
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
772
|
-
evt = new CustomEvent(name, {
|
773
|
-
bubbles: true,
|
774
|
-
cancelable: true
|
775
|
-
});
|
776
|
-
} else {
|
777
|
-
evt = document.createEvent('Event');
|
778
|
-
evt.initEvent(name, true, true);
|
779
|
-
}
|
780
|
-
evt.to = toEl || rootEl;
|
781
|
-
evt.from = fromEl || rootEl;
|
782
|
-
evt.item = targetEl || rootEl;
|
783
|
-
evt.clone = cloneEl;
|
784
|
-
evt.oldIndex = oldIndex;
|
785
|
-
evt.newIndex = newIndex;
|
786
|
-
evt.oldDraggableIndex = oldDraggableIndex;
|
787
|
-
evt.newDraggableIndex = newDraggableIndex;
|
788
|
-
evt.originalEvent = originalEvent;
|
789
|
-
evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
|
790
|
-
var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
|
791
|
-
for (var option in allEventProperties) {
|
792
|
-
evt[option] = allEventProperties[option];
|
793
|
-
}
|
794
|
-
if (rootEl) {
|
795
|
-
rootEl.dispatchEvent(evt);
|
796
|
-
}
|
797
|
-
if (options[onName]) {
|
798
|
-
options[onName].call(sortable, evt);
|
799
|
-
}
|
800
|
-
}
|
801
|
-
|
802
|
-
var _excluded = ["evt"];
|
803
|
-
var pluginEvent = function pluginEvent(eventName, sortable) {
|
804
|
-
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
805
|
-
originalEvent = _ref.evt,
|
806
|
-
data = _objectWithoutProperties(_ref, _excluded);
|
807
|
-
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
|
808
|
-
dragEl: dragEl,
|
809
|
-
parentEl: parentEl,
|
810
|
-
ghostEl: ghostEl,
|
811
|
-
rootEl: rootEl,
|
812
|
-
nextEl: nextEl,
|
813
|
-
lastDownEl: lastDownEl,
|
814
|
-
cloneEl: cloneEl,
|
815
|
-
cloneHidden: cloneHidden,
|
816
|
-
dragStarted: moved,
|
817
|
-
putSortable: putSortable,
|
818
|
-
activeSortable: Sortable.active,
|
819
|
-
originalEvent: originalEvent,
|
820
|
-
oldIndex: oldIndex,
|
821
|
-
oldDraggableIndex: oldDraggableIndex,
|
822
|
-
newIndex: newIndex,
|
823
|
-
newDraggableIndex: newDraggableIndex,
|
824
|
-
hideGhostForTarget: _hideGhostForTarget,
|
825
|
-
unhideGhostForTarget: _unhideGhostForTarget,
|
826
|
-
cloneNowHidden: function cloneNowHidden() {
|
827
|
-
cloneHidden = true;
|
828
|
-
},
|
829
|
-
cloneNowShown: function cloneNowShown() {
|
830
|
-
cloneHidden = false;
|
831
|
-
},
|
832
|
-
dispatchSortableEvent: function dispatchSortableEvent(name) {
|
833
|
-
_dispatchEvent({
|
834
|
-
sortable: sortable,
|
835
|
-
name: name,
|
836
|
-
originalEvent: originalEvent
|
837
|
-
});
|
838
|
-
}
|
839
|
-
}, data));
|
840
|
-
};
|
841
|
-
function _dispatchEvent(info) {
|
842
|
-
dispatchEvent(_objectSpread2({
|
843
|
-
putSortable: putSortable,
|
844
|
-
cloneEl: cloneEl,
|
845
|
-
targetEl: dragEl,
|
846
|
-
rootEl: rootEl,
|
847
|
-
oldIndex: oldIndex,
|
848
|
-
oldDraggableIndex: oldDraggableIndex,
|
849
|
-
newIndex: newIndex,
|
850
|
-
newDraggableIndex: newDraggableIndex
|
851
|
-
}, info));
|
852
|
-
}
|
853
|
-
var dragEl,
|
854
|
-
parentEl,
|
855
|
-
ghostEl,
|
856
|
-
rootEl,
|
857
|
-
nextEl,
|
858
|
-
lastDownEl,
|
859
|
-
cloneEl,
|
860
|
-
cloneHidden,
|
861
|
-
oldIndex,
|
862
|
-
newIndex,
|
863
|
-
oldDraggableIndex,
|
864
|
-
newDraggableIndex,
|
865
|
-
activeGroup,
|
866
|
-
putSortable,
|
867
|
-
awaitingDragStarted = false,
|
868
|
-
ignoreNextClick = false,
|
869
|
-
sortables = [],
|
870
|
-
tapEvt,
|
871
|
-
touchEvt,
|
872
|
-
lastDx,
|
873
|
-
lastDy,
|
874
|
-
tapDistanceLeft,
|
875
|
-
tapDistanceTop,
|
876
|
-
moved,
|
877
|
-
lastTarget,
|
878
|
-
lastDirection,
|
879
|
-
pastFirstInvertThresh = false,
|
880
|
-
isCircumstantialInvert = false,
|
881
|
-
targetMoveDistance,
|
882
|
-
// For positioning ghost absolutely
|
883
|
-
ghostRelativeParent,
|
884
|
-
ghostRelativeParentInitialScroll = [],
|
885
|
-
// (left, top)
|
886
|
-
|
887
|
-
_silent = false,
|
888
|
-
savedInputChecked = [];
|
889
|
-
|
890
|
-
/** @const */
|
891
|
-
var documentExists = typeof document !== 'undefined',
|
892
|
-
PositionGhostAbsolutely = IOS,
|
893
|
-
CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
|
894
|
-
// This will not pass for IE9, because IE9 DnD only works on anchors
|
895
|
-
supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
|
896
|
-
supportCssPointerEvents = function () {
|
897
|
-
if (!documentExists) return;
|
898
|
-
// false when <= IE11
|
899
|
-
if (IE11OrLess) {
|
900
|
-
return false;
|
901
|
-
}
|
902
|
-
var el = document.createElement('x');
|
903
|
-
el.style.cssText = 'pointer-events:auto';
|
904
|
-
return el.style.pointerEvents === 'auto';
|
905
|
-
}(),
|
906
|
-
_detectDirection = function _detectDirection(el, options) {
|
907
|
-
var elCSS = css(el),
|
908
|
-
elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
|
909
|
-
child1 = getChild(el, 0, options),
|
910
|
-
child2 = getChild(el, 1, options),
|
911
|
-
firstChildCSS = child1 && css(child1),
|
912
|
-
secondChildCSS = child2 && css(child2),
|
913
|
-
firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
|
914
|
-
secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
|
915
|
-
if (elCSS.display === 'flex') {
|
916
|
-
return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
|
917
|
-
}
|
918
|
-
if (elCSS.display === 'grid') {
|
919
|
-
return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
|
920
|
-
}
|
921
|
-
if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
|
922
|
-
var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
|
923
|
-
return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
|
924
|
-
}
|
925
|
-
return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';
|
926
|
-
},
|
927
|
-
_dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
|
928
|
-
var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
|
929
|
-
dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
|
930
|
-
dragElOppLength = vertical ? dragRect.width : dragRect.height,
|
931
|
-
targetS1Opp = vertical ? targetRect.left : targetRect.top,
|
932
|
-
targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
|
933
|
-
targetOppLength = vertical ? targetRect.width : targetRect.height;
|
934
|
-
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
935
|
-
},
|
936
|
-
/**
|
937
|
-
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
938
|
-
* @param {Number} x X position
|
939
|
-
* @param {Number} y Y position
|
940
|
-
* @return {HTMLElement} Element of the first found nearest Sortable
|
941
|
-
*/
|
942
|
-
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
943
|
-
var ret;
|
944
|
-
sortables.some(function (sortable) {
|
945
|
-
var threshold = sortable[expando].options.emptyInsertThreshold;
|
946
|
-
if (!threshold || lastChild(sortable)) return;
|
947
|
-
var rect = getRect(sortable),
|
948
|
-
insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
|
949
|
-
insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
|
950
|
-
if (insideHorizontally && insideVertically) {
|
951
|
-
return ret = sortable;
|
952
|
-
}
|
953
|
-
});
|
954
|
-
return ret;
|
955
|
-
},
|
956
|
-
_prepareGroup = function _prepareGroup(options) {
|
957
|
-
function toFn(value, pull) {
|
958
|
-
return function (to, from, dragEl, evt) {
|
959
|
-
var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
|
960
|
-
if (value == null && (pull || sameGroup)) {
|
961
|
-
// Default pull value
|
962
|
-
// Default pull and put value if same group
|
963
|
-
return true;
|
964
|
-
} else if (value == null || value === false) {
|
965
|
-
return false;
|
966
|
-
} else if (pull && value === 'clone') {
|
967
|
-
return value;
|
968
|
-
} else if (typeof value === 'function') {
|
969
|
-
return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
|
970
|
-
} else {
|
971
|
-
var otherGroup = (pull ? to : from).options.group.name;
|
972
|
-
return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
|
973
|
-
}
|
974
|
-
};
|
975
|
-
}
|
976
|
-
var group = {};
|
977
|
-
var originalGroup = options.group;
|
978
|
-
if (!originalGroup || _typeof(originalGroup) != 'object') {
|
979
|
-
originalGroup = {
|
980
|
-
name: originalGroup
|
981
|
-
};
|
982
|
-
}
|
983
|
-
group.name = originalGroup.name;
|
984
|
-
group.checkPull = toFn(originalGroup.pull, true);
|
985
|
-
group.checkPut = toFn(originalGroup.put);
|
986
|
-
group.revertClone = originalGroup.revertClone;
|
987
|
-
options.group = group;
|
988
|
-
},
|
989
|
-
_hideGhostForTarget = function _hideGhostForTarget() {
|
990
|
-
if (!supportCssPointerEvents && ghostEl) {
|
991
|
-
css(ghostEl, 'display', 'none');
|
992
|
-
}
|
993
|
-
},
|
994
|
-
_unhideGhostForTarget = function _unhideGhostForTarget() {
|
995
|
-
if (!supportCssPointerEvents && ghostEl) {
|
996
|
-
css(ghostEl, 'display', '');
|
997
|
-
}
|
998
|
-
};
|
999
|
-
|
1000
|
-
// #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
1001
|
-
if (documentExists && !ChromeForAndroid) {
|
1002
|
-
document.addEventListener('click', function (evt) {
|
1003
|
-
if (ignoreNextClick) {
|
1004
|
-
evt.preventDefault();
|
1005
|
-
evt.stopPropagation && evt.stopPropagation();
|
1006
|
-
evt.stopImmediatePropagation && evt.stopImmediatePropagation();
|
1007
|
-
ignoreNextClick = false;
|
1008
|
-
return false;
|
1009
|
-
}
|
1010
|
-
}, true);
|
1011
|
-
}
|
1012
|
-
var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
|
1013
|
-
if (dragEl) {
|
1014
|
-
evt = evt.touches ? evt.touches[0] : evt;
|
1015
|
-
var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
|
1016
|
-
if (nearest) {
|
1017
|
-
// Create imitation event
|
1018
|
-
var event = {};
|
1019
|
-
for (var i in evt) {
|
1020
|
-
if (evt.hasOwnProperty(i)) {
|
1021
|
-
event[i] = evt[i];
|
1022
|
-
}
|
1023
|
-
}
|
1024
|
-
event.target = event.rootEl = nearest;
|
1025
|
-
event.preventDefault = void 0;
|
1026
|
-
event.stopPropagation = void 0;
|
1027
|
-
nearest[expando]._onDragOver(event);
|
1028
|
-
}
|
1029
|
-
}
|
1030
|
-
};
|
1031
|
-
var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
1032
|
-
if (dragEl) {
|
1033
|
-
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
1034
|
-
}
|
1035
|
-
};
|
1036
|
-
|
1037
|
-
/**
|
1038
|
-
* @class Sortable
|
1039
|
-
* @param {HTMLElement} el
|
1040
|
-
* @param {Object} [options]
|
1041
|
-
*/
|
1042
|
-
function Sortable(el, options) {
|
1043
|
-
if (!(el && el.nodeType && el.nodeType === 1)) {
|
1044
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
|
1045
|
-
}
|
1046
|
-
this.el = el; // root element
|
1047
|
-
this.options = options = _extends({}, options);
|
1048
|
-
|
1049
|
-
// Export instance
|
1050
|
-
el[expando] = this;
|
1051
|
-
var defaults = {
|
1052
|
-
group: null,
|
1053
|
-
sort: true,
|
1054
|
-
disabled: false,
|
1055
|
-
store: null,
|
1056
|
-
handle: null,
|
1057
|
-
draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',
|
1058
|
-
swapThreshold: 1,
|
1059
|
-
// percentage; 0 <= x <= 1
|
1060
|
-
invertSwap: false,
|
1061
|
-
// invert always
|
1062
|
-
invertedSwapThreshold: null,
|
1063
|
-
// will be set to same as swapThreshold if default
|
1064
|
-
removeCloneOnHide: true,
|
1065
|
-
direction: function direction() {
|
1066
|
-
return _detectDirection(el, this.options);
|
1067
|
-
},
|
1068
|
-
ghostClass: 'sortable-ghost',
|
1069
|
-
chosenClass: 'sortable-chosen',
|
1070
|
-
dragClass: 'sortable-drag',
|
1071
|
-
ignore: 'a, img',
|
1072
|
-
filter: null,
|
1073
|
-
preventOnFilter: true,
|
1074
|
-
animation: 0,
|
1075
|
-
easing: null,
|
1076
|
-
setData: function setData(dataTransfer, dragEl) {
|
1077
|
-
dataTransfer.setData('Text', dragEl.textContent);
|
1078
|
-
},
|
1079
|
-
dropBubble: false,
|
1080
|
-
dragoverBubble: false,
|
1081
|
-
dataIdAttr: 'data-id',
|
1082
|
-
delay: 0,
|
1083
|
-
delayOnTouchOnly: false,
|
1084
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
1085
|
-
forceFallback: false,
|
1086
|
-
fallbackClass: 'sortable-fallback',
|
1087
|
-
fallbackOnBody: false,
|
1088
|
-
fallbackTolerance: 0,
|
1089
|
-
fallbackOffset: {
|
1090
|
-
x: 0,
|
1091
|
-
y: 0
|
1092
|
-
},
|
1093
|
-
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
|
1094
|
-
emptyInsertThreshold: 5
|
1095
|
-
};
|
1096
|
-
PluginManager.initializePlugins(this, el, defaults);
|
1097
|
-
|
1098
|
-
// Set default options
|
1099
|
-
for (var name in defaults) {
|
1100
|
-
!(name in options) && (options[name] = defaults[name]);
|
1101
|
-
}
|
1102
|
-
_prepareGroup(options);
|
1103
|
-
|
1104
|
-
// Bind all private methods
|
1105
|
-
for (var fn in this) {
|
1106
|
-
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
|
1107
|
-
this[fn] = this[fn].bind(this);
|
1108
|
-
}
|
1109
|
-
}
|
1110
|
-
|
1111
|
-
// Setup drag mode
|
1112
|
-
this.nativeDraggable = options.forceFallback ? false : supportDraggable;
|
1113
|
-
if (this.nativeDraggable) {
|
1114
|
-
// Touch start threshold cannot be greater than the native dragstart threshold
|
1115
|
-
this.options.touchStartThreshold = 1;
|
1116
|
-
}
|
1117
|
-
|
1118
|
-
// Bind events
|
1119
|
-
if (options.supportPointer) {
|
1120
|
-
on(el, 'pointerdown', this._onTapStart);
|
1121
|
-
} else {
|
1122
|
-
on(el, 'mousedown', this._onTapStart);
|
1123
|
-
on(el, 'touchstart', this._onTapStart);
|
1124
|
-
}
|
1125
|
-
if (this.nativeDraggable) {
|
1126
|
-
on(el, 'dragover', this);
|
1127
|
-
on(el, 'dragenter', this);
|
1128
|
-
}
|
1129
|
-
sortables.push(this.el);
|
1130
|
-
|
1131
|
-
// Restore sorting
|
1132
|
-
options.store && options.store.get && this.sort(options.store.get(this) || []);
|
1133
|
-
|
1134
|
-
// Add animation state manager
|
1135
|
-
_extends(this, AnimationStateManager());
|
1136
|
-
}
|
1137
|
-
Sortable.prototype = /** @lends Sortable.prototype */{
|
1138
|
-
constructor: Sortable,
|
1139
|
-
_isOutsideThisEl: function _isOutsideThisEl(target) {
|
1140
|
-
if (!this.el.contains(target) && target !== this.el) {
|
1141
|
-
lastTarget = null;
|
1142
|
-
}
|
1143
|
-
},
|
1144
|
-
_getDirection: function _getDirection(evt, target) {
|
1145
|
-
return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
|
1146
|
-
},
|
1147
|
-
_onTapStart: function _onTapStart( /** Event|TouchEvent */evt) {
|
1148
|
-
if (!evt.cancelable) return;
|
1149
|
-
var _this = this,
|
1150
|
-
el = this.el,
|
1151
|
-
options = this.options,
|
1152
|
-
preventOnFilter = options.preventOnFilter,
|
1153
|
-
type = evt.type,
|
1154
|
-
touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
|
1155
|
-
target = (touch || evt).target,
|
1156
|
-
originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
|
1157
|
-
filter = options.filter;
|
1158
|
-
_saveInputCheckedState(el);
|
1159
|
-
|
1160
|
-
// Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
|
1161
|
-
if (dragEl) {
|
1162
|
-
return;
|
1163
|
-
}
|
1164
|
-
if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
|
1165
|
-
return; // only left button and enabled
|
1166
|
-
}
|
1167
|
-
|
1168
|
-
// cancel dnd if original target is content editable
|
1169
|
-
if (originalTarget.isContentEditable) {
|
1170
|
-
return;
|
1171
|
-
}
|
1172
|
-
|
1173
|
-
// Safari ignores further event handling after mousedown
|
1174
|
-
if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
|
1175
|
-
return;
|
1176
|
-
}
|
1177
|
-
target = closest(target, options.draggable, el, false);
|
1178
|
-
if (target && target.animated) {
|
1179
|
-
return;
|
1180
|
-
}
|
1181
|
-
if (lastDownEl === target) {
|
1182
|
-
// Ignoring duplicate `down`
|
1183
|
-
return;
|
1184
|
-
}
|
1185
|
-
|
1186
|
-
// Get the index of the dragged element within its parent
|
1187
|
-
oldIndex = index(target);
|
1188
|
-
oldDraggableIndex = index(target, options.draggable);
|
1189
|
-
|
1190
|
-
// Check filter
|
1191
|
-
if (typeof filter === 'function') {
|
1192
|
-
if (filter.call(this, evt, target, this)) {
|
1193
|
-
_dispatchEvent({
|
1194
|
-
sortable: _this,
|
1195
|
-
rootEl: originalTarget,
|
1196
|
-
name: 'filter',
|
1197
|
-
targetEl: target,
|
1198
|
-
toEl: el,
|
1199
|
-
fromEl: el
|
1200
|
-
});
|
1201
|
-
pluginEvent('filter', _this, {
|
1202
|
-
evt: evt
|
1203
|
-
});
|
1204
|
-
preventOnFilter && evt.cancelable && evt.preventDefault();
|
1205
|
-
return; // cancel dnd
|
1206
|
-
}
|
1207
|
-
} else if (filter) {
|
1208
|
-
filter = filter.split(',').some(function (criteria) {
|
1209
|
-
criteria = closest(originalTarget, criteria.trim(), el, false);
|
1210
|
-
if (criteria) {
|
1211
|
-
_dispatchEvent({
|
1212
|
-
sortable: _this,
|
1213
|
-
rootEl: criteria,
|
1214
|
-
name: 'filter',
|
1215
|
-
targetEl: target,
|
1216
|
-
fromEl: el,
|
1217
|
-
toEl: el
|
1218
|
-
});
|
1219
|
-
pluginEvent('filter', _this, {
|
1220
|
-
evt: evt
|
1221
|
-
});
|
1222
|
-
return true;
|
1223
|
-
}
|
1224
|
-
});
|
1225
|
-
if (filter) {
|
1226
|
-
preventOnFilter && evt.cancelable && evt.preventDefault();
|
1227
|
-
return; // cancel dnd
|
1228
|
-
}
|
1229
|
-
}
|
1230
|
-
if (options.handle && !closest(originalTarget, options.handle, el, false)) {
|
1231
|
-
return;
|
1232
|
-
}
|
1233
|
-
|
1234
|
-
// Prepare `dragstart`
|
1235
|
-
this._prepareDragStart(evt, touch, target);
|
1236
|
-
},
|
1237
|
-
_prepareDragStart: function _prepareDragStart( /** Event */evt, /** Touch */touch, /** HTMLElement */target) {
|
1238
|
-
var _this = this,
|
1239
|
-
el = _this.el,
|
1240
|
-
options = _this.options,
|
1241
|
-
ownerDocument = el.ownerDocument,
|
1242
|
-
dragStartFn;
|
1243
|
-
if (target && !dragEl && target.parentNode === el) {
|
1244
|
-
var dragRect = getRect(target);
|
1245
|
-
rootEl = el;
|
1246
|
-
dragEl = target;
|
1247
|
-
parentEl = dragEl.parentNode;
|
1248
|
-
nextEl = dragEl.nextSibling;
|
1249
|
-
lastDownEl = target;
|
1250
|
-
activeGroup = options.group;
|
1251
|
-
Sortable.dragged = dragEl;
|
1252
|
-
tapEvt = {
|
1253
|
-
target: dragEl,
|
1254
|
-
clientX: (touch || evt).clientX,
|
1255
|
-
clientY: (touch || evt).clientY
|
1256
|
-
};
|
1257
|
-
tapDistanceLeft = tapEvt.clientX - dragRect.left;
|
1258
|
-
tapDistanceTop = tapEvt.clientY - dragRect.top;
|
1259
|
-
this._lastX = (touch || evt).clientX;
|
1260
|
-
this._lastY = (touch || evt).clientY;
|
1261
|
-
dragEl.style['will-change'] = 'all';
|
1262
|
-
dragStartFn = function dragStartFn() {
|
1263
|
-
pluginEvent('delayEnded', _this, {
|
1264
|
-
evt: evt
|
1265
|
-
});
|
1266
|
-
if (Sortable.eventCanceled) {
|
1267
|
-
_this._onDrop();
|
1268
|
-
return;
|
1269
|
-
}
|
1270
|
-
// Delayed drag has been triggered
|
1271
|
-
// we can re-enable the events: touchmove/mousemove
|
1272
|
-
_this._disableDelayedDragEvents();
|
1273
|
-
if (!FireFox && _this.nativeDraggable) {
|
1274
|
-
dragEl.draggable = true;
|
1275
|
-
}
|
1276
|
-
|
1277
|
-
// Bind the events: dragstart/dragend
|
1278
|
-
_this._triggerDragStart(evt, touch);
|
1279
|
-
|
1280
|
-
// Drag start event
|
1281
|
-
_dispatchEvent({
|
1282
|
-
sortable: _this,
|
1283
|
-
name: 'choose',
|
1284
|
-
originalEvent: evt
|
1285
|
-
});
|
1286
|
-
|
1287
|
-
// Chosen item
|
1288
|
-
toggleClass(dragEl, options.chosenClass, true);
|
1289
|
-
};
|
1290
|
-
|
1291
|
-
// Disable "draggable"
|
1292
|
-
options.ignore.split(',').forEach(function (criteria) {
|
1293
|
-
find(dragEl, criteria.trim(), _disableDraggable);
|
1294
|
-
});
|
1295
|
-
on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
|
1296
|
-
on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
|
1297
|
-
on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
|
1298
|
-
on(ownerDocument, 'mouseup', _this._onDrop);
|
1299
|
-
on(ownerDocument, 'touchend', _this._onDrop);
|
1300
|
-
on(ownerDocument, 'touchcancel', _this._onDrop);
|
1301
|
-
|
1302
|
-
// Make dragEl draggable (must be before delay for FireFox)
|
1303
|
-
if (FireFox && this.nativeDraggable) {
|
1304
|
-
this.options.touchStartThreshold = 4;
|
1305
|
-
dragEl.draggable = true;
|
1306
|
-
}
|
1307
|
-
pluginEvent('delayStart', this, {
|
1308
|
-
evt: evt
|
1309
|
-
});
|
1310
|
-
|
1311
|
-
// Delay is impossible for native DnD in Edge or IE
|
1312
|
-
if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
|
1313
|
-
if (Sortable.eventCanceled) {
|
1314
|
-
this._onDrop();
|
1315
|
-
return;
|
1316
|
-
}
|
1317
|
-
// If the user moves the pointer or let go the click or touch
|
1318
|
-
// before the delay has been reached:
|
1319
|
-
// disable the delayed drag
|
1320
|
-
on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
|
1321
|
-
on(ownerDocument, 'touchend', _this._disableDelayedDrag);
|
1322
|
-
on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
|
1323
|
-
on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
|
1324
|
-
on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
|
1325
|
-
options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
|
1326
|
-
_this._dragStartTimer = setTimeout(dragStartFn, options.delay);
|
1327
|
-
} else {
|
1328
|
-
dragStartFn();
|
1329
|
-
}
|
1330
|
-
}
|
1331
|
-
},
|
1332
|
-
_delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler( /** TouchEvent|PointerEvent **/e) {
|
1333
|
-
var touch = e.touches ? e.touches[0] : e;
|
1334
|
-
if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
|
1335
|
-
this._disableDelayedDrag();
|
1336
|
-
}
|
1337
|
-
},
|
1338
|
-
_disableDelayedDrag: function _disableDelayedDrag() {
|
1339
|
-
dragEl && _disableDraggable(dragEl);
|
1340
|
-
clearTimeout(this._dragStartTimer);
|
1341
|
-
this._disableDelayedDragEvents();
|
1342
|
-
},
|
1343
|
-
_disableDelayedDragEvents: function _disableDelayedDragEvents() {
|
1344
|
-
var ownerDocument = this.el.ownerDocument;
|
1345
|
-
off(ownerDocument, 'mouseup', this._disableDelayedDrag);
|
1346
|
-
off(ownerDocument, 'touchend', this._disableDelayedDrag);
|
1347
|
-
off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
|
1348
|
-
off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
|
1349
|
-
off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
|
1350
|
-
off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
|
1351
|
-
},
|
1352
|
-
_triggerDragStart: function _triggerDragStart( /** Event */evt, /** Touch */touch) {
|
1353
|
-
touch = touch || evt.pointerType == 'touch' && evt;
|
1354
|
-
if (!this.nativeDraggable || touch) {
|
1355
|
-
if (this.options.supportPointer) {
|
1356
|
-
on(document, 'pointermove', this._onTouchMove);
|
1357
|
-
} else if (touch) {
|
1358
|
-
on(document, 'touchmove', this._onTouchMove);
|
1359
|
-
} else {
|
1360
|
-
on(document, 'mousemove', this._onTouchMove);
|
1361
|
-
}
|
1362
|
-
} else {
|
1363
|
-
on(dragEl, 'dragend', this);
|
1364
|
-
on(rootEl, 'dragstart', this._onDragStart);
|
1365
|
-
}
|
1366
|
-
try {
|
1367
|
-
if (document.selection) {
|
1368
|
-
// Timeout neccessary for IE9
|
1369
|
-
_nextTick(function () {
|
1370
|
-
document.selection.empty();
|
1371
|
-
});
|
1372
|
-
} else {
|
1373
|
-
window.getSelection().removeAllRanges();
|
1374
|
-
}
|
1375
|
-
} catch (err) {}
|
1376
|
-
},
|
1377
|
-
_dragStarted: function _dragStarted(fallback, evt) {
|
1378
|
-
awaitingDragStarted = false;
|
1379
|
-
if (rootEl && dragEl) {
|
1380
|
-
pluginEvent('dragStarted', this, {
|
1381
|
-
evt: evt
|
1382
|
-
});
|
1383
|
-
if (this.nativeDraggable) {
|
1384
|
-
on(document, 'dragover', _checkOutsideTargetEl);
|
1385
|
-
}
|
1386
|
-
var options = this.options;
|
1387
|
-
|
1388
|
-
// Apply effect
|
1389
|
-
!fallback && toggleClass(dragEl, options.dragClass, false);
|
1390
|
-
toggleClass(dragEl, options.ghostClass, true);
|
1391
|
-
Sortable.active = this;
|
1392
|
-
fallback && this._appendGhost();
|
1393
|
-
|
1394
|
-
// Drag start event
|
1395
|
-
_dispatchEvent({
|
1396
|
-
sortable: this,
|
1397
|
-
name: 'start',
|
1398
|
-
originalEvent: evt
|
1399
|
-
});
|
1400
|
-
} else {
|
1401
|
-
this._nulling();
|
1402
|
-
}
|
1403
|
-
},
|
1404
|
-
_emulateDragOver: function _emulateDragOver() {
|
1405
|
-
if (touchEvt) {
|
1406
|
-
this._lastX = touchEvt.clientX;
|
1407
|
-
this._lastY = touchEvt.clientY;
|
1408
|
-
_hideGhostForTarget();
|
1409
|
-
var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
1410
|
-
var parent = target;
|
1411
|
-
while (target && target.shadowRoot) {
|
1412
|
-
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
1413
|
-
if (target === parent) break;
|
1414
|
-
parent = target;
|
1415
|
-
}
|
1416
|
-
dragEl.parentNode[expando]._isOutsideThisEl(target);
|
1417
|
-
if (parent) {
|
1418
|
-
do {
|
1419
|
-
if (parent[expando]) {
|
1420
|
-
var inserted = void 0;
|
1421
|
-
inserted = parent[expando]._onDragOver({
|
1422
|
-
clientX: touchEvt.clientX,
|
1423
|
-
clientY: touchEvt.clientY,
|
1424
|
-
target: target,
|
1425
|
-
rootEl: parent
|
1426
|
-
});
|
1427
|
-
if (inserted && !this.options.dragoverBubble) {
|
1428
|
-
break;
|
1429
|
-
}
|
1430
|
-
}
|
1431
|
-
target = parent; // store last element
|
1432
|
-
}
|
1433
|
-
/* jshint boss:true */ while (parent = parent.parentNode);
|
1434
|
-
}
|
1435
|
-
_unhideGhostForTarget();
|
1436
|
-
}
|
1437
|
-
},
|
1438
|
-
_onTouchMove: function _onTouchMove( /**TouchEvent*/evt) {
|
1439
|
-
if (tapEvt) {
|
1440
|
-
var options = this.options,
|
1441
|
-
fallbackTolerance = options.fallbackTolerance,
|
1442
|
-
fallbackOffset = options.fallbackOffset,
|
1443
|
-
touch = evt.touches ? evt.touches[0] : evt,
|
1444
|
-
ghostMatrix = ghostEl && matrix(ghostEl, true),
|
1445
|
-
scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
|
1446
|
-
scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
|
1447
|
-
relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
|
1448
|
-
dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
|
1449
|
-
dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
|
1450
|
-
|
1451
|
-
// only set the status to dragging, when we are actually dragging
|
1452
|
-
if (!Sortable.active && !awaitingDragStarted) {
|
1453
|
-
if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
|
1454
|
-
return;
|
1455
|
-
}
|
1456
|
-
this._onDragStart(evt, true);
|
1457
|
-
}
|
1458
|
-
if (ghostEl) {
|
1459
|
-
if (ghostMatrix) {
|
1460
|
-
ghostMatrix.e += dx - (lastDx || 0);
|
1461
|
-
ghostMatrix.f += dy - (lastDy || 0);
|
1462
|
-
} else {
|
1463
|
-
ghostMatrix = {
|
1464
|
-
a: 1,
|
1465
|
-
b: 0,
|
1466
|
-
c: 0,
|
1467
|
-
d: 1,
|
1468
|
-
e: dx,
|
1469
|
-
f: dy
|
1470
|
-
};
|
1471
|
-
}
|
1472
|
-
var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
|
1473
|
-
css(ghostEl, 'webkitTransform', cssMatrix);
|
1474
|
-
css(ghostEl, 'mozTransform', cssMatrix);
|
1475
|
-
css(ghostEl, 'msTransform', cssMatrix);
|
1476
|
-
css(ghostEl, 'transform', cssMatrix);
|
1477
|
-
lastDx = dx;
|
1478
|
-
lastDy = dy;
|
1479
|
-
touchEvt = touch;
|
1480
|
-
}
|
1481
|
-
evt.cancelable && evt.preventDefault();
|
1482
|
-
}
|
1483
|
-
},
|
1484
|
-
_appendGhost: function _appendGhost() {
|
1485
|
-
// Bug if using scale(): https://stackoverflow.com/questions/2637058
|
1486
|
-
// Not being adjusted for
|
1487
|
-
if (!ghostEl) {
|
1488
|
-
var container = this.options.fallbackOnBody ? document.body : rootEl,
|
1489
|
-
rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
|
1490
|
-
options = this.options;
|
1491
|
-
|
1492
|
-
// Position absolutely
|
1493
|
-
if (PositionGhostAbsolutely) {
|
1494
|
-
// Get relatively positioned parent
|
1495
|
-
ghostRelativeParent = container;
|
1496
|
-
while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
|
1497
|
-
ghostRelativeParent = ghostRelativeParent.parentNode;
|
1498
|
-
}
|
1499
|
-
if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
|
1500
|
-
if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
|
1501
|
-
rect.top += ghostRelativeParent.scrollTop;
|
1502
|
-
rect.left += ghostRelativeParent.scrollLeft;
|
1503
|
-
} else {
|
1504
|
-
ghostRelativeParent = getWindowScrollingElement();
|
1505
|
-
}
|
1506
|
-
ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
|
1507
|
-
}
|
1508
|
-
ghostEl = dragEl.cloneNode(true);
|
1509
|
-
toggleClass(ghostEl, options.ghostClass, false);
|
1510
|
-
toggleClass(ghostEl, options.fallbackClass, true);
|
1511
|
-
toggleClass(ghostEl, options.dragClass, true);
|
1512
|
-
css(ghostEl, 'transition', '');
|
1513
|
-
css(ghostEl, 'transform', '');
|
1514
|
-
css(ghostEl, 'box-sizing', 'border-box');
|
1515
|
-
css(ghostEl, 'margin', 0);
|
1516
|
-
css(ghostEl, 'top', rect.top);
|
1517
|
-
css(ghostEl, 'left', rect.left);
|
1518
|
-
css(ghostEl, 'width', rect.width);
|
1519
|
-
css(ghostEl, 'height', rect.height);
|
1520
|
-
css(ghostEl, 'opacity', '0.8');
|
1521
|
-
css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');
|
1522
|
-
css(ghostEl, 'zIndex', '100000');
|
1523
|
-
css(ghostEl, 'pointerEvents', 'none');
|
1524
|
-
Sortable.ghost = ghostEl;
|
1525
|
-
container.appendChild(ghostEl);
|
1526
|
-
|
1527
|
-
// Set transform-origin
|
1528
|
-
css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
|
1529
|
-
}
|
1530
|
-
},
|
1531
|
-
_onDragStart: function _onDragStart( /**Event*/evt, /**boolean*/fallback) {
|
1532
|
-
var _this = this;
|
1533
|
-
var dataTransfer = evt.dataTransfer;
|
1534
|
-
var options = _this.options;
|
1535
|
-
pluginEvent('dragStart', this, {
|
1536
|
-
evt: evt
|
1537
|
-
});
|
1538
|
-
if (Sortable.eventCanceled) {
|
1539
|
-
this._onDrop();
|
1540
|
-
return;
|
1541
|
-
}
|
1542
|
-
pluginEvent('setupClone', this);
|
1543
|
-
if (!Sortable.eventCanceled) {
|
1544
|
-
cloneEl = clone(dragEl);
|
1545
|
-
cloneEl.removeAttribute("id");
|
1546
|
-
cloneEl.draggable = false;
|
1547
|
-
cloneEl.style['will-change'] = '';
|
1548
|
-
this._hideClone();
|
1549
|
-
toggleClass(cloneEl, this.options.chosenClass, false);
|
1550
|
-
Sortable.clone = cloneEl;
|
1551
|
-
}
|
1552
|
-
|
1553
|
-
// #1143: IFrame support workaround
|
1554
|
-
_this.cloneId = _nextTick(function () {
|
1555
|
-
pluginEvent('clone', _this);
|
1556
|
-
if (Sortable.eventCanceled) return;
|
1557
|
-
if (!_this.options.removeCloneOnHide) {
|
1558
|
-
rootEl.insertBefore(cloneEl, dragEl);
|
1559
|
-
}
|
1560
|
-
_this._hideClone();
|
1561
|
-
_dispatchEvent({
|
1562
|
-
sortable: _this,
|
1563
|
-
name: 'clone'
|
1564
|
-
});
|
1565
|
-
});
|
1566
|
-
!fallback && toggleClass(dragEl, options.dragClass, true);
|
1567
|
-
|
1568
|
-
// Set proper drop events
|
1569
|
-
if (fallback) {
|
1570
|
-
ignoreNextClick = true;
|
1571
|
-
_this._loopId = setInterval(_this._emulateDragOver, 50);
|
1572
|
-
} else {
|
1573
|
-
// Undo what was set in _prepareDragStart before drag started
|
1574
|
-
off(document, 'mouseup', _this._onDrop);
|
1575
|
-
off(document, 'touchend', _this._onDrop);
|
1576
|
-
off(document, 'touchcancel', _this._onDrop);
|
1577
|
-
if (dataTransfer) {
|
1578
|
-
dataTransfer.effectAllowed = 'move';
|
1579
|
-
options.setData && options.setData.call(_this, dataTransfer, dragEl);
|
1580
|
-
}
|
1581
|
-
on(document, 'drop', _this);
|
1582
|
-
|
1583
|
-
// #1276 fix:
|
1584
|
-
css(dragEl, 'transform', 'translateZ(0)');
|
1585
|
-
}
|
1586
|
-
awaitingDragStarted = true;
|
1587
|
-
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
|
1588
|
-
on(document, 'selectstart', _this);
|
1589
|
-
moved = true;
|
1590
|
-
if (Safari) {
|
1591
|
-
css(document.body, 'user-select', 'none');
|
1592
|
-
}
|
1593
|
-
},
|
1594
|
-
// Returns true - if no further action is needed (either inserted or another condition)
|
1595
|
-
_onDragOver: function _onDragOver( /**Event*/evt) {
|
1596
|
-
var el = this.el,
|
1597
|
-
target = evt.target,
|
1598
|
-
dragRect,
|
1599
|
-
targetRect,
|
1600
|
-
revert,
|
1601
|
-
options = this.options,
|
1602
|
-
group = options.group,
|
1603
|
-
activeSortable = Sortable.active,
|
1604
|
-
isOwner = activeGroup === group,
|
1605
|
-
canSort = options.sort,
|
1606
|
-
fromSortable = putSortable || activeSortable,
|
1607
|
-
vertical,
|
1608
|
-
_this = this,
|
1609
|
-
completedFired = false;
|
1610
|
-
if (_silent) return;
|
1611
|
-
function dragOverEvent(name, extra) {
|
1612
|
-
pluginEvent(name, _this, _objectSpread2({
|
1613
|
-
evt: evt,
|
1614
|
-
isOwner: isOwner,
|
1615
|
-
axis: vertical ? 'vertical' : 'horizontal',
|
1616
|
-
revert: revert,
|
1617
|
-
dragRect: dragRect,
|
1618
|
-
targetRect: targetRect,
|
1619
|
-
canSort: canSort,
|
1620
|
-
fromSortable: fromSortable,
|
1621
|
-
target: target,
|
1622
|
-
completed: completed,
|
1623
|
-
onMove: function onMove(target, after) {
|
1624
|
-
return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
|
1625
|
-
},
|
1626
|
-
changed: changed
|
1627
|
-
}, extra));
|
1628
|
-
}
|
1629
|
-
|
1630
|
-
// Capture animation state
|
1631
|
-
function capture() {
|
1632
|
-
dragOverEvent('dragOverAnimationCapture');
|
1633
|
-
_this.captureAnimationState();
|
1634
|
-
if (_this !== fromSortable) {
|
1635
|
-
fromSortable.captureAnimationState();
|
1636
|
-
}
|
1637
|
-
}
|
1638
|
-
|
1639
|
-
// Return invocation when dragEl is inserted (or completed)
|
1640
|
-
function completed(insertion) {
|
1641
|
-
dragOverEvent('dragOverCompleted', {
|
1642
|
-
insertion: insertion
|
1643
|
-
});
|
1644
|
-
if (insertion) {
|
1645
|
-
// Clones must be hidden before folding animation to capture dragRectAbsolute properly
|
1646
|
-
if (isOwner) {
|
1647
|
-
activeSortable._hideClone();
|
1648
|
-
} else {
|
1649
|
-
activeSortable._showClone(_this);
|
1650
|
-
}
|
1651
|
-
if (_this !== fromSortable) {
|
1652
|
-
// Set ghost class to new sortable's ghost class
|
1653
|
-
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
|
1654
|
-
toggleClass(dragEl, options.ghostClass, true);
|
1655
|
-
}
|
1656
|
-
if (putSortable !== _this && _this !== Sortable.active) {
|
1657
|
-
putSortable = _this;
|
1658
|
-
} else if (_this === Sortable.active && putSortable) {
|
1659
|
-
putSortable = null;
|
1660
|
-
}
|
1661
|
-
|
1662
|
-
// Animation
|
1663
|
-
if (fromSortable === _this) {
|
1664
|
-
_this._ignoreWhileAnimating = target;
|
1665
|
-
}
|
1666
|
-
_this.animateAll(function () {
|
1667
|
-
dragOverEvent('dragOverAnimationComplete');
|
1668
|
-
_this._ignoreWhileAnimating = null;
|
1669
|
-
});
|
1670
|
-
if (_this !== fromSortable) {
|
1671
|
-
fromSortable.animateAll();
|
1672
|
-
fromSortable._ignoreWhileAnimating = null;
|
1673
|
-
}
|
1674
|
-
}
|
1675
|
-
|
1676
|
-
// Null lastTarget if it is not inside a previously swapped element
|
1677
|
-
if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
|
1678
|
-
lastTarget = null;
|
1679
|
-
}
|
1680
|
-
|
1681
|
-
// no bubbling and not fallback
|
1682
|
-
if (!options.dragoverBubble && !evt.rootEl && target !== document) {
|
1683
|
-
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
1684
|
-
|
1685
|
-
// Do not detect for empty insert if already inserted
|
1686
|
-
!insertion && nearestEmptyInsertDetectEvent(evt);
|
1687
|
-
}
|
1688
|
-
!options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
|
1689
|
-
return completedFired = true;
|
1690
|
-
}
|
1691
|
-
|
1692
|
-
// Call when dragEl has been inserted
|
1693
|
-
function changed() {
|
1694
|
-
newIndex = index(dragEl);
|
1695
|
-
newDraggableIndex = index(dragEl, options.draggable);
|
1696
|
-
_dispatchEvent({
|
1697
|
-
sortable: _this,
|
1698
|
-
name: 'change',
|
1699
|
-
toEl: el,
|
1700
|
-
newIndex: newIndex,
|
1701
|
-
newDraggableIndex: newDraggableIndex,
|
1702
|
-
originalEvent: evt
|
1703
|
-
});
|
1704
|
-
}
|
1705
|
-
if (evt.preventDefault !== void 0) {
|
1706
|
-
evt.cancelable && evt.preventDefault();
|
1707
|
-
}
|
1708
|
-
target = closest(target, options.draggable, el, true);
|
1709
|
-
dragOverEvent('dragOver');
|
1710
|
-
if (Sortable.eventCanceled) return completedFired;
|
1711
|
-
if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
|
1712
|
-
return completed(false);
|
1713
|
-
}
|
1714
|
-
ignoreNextClick = false;
|
1715
|
-
if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
|
1716
|
-
: putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
|
1717
|
-
vertical = this._getDirection(evt, target) === 'vertical';
|
1718
|
-
dragRect = getRect(dragEl);
|
1719
|
-
dragOverEvent('dragOverValid');
|
1720
|
-
if (Sortable.eventCanceled) return completedFired;
|
1721
|
-
if (revert) {
|
1722
|
-
parentEl = rootEl; // actualization
|
1723
|
-
capture();
|
1724
|
-
this._hideClone();
|
1725
|
-
dragOverEvent('revert');
|
1726
|
-
if (!Sortable.eventCanceled) {
|
1727
|
-
if (nextEl) {
|
1728
|
-
rootEl.insertBefore(dragEl, nextEl);
|
1729
|
-
} else {
|
1730
|
-
rootEl.appendChild(dragEl);
|
1731
|
-
}
|
1732
|
-
}
|
1733
|
-
return completed(true);
|
1734
|
-
}
|
1735
|
-
var elLastChild = lastChild(el, options.draggable);
|
1736
|
-
if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
|
1737
|
-
// Insert to end of list
|
1738
|
-
|
1739
|
-
// If already at end of list: Do not insert
|
1740
|
-
if (elLastChild === dragEl) {
|
1741
|
-
return completed(false);
|
1742
|
-
}
|
1743
|
-
|
1744
|
-
// if there is a last element, it is the target
|
1745
|
-
if (elLastChild && el === evt.target) {
|
1746
|
-
target = elLastChild;
|
1747
|
-
}
|
1748
|
-
if (target) {
|
1749
|
-
targetRect = getRect(target);
|
1750
|
-
}
|
1751
|
-
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
1752
|
-
capture();
|
1753
|
-
if (elLastChild && elLastChild.nextSibling) {
|
1754
|
-
// the last draggable element is not the last node
|
1755
|
-
el.insertBefore(dragEl, elLastChild.nextSibling);
|
1756
|
-
} else {
|
1757
|
-
el.appendChild(dragEl);
|
1758
|
-
}
|
1759
|
-
parentEl = el; // actualization
|
1760
|
-
|
1761
|
-
changed();
|
1762
|
-
return completed(true);
|
1763
|
-
}
|
1764
|
-
} else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
|
1765
|
-
// Insert to start of list
|
1766
|
-
var firstChild = getChild(el, 0, options, true);
|
1767
|
-
if (firstChild === dragEl) {
|
1768
|
-
return completed(false);
|
1769
|
-
}
|
1770
|
-
target = firstChild;
|
1771
|
-
targetRect = getRect(target);
|
1772
|
-
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
1773
|
-
capture();
|
1774
|
-
el.insertBefore(dragEl, firstChild);
|
1775
|
-
parentEl = el; // actualization
|
1776
|
-
|
1777
|
-
changed();
|
1778
|
-
return completed(true);
|
1779
|
-
}
|
1780
|
-
} else if (target.parentNode === el) {
|
1781
|
-
targetRect = getRect(target);
|
1782
|
-
var direction = 0,
|
1783
|
-
targetBeforeFirstSwap,
|
1784
|
-
differentLevel = dragEl.parentNode !== el,
|
1785
|
-
differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
|
1786
|
-
side1 = vertical ? 'top' : 'left',
|
1787
|
-
scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
|
1788
|
-
scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
|
1789
|
-
if (lastTarget !== target) {
|
1790
|
-
targetBeforeFirstSwap = targetRect[side1];
|
1791
|
-
pastFirstInvertThresh = false;
|
1792
|
-
isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
|
1793
|
-
}
|
1794
|
-
direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
|
1795
|
-
var sibling;
|
1796
|
-
if (direction !== 0) {
|
1797
|
-
// Check if target is beside dragEl in respective direction (ignoring hidden elements)
|
1798
|
-
var dragIndex = index(dragEl);
|
1799
|
-
do {
|
1800
|
-
dragIndex -= direction;
|
1801
|
-
sibling = parentEl.children[dragIndex];
|
1802
|
-
} while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
|
1803
|
-
}
|
1804
|
-
// If dragEl is already beside target: Do not insert
|
1805
|
-
if (direction === 0 || sibling === target) {
|
1806
|
-
return completed(false);
|
1807
|
-
}
|
1808
|
-
lastTarget = target;
|
1809
|
-
lastDirection = direction;
|
1810
|
-
var nextSibling = target.nextElementSibling,
|
1811
|
-
after = false;
|
1812
|
-
after = direction === 1;
|
1813
|
-
var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
|
1814
|
-
if (moveVector !== false) {
|
1815
|
-
if (moveVector === 1 || moveVector === -1) {
|
1816
|
-
after = moveVector === 1;
|
1817
|
-
}
|
1818
|
-
_silent = true;
|
1819
|
-
setTimeout(_unsilent, 30);
|
1820
|
-
capture();
|
1821
|
-
if (after && !nextSibling) {
|
1822
|
-
el.appendChild(dragEl);
|
1823
|
-
} else {
|
1824
|
-
target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
1825
|
-
}
|
1826
|
-
|
1827
|
-
// Undo chrome's scroll adjustment (has no effect on other browsers)
|
1828
|
-
if (scrolledPastTop) {
|
1829
|
-
scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
|
1830
|
-
}
|
1831
|
-
parentEl = dragEl.parentNode; // actualization
|
1832
|
-
|
1833
|
-
// must be done before animation
|
1834
|
-
if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
|
1835
|
-
targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
|
1836
|
-
}
|
1837
|
-
changed();
|
1838
|
-
return completed(true);
|
1839
|
-
}
|
1840
|
-
}
|
1841
|
-
if (el.contains(dragEl)) {
|
1842
|
-
return completed(false);
|
1843
|
-
}
|
1844
|
-
}
|
1845
|
-
return false;
|
1846
|
-
},
|
1847
|
-
_ignoreWhileAnimating: null,
|
1848
|
-
_offMoveEvents: function _offMoveEvents() {
|
1849
|
-
off(document, 'mousemove', this._onTouchMove);
|
1850
|
-
off(document, 'touchmove', this._onTouchMove);
|
1851
|
-
off(document, 'pointermove', this._onTouchMove);
|
1852
|
-
off(document, 'dragover', nearestEmptyInsertDetectEvent);
|
1853
|
-
off(document, 'mousemove', nearestEmptyInsertDetectEvent);
|
1854
|
-
off(document, 'touchmove', nearestEmptyInsertDetectEvent);
|
1855
|
-
},
|
1856
|
-
_offUpEvents: function _offUpEvents() {
|
1857
|
-
var ownerDocument = this.el.ownerDocument;
|
1858
|
-
off(ownerDocument, 'mouseup', this._onDrop);
|
1859
|
-
off(ownerDocument, 'touchend', this._onDrop);
|
1860
|
-
off(ownerDocument, 'pointerup', this._onDrop);
|
1861
|
-
off(ownerDocument, 'touchcancel', this._onDrop);
|
1862
|
-
off(document, 'selectstart', this);
|
1863
|
-
},
|
1864
|
-
_onDrop: function _onDrop( /**Event*/evt) {
|
1865
|
-
var el = this.el,
|
1866
|
-
options = this.options;
|
1867
|
-
|
1868
|
-
// Get the index of the dragged element within its parent
|
1869
|
-
newIndex = index(dragEl);
|
1870
|
-
newDraggableIndex = index(dragEl, options.draggable);
|
1871
|
-
pluginEvent('drop', this, {
|
1872
|
-
evt: evt
|
1873
|
-
});
|
1874
|
-
parentEl = dragEl && dragEl.parentNode;
|
1875
|
-
|
1876
|
-
// Get again after plugin event
|
1877
|
-
newIndex = index(dragEl);
|
1878
|
-
newDraggableIndex = index(dragEl, options.draggable);
|
1879
|
-
if (Sortable.eventCanceled) {
|
1880
|
-
this._nulling();
|
1881
|
-
return;
|
1882
|
-
}
|
1883
|
-
awaitingDragStarted = false;
|
1884
|
-
isCircumstantialInvert = false;
|
1885
|
-
pastFirstInvertThresh = false;
|
1886
|
-
clearInterval(this._loopId);
|
1887
|
-
clearTimeout(this._dragStartTimer);
|
1888
|
-
_cancelNextTick(this.cloneId);
|
1889
|
-
_cancelNextTick(this._dragStartId);
|
1890
|
-
|
1891
|
-
// Unbind events
|
1892
|
-
if (this.nativeDraggable) {
|
1893
|
-
off(document, 'drop', this);
|
1894
|
-
off(el, 'dragstart', this._onDragStart);
|
1895
|
-
}
|
1896
|
-
this._offMoveEvents();
|
1897
|
-
this._offUpEvents();
|
1898
|
-
if (Safari) {
|
1899
|
-
css(document.body, 'user-select', '');
|
1900
|
-
}
|
1901
|
-
css(dragEl, 'transform', '');
|
1902
|
-
if (evt) {
|
1903
|
-
if (moved) {
|
1904
|
-
evt.cancelable && evt.preventDefault();
|
1905
|
-
!options.dropBubble && evt.stopPropagation();
|
1906
|
-
}
|
1907
|
-
ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
|
1908
|
-
if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
|
1909
|
-
// Remove clone(s)
|
1910
|
-
cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
|
1911
|
-
}
|
1912
|
-
if (dragEl) {
|
1913
|
-
if (this.nativeDraggable) {
|
1914
|
-
off(dragEl, 'dragend', this);
|
1915
|
-
}
|
1916
|
-
_disableDraggable(dragEl);
|
1917
|
-
dragEl.style['will-change'] = '';
|
1918
|
-
|
1919
|
-
// Remove classes
|
1920
|
-
// ghostClass is added in dragStarted
|
1921
|
-
if (moved && !awaitingDragStarted) {
|
1922
|
-
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
|
1923
|
-
}
|
1924
|
-
toggleClass(dragEl, this.options.chosenClass, false);
|
1925
|
-
|
1926
|
-
// Drag stop event
|
1927
|
-
_dispatchEvent({
|
1928
|
-
sortable: this,
|
1929
|
-
name: 'unchoose',
|
1930
|
-
toEl: parentEl,
|
1931
|
-
newIndex: null,
|
1932
|
-
newDraggableIndex: null,
|
1933
|
-
originalEvent: evt
|
1934
|
-
});
|
1935
|
-
if (rootEl !== parentEl) {
|
1936
|
-
if (newIndex >= 0) {
|
1937
|
-
// Add event
|
1938
|
-
_dispatchEvent({
|
1939
|
-
rootEl: parentEl,
|
1940
|
-
name: 'add',
|
1941
|
-
toEl: parentEl,
|
1942
|
-
fromEl: rootEl,
|
1943
|
-
originalEvent: evt
|
1944
|
-
});
|
1945
|
-
|
1946
|
-
// Remove event
|
1947
|
-
_dispatchEvent({
|
1948
|
-
sortable: this,
|
1949
|
-
name: 'remove',
|
1950
|
-
toEl: parentEl,
|
1951
|
-
originalEvent: evt
|
1952
|
-
});
|
1953
|
-
|
1954
|
-
// drag from one list and drop into another
|
1955
|
-
_dispatchEvent({
|
1956
|
-
rootEl: parentEl,
|
1957
|
-
name: 'sort',
|
1958
|
-
toEl: parentEl,
|
1959
|
-
fromEl: rootEl,
|
1960
|
-
originalEvent: evt
|
1961
|
-
});
|
1962
|
-
_dispatchEvent({
|
1963
|
-
sortable: this,
|
1964
|
-
name: 'sort',
|
1965
|
-
toEl: parentEl,
|
1966
|
-
originalEvent: evt
|
1967
|
-
});
|
1968
|
-
}
|
1969
|
-
putSortable && putSortable.save();
|
1970
|
-
} else {
|
1971
|
-
if (newIndex !== oldIndex) {
|
1972
|
-
if (newIndex >= 0) {
|
1973
|
-
// drag & drop within the same list
|
1974
|
-
_dispatchEvent({
|
1975
|
-
sortable: this,
|
1976
|
-
name: 'update',
|
1977
|
-
toEl: parentEl,
|
1978
|
-
originalEvent: evt
|
1979
|
-
});
|
1980
|
-
_dispatchEvent({
|
1981
|
-
sortable: this,
|
1982
|
-
name: 'sort',
|
1983
|
-
toEl: parentEl,
|
1984
|
-
originalEvent: evt
|
1985
|
-
});
|
1986
|
-
}
|
1987
|
-
}
|
1988
|
-
}
|
1989
|
-
if (Sortable.active) {
|
1990
|
-
/* jshint eqnull:true */
|
1991
|
-
if (newIndex == null || newIndex === -1) {
|
1992
|
-
newIndex = oldIndex;
|
1993
|
-
newDraggableIndex = oldDraggableIndex;
|
1994
|
-
}
|
1995
|
-
_dispatchEvent({
|
1996
|
-
sortable: this,
|
1997
|
-
name: 'end',
|
1998
|
-
toEl: parentEl,
|
1999
|
-
originalEvent: evt
|
2000
|
-
});
|
2001
|
-
|
2002
|
-
// Save sorting
|
2003
|
-
this.save();
|
2004
|
-
}
|
2005
|
-
}
|
2006
|
-
}
|
2007
|
-
this._nulling();
|
2008
|
-
},
|
2009
|
-
_nulling: function _nulling() {
|
2010
|
-
pluginEvent('nulling', this);
|
2011
|
-
rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
|
2012
|
-
savedInputChecked.forEach(function (el) {
|
2013
|
-
el.checked = true;
|
2014
|
-
});
|
2015
|
-
savedInputChecked.length = lastDx = lastDy = 0;
|
2016
|
-
},
|
2017
|
-
handleEvent: function handleEvent( /**Event*/evt) {
|
2018
|
-
switch (evt.type) {
|
2019
|
-
case 'drop':
|
2020
|
-
case 'dragend':
|
2021
|
-
this._onDrop(evt);
|
2022
|
-
break;
|
2023
|
-
case 'dragenter':
|
2024
|
-
case 'dragover':
|
2025
|
-
if (dragEl) {
|
2026
|
-
this._onDragOver(evt);
|
2027
|
-
_globalDragOver(evt);
|
2028
|
-
}
|
2029
|
-
break;
|
2030
|
-
case 'selectstart':
|
2031
|
-
evt.preventDefault();
|
2032
|
-
break;
|
2033
|
-
}
|
2034
|
-
},
|
2035
|
-
/**
|
2036
|
-
* Serializes the item into an array of string.
|
2037
|
-
* @returns {String[]}
|
2038
|
-
*/
|
2039
|
-
toArray: function toArray() {
|
2040
|
-
var order = [],
|
2041
|
-
el,
|
2042
|
-
children = this.el.children,
|
2043
|
-
i = 0,
|
2044
|
-
n = children.length,
|
2045
|
-
options = this.options;
|
2046
|
-
for (; i < n; i++) {
|
2047
|
-
el = children[i];
|
2048
|
-
if (closest(el, options.draggable, this.el, false)) {
|
2049
|
-
order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
|
2050
|
-
}
|
2051
|
-
}
|
2052
|
-
return order;
|
2053
|
-
},
|
2054
|
-
/**
|
2055
|
-
* Sorts the elements according to the array.
|
2056
|
-
* @param {String[]} order order of the items
|
2057
|
-
*/
|
2058
|
-
sort: function sort(order, useAnimation) {
|
2059
|
-
var items = {},
|
2060
|
-
rootEl = this.el;
|
2061
|
-
this.toArray().forEach(function (id, i) {
|
2062
|
-
var el = rootEl.children[i];
|
2063
|
-
if (closest(el, this.options.draggable, rootEl, false)) {
|
2064
|
-
items[id] = el;
|
2065
|
-
}
|
2066
|
-
}, this);
|
2067
|
-
useAnimation && this.captureAnimationState();
|
2068
|
-
order.forEach(function (id) {
|
2069
|
-
if (items[id]) {
|
2070
|
-
rootEl.removeChild(items[id]);
|
2071
|
-
rootEl.appendChild(items[id]);
|
2072
|
-
}
|
2073
|
-
});
|
2074
|
-
useAnimation && this.animateAll();
|
2075
|
-
},
|
2076
|
-
/**
|
2077
|
-
* Save the current sorting
|
2078
|
-
*/
|
2079
|
-
save: function save() {
|
2080
|
-
var store = this.options.store;
|
2081
|
-
store && store.set && store.set(this);
|
2082
|
-
},
|
2083
|
-
/**
|
2084
|
-
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
2085
|
-
* @param {HTMLElement} el
|
2086
|
-
* @param {String} [selector] default: `options.draggable`
|
2087
|
-
* @returns {HTMLElement|null}
|
2088
|
-
*/
|
2089
|
-
closest: function closest$1(el, selector) {
|
2090
|
-
return closest(el, selector || this.options.draggable, this.el, false);
|
2091
|
-
},
|
2092
|
-
/**
|
2093
|
-
* Set/get option
|
2094
|
-
* @param {string} name
|
2095
|
-
* @param {*} [value]
|
2096
|
-
* @returns {*}
|
2097
|
-
*/
|
2098
|
-
option: function option(name, value) {
|
2099
|
-
var options = this.options;
|
2100
|
-
if (value === void 0) {
|
2101
|
-
return options[name];
|
2102
|
-
} else {
|
2103
|
-
var modifiedValue = PluginManager.modifyOption(this, name, value);
|
2104
|
-
if (typeof modifiedValue !== 'undefined') {
|
2105
|
-
options[name] = modifiedValue;
|
2106
|
-
} else {
|
2107
|
-
options[name] = value;
|
2108
|
-
}
|
2109
|
-
if (name === 'group') {
|
2110
|
-
_prepareGroup(options);
|
2111
|
-
}
|
2112
|
-
}
|
2113
|
-
},
|
2114
|
-
/**
|
2115
|
-
* Destroy
|
2116
|
-
*/
|
2117
|
-
destroy: function destroy() {
|
2118
|
-
pluginEvent('destroy', this);
|
2119
|
-
var el = this.el;
|
2120
|
-
el[expando] = null;
|
2121
|
-
off(el, 'mousedown', this._onTapStart);
|
2122
|
-
off(el, 'touchstart', this._onTapStart);
|
2123
|
-
off(el, 'pointerdown', this._onTapStart);
|
2124
|
-
if (this.nativeDraggable) {
|
2125
|
-
off(el, 'dragover', this);
|
2126
|
-
off(el, 'dragenter', this);
|
2127
|
-
}
|
2128
|
-
// Remove draggable attributes
|
2129
|
-
Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
|
2130
|
-
el.removeAttribute('draggable');
|
2131
|
-
});
|
2132
|
-
this._onDrop();
|
2133
|
-
this._disableDelayedDragEvents();
|
2134
|
-
sortables.splice(sortables.indexOf(this.el), 1);
|
2135
|
-
this.el = el = null;
|
2136
|
-
},
|
2137
|
-
_hideClone: function _hideClone() {
|
2138
|
-
if (!cloneHidden) {
|
2139
|
-
pluginEvent('hideClone', this);
|
2140
|
-
if (Sortable.eventCanceled) return;
|
2141
|
-
css(cloneEl, 'display', 'none');
|
2142
|
-
if (this.options.removeCloneOnHide && cloneEl.parentNode) {
|
2143
|
-
cloneEl.parentNode.removeChild(cloneEl);
|
2144
|
-
}
|
2145
|
-
cloneHidden = true;
|
2146
|
-
}
|
2147
|
-
},
|
2148
|
-
_showClone: function _showClone(putSortable) {
|
2149
|
-
if (putSortable.lastPutMode !== 'clone') {
|
2150
|
-
this._hideClone();
|
2151
|
-
return;
|
2152
|
-
}
|
2153
|
-
if (cloneHidden) {
|
2154
|
-
pluginEvent('showClone', this);
|
2155
|
-
if (Sortable.eventCanceled) return;
|
2156
|
-
|
2157
|
-
// show clone at dragEl or original position
|
2158
|
-
if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
|
2159
|
-
rootEl.insertBefore(cloneEl, dragEl);
|
2160
|
-
} else if (nextEl) {
|
2161
|
-
rootEl.insertBefore(cloneEl, nextEl);
|
2162
|
-
} else {
|
2163
|
-
rootEl.appendChild(cloneEl);
|
2164
|
-
}
|
2165
|
-
if (this.options.group.revertClone) {
|
2166
|
-
this.animate(dragEl, cloneEl);
|
2167
|
-
}
|
2168
|
-
css(cloneEl, 'display', '');
|
2169
|
-
cloneHidden = false;
|
2170
|
-
}
|
2171
|
-
}
|
2172
|
-
};
|
2173
|
-
function _globalDragOver( /**Event*/evt) {
|
2174
|
-
if (evt.dataTransfer) {
|
2175
|
-
evt.dataTransfer.dropEffect = 'move';
|
2176
|
-
}
|
2177
|
-
evt.cancelable && evt.preventDefault();
|
2178
|
-
}
|
2179
|
-
function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
|
2180
|
-
var evt,
|
2181
|
-
sortable = fromEl[expando],
|
2182
|
-
onMoveFn = sortable.options.onMove,
|
2183
|
-
retVal;
|
2184
|
-
// Support for new CustomEvent feature
|
2185
|
-
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
2186
|
-
evt = new CustomEvent('move', {
|
2187
|
-
bubbles: true,
|
2188
|
-
cancelable: true
|
2189
|
-
});
|
2190
|
-
} else {
|
2191
|
-
evt = document.createEvent('Event');
|
2192
|
-
evt.initEvent('move', true, true);
|
2193
|
-
}
|
2194
|
-
evt.to = toEl;
|
2195
|
-
evt.from = fromEl;
|
2196
|
-
evt.dragged = dragEl;
|
2197
|
-
evt.draggedRect = dragRect;
|
2198
|
-
evt.related = targetEl || toEl;
|
2199
|
-
evt.relatedRect = targetRect || getRect(toEl);
|
2200
|
-
evt.willInsertAfter = willInsertAfter;
|
2201
|
-
evt.originalEvent = originalEvent;
|
2202
|
-
fromEl.dispatchEvent(evt);
|
2203
|
-
if (onMoveFn) {
|
2204
|
-
retVal = onMoveFn.call(sortable, evt, originalEvent);
|
2205
|
-
}
|
2206
|
-
return retVal;
|
2207
|
-
}
|
2208
|
-
function _disableDraggable(el) {
|
2209
|
-
el.draggable = false;
|
2210
|
-
}
|
2211
|
-
function _unsilent() {
|
2212
|
-
_silent = false;
|
2213
|
-
}
|
2214
|
-
function _ghostIsFirst(evt, vertical, sortable) {
|
2215
|
-
var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
|
2216
|
-
var sortableContentRect = getContentRect(sortable.el);
|
2217
|
-
var spacer = 10;
|
2218
|
-
return vertical ? evt.clientX < sortableContentRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < sortableContentRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;
|
2219
|
-
}
|
2220
|
-
function _ghostIsLast(evt, vertical, sortable) {
|
2221
|
-
var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
|
2222
|
-
var sortableContentRect = getContentRect(sortable.el);
|
2223
|
-
var spacer = 10;
|
2224
|
-
return vertical ? evt.clientX > sortableContentRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > sortableContentRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;
|
2225
|
-
}
|
2226
|
-
function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
|
2227
|
-
var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
|
2228
|
-
targetLength = vertical ? targetRect.height : targetRect.width,
|
2229
|
-
targetS1 = vertical ? targetRect.top : targetRect.left,
|
2230
|
-
targetS2 = vertical ? targetRect.bottom : targetRect.right,
|
2231
|
-
invert = false;
|
2232
|
-
if (!invertSwap) {
|
2233
|
-
// Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
|
2234
|
-
if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
|
2235
|
-
// multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2
|
2236
|
-
// check if past first invert threshold on side opposite of lastDirection
|
2237
|
-
if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
|
2238
|
-
// past first invert threshold, do not restrict inverted threshold to dragEl shadow
|
2239
|
-
pastFirstInvertThresh = true;
|
2240
|
-
}
|
2241
|
-
if (!pastFirstInvertThresh) {
|
2242
|
-
// dragEl shadow (target move distance shadow)
|
2243
|
-
if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
|
2244
|
-
: mouseOnAxis > targetS2 - targetMoveDistance) {
|
2245
|
-
return -lastDirection;
|
2246
|
-
}
|
2247
|
-
} else {
|
2248
|
-
invert = true;
|
2249
|
-
}
|
2250
|
-
} else {
|
2251
|
-
// Regular
|
2252
|
-
if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
|
2253
|
-
return _getInsertDirection(target);
|
2254
|
-
}
|
2255
|
-
}
|
2256
|
-
}
|
2257
|
-
invert = invert || invertSwap;
|
2258
|
-
if (invert) {
|
2259
|
-
// Invert of regular
|
2260
|
-
if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
|
2261
|
-
return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
|
2262
|
-
}
|
2263
|
-
}
|
2264
|
-
return 0;
|
2265
|
-
}
|
2266
|
-
|
2267
|
-
/**
|
2268
|
-
* Gets the direction dragEl must be swapped relative to target in order to make it
|
2269
|
-
* seem that dragEl has been "inserted" into that element's position
|
2270
|
-
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
2271
|
-
* @return {Number} Direction dragEl must be swapped
|
2272
|
-
*/
|
2273
|
-
function _getInsertDirection(target) {
|
2274
|
-
if (index(dragEl) < index(target)) {
|
2275
|
-
return 1;
|
2276
|
-
} else {
|
2277
|
-
return -1;
|
2278
|
-
}
|
2279
|
-
}
|
2280
|
-
|
2281
|
-
/**
|
2282
|
-
* Generate id
|
2283
|
-
* @param {HTMLElement} el
|
2284
|
-
* @returns {String}
|
2285
|
-
* @private
|
2286
|
-
*/
|
2287
|
-
function _generateId(el) {
|
2288
|
-
var str = el.tagName + el.className + el.src + el.href + el.textContent,
|
2289
|
-
i = str.length,
|
2290
|
-
sum = 0;
|
2291
|
-
while (i--) {
|
2292
|
-
sum += str.charCodeAt(i);
|
2293
|
-
}
|
2294
|
-
return sum.toString(36);
|
2295
|
-
}
|
2296
|
-
function _saveInputCheckedState(root) {
|
2297
|
-
savedInputChecked.length = 0;
|
2298
|
-
var inputs = root.getElementsByTagName('input');
|
2299
|
-
var idx = inputs.length;
|
2300
|
-
while (idx--) {
|
2301
|
-
var el = inputs[idx];
|
2302
|
-
el.checked && savedInputChecked.push(el);
|
2303
|
-
}
|
2304
|
-
}
|
2305
|
-
function _nextTick(fn) {
|
2306
|
-
return setTimeout(fn, 0);
|
2307
|
-
}
|
2308
|
-
function _cancelNextTick(id) {
|
2309
|
-
return clearTimeout(id);
|
2310
|
-
}
|
2311
|
-
|
2312
|
-
// Fixed #973:
|
2313
|
-
if (documentExists) {
|
2314
|
-
on(document, 'touchmove', function (evt) {
|
2315
|
-
if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
|
2316
|
-
evt.preventDefault();
|
2317
|
-
}
|
2318
|
-
});
|
2319
|
-
}
|
2320
|
-
|
2321
|
-
// Export utils
|
2322
|
-
Sortable.utils = {
|
2323
|
-
on: on,
|
2324
|
-
off: off,
|
2325
|
-
css: css,
|
2326
|
-
find: find,
|
2327
|
-
is: function is(el, selector) {
|
2328
|
-
return !!closest(el, selector, el, false);
|
2329
|
-
},
|
2330
|
-
extend: extend,
|
2331
|
-
throttle: throttle,
|
2332
|
-
closest: closest,
|
2333
|
-
toggleClass: toggleClass,
|
2334
|
-
clone: clone,
|
2335
|
-
index: index,
|
2336
|
-
nextTick: _nextTick,
|
2337
|
-
cancelNextTick: _cancelNextTick,
|
2338
|
-
detectDirection: _detectDirection,
|
2339
|
-
getChild: getChild
|
2340
|
-
};
|
2341
|
-
|
2342
|
-
/**
|
2343
|
-
* Get the Sortable instance of an element
|
2344
|
-
* @param {HTMLElement} element The element
|
2345
|
-
* @return {Sortable|undefined} The instance of Sortable
|
2346
|
-
*/
|
2347
|
-
Sortable.get = function (element) {
|
2348
|
-
return element[expando];
|
2349
|
-
};
|
2350
|
-
|
2351
|
-
/**
|
2352
|
-
* Mount a plugin to Sortable
|
2353
|
-
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
2354
|
-
*/
|
2355
|
-
Sortable.mount = function () {
|
2356
|
-
for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
|
2357
|
-
plugins[_key] = arguments[_key];
|
2358
|
-
}
|
2359
|
-
if (plugins[0].constructor === Array) plugins = plugins[0];
|
2360
|
-
plugins.forEach(function (plugin) {
|
2361
|
-
if (!plugin.prototype || !plugin.prototype.constructor) {
|
2362
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
|
2363
|
-
}
|
2364
|
-
if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
|
2365
|
-
PluginManager.mount(plugin);
|
2366
|
-
});
|
2367
|
-
};
|
2368
|
-
|
2369
|
-
/**
|
2370
|
-
* Create sortable instance
|
2371
|
-
* @param {HTMLElement} el
|
2372
|
-
* @param {Object} [options]
|
2373
|
-
*/
|
2374
|
-
Sortable.create = function (el, options) {
|
2375
|
-
return new Sortable(el, options);
|
2376
|
-
};
|
2377
|
-
|
2378
|
-
// Export
|
2379
|
-
Sortable.version = version;
|
2380
|
-
|
2381
|
-
var autoScrolls = [],
|
2382
|
-
scrollEl,
|
2383
|
-
scrollRootEl,
|
2384
|
-
scrolling = false,
|
2385
|
-
lastAutoScrollX,
|
2386
|
-
lastAutoScrollY,
|
2387
|
-
touchEvt$1,
|
2388
|
-
pointerElemChangedInterval;
|
2389
|
-
function AutoScrollPlugin() {
|
2390
|
-
function AutoScroll() {
|
2391
|
-
this.defaults = {
|
2392
|
-
scroll: true,
|
2393
|
-
forceAutoScrollFallback: false,
|
2394
|
-
scrollSensitivity: 30,
|
2395
|
-
scrollSpeed: 10,
|
2396
|
-
bubbleScroll: true
|
2397
|
-
};
|
2398
|
-
|
2399
|
-
// Bind all private methods
|
2400
|
-
for (var fn in this) {
|
2401
|
-
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
|
2402
|
-
this[fn] = this[fn].bind(this);
|
2403
|
-
}
|
2404
|
-
}
|
2405
|
-
}
|
2406
|
-
AutoScroll.prototype = {
|
2407
|
-
dragStarted: function dragStarted(_ref) {
|
2408
|
-
var originalEvent = _ref.originalEvent;
|
2409
|
-
if (this.sortable.nativeDraggable) {
|
2410
|
-
on(document, 'dragover', this._handleAutoScroll);
|
2411
|
-
} else {
|
2412
|
-
if (this.options.supportPointer) {
|
2413
|
-
on(document, 'pointermove', this._handleFallbackAutoScroll);
|
2414
|
-
} else if (originalEvent.touches) {
|
2415
|
-
on(document, 'touchmove', this._handleFallbackAutoScroll);
|
2416
|
-
} else {
|
2417
|
-
on(document, 'mousemove', this._handleFallbackAutoScroll);
|
2418
|
-
}
|
2419
|
-
}
|
2420
|
-
},
|
2421
|
-
dragOverCompleted: function dragOverCompleted(_ref2) {
|
2422
|
-
var originalEvent = _ref2.originalEvent;
|
2423
|
-
// For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
|
2424
|
-
if (!this.options.dragOverBubble && !originalEvent.rootEl) {
|
2425
|
-
this._handleAutoScroll(originalEvent);
|
2426
|
-
}
|
2427
|
-
},
|
2428
|
-
drop: function drop() {
|
2429
|
-
if (this.sortable.nativeDraggable) {
|
2430
|
-
off(document, 'dragover', this._handleAutoScroll);
|
2431
|
-
} else {
|
2432
|
-
off(document, 'pointermove', this._handleFallbackAutoScroll);
|
2433
|
-
off(document, 'touchmove', this._handleFallbackAutoScroll);
|
2434
|
-
off(document, 'mousemove', this._handleFallbackAutoScroll);
|
2435
|
-
}
|
2436
|
-
clearPointerElemChangedInterval();
|
2437
|
-
clearAutoScrolls();
|
2438
|
-
cancelThrottle();
|
2439
|
-
},
|
2440
|
-
nulling: function nulling() {
|
2441
|
-
touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
|
2442
|
-
autoScrolls.length = 0;
|
2443
|
-
},
|
2444
|
-
_handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
|
2445
|
-
this._handleAutoScroll(evt, true);
|
2446
|
-
},
|
2447
|
-
_handleAutoScroll: function _handleAutoScroll(evt, fallback) {
|
2448
|
-
var _this = this;
|
2449
|
-
var x = (evt.touches ? evt.touches[0] : evt).clientX,
|
2450
|
-
y = (evt.touches ? evt.touches[0] : evt).clientY,
|
2451
|
-
elem = document.elementFromPoint(x, y);
|
2452
|
-
touchEvt$1 = evt;
|
2453
|
-
|
2454
|
-
// IE does not seem to have native autoscroll,
|
2455
|
-
// Edge's autoscroll seems too conditional,
|
2456
|
-
// MACOS Safari does not have autoscroll,
|
2457
|
-
// Firefox and Chrome are good
|
2458
|
-
if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
|
2459
|
-
autoScroll(evt, this.options, elem, fallback);
|
2460
|
-
|
2461
|
-
// Listener for pointer element change
|
2462
|
-
var ogElemScroller = getParentAutoScrollElement(elem, true);
|
2463
|
-
if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
|
2464
|
-
pointerElemChangedInterval && clearPointerElemChangedInterval();
|
2465
|
-
// Detect for pointer elem change, emulating native DnD behaviour
|
2466
|
-
pointerElemChangedInterval = setInterval(function () {
|
2467
|
-
var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
|
2468
|
-
if (newElem !== ogElemScroller) {
|
2469
|
-
ogElemScroller = newElem;
|
2470
|
-
clearAutoScrolls();
|
2471
|
-
}
|
2472
|
-
autoScroll(evt, _this.options, newElem, fallback);
|
2473
|
-
}, 10);
|
2474
|
-
lastAutoScrollX = x;
|
2475
|
-
lastAutoScrollY = y;
|
2476
|
-
}
|
2477
|
-
} else {
|
2478
|
-
// if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll
|
2479
|
-
if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
|
2480
|
-
clearAutoScrolls();
|
2481
|
-
return;
|
2482
|
-
}
|
2483
|
-
autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
|
2484
|
-
}
|
2485
|
-
}
|
2486
|
-
};
|
2487
|
-
return _extends(AutoScroll, {
|
2488
|
-
pluginName: 'scroll',
|
2489
|
-
initializeByDefault: true
|
2490
|
-
});
|
2491
|
-
}
|
2492
|
-
function clearAutoScrolls() {
|
2493
|
-
autoScrolls.forEach(function (autoScroll) {
|
2494
|
-
clearInterval(autoScroll.pid);
|
2495
|
-
});
|
2496
|
-
autoScrolls = [];
|
2497
|
-
}
|
2498
|
-
function clearPointerElemChangedInterval() {
|
2499
|
-
clearInterval(pointerElemChangedInterval);
|
2500
|
-
}
|
2501
|
-
var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
|
2502
|
-
// Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
|
2503
|
-
if (!options.scroll) return;
|
2504
|
-
var x = (evt.touches ? evt.touches[0] : evt).clientX,
|
2505
|
-
y = (evt.touches ? evt.touches[0] : evt).clientY,
|
2506
|
-
sens = options.scrollSensitivity,
|
2507
|
-
speed = options.scrollSpeed,
|
2508
|
-
winScroller = getWindowScrollingElement();
|
2509
|
-
var scrollThisInstance = false,
|
2510
|
-
scrollCustomFn;
|
2511
|
-
|
2512
|
-
// New scroll root, set scrollEl
|
2513
|
-
if (scrollRootEl !== rootEl) {
|
2514
|
-
scrollRootEl = rootEl;
|
2515
|
-
clearAutoScrolls();
|
2516
|
-
scrollEl = options.scroll;
|
2517
|
-
scrollCustomFn = options.scrollFn;
|
2518
|
-
if (scrollEl === true) {
|
2519
|
-
scrollEl = getParentAutoScrollElement(rootEl, true);
|
2520
|
-
}
|
2521
|
-
}
|
2522
|
-
var layersOut = 0;
|
2523
|
-
var currentParent = scrollEl;
|
2524
|
-
do {
|
2525
|
-
var el = currentParent,
|
2526
|
-
rect = getRect(el),
|
2527
|
-
top = rect.top,
|
2528
|
-
bottom = rect.bottom,
|
2529
|
-
left = rect.left,
|
2530
|
-
right = rect.right,
|
2531
|
-
width = rect.width,
|
2532
|
-
height = rect.height,
|
2533
|
-
canScrollX = void 0,
|
2534
|
-
canScrollY = void 0,
|
2535
|
-
scrollWidth = el.scrollWidth,
|
2536
|
-
scrollHeight = el.scrollHeight,
|
2537
|
-
elCSS = css(el),
|
2538
|
-
scrollPosX = el.scrollLeft,
|
2539
|
-
scrollPosY = el.scrollTop;
|
2540
|
-
if (el === winScroller) {
|
2541
|
-
canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
|
2542
|
-
canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
|
2543
|
-
} else {
|
2544
|
-
canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
|
2545
|
-
canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
|
2546
|
-
}
|
2547
|
-
var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
|
2548
|
-
var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
|
2549
|
-
if (!autoScrolls[layersOut]) {
|
2550
|
-
for (var i = 0; i <= layersOut; i++) {
|
2551
|
-
if (!autoScrolls[i]) {
|
2552
|
-
autoScrolls[i] = {};
|
2553
|
-
}
|
2554
|
-
}
|
2555
|
-
}
|
2556
|
-
if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
|
2557
|
-
autoScrolls[layersOut].el = el;
|
2558
|
-
autoScrolls[layersOut].vx = vx;
|
2559
|
-
autoScrolls[layersOut].vy = vy;
|
2560
|
-
clearInterval(autoScrolls[layersOut].pid);
|
2561
|
-
if (vx != 0 || vy != 0) {
|
2562
|
-
scrollThisInstance = true;
|
2563
|
-
/* jshint loopfunc:true */
|
2564
|
-
autoScrolls[layersOut].pid = setInterval(function () {
|
2565
|
-
// emulate drag over during autoscroll (fallback), emulating native DnD behaviour
|
2566
|
-
if (isFallback && this.layer === 0) {
|
2567
|
-
Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
|
2568
|
-
}
|
2569
|
-
var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
|
2570
|
-
var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
|
2571
|
-
if (typeof scrollCustomFn === 'function') {
|
2572
|
-
if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
|
2573
|
-
return;
|
2574
|
-
}
|
2575
|
-
}
|
2576
|
-
scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
|
2577
|
-
}.bind({
|
2578
|
-
layer: layersOut
|
2579
|
-
}), 24);
|
2580
|
-
}
|
2581
|
-
}
|
2582
|
-
layersOut++;
|
2583
|
-
} while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
|
2584
|
-
scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
|
2585
|
-
}, 30);
|
2586
|
-
|
2587
|
-
var drop = function drop(_ref) {
|
2588
|
-
var originalEvent = _ref.originalEvent,
|
2589
|
-
putSortable = _ref.putSortable,
|
2590
|
-
dragEl = _ref.dragEl,
|
2591
|
-
activeSortable = _ref.activeSortable,
|
2592
|
-
dispatchSortableEvent = _ref.dispatchSortableEvent,
|
2593
|
-
hideGhostForTarget = _ref.hideGhostForTarget,
|
2594
|
-
unhideGhostForTarget = _ref.unhideGhostForTarget;
|
2595
|
-
if (!originalEvent) return;
|
2596
|
-
var toSortable = putSortable || activeSortable;
|
2597
|
-
hideGhostForTarget();
|
2598
|
-
var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
|
2599
|
-
var target = document.elementFromPoint(touch.clientX, touch.clientY);
|
2600
|
-
unhideGhostForTarget();
|
2601
|
-
if (toSortable && !toSortable.el.contains(target)) {
|
2602
|
-
dispatchSortableEvent('spill');
|
2603
|
-
this.onSpill({
|
2604
|
-
dragEl: dragEl,
|
2605
|
-
putSortable: putSortable
|
2606
|
-
});
|
2607
|
-
}
|
2608
|
-
};
|
2609
|
-
function Revert() {}
|
2610
|
-
Revert.prototype = {
|
2611
|
-
startIndex: null,
|
2612
|
-
dragStart: function dragStart(_ref2) {
|
2613
|
-
var oldDraggableIndex = _ref2.oldDraggableIndex;
|
2614
|
-
this.startIndex = oldDraggableIndex;
|
2615
|
-
},
|
2616
|
-
onSpill: function onSpill(_ref3) {
|
2617
|
-
var dragEl = _ref3.dragEl,
|
2618
|
-
putSortable = _ref3.putSortable;
|
2619
|
-
this.sortable.captureAnimationState();
|
2620
|
-
if (putSortable) {
|
2621
|
-
putSortable.captureAnimationState();
|
2622
|
-
}
|
2623
|
-
var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
|
2624
|
-
if (nextSibling) {
|
2625
|
-
this.sortable.el.insertBefore(dragEl, nextSibling);
|
2626
|
-
} else {
|
2627
|
-
this.sortable.el.appendChild(dragEl);
|
2628
|
-
}
|
2629
|
-
this.sortable.animateAll();
|
2630
|
-
if (putSortable) {
|
2631
|
-
putSortable.animateAll();
|
2632
|
-
}
|
2633
|
-
},
|
2634
|
-
drop: drop
|
2635
|
-
};
|
2636
|
-
_extends(Revert, {
|
2637
|
-
pluginName: 'revertOnSpill'
|
2638
|
-
});
|
2639
|
-
function Remove() {}
|
2640
|
-
Remove.prototype = {
|
2641
|
-
onSpill: function onSpill(_ref4) {
|
2642
|
-
var dragEl = _ref4.dragEl,
|
2643
|
-
putSortable = _ref4.putSortable;
|
2644
|
-
var parentSortable = putSortable || this.sortable;
|
2645
|
-
parentSortable.captureAnimationState();
|
2646
|
-
dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
|
2647
|
-
parentSortable.animateAll();
|
2648
|
-
},
|
2649
|
-
drop: drop
|
2650
|
-
};
|
2651
|
-
_extends(Remove, {
|
2652
|
-
pluginName: 'removeOnSpill'
|
2653
|
-
});
|
2654
|
-
|
2655
|
-
Sortable.mount(new AutoScrollPlugin());
|
2656
|
-
Sortable.mount(Remove, Revert);
|
2657
|
-
|
2658
|
-
/*!
|
2659
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2660
|
-
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2661
|
-
* v2.11.1
|
2662
|
-
*/
|
2663
|
-
const sortableComponentSet = new Set();
|
2664
|
-
const CSS = {
|
2665
|
-
ghostClass: "calcite-sortable--ghost",
|
2666
|
-
chosenClass: "calcite-sortable--chosen",
|
2667
|
-
dragClass: "calcite-sortable--drag",
|
2668
|
-
fallbackClass: "calcite-sortable--fallback",
|
2669
|
-
};
|
2670
|
-
/**
|
2671
|
-
* Helper to keep track of a SortableComponent. This should be called in the `connectedCallback` lifecycle method as well as any other method necessary to rebuild the sortable instance.
|
2672
|
-
*
|
2673
|
-
* @param {SortableComponent} component - The sortable component.
|
2674
|
-
*/
|
2675
|
-
function connectSortableComponent(component) {
|
2676
|
-
if (dragActive(component)) {
|
2677
|
-
return;
|
2678
|
-
}
|
2679
|
-
disconnectSortableComponent(component);
|
2680
|
-
sortableComponentSet.add(component);
|
2681
|
-
const dataIdAttr = "id";
|
2682
|
-
const { group, handleSelector: handle, dragSelector: draggable } = component;
|
2683
|
-
component.sortable = Sortable.create(component.el, {
|
2684
|
-
dataIdAttr,
|
2685
|
-
...CSS,
|
2686
|
-
...(!!draggable && { draggable }),
|
2687
|
-
...(!!group && {
|
2688
|
-
group: {
|
2689
|
-
name: group,
|
2690
|
-
...(!!component.canPull && {
|
2691
|
-
pull: (to, from, dragEl, { newIndex, oldIndex }) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
|
2692
|
-
}),
|
2693
|
-
...(!!component.canPut && {
|
2694
|
-
put: (to, from, dragEl, { newIndex, oldIndex }) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
|
2695
|
-
}),
|
2696
|
-
},
|
2697
|
-
}),
|
2698
|
-
handle,
|
2699
|
-
filter: `${handle}[disabled]`,
|
2700
|
-
onStart: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
|
2701
|
-
dragState.active = true;
|
2702
|
-
onGlobalDragStart();
|
2703
|
-
component.onDragStart({ fromEl, dragEl, toEl, newIndex, oldIndex });
|
2704
|
-
},
|
2705
|
-
onEnd: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
|
2706
|
-
dragState.active = false;
|
2707
|
-
onGlobalDragEnd();
|
2708
|
-
component.onDragEnd({ fromEl, dragEl, toEl, newIndex, oldIndex });
|
2709
|
-
},
|
2710
|
-
onSort: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
|
2711
|
-
component.onDragSort({ fromEl, dragEl, toEl, newIndex, oldIndex });
|
2712
|
-
},
|
2713
|
-
});
|
2714
|
-
}
|
2715
|
-
/**
|
2716
|
-
* Helper to remove track of a SortableComponent. This should be called in the `disconnectedCallback` lifecycle method.
|
2717
|
-
*
|
2718
|
-
* @param {SortableComponent} component - The sortable component.
|
2719
|
-
*/
|
2720
|
-
function disconnectSortableComponent(component) {
|
2721
|
-
if (dragActive(component)) {
|
2722
|
-
return;
|
2723
|
-
}
|
2724
|
-
sortableComponentSet.delete(component);
|
2725
|
-
component.sortable?.destroy();
|
2726
|
-
component.sortable = null;
|
2727
|
-
}
|
2728
|
-
const dragState = { active: false };
|
2729
|
-
/**
|
2730
|
-
* Helper to determine if dragging is currently active.
|
2731
|
-
*
|
2732
|
-
* @param component The sortable component.
|
2733
|
-
* @returns {boolean} a boolean value.
|
2734
|
-
*/
|
2735
|
-
function dragActive(component) {
|
2736
|
-
return component.dragEnabled && dragState.active;
|
2737
|
-
}
|
2738
|
-
function onGlobalDragStart() {
|
2739
|
-
Array.from(sortableComponentSet).forEach((component) => component.onGlobalDragStart());
|
2740
|
-
}
|
2741
|
-
function onGlobalDragEnd() {
|
2742
|
-
Array.from(sortableComponentSet).forEach((component) => component.onGlobalDragEnd());
|
2743
|
-
}
|
2744
|
-
|
2745
|
-
export { connectSortableComponent as c, disconnectSortableComponent as d };
|