@agrotools1/at-components 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AGraphicContainer-98a4c8a4.js +109 -0
- package/dist/APIKeyMixin-9511e0a5.js +19 -0
- package/dist/Analysis-4b1d1fb5.js +31 -0
- package/dist/ArcGISCachedService-93e2cb27.js +47 -0
- package/dist/ArcGISService-3f8d89c1.js +25 -0
- package/dist/AreaMeasurement2D-e0bb230c.js +405 -0
- package/dist/AreaMeasurement3D-a9959ecf.js +488 -0
- package/dist/AttachmentInfo-601c56e2.js +34 -0
- package/dist/AttachmentQuery-3504d550.js +18 -0
- package/dist/AttributeStore-b90878e3.js +1707 -0
- package/dist/BaseDynamicLayerView2D-b2faf028.js +63 -0
- package/dist/BindType-5e76c8e1.js +7 -0
- package/dist/BingMapsLayer-5d79fe2b.js +112 -0
- package/dist/Bitmap-f775c851.js +128 -0
- package/dist/BitmapContainer-af5942b8.js +23 -0
- package/dist/BlendLayer-a792edf6.js +13 -0
- package/dist/BoundsStore-789624df.js +63 -0
- package/dist/BufferObject-cbd0168e.js +100 -0
- package/dist/BufferView-004ad517.js +683 -0
- package/dist/BuildingSceneLayer-25bc760b.js +535 -0
- package/dist/Button/Button.d.ts +24 -2
- package/dist/Button-70963624.js +36 -0
- package/dist/ByteSizeUnit-90df2840.js +7 -0
- package/dist/CSVLayer-fd3b6750.js +208 -0
- package/dist/CSVSourceWorker-eb24cd85.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +66 -0
- package/dist/CatalogFootprintLayerView2D-6eb16597.js +76 -0
- package/dist/CatalogLayer-1cc632fe.js +262 -0
- package/dist/CatalogLayerView2D-d143aa34.js +52 -0
- package/dist/Chips/index.d.ts +1 -0
- package/dist/CircularArray-b2bc1dfd.js +40 -0
- package/dist/ClassBreaksDefinition-07ba0c64.js +18 -0
- package/dist/ColorMaterial.glsl-e7801766.js +64 -0
- package/dist/ColorSet-df5696b5.js +45 -0
- package/dist/ColorStop-7187f368.js +29 -0
- package/dist/Container-ac97765a.js +521 -0
- package/dist/CustomParametersMixin-b3432b3e.js +12 -0
- package/dist/DatePicker/DatePicker.helper.d.ts +22 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.d.ts +18 -0
- package/dist/DatePicker/index.d.ts +2 -0
- package/dist/DefaultMaterial.glsl-3cc4efe7.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +653 -0
- package/dist/DefaultTheme-12dffc66.js +130 -0
- package/dist/DeleteForwardEditsParameters-ae76d898.js +18 -0
- package/dist/DimensionLayer-9eb47c76.js +129 -0
- package/dist/DirectLineMeasurement3D-e9903136.js +449 -0
- package/dist/DistanceMeasurement2D-a4853462.js +303 -0
- package/dist/DoubleArray-5076283e.js +25 -0
- package/dist/EdgeProcessingWorker-c1783ddd.js +63 -0
- package/dist/EditBusLayer-e812f4c9.js +107 -0
- package/dist/ElevationInfo-fad03d5e.js +56 -0
- package/dist/ElevationLayer-397792d5.js +129 -0
- package/dist/ElevationQuery-beceb62f.js +598 -0
- package/dist/ElevationSamplerWorker-0048a204.js +62 -0
- package/dist/ExportImageParameters-c6c4bc61.js +66 -0
- package/dist/ExportStrategy-908f5b8d.js +93 -0
- package/dist/ExportWMSImageParameters-34da6b46.js +33 -0
- package/dist/External-14daf0c1.js +110 -0
- package/dist/FeatureCollectionSnappingSource-f97a1829.js +130 -0
- package/dist/FeatureCommandQueue-d4817eac.js +1244 -0
- package/dist/FeatureEffect-08976bbd.js +39 -0
- package/dist/FeatureEffectLayer-05c258f4.js +13 -0
- package/dist/FeatureFilter-8c5e44b1.js +27 -0
- package/dist/FeatureLayer-d3659466.js +693 -0
- package/dist/FeatureLayerBase-9b63f732.js +148 -0
- package/dist/FeatureLayerSource-960f1c01.js +444 -0
- package/dist/FeatureLayerView2D-7503e1ed.js +1967 -0
- package/dist/FeaturePipelineWorker-d4301d2a.js +3633 -0
- package/dist/FeatureReductionLayer-e6cf73ac.js +225 -0
- package/dist/FeatureReductionSelection-d90249a7.js +22 -0
- package/dist/FeatureServiceSnappingSource-9e49ca72.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +747 -0
- package/dist/FeatureSet-d79f0e48.js +188 -0
- package/dist/FeatureStore-eb4b87c0.js +131 -0
- package/dist/FeatureTemplate-edb1b782.js +12 -0
- package/dist/FeatureType-bba29adb.js +25 -0
- package/dist/FieldsIndex-75cca4d0.js +109 -0
- package/dist/FormTemplate-22911c47.js +350 -0
- package/dist/GeoJSONLayer-b33c96b8.js +236 -0
- package/dist/GeoJSONSourceWorker-b04ff552.js +247 -0
- package/dist/GeoRSSLayer-6e5fcd0e.js +73 -0
- package/dist/GeoRSSLayerView2D-21b6b12e.js +140 -0
- package/dist/GeometryUtils-fa897cbd.js +403 -0
- package/dist/GraphicContainer-1fd6bfce.js +26 -0
- package/dist/GraphicManipulator-f3b7dc9b.js +1499 -0
- package/dist/GraphicsLayer-e0686779.js +38 -0
- package/dist/GraphicsLayerView2D-a7eba2fe.js +114 -0
- package/dist/GraphicsSnappingSource-594f402a.js +273 -0
- package/dist/GraphicsView2D-347562b8.js +620 -0
- package/dist/GroupLayer-7ae0a916.js +147 -0
- package/dist/GroupLayerView2D-ffcde606.js +98 -0
- package/dist/HUDMaterial.glsl-b0a3e0ce.js +65 -0
- package/dist/HighlightCounter-e18f0179.js +41 -0
- package/dist/HighlightGraphicContainer-fd774cea.js +18 -0
- package/dist/I3SBinaryReader-190e99de.js +310 -0
- package/dist/I3SLayerDefinitions-6ddaca60.js +55 -0
- package/dist/I3SUtil-44b83dc0.js +59 -0
- package/dist/IdentityManager-fbe91c13.js +899 -0
- package/dist/ImageHistogramParameters-d64fd9c8.js +905 -0
- package/dist/ImageryLayer-67878a78.js +1799 -0
- package/dist/ImageryLayerView2D-ae45faba.js +352 -0
- package/dist/ImageryTileLayer-9dca8b93.js +2157 -0
- package/dist/ImageryTileLayerView2D-977f66aa.js +1110 -0
- package/dist/ImmutableArray-fb7b7a6a.js +20 -0
- package/dist/Indices-e6dc3b15.js +67 -0
- package/dist/Input/Input.core.d.ts +37 -11
- package/dist/Input/index.d.ts +37 -11
- package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +112 -0
- package/dist/IntegratedMeshLayer-9162c0b5.js +141 -0
- package/dist/InteractiveAnalysisViewModel-b046fcb9.js +7397 -0
- package/dist/InterleavedLayout-32973c8a.js +163 -0
- package/dist/KMLLayer-80f81df7.js +162 -0
- package/dist/KMLLayerView2D-b6ba3b80.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +43 -0
- package/dist/LRUCache-27e8c401.js +32 -0
- package/dist/LabelClass-d9a476d6.js +135 -0
- package/dist/LabelMetric-e2728bbf.js +400 -0
- package/dist/LaserlinePath.glsl-60d00e61.js +64 -0
- package/dist/Laserlines.glsl-499a6cbf.js +65 -0
- package/dist/LayerFloorInfo-d05cf9dd.js +15 -0
- package/dist/LayerView-036988a9.js +206 -0
- package/dist/LercWorker-b1b4bb47.js +157 -0
- package/dist/LineOfSightLayer-9a9a60b7.js +147 -0
- package/dist/LinkChartLayer-d61803bb.js +1027 -0
- package/dist/Lyr3DWorker-87be14e0.js +82 -0
- package/dist/MD5-1b5ec1c3.js +76 -0
- package/dist/MagnifierPrograms-da7a27ab.js +806 -0
- package/dist/Map/Map.d.ts +26 -0
- package/dist/Map/index.d.ts +1 -0
- package/dist/Map/types/index.d.ts +38 -0
- package/dist/Map/utils/index.d.ts +24 -0
- package/dist/MapImageLayer-f07adf1a.js +169 -0
- package/dist/MapImageLayerView2D-d1b140c3.js +146 -0
- package/dist/MapNotesLayer-c662d147.js +283 -0
- package/dist/MapNotesLayerView2D-bf9ac698.js +161 -0
- package/dist/MapServiceLayerViewHelper-fb724de9.js +288 -0
- package/dist/MeasurementWidgetContent-e4888ef2.js +2642 -0
- package/dist/MediaLayer-36d873a3.js +523 -0
- package/dist/MediaLayerView2D-e58b8ec0.js +332 -0
- package/dist/MemCache-a9232ec2.js +227 -0
- package/dist/MemorySourceWorker-20ff27d6.js +222 -0
- package/dist/Mesh-3839826a.js +980 -0
- package/dist/MeshLocalVertexSpace-00151564.js +19 -0
- package/dist/MultiOriginJSONSupport-bb258670.js +158 -0
- package/dist/NestedMap-83f8e815.js +29 -0
- package/dist/OGCFeatureLayer-2a8b7ecc.js +211 -0
- package/dist/OGCFeatureLayerView2D-185f9649.js +82 -0
- package/dist/ObjectStack-10d91171.js +21 -0
- package/dist/Octree-78797046.js +495 -0
- package/dist/OpenStreetMapLayer-b0a17790.js +30 -0
- package/dist/OperationalLayer-55af27d6.js +44 -0
- package/dist/OptimizedFeatureSet-54e095c4.js +12 -0
- package/dist/OptimizedGeometry-3b808152.js +68 -0
- package/dist/OrderByInfo-22e3c805.js +16 -0
- package/dist/OrderIndependentTransparency-3eadfe42.js +214 -0
- package/dist/OrderedLayer-1403a591.js +26 -0
- package/dist/OrientedImageryLayer-8ec8d7d1.js +216 -0
- package/dist/OverlayCompositing.glsl-ba3bd81d.js +65 -0
- package/dist/OverrideHelper-82325a2c.js +242 -0
- package/dist/PBFDecoderWorker-f6517afc.js +213 -0
- package/dist/PointCloudLayer-cff43a10.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-f337a895.js +115 -0
- package/dist/PointCloudWorker-cdb28dc1.js +212 -0
- package/dist/PooledRBush-ee4e60af.js +272 -0
- package/dist/Popup-c7f55588.js +3990 -0
- package/dist/PortalLayer-07b3c53e.js +126 -0
- package/dist/Program-ba2f18b2.js +694 -0
- package/dist/ProgramTemplate-eee4f097.js +35 -0
- package/dist/ProgressBar/ProgressBar.d.ts +0 -13
- package/dist/QueryEngine-10c97624.js +896 -0
- package/dist/QueryEngineCapabilities-0d8477a2.js +4 -0
- package/dist/QueryTask-115430b6.js +119 -0
- package/dist/RasterSymbolizer-fbf433fe.js +3024 -0
- package/dist/RasterVFDisplayObject-20b0dd86.js +581 -0
- package/dist/RasterWorker-44c37e20.js +78 -0
- package/dist/RawBlockCache-25203dbd.js +185 -0
- package/dist/RealisticTree.glsl-bc07c4dc.js +42 -0
- package/dist/Rect-894f011c.js +14 -0
- package/dist/RefreshableLayer-9550b85a.js +80 -0
- package/dist/RefreshableLayerView-601f7038.js +16 -0
- package/dist/Relationship-c662830e.js +64 -0
- package/dist/RelationshipQuery-765f068e.js +22 -0
- package/dist/RenderState-b244097f.js +7 -0
- package/dist/RenderingContext-3db74548.js +889 -0
- package/dist/RibbonLine.glsl-c6a715b7.js +65 -0
- package/dist/RouteLayer-3f5411f3.js +786 -0
- package/dist/RouteLayerView2D-a5fd4cbf.js +195 -0
- package/dist/SDFHelper-a34e90ee.js +140 -0
- package/dist/SSAO.glsl-5491a708.js +43 -0
- package/dist/SSAOBlur.glsl-f3068b8e.js +42 -0
- package/dist/ScaleRangeLayer-7ddf00b4.js +21 -0
- package/dist/SceneLayer-c594bfc3.js +542 -0
- package/dist/SceneLayerSnappingSource-a0504ac7.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +112 -0
- package/dist/SceneLayerWorker-1865768e.js +164 -0
- package/dist/SceneService-fb9f0142.js +215 -0
- package/dist/Scheduler-eacc84bb.js +373 -0
- package/dist/Select/Item/Item.d.ts +2 -1
- package/dist/Select/{Select.multiple.d.ts → Multiple/Select.multiple.d.ts} +26 -16
- package/dist/Select/Select.core.d.ts +18 -15
- package/dist/Select/{Select.single.d.ts → Single/Select.single.d.ts} +23 -14
- package/dist/Select/index.d.ts +42 -24
- package/dist/ShadedColorMaterial.glsl-db97956b.js +64 -0
- package/dist/SnappingOperation-9622a00d.js +48 -0
- package/dist/SourceLayerData-7016f1a5.js +116 -0
- package/dist/SpatialFilter-d20d4f50.js +1701 -0
- package/dist/Stop-68022e32.js +281 -0
- package/dist/StreamLayer-7c837e3d.js +188 -0
- package/dist/StreamLayerView2D-586f5a6a.js +164 -0
- package/dist/StyleDefinition-f4862d5a.js +36 -0
- package/dist/StyleRepository-fba75e70.js +2212 -0
- package/dist/SublayersOwner-3dc574cd.js +545 -0
- package/dist/SubtypeGroupLayer-1f9c5398.js +514 -0
- package/dist/SubtypeGroupLayerView2D-0f108d9d.js +84 -0
- package/dist/Tabs/Tab/Tab.d.ts +3 -3
- package/dist/TechniqueInstance-0481dbff.js +233 -0
- package/dist/TemporalLayer-8116b4a4.js +23 -0
- package/dist/Texture-22a8cca5.js +501 -0
- package/dist/TextureOnly.glsl-458f8148.js +65 -0
- package/dist/Theme-f05b8eb0.js +3426 -0
- package/dist/Tick-aef93b48.js +723 -0
- package/dist/TileContainer-0bf0ea1b.js +31 -0
- package/dist/TileInfoTilemapCache-d78858c0.js +38 -0
- package/dist/TileLayer-0edee064.js +194 -0
- package/dist/TileLayerView2D-78d5801b.js +187 -0
- package/dist/TilemapCache-79699d61.js +189 -0
- package/dist/TimeInfo-40c96ade.js +42 -0
- package/dist/TimeOnly-9ee66ca6.js +706 -0
- package/dist/Tooltip-e7498dc9.js +138 -0
- package/dist/TopFeaturesQuery-ad224e01.js +32 -0
- package/dist/TurboLine-6ab04aef.js +565 -0
- package/dist/UniqueValueRenderer-eaa5f8a6.js +1039 -0
- package/dist/UnknownLayer-e280ddd4.js +30 -0
- package/dist/UnknownTimeZone-220952b5.js +15 -0
- package/dist/UnsupportedLayer-447f7676.js +31 -0
- package/dist/UpdateTracking2D-e9adad8f.js +8566 -0
- package/dist/Util-002f5109.js +57 -0
- package/dist/VectorTileLayer-3210be81.js +544 -0
- package/dist/VectorTileLayerView2D-6a51e3b8.js +2108 -0
- package/dist/Version-3de8cbca.js +33 -0
- package/dist/VertexArrayObject-07998745.js +73 -0
- package/dist/VertexAttribute-faad30bf.js +11 -0
- package/dist/VertexColor.glsl-e415cf02.js +2683 -0
- package/dist/VertexElementDescriptor-d7c718c2.js +8 -0
- package/dist/VertexSnappingCandidate-b676241f.js +13 -0
- package/dist/VideoLayerView2D-f659dd0d.js +124 -0
- package/dist/VoxelLayer-003f82ff.js +631 -0
- package/dist/WFSLayer-3da6c5f7.js +221 -0
- package/dist/WFSSourceWorker-9a11693a.js +157 -0
- package/dist/WGLContainer-3d159b63.js +5426 -0
- package/dist/WMSLayer-fc0632f8.js +536 -0
- package/dist/WMSLayerView2D-54e80e1b.js +117 -0
- package/dist/WMTSLayer-9324b12b.js +531 -0
- package/dist/WMTSLayerView2D-3ef936db.js +142 -0
- package/dist/WebTileLayer-45c563ff.js +110 -0
- package/dist/WhereClause-7a28b740.js +2766 -0
- package/dist/WorkerHandle-0d54a6c7.js +47 -0
- package/dist/WorkerTileHandler-786c2b24.js +1539 -0
- package/dist/action-163397e3.js +198 -0
- package/dist/action-group-4859fb97.js +145 -0
- package/dist/action-menu-2d70b2fc.js +1759 -0
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/apng-9b71d52c.js +392 -0
- package/dist/ar-a17f8064.js +18 -0
- package/dist/arcade-fa309282.js +229 -0
- package/dist/arcadeAsyncRuntime-738498fd.js +943 -0
- package/dist/arcadeUtils-f71d80fa.js +8741 -0
- package/dist/arcgis-knowledge-client-core-6056bcea.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +1218 -0
- package/dist/arcgisLayers-b2b878bd.js +152 -0
- package/dist/associatedFeatureServiceUtils-df5b5187.js +92 -0
- package/dist/axisAngleDegrees-32643b7c.js +49 -0
- package/dist/basicInterfaces-fa4f5fa7.js +30 -0
- package/dist/basis_transcoder-3187cc92.js +1248 -0
- package/dist/bg_BG-9950a70b.js +18 -0
- package/dist/bs_BA-60482871.js +18 -0
- package/dist/ca_ES-a121088e.js +18 -0
- package/dist/calcite-action-bar-5a87c23c.js +303 -0
- package/dist/calcite-action-ee2ca847.js +22 -0
- package/dist/calcite-action-group-19aa86ee.js +28 -0
- package/dist/calcite-button-8e9175c0.js +228 -0
- package/dist/calcite-flow-57d26d2d.js +128 -0
- package/dist/calcite-flow-item-4a3e3fc0.js +499 -0
- package/dist/calcite-icon-d99e280a.js +16 -0
- package/dist/calcite-input-28b20785.js +24 -0
- package/dist/calcite-label-4f30e08d.js +79 -0
- package/dist/calcite-list-0cee7628.js +2135 -0
- package/dist/calcite-list-item-0a19efa8.js +576 -0
- package/dist/calcite-list-item-group-0706662f.js +71 -0
- package/dist/calcite-loader-865045b1.js +14 -0
- package/dist/calcite-modal-3e4da6fd.js +333 -0
- package/dist/calcite-notice-50b74ab7.js +181 -0
- package/dist/calcite-option-713c1d40.js +94 -0
- package/dist/calcite-scrim-809fbd0b.js +18 -0
- package/dist/calcite-select-28d8edfc.js +231 -0
- package/dist/capabilities-c8f838be.js +50 -0
- package/dist/chartCommon-13718cda.js +256 -0
- package/dist/chartUtilsAm5-6be145fb.js +2954 -0
- package/dist/clientSideDefaults-5c1f97c9.js +39 -0
- package/dist/colorRamps-8792655e.js +38 -0
- package/dist/colorUtils-54f4b662.js +164 -0
- package/dist/commonProperties-f9559903.js +60 -0
- package/dist/component-51a10bc0.js +18 -0
- package/dist/computeTranslationToOriginAndRotation-4876cb93.js +60 -0
- package/dist/conditionalSlot-87175989.js +27 -0
- package/dist/config-61215215.js +7 -0
- package/dist/constants-5bd557fe.js +5 -0
- package/dist/createConnection-f974a00a.js +299 -0
- package/dist/crsUtils-59933b10.js +7 -0
- package/dist/cs_CZ-1b968650.js +18 -0
- package/dist/da_DK-e0fe1642.js +18 -0
- package/dist/dataUtils-7c276b73.js +1421 -0
- package/dist/date-1c28c6a5.js +52 -0
- package/dist/de_CH-b0dbd4c8.js +6 -0
- package/dist/de_DE-8609ef65.js +6 -0
- package/dist/debounce-de27a42a.js +121 -0
- package/dist/deduplicate-59fb9cac.js +89 -0
- package/dist/defaults-2bfa4a36.js +31 -0
- package/dist/defaultsJSON-ba17aa15.js +10 -0
- package/dist/definitions-a00a3a6c.js +52 -0
- package/dist/deleteForwardEdits-f653b513.js +13 -0
- package/dist/devEnvironmentUtils-42cb97c7.js +11 -0
- package/dist/diffUtils-e71a6152.js +90 -0
- package/dist/dom-b589b728.js +358 -0
- package/dist/doublePrecisionUtils-46e21550.js +22 -0
- package/dist/drapedUtils-b42fcbc6.js +75 -0
- package/dist/earcut-6fa1a128.js +292 -0
- package/dist/edgeProcessing-2ff1f201.js +252 -0
- package/dist/editingSupport-68545668.js +203 -0
- package/dist/editsZScale-c7cdd215.js +37 -0
- package/dist/el_GR-5cfd1e7e.js +18 -0
- package/dist/elevationInfoUtils-5456a079.js +126 -0
- package/dist/en_CA-47f2633b.js +18 -0
- package/dist/en_US-47f2633b.js +18 -0
- package/dist/enums-25d066fc.js +13 -0
- package/dist/enums-2c166c09.js +99 -0
- package/dist/enums-fa8f05ab.js +152 -0
- package/dist/es_ES-489878a2.js +6 -0
- package/dist/et_EE-6472669a.js +18 -0
- package/dist/executeForIds-4ab75c0d.js +14 -0
- package/dist/executeForTopCount-7e095ec1.js +17 -0
- package/dist/executeForTopExtents-19daf9d0.js +17 -0
- package/dist/executeForTopIds-1ba3a4af.js +17 -0
- package/dist/executeQueryJSON-46168866.js +15 -0
- package/dist/executeQueryPBF-d8623daf.js +152 -0
- package/dist/executeRelationshipQuery-011dfb45.js +53 -0
- package/dist/executeTopFeaturesQuery-02166801.js +18 -0
- package/dist/featureConversionUtils-650d7601.js +479 -0
- package/dist/featureLayerUtils-64e09283.js +142 -0
- package/dist/featureLayerUtils-b07f9c11.js +250 -0
- package/dist/featureSetUtils-9d37d6f8.js +2530 -0
- package/dist/featuresetbase-62aeb079.js +707 -0
- package/dist/featuresetgeom-51f9fc4e.js +99 -0
- package/dist/featuresetstats-4db32894.js +81 -0
- package/dist/featuresetstring-990c3287.js +95 -0
- package/dist/fetchService-5198dd4a.js +33 -0
- package/dist/fi_FI-d7a3a525.js +18 -0
- package/dist/fieldProperties-edfa24cb.js +33 -0
- package/dist/floatRGBA-516d7961.js +20 -0
- package/dist/floorFilterUtils-936f7587.js +19 -0
- package/dist/focusTrapComponent-e849bb89.js +475 -0
- package/dist/form-99719d52.js +138 -0
- package/dist/fr_FR-a88f2596.js +7 -0
- package/dist/geohashUtils-2bc76440.js +85 -0
- package/dist/geojson-603231df.js +208 -0
- package/dist/geomasync-e9063b4c.js +567 -0
- package/dist/geometryEngine-d3bb2fd6.js +192 -0
- package/dist/geometryEngineAsync-55aa6170.js +217 -0
- package/dist/geometryEngineBase-527e8b63.js +18463 -0
- package/dist/geometryEngineJSON-28087174.js +46 -0
- package/dist/geometryEngineJSON-d54949f9.js +171 -0
- package/dist/geometryEngineWorker-dc2c7127.js +11 -0
- package/dist/geometryServiceUtils-6a3e1e93.js +28 -0
- package/dist/georeference-ed8b2c30.js +291 -0
- package/dist/gif-204e82dd.js +323 -0
- package/dist/glUtil-8f8bce6b.js +19 -0
- package/dist/gltfexport-b2566542.js +705 -0
- package/dist/groupLayerUtils-ea9e6359.js +39 -0
- package/dist/guid-5ee54248.js +17 -0
- package/dist/he_IL-e34cf273.js +18 -0
- package/dist/heatmapUtils-56758920.js +45 -0
- package/dist/highlightReasons-de432106.js +19 -0
- package/dist/hr_HR-6a124f87.js +18 -0
- package/dist/hu_HU-58f3feb6.js +18 -0
- package/dist/hydrated-0e1c7565.js +40 -0
- package/dist/i3s-bb0b5b67.js +809 -0
- package/dist/icon-c6e3bd23.js +127 -0
- package/dist/id_ID-18d97715.js +18 -0
- package/dist/imageBitmapUtils-881d8c64.js +23 -0
- package/dist/imageUtils-57eeedc5.js +69 -0
- package/dist/imageUtils-ef69c578.js +89 -0
- package/dist/imageryUtils-23f51cb1.js +43 -0
- package/dist/index-01c737ed.js +42563 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +22 -10184
- package/dist/infoFor3D-bf4e6c95.js +58 -0
- package/dist/input-message-673a9baa.js +92 -0
- package/dist/input2-bbf6454e.js +575 -0
- package/dist/interactive-aeb2cb9f.js +80 -0
- package/dist/interfaces-fac3cfda.js +7 -0
- package/dist/it_IT-49e70bbf.js +6 -0
- package/dist/ja_JP-eaef2cc3.js +18 -0
- package/dist/json-5febf88a.js +57 -0
- package/dist/jsonContext-2dc288b1.js +15 -0
- package/dist/jsonUtils-1abd4bfc.js +59 -0
- package/dist/jsonUtils-913fa1bd.js +86 -0
- package/dist/jsonUtils-f6a5e63b.js +476 -0
- package/dist/kmlUtils-7c2744fe.js +112 -0
- package/dist/knowledgeGraphService-6a349e04.js +739 -0
- package/dist/knowledgegraph-c91b0bb2.js +149 -0
- package/dist/ko_KR-5c972fd8.js +14 -0
- package/dist/label2-1ab25f27.js +90 -0
- package/dist/labelUtils-a3634e8f.js +61 -0
- package/dist/labelingInfo-568c9210.js +46 -0
- package/dist/layerViewUtils-052e603c.js +10 -0
- package/dist/layersCreator-4a5366ea.js +151 -0
- package/dist/layersLoader-b87d4857.js +197 -0
- package/dist/lazyLayerLoader-8817000c.js +10 -0
- package/dist/lclayout-64c67b4e.js +773 -0
- package/dist/lengthUtils-695e744c.js +5 -0
- package/dist/lerc-wasm-13192bf3.js +325 -0
- package/dist/libtess-asm-4883179d.js +3673 -0
- package/dist/libtess-fc70d1ce.js +269 -0
- package/dist/lineSegment-3aa941f5.js +76 -0
- package/dist/loadGLTFMesh-db6645f5.js +181 -0
- package/dist/loadable-266f324b.js +24 -0
- package/dist/loader-d1ce1bc1.js +79 -0
- package/dist/lt_LT-26f13fd1.js +6 -0
- package/dist/lv_LV-4feafa92.js +18 -0
- package/dist/lyr3DWorker-dd48e619.js +2108 -0
- package/dist/mapViewDeps-226d9da3.js +3052 -0
- package/dist/mask-svg-30f64a7b.js +4 -0
- package/dist/mat3f64-03233387.js +19 -0
- package/dist/mat4f64-cce69db4.js +19 -0
- package/dist/mediaLayerUtils-ae485c27.js +35 -0
- package/dist/meshFeatureSet-8a2ad011.js +126 -0
- package/dist/meshVertexSpaceUtils-6efe3dcc.js +58 -0
- package/dist/multiOriginJSONSupportUtils-207ba4d4.js +6 -0
- package/dist/multidimensionalUtils-508a3f3f.js +290 -0
- package/dist/nb_NO-21543153.js +18 -0
- package/dist/nl_NL-7876d97f.js +7 -0
- package/dist/normalizeUtilsSync-1dae280b.js +181 -0
- package/dist/number-5aa3a81b.js +128 -0
- package/dist/objectIdUtils-93dae423.js +14 -0
- package/dist/objectResourceUtils-642ab03e.js +1455 -0
- package/dist/observers-f646a6a4.js +30 -0
- package/dist/ogcFeatureUtils-46ac1c44.js +206 -0
- package/dist/openCloseComponent-47eb52c6.js +37 -0
- package/dist/orientedBoundingBox-554ccdc6.js +447 -0
- package/dist/originUtils-87edf087.js +9 -0
- package/dist/overlay-svg-c3941b3b.js +4 -0
- package/dist/parser-0701286c.js +488 -0
- package/dist/pbf-5dd791f5.js +215 -0
- package/dist/pbfQueryUtils-a6ca7e23.js +422 -0
- package/dist/pe-wasm-6c16b121.js +887 -0
- package/dist/persistable-9eb0e8df.js +89 -0
- package/dist/perspectiveUtils-b194621d.js +42 -0
- package/dist/pieChart-b97433d0.js +555 -0
- package/dist/pl_PL-276c6dae.js +18 -0
- package/dist/plane-3398eec1.js +160 -0
- package/dist/popupUtils-c444b896.js +22 -0
- package/dist/popupUtils-d871563b.js +50 -0
- package/dist/portalItemUtils-4c4caad0.js +57 -0
- package/dist/portalLayers-cb07742f.js +312 -0
- package/dist/portalUtils-effd590f.js +7 -0
- package/dist/programUtils-65af7b7c.js +59 -0
- package/dist/project-ee9c2947.js +21 -0
- package/dist/projectPointToVector-7dc831a9.js +14 -0
- package/dist/projectVectorToVector-5163db7a.js +13 -0
- package/dist/pt_BR-4fae3055.js +6 -0
- package/dist/pt_PT-14d9efb1.js +6 -0
- package/dist/quantityUtils-5cd4cf90.js +33 -0
- package/dist/quantizationUtils-0a8f74c6.js +68 -0
- package/dist/quat-a508aed3.js +104 -0
- package/dist/quatf64-bec1af25.js +19 -0
- package/dist/query-b6e1fd14.js +89 -0
- package/dist/queryAttachments-7b39ebdc.js +39 -0
- package/dist/queryEngineUtils-cb8e309e.js +21 -0
- package/dist/queryTopFeatures-2e0e3941.js +50 -0
- package/dist/queryZScale-c5733d0a.js +12 -0
- package/dist/rasterProjectionHelper-213afa27.js +577 -0
- package/dist/rasterUtils-f2e44e8b.js +122 -0
- package/dist/rasterizingUtils-25cc0190.js +46 -0
- package/dist/request-e0c679b3.js +46 -0
- package/dist/requestImageUtils-37d79281.js +8 -0
- package/dist/resourceExtension-5f3f1c80.js +17 -0
- package/dist/resourceUtils-0d68cbc2.js +69 -0
- package/dist/resourceUtils-374db840.js +62 -0
- package/dist/resourceUtils-43ce192b.js +42 -0
- package/dist/ro_RO-8e733cf5.js +18 -0
- package/dist/ru_RU-f7bafc90.js +6 -0
- package/dist/saveAPIKeyUtils-1a3d4a8a.js +8 -0
- package/dist/saveUtils-43fdc547.js +24 -0
- package/dist/scaleUtils-bdf8b6cb.js +23 -0
- package/dist/scrim-44eb4dc0.js +114 -0
- package/dist/serviceCapabilitiesUtils-823612b8.js +64 -0
- package/dist/sizeVariableUtils-a1b694d8.js +27 -0
- package/dist/sk_SK-c279eea3.js +6 -0
- package/dist/sl_SL-e40950dd.js +6 -0
- package/dist/sourceUtils-01d115c6.js +71 -0
- package/dist/sphere-908cd9aa.js +199 -0
- package/dist/sr_RS-b1835dfa.js +18 -0
- package/dist/statsWorker-49f9befe.js +37 -0
- package/dist/streamLayerUtils-29324e05.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-82e8da52.js +75 -0
- package/dist/styleUtils-8541d60d.js +14 -0
- package/dist/sublayerUtils-eaac2486.js +37 -0
- package/dist/substitute-1f578d70.js +52 -0
- package/dist/sv_SE-15ca9e36.js +6 -0
- package/dist/symbolColorUtils-18fd6b3d.js +8 -0
- package/dist/symbolLayerUtils-4c58b291.js +31 -0
- package/dist/symbologySnappingCandidates-14d94b6b.js +221 -0
- package/dist/t9n-c1c2b6c8.js +349 -0
- package/dist/testSVGPremultipliedAlpha-159dac90.js +94 -0
- package/dist/th_TH-bf624a56.js +18 -0
- package/dist/tileUtils-3e0c8c1d.js +7 -0
- package/dist/timeSupport-3f529cdb.js +410 -0
- package/dist/tr_TR-ca5c315f.js +18 -0
- package/dist/triangle-8a3a2ba8.js +98 -0
- package/dist/types-adba9034.js +19 -0
- package/dist/uk_UA-4b3cb86d.js +6 -0
- package/dist/unitConversionUtils-f0ebaf75.js +17 -0
- package/dist/unitFormatUtils-555e2d94.js +40 -0
- package/dist/uploadAssetErrors-d1389781.js +70 -0
- package/dist/uploadAssets-5e85f09d.js +330 -0
- package/dist/utils-3a10b10c.js +34 -0
- package/dist/utils-505c54e9.js +91 -0
- package/dist/utils-5432e258.js +433 -0
- package/dist/utils-7a88ec6a.js +419 -0
- package/dist/utils-7fa9cdf9.js +2746 -0
- package/dist/utils-d252c575.js +73 -0
- package/dist/utils-f07e00b3.js +232 -0
- package/dist/utils-fda10b4b.js +79 -0
- package/dist/utils3-c34ab97c.js +75 -0
- package/dist/vec3-f79c600d.js +81 -0
- package/dist/vec3f32-304a6a9c.js +36 -0
- package/dist/vec42-36edeb73.js +125 -0
- package/dist/vec4f32-b2628ced.js +38 -0
- package/dist/vec4f64-043e974c.js +45 -0
- package/dist/versionUtils-6935648b.js +161 -0
- package/dist/vi_VN-ad09e708.js +18 -0
- package/dist/visualVariableUtils-c425461a.js +267 -0
- package/dist/webStyleSymbolUtils-4f42a29f.js +48 -0
- package/dist/webglDeps-5f18210d.js +23 -0
- package/dist/wfsUtils-6f7f1e3e.js +343 -0
- package/dist/workerHelper-9dc9a790.js +11 -0
- package/dist/xmlUtils-64cc47e1.js +24 -0
- package/dist/xyChart-e5648fee.js +3335 -0
- package/dist/zh_Hans-61faef57.js +14 -0
- package/dist/zh_Hant-87a9767b.js +14 -0
- package/dist/zipjs-wrapper-1bd67e07.js +6496 -0
- package/package.json +3 -2
|
@@ -0,0 +1,2135 @@
|
|
|
1
|
+
import { aV as me, aW as be, aT as v, aX as Nn, dD as ct } from "./index-01c737ed.js";
|
|
2
|
+
import { a as ut, t as Rn } from "./dom-b589b728.js";
|
|
3
|
+
import { c as Ge, u as $e, d as We, I as Ue } from "./interactive-aeb2cb9f.js";
|
|
4
|
+
import { c as jn } from "./observers-f646a6a4.js";
|
|
5
|
+
import { u as Hn, b as Bn, M as zn } from "./utils3-c34ab97c.js";
|
|
6
|
+
import { s as qe, a as Ke, c as Ve } from "./loadable-266f324b.js";
|
|
7
|
+
import { u as Ze, s as Qe, c as Xn, a as Je, d as Yn, b as tn, n as Ce } from "./t9n-c1c2b6c8.js";
|
|
8
|
+
import { S as De, i as ve, r as Gn, b as Ee, f as $n, a as Wn, c as en, d as nn } from "./debounce-de27a42a.js";
|
|
9
|
+
import { d as an } from "./icon-c6e3bd23.js";
|
|
10
|
+
import { a as rn, d as on } from "./input2-bbf6454e.js";
|
|
11
|
+
import { d as sn } from "./input-message-673a9baa.js";
|
|
12
|
+
import { d as Un } from "./loader-d1ce1bc1.js";
|
|
13
|
+
import { d as qn } from "./scrim-44eb4dc0.js";
|
|
14
|
+
import "vue";
|
|
15
|
+
import "./guid-5ee54248.js";
|
|
16
|
+
import "./form-99719d52.js";
|
|
17
|
+
import "./label2-1ab25f27.js";
|
|
18
|
+
import "./component-51a10bc0.js";
|
|
19
|
+
/*!
|
|
20
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
21
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
22
|
+
* v2.7.1
|
|
23
|
+
*/
|
|
24
|
+
/**!
|
|
25
|
+
* Sortable 1.15.1
|
|
26
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
27
|
+
* @author owenm <owen23355@gmail.com>
|
|
28
|
+
* @license MIT
|
|
29
|
+
*/
|
|
30
|
+
function xe(e, t) {
|
|
31
|
+
var n = Object.keys(e);
|
|
32
|
+
if (Object.getOwnPropertySymbols) {
|
|
33
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
34
|
+
t && (i = i.filter(function(a) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
36
|
+
})), n.push.apply(n, i);
|
|
37
|
+
}
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
function W(e) {
|
|
41
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
42
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
43
|
+
t % 2 ? xe(Object(n), !0).forEach(function(i) {
|
|
44
|
+
Kn(e, i, n[i]);
|
|
45
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xe(Object(n)).forEach(function(i) {
|
|
46
|
+
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return e;
|
|
50
|
+
}
|
|
51
|
+
function Xt(e) {
|
|
52
|
+
"@babel/helpers - typeof";
|
|
53
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Xt = function(t) {
|
|
54
|
+
return typeof t;
|
|
55
|
+
} : Xt = function(t) {
|
|
56
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
57
|
+
}, Xt(e);
|
|
58
|
+
}
|
|
59
|
+
function Kn(e, t, n) {
|
|
60
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
61
|
+
value: n,
|
|
62
|
+
enumerable: !0,
|
|
63
|
+
configurable: !0,
|
|
64
|
+
writable: !0
|
|
65
|
+
}) : e[t] = n, e;
|
|
66
|
+
}
|
|
67
|
+
function V() {
|
|
68
|
+
return V = Object.assign || function(e) {
|
|
69
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
70
|
+
var n = arguments[t];
|
|
71
|
+
for (var i in n)
|
|
72
|
+
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
73
|
+
}
|
|
74
|
+
return e;
|
|
75
|
+
}, V.apply(this, arguments);
|
|
76
|
+
}
|
|
77
|
+
function Vn(e, t) {
|
|
78
|
+
if (e == null)
|
|
79
|
+
return {};
|
|
80
|
+
var n = {}, i = Object.keys(e), a, r;
|
|
81
|
+
for (r = 0; r < i.length; r++)
|
|
82
|
+
a = i[r], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
|
83
|
+
return n;
|
|
84
|
+
}
|
|
85
|
+
function Zn(e, t) {
|
|
86
|
+
if (e == null)
|
|
87
|
+
return {};
|
|
88
|
+
var n = Vn(e, t), i, a;
|
|
89
|
+
if (Object.getOwnPropertySymbols) {
|
|
90
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
91
|
+
for (a = 0; a < r.length; a++)
|
|
92
|
+
i = r[a], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(e, i) && (n[i] = e[i]);
|
|
93
|
+
}
|
|
94
|
+
return n;
|
|
95
|
+
}
|
|
96
|
+
var Qn = "1.15.1";
|
|
97
|
+
function K(e) {
|
|
98
|
+
if (typeof window < "u" && window.navigator)
|
|
99
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
100
|
+
}
|
|
101
|
+
var Z = K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Mt = K(/Edge/i), Te = K(/firefox/i), At = K(/safari/i) && !K(/chrome/i) && !K(/android/i), ln = K(/iP(ad|od|hone)/i), cn = K(/chrome/i) && K(/android/i), dn = {
|
|
102
|
+
capture: !1,
|
|
103
|
+
passive: !1
|
|
104
|
+
};
|
|
105
|
+
function w(e, t, n) {
|
|
106
|
+
e.addEventListener(t, n, !Z && dn);
|
|
107
|
+
}
|
|
108
|
+
function S(e, t, n) {
|
|
109
|
+
e.removeEventListener(t, n, !Z && dn);
|
|
110
|
+
}
|
|
111
|
+
function Ut(e, t) {
|
|
112
|
+
if (t) {
|
|
113
|
+
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
114
|
+
try {
|
|
115
|
+
if (e.matches)
|
|
116
|
+
return e.matches(t);
|
|
117
|
+
if (e.msMatchesSelector)
|
|
118
|
+
return e.msMatchesSelector(t);
|
|
119
|
+
if (e.webkitMatchesSelector)
|
|
120
|
+
return e.webkitMatchesSelector(t);
|
|
121
|
+
} catch {
|
|
122
|
+
return !1;
|
|
123
|
+
}
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function Jn(e) {
|
|
128
|
+
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
129
|
+
}
|
|
130
|
+
function G(e, t, n, i) {
|
|
131
|
+
if (e) {
|
|
132
|
+
n = n || document;
|
|
133
|
+
do {
|
|
134
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Ut(e, t) : Ut(e, t)) || i && e === n)
|
|
135
|
+
return e;
|
|
136
|
+
if (e === n)
|
|
137
|
+
break;
|
|
138
|
+
} while (e = Jn(e));
|
|
139
|
+
}
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
var _e = /\s+/g;
|
|
143
|
+
function N(e, t, n) {
|
|
144
|
+
if (e && t)
|
|
145
|
+
if (e.classList)
|
|
146
|
+
e.classList[n ? "add" : "remove"](t);
|
|
147
|
+
else {
|
|
148
|
+
var i = (" " + e.className + " ").replace(_e, " ").replace(" " + t + " ", " ");
|
|
149
|
+
e.className = (i + (n ? " " + t : "")).replace(_e, " ");
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function f(e, t, n) {
|
|
153
|
+
var i = e && e.style;
|
|
154
|
+
if (i) {
|
|
155
|
+
if (n === void 0)
|
|
156
|
+
return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
157
|
+
!(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = n + (typeof n == "string" ? "" : "px");
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function vt(e, t) {
|
|
161
|
+
var n = "";
|
|
162
|
+
if (typeof e == "string")
|
|
163
|
+
n = e;
|
|
164
|
+
else
|
|
165
|
+
do {
|
|
166
|
+
var i = f(e, "transform");
|
|
167
|
+
i && i !== "none" && (n = i + " " + n);
|
|
168
|
+
} while (!t && (e = e.parentNode));
|
|
169
|
+
var a = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
170
|
+
return a && new a(n);
|
|
171
|
+
}
|
|
172
|
+
function un(e, t, n) {
|
|
173
|
+
if (e) {
|
|
174
|
+
var i = e.getElementsByTagName(t), a = 0, r = i.length;
|
|
175
|
+
if (n)
|
|
176
|
+
for (; a < r; a++)
|
|
177
|
+
n(i[a], a);
|
|
178
|
+
return i;
|
|
179
|
+
}
|
|
180
|
+
return [];
|
|
181
|
+
}
|
|
182
|
+
function $() {
|
|
183
|
+
var e = document.scrollingElement;
|
|
184
|
+
return e || document.documentElement;
|
|
185
|
+
}
|
|
186
|
+
function _(e, t, n, i, a) {
|
|
187
|
+
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
188
|
+
var r, o, s, l, c, h, u;
|
|
189
|
+
if (e !== window && e.parentNode && e !== $() ? (r = e.getBoundingClientRect(), o = r.top, s = r.left, l = r.bottom, c = r.right, h = r.height, u = r.width) : (o = 0, s = 0, l = window.innerHeight, c = window.innerWidth, h = window.innerHeight, u = window.innerWidth), (t || n) && e !== window && (a = a || e.parentNode, !Z))
|
|
190
|
+
do
|
|
191
|
+
if (a && a.getBoundingClientRect && (f(a, "transform") !== "none" || n && f(a, "position") !== "static")) {
|
|
192
|
+
var b = a.getBoundingClientRect();
|
|
193
|
+
o -= b.top + parseInt(f(a, "border-top-width")), s -= b.left + parseInt(f(a, "border-left-width")), l = o + r.height, c = s + r.width;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
while (a = a.parentNode);
|
|
197
|
+
if (i && e !== window) {
|
|
198
|
+
var E = vt(a || e), y = E && E.a, m = E && E.d;
|
|
199
|
+
E && (o /= m, s /= y, u /= y, h /= m, l = o + h, c = s + u);
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
top: o,
|
|
203
|
+
left: s,
|
|
204
|
+
bottom: l,
|
|
205
|
+
right: c,
|
|
206
|
+
width: u,
|
|
207
|
+
height: h
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function hn(e) {
|
|
212
|
+
var t = _(e), n = parseInt(f(e, "padding-left")), i = parseInt(f(e, "padding-top")), a = parseInt(f(e, "padding-right")), r = parseInt(f(e, "padding-bottom"));
|
|
213
|
+
return t.top += i + parseInt(f(e, "border-top-width")), t.left += n + parseInt(f(e, "border-left-width")), t.width = e.clientWidth - n - a, t.height = e.clientHeight - i - r, t.bottom = t.top + t.height, t.right = t.left + t.width, t;
|
|
214
|
+
}
|
|
215
|
+
function Ae(e, t, n) {
|
|
216
|
+
for (var i = it(e, !0), a = _(e)[t]; i; ) {
|
|
217
|
+
var r = _(i)[n], o = void 0;
|
|
218
|
+
if (n === "top" || n === "left" ? o = a >= r : o = a <= r, !o)
|
|
219
|
+
return i;
|
|
220
|
+
if (i === $())
|
|
221
|
+
break;
|
|
222
|
+
i = it(i, !1);
|
|
223
|
+
}
|
|
224
|
+
return !1;
|
|
225
|
+
}
|
|
226
|
+
function Et(e, t, n, i) {
|
|
227
|
+
for (var a = 0, r = 0, o = e.children; r < o.length; ) {
|
|
228
|
+
if (o[r].style.display !== "none" && o[r] !== p.ghost && (i || o[r] !== p.dragged) && G(o[r], n.draggable, e, !1)) {
|
|
229
|
+
if (a === t)
|
|
230
|
+
return o[r];
|
|
231
|
+
a++;
|
|
232
|
+
}
|
|
233
|
+
r++;
|
|
234
|
+
}
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
function ye(e, t) {
|
|
238
|
+
for (var n = e.lastElementChild; n && (n === p.ghost || f(n, "display") === "none" || t && !Ut(n, t)); )
|
|
239
|
+
n = n.previousElementSibling;
|
|
240
|
+
return n || null;
|
|
241
|
+
}
|
|
242
|
+
function H(e, t) {
|
|
243
|
+
var n = 0;
|
|
244
|
+
if (!e || !e.parentNode)
|
|
245
|
+
return -1;
|
|
246
|
+
for (; e = e.previousElementSibling; )
|
|
247
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== p.clone && (!t || Ut(e, t)) && n++;
|
|
248
|
+
return n;
|
|
249
|
+
}
|
|
250
|
+
function Oe(e) {
|
|
251
|
+
var t = 0, n = 0, i = $();
|
|
252
|
+
if (e)
|
|
253
|
+
do {
|
|
254
|
+
var a = vt(e), r = a.a, o = a.d;
|
|
255
|
+
t += e.scrollLeft * r, n += e.scrollTop * o;
|
|
256
|
+
} while (e !== i && (e = e.parentNode));
|
|
257
|
+
return [t, n];
|
|
258
|
+
}
|
|
259
|
+
function ti(e, t) {
|
|
260
|
+
for (var n in e)
|
|
261
|
+
if (e.hasOwnProperty(n)) {
|
|
262
|
+
for (var i in t)
|
|
263
|
+
if (t.hasOwnProperty(i) && t[i] === e[n][i])
|
|
264
|
+
return Number(n);
|
|
265
|
+
}
|
|
266
|
+
return -1;
|
|
267
|
+
}
|
|
268
|
+
function it(e, t) {
|
|
269
|
+
if (!e || !e.getBoundingClientRect)
|
|
270
|
+
return $();
|
|
271
|
+
var n = e, i = !1;
|
|
272
|
+
do
|
|
273
|
+
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
274
|
+
var a = f(n);
|
|
275
|
+
if (n.clientWidth < n.scrollWidth && (a.overflowX == "auto" || a.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (a.overflowY == "auto" || a.overflowY == "scroll")) {
|
|
276
|
+
if (!n.getBoundingClientRect || n === document.body)
|
|
277
|
+
return $();
|
|
278
|
+
if (i || t)
|
|
279
|
+
return n;
|
|
280
|
+
i = !0;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
while (n = n.parentNode);
|
|
284
|
+
return $();
|
|
285
|
+
}
|
|
286
|
+
function ei(e, t) {
|
|
287
|
+
if (e && t)
|
|
288
|
+
for (var n in t)
|
|
289
|
+
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
290
|
+
return e;
|
|
291
|
+
}
|
|
292
|
+
function te(e, t) {
|
|
293
|
+
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
294
|
+
}
|
|
295
|
+
var Ot;
|
|
296
|
+
function fn(e, t) {
|
|
297
|
+
return function() {
|
|
298
|
+
if (!Ot) {
|
|
299
|
+
var n = arguments, i = this;
|
|
300
|
+
n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), Ot = setTimeout(function() {
|
|
301
|
+
Ot = void 0;
|
|
302
|
+
}, t);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function ni() {
|
|
307
|
+
clearTimeout(Ot), Ot = void 0;
|
|
308
|
+
}
|
|
309
|
+
function pn(e, t, n) {
|
|
310
|
+
e.scrollLeft += t, e.scrollTop += n;
|
|
311
|
+
}
|
|
312
|
+
function gn(e) {
|
|
313
|
+
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
314
|
+
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
315
|
+
}
|
|
316
|
+
var j = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
317
|
+
function ii() {
|
|
318
|
+
var e = [], t;
|
|
319
|
+
return {
|
|
320
|
+
captureAnimationState: function() {
|
|
321
|
+
if (e = [], !!this.options.animation) {
|
|
322
|
+
var i = [].slice.call(this.el.children);
|
|
323
|
+
i.forEach(function(a) {
|
|
324
|
+
if (!(f(a, "display") === "none" || a === p.ghost)) {
|
|
325
|
+
e.push({
|
|
326
|
+
target: a,
|
|
327
|
+
rect: _(a)
|
|
328
|
+
});
|
|
329
|
+
var r = W({}, e[e.length - 1].rect);
|
|
330
|
+
if (a.thisAnimationDuration) {
|
|
331
|
+
var o = vt(a, !0);
|
|
332
|
+
o && (r.top -= o.f, r.left -= o.e);
|
|
333
|
+
}
|
|
334
|
+
a.fromRect = r;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
addAnimationState: function(i) {
|
|
340
|
+
e.push(i);
|
|
341
|
+
},
|
|
342
|
+
removeAnimationState: function(i) {
|
|
343
|
+
e.splice(ti(e, {
|
|
344
|
+
target: i
|
|
345
|
+
}), 1);
|
|
346
|
+
},
|
|
347
|
+
animateAll: function(i) {
|
|
348
|
+
var a = this;
|
|
349
|
+
if (!this.options.animation) {
|
|
350
|
+
clearTimeout(t), typeof i == "function" && i();
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
var r = !1, o = 0;
|
|
354
|
+
e.forEach(function(s) {
|
|
355
|
+
var l = 0, c = s.target, h = c.fromRect, u = _(c), b = c.prevFromRect, E = c.prevToRect, y = s.rect, m = vt(c, !0);
|
|
356
|
+
m && (u.top -= m.f, u.left -= m.e), c.toRect = u, c.thisAnimationDuration && te(b, u) && !te(h, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
357
|
+
(y.top - u.top) / (y.left - u.left) === (h.top - u.top) / (h.left - u.left) && (l = ri(y, b, E, a.options)), te(u, h) || (c.prevFromRect = h, c.prevToRect = u, l || (l = a.options.animation), a.animate(c, y, u, l)), l && (r = !0, o = Math.max(o, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
358
|
+
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
359
|
+
}, l), c.thisAnimationDuration = l);
|
|
360
|
+
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
361
|
+
typeof i == "function" && i();
|
|
362
|
+
}, o) : typeof i == "function" && i(), e = [];
|
|
363
|
+
},
|
|
364
|
+
animate: function(i, a, r, o) {
|
|
365
|
+
if (o) {
|
|
366
|
+
f(i, "transition", ""), f(i, "transform", "");
|
|
367
|
+
var s = vt(this.el), l = s && s.a, c = s && s.d, h = (a.left - r.left) / (l || 1), u = (a.top - r.top) / (c || 1);
|
|
368
|
+
i.animatingX = !!h, i.animatingY = !!u, f(i, "transform", "translate3d(" + h + "px," + u + "px,0)"), this.forRepaintDummy = ai(i), f(i, "transition", "transform " + o + "ms" + (this.options.easing ? " " + this.options.easing : "")), f(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
369
|
+
f(i, "transition", ""), f(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
370
|
+
}, o);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function ai(e) {
|
|
376
|
+
return e.offsetWidth;
|
|
377
|
+
}
|
|
378
|
+
function ri(e, t, n, i) {
|
|
379
|
+
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
|
|
380
|
+
}
|
|
381
|
+
var ht = [], ee = {
|
|
382
|
+
initializeByDefault: !0
|
|
383
|
+
}, Nt = {
|
|
384
|
+
mount: function(t) {
|
|
385
|
+
for (var n in ee)
|
|
386
|
+
ee.hasOwnProperty(n) && !(n in t) && (t[n] = ee[n]);
|
|
387
|
+
ht.forEach(function(i) {
|
|
388
|
+
if (i.pluginName === t.pluginName)
|
|
389
|
+
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
390
|
+
}), ht.push(t);
|
|
391
|
+
},
|
|
392
|
+
pluginEvent: function(t, n, i) {
|
|
393
|
+
var a = this;
|
|
394
|
+
this.eventCanceled = !1, i.cancel = function() {
|
|
395
|
+
a.eventCanceled = !0;
|
|
396
|
+
};
|
|
397
|
+
var r = t + "Global";
|
|
398
|
+
ht.forEach(function(o) {
|
|
399
|
+
n[o.pluginName] && (n[o.pluginName][r] && n[o.pluginName][r](W({
|
|
400
|
+
sortable: n
|
|
401
|
+
}, i)), n.options[o.pluginName] && n[o.pluginName][t] && n[o.pluginName][t](W({
|
|
402
|
+
sortable: n
|
|
403
|
+
}, i)));
|
|
404
|
+
});
|
|
405
|
+
},
|
|
406
|
+
initializePlugins: function(t, n, i, a) {
|
|
407
|
+
ht.forEach(function(s) {
|
|
408
|
+
var l = s.pluginName;
|
|
409
|
+
if (!(!t.options[l] && !s.initializeByDefault)) {
|
|
410
|
+
var c = new s(t, n, t.options);
|
|
411
|
+
c.sortable = t, c.options = t.options, t[l] = c, V(i, c.defaults);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
for (var r in t.options)
|
|
415
|
+
if (t.options.hasOwnProperty(r)) {
|
|
416
|
+
var o = this.modifyOption(t, r, t.options[r]);
|
|
417
|
+
typeof o < "u" && (t.options[r] = o);
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
getEventProperties: function(t, n) {
|
|
421
|
+
var i = {};
|
|
422
|
+
return ht.forEach(function(a) {
|
|
423
|
+
typeof a.eventProperties == "function" && V(i, a.eventProperties.call(n[a.pluginName], t));
|
|
424
|
+
}), i;
|
|
425
|
+
},
|
|
426
|
+
modifyOption: function(t, n, i) {
|
|
427
|
+
var a;
|
|
428
|
+
return ht.forEach(function(r) {
|
|
429
|
+
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (a = r.optionListeners[n].call(t[r.pluginName], i));
|
|
430
|
+
}), a;
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
function oi(e) {
|
|
434
|
+
var t = e.sortable, n = e.rootEl, i = e.name, a = e.targetEl, r = e.cloneEl, o = e.toEl, s = e.fromEl, l = e.oldIndex, c = e.newIndex, h = e.oldDraggableIndex, u = e.newDraggableIndex, b = e.originalEvent, E = e.putSortable, y = e.extraEventProperties;
|
|
435
|
+
if (t = t || n && n[j], !!t) {
|
|
436
|
+
var m, B = t.options, U = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
437
|
+
window.CustomEvent && !Z && !Mt ? m = new CustomEvent(i, {
|
|
438
|
+
bubbles: !0,
|
|
439
|
+
cancelable: !0
|
|
440
|
+
}) : (m = document.createEvent("Event"), m.initEvent(i, !0, !0)), m.to = o || n, m.from = s || n, m.item = a || n, m.clone = r, m.oldIndex = l, m.newIndex = c, m.oldDraggableIndex = h, m.newDraggableIndex = u, m.originalEvent = b, m.pullMode = E ? E.lastPutMode : void 0;
|
|
441
|
+
var L = W(W({}, y), Nt.getEventProperties(i, t));
|
|
442
|
+
for (var z in L)
|
|
443
|
+
m[z] = L[z];
|
|
444
|
+
n && n.dispatchEvent(m), B[U] && B[U].call(t, m);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
var si = ["evt"], P = function(t, n) {
|
|
448
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = i.evt, r = Zn(i, si);
|
|
449
|
+
Nt.pluginEvent.bind(p)(t, n, W({
|
|
450
|
+
dragEl: d,
|
|
451
|
+
parentEl: x,
|
|
452
|
+
ghostEl: g,
|
|
453
|
+
rootEl: C,
|
|
454
|
+
nextEl: dt,
|
|
455
|
+
lastDownEl: Yt,
|
|
456
|
+
cloneEl: D,
|
|
457
|
+
cloneHidden: nt,
|
|
458
|
+
dragStarted: xt,
|
|
459
|
+
putSortable: A,
|
|
460
|
+
activeSortable: p.active,
|
|
461
|
+
originalEvent: a,
|
|
462
|
+
oldIndex: mt,
|
|
463
|
+
oldDraggableIndex: Lt,
|
|
464
|
+
newIndex: R,
|
|
465
|
+
newDraggableIndex: et,
|
|
466
|
+
hideGhostForTarget: En,
|
|
467
|
+
unhideGhostForTarget: yn,
|
|
468
|
+
cloneNowHidden: function() {
|
|
469
|
+
nt = !0;
|
|
470
|
+
},
|
|
471
|
+
cloneNowShown: function() {
|
|
472
|
+
nt = !1;
|
|
473
|
+
},
|
|
474
|
+
dispatchSortableEvent: function(s) {
|
|
475
|
+
F({
|
|
476
|
+
sortable: n,
|
|
477
|
+
name: s,
|
|
478
|
+
originalEvent: a
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
}, r));
|
|
482
|
+
};
|
|
483
|
+
function F(e) {
|
|
484
|
+
oi(W({
|
|
485
|
+
putSortable: A,
|
|
486
|
+
cloneEl: D,
|
|
487
|
+
targetEl: d,
|
|
488
|
+
rootEl: C,
|
|
489
|
+
oldIndex: mt,
|
|
490
|
+
oldDraggableIndex: Lt,
|
|
491
|
+
newIndex: R,
|
|
492
|
+
newDraggableIndex: et
|
|
493
|
+
}, e));
|
|
494
|
+
}
|
|
495
|
+
var d, x, g, C, dt, Yt, D, nt, mt, R, Lt, et, jt, A, gt = !1, qt = !1, Kt = [], st, X, ne, ie, Le, Fe, xt, ft, Ft, Pt = !1, Ht = !1, Gt, O, ae = [], ue = !1, Vt = [], Qt = typeof document < "u", Bt = ln, Pe = Mt || Z ? "cssFloat" : "float", li = Qt && !cn && !ln && "draggable" in document.createElement("div"), mn = function() {
|
|
496
|
+
if (Qt) {
|
|
497
|
+
if (Z)
|
|
498
|
+
return !1;
|
|
499
|
+
var e = document.createElement("x");
|
|
500
|
+
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
501
|
+
}
|
|
502
|
+
}(), bn = function(t, n) {
|
|
503
|
+
var i = f(t), a = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Et(t, 0, n), o = Et(t, 1, n), s = r && f(r), l = o && f(o), c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + _(r).width, h = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + _(o).width;
|
|
504
|
+
if (i.display === "flex")
|
|
505
|
+
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
506
|
+
if (i.display === "grid")
|
|
507
|
+
return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
508
|
+
if (r && s.float && s.float !== "none") {
|
|
509
|
+
var u = s.float === "left" ? "left" : "right";
|
|
510
|
+
return o && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
511
|
+
}
|
|
512
|
+
return r && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || c >= a && i[Pe] === "none" || o && i[Pe] === "none" && c + h > a) ? "vertical" : "horizontal";
|
|
513
|
+
}, ci = function(t, n, i) {
|
|
514
|
+
var a = i ? t.left : t.top, r = i ? t.right : t.bottom, o = i ? t.width : t.height, s = i ? n.left : n.top, l = i ? n.right : n.bottom, c = i ? n.width : n.height;
|
|
515
|
+
return a === s || r === l || a + o / 2 === s + c / 2;
|
|
516
|
+
}, di = function(t, n) {
|
|
517
|
+
var i;
|
|
518
|
+
return Kt.some(function(a) {
|
|
519
|
+
var r = a[j].options.emptyInsertThreshold;
|
|
520
|
+
if (!(!r || ye(a))) {
|
|
521
|
+
var o = _(a), s = t >= o.left - r && t <= o.right + r, l = n >= o.top - r && n <= o.bottom + r;
|
|
522
|
+
if (s && l)
|
|
523
|
+
return i = a;
|
|
524
|
+
}
|
|
525
|
+
}), i;
|
|
526
|
+
}, vn = function(t) {
|
|
527
|
+
function n(r, o) {
|
|
528
|
+
return function(s, l, c, h) {
|
|
529
|
+
var u = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
|
|
530
|
+
if (r == null && (o || u))
|
|
531
|
+
return !0;
|
|
532
|
+
if (r == null || r === !1)
|
|
533
|
+
return !1;
|
|
534
|
+
if (o && r === "clone")
|
|
535
|
+
return r;
|
|
536
|
+
if (typeof r == "function")
|
|
537
|
+
return n(r(s, l, c, h), o)(s, l, c, h);
|
|
538
|
+
var b = (o ? s : l).options.group.name;
|
|
539
|
+
return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
var i = {}, a = t.group;
|
|
543
|
+
(!a || Xt(a) != "object") && (a = {
|
|
544
|
+
name: a
|
|
545
|
+
}), i.name = a.name, i.checkPull = n(a.pull, !0), i.checkPut = n(a.put), i.revertClone = a.revertClone, t.group = i;
|
|
546
|
+
}, En = function() {
|
|
547
|
+
!mn && g && f(g, "display", "none");
|
|
548
|
+
}, yn = function() {
|
|
549
|
+
!mn && g && f(g, "display", "");
|
|
550
|
+
};
|
|
551
|
+
Qt && !cn && document.addEventListener("click", function(e) {
|
|
552
|
+
if (qt)
|
|
553
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), qt = !1, !1;
|
|
554
|
+
}, !0);
|
|
555
|
+
var lt = function(t) {
|
|
556
|
+
if (d) {
|
|
557
|
+
t = t.touches ? t.touches[0] : t;
|
|
558
|
+
var n = di(t.clientX, t.clientY);
|
|
559
|
+
if (n) {
|
|
560
|
+
var i = {};
|
|
561
|
+
for (var a in t)
|
|
562
|
+
t.hasOwnProperty(a) && (i[a] = t[a]);
|
|
563
|
+
i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[j]._onDragOver(i);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}, ui = function(t) {
|
|
567
|
+
d && d.parentNode[j]._isOutsideThisEl(t.target);
|
|
568
|
+
};
|
|
569
|
+
function p(e, t) {
|
|
570
|
+
if (!(e && e.nodeType && e.nodeType === 1))
|
|
571
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
572
|
+
this.el = e, this.options = t = V({}, t), e[j] = this;
|
|
573
|
+
var n = {
|
|
574
|
+
group: null,
|
|
575
|
+
sort: !0,
|
|
576
|
+
disabled: !1,
|
|
577
|
+
store: null,
|
|
578
|
+
handle: null,
|
|
579
|
+
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
580
|
+
swapThreshold: 1,
|
|
581
|
+
// percentage; 0 <= x <= 1
|
|
582
|
+
invertSwap: !1,
|
|
583
|
+
// invert always
|
|
584
|
+
invertedSwapThreshold: null,
|
|
585
|
+
// will be set to same as swapThreshold if default
|
|
586
|
+
removeCloneOnHide: !0,
|
|
587
|
+
direction: function() {
|
|
588
|
+
return bn(e, this.options);
|
|
589
|
+
},
|
|
590
|
+
ghostClass: "sortable-ghost",
|
|
591
|
+
chosenClass: "sortable-chosen",
|
|
592
|
+
dragClass: "sortable-drag",
|
|
593
|
+
ignore: "a, img",
|
|
594
|
+
filter: null,
|
|
595
|
+
preventOnFilter: !0,
|
|
596
|
+
animation: 0,
|
|
597
|
+
easing: null,
|
|
598
|
+
setData: function(o, s) {
|
|
599
|
+
o.setData("Text", s.textContent);
|
|
600
|
+
},
|
|
601
|
+
dropBubble: !1,
|
|
602
|
+
dragoverBubble: !1,
|
|
603
|
+
dataIdAttr: "data-id",
|
|
604
|
+
delay: 0,
|
|
605
|
+
delayOnTouchOnly: !1,
|
|
606
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
607
|
+
forceFallback: !1,
|
|
608
|
+
fallbackClass: "sortable-fallback",
|
|
609
|
+
fallbackOnBody: !1,
|
|
610
|
+
fallbackTolerance: 0,
|
|
611
|
+
fallbackOffset: {
|
|
612
|
+
x: 0,
|
|
613
|
+
y: 0
|
|
614
|
+
},
|
|
615
|
+
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !At,
|
|
616
|
+
emptyInsertThreshold: 5
|
|
617
|
+
};
|
|
618
|
+
Nt.initializePlugins(this, e, n);
|
|
619
|
+
for (var i in n)
|
|
620
|
+
!(i in t) && (t[i] = n[i]);
|
|
621
|
+
vn(t);
|
|
622
|
+
for (var a in this)
|
|
623
|
+
a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
|
|
624
|
+
this.nativeDraggable = t.forceFallback ? !1 : li, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(e, "pointerdown", this._onTapStart) : (w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart)), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), Kt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), V(this, ii());
|
|
625
|
+
}
|
|
626
|
+
p.prototype = /** @lends Sortable.prototype */
|
|
627
|
+
{
|
|
628
|
+
constructor: p,
|
|
629
|
+
_isOutsideThisEl: function(t) {
|
|
630
|
+
!this.el.contains(t) && t !== this.el && (ft = null);
|
|
631
|
+
},
|
|
632
|
+
_getDirection: function(t, n) {
|
|
633
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, d) : this.options.direction;
|
|
634
|
+
},
|
|
635
|
+
_onTapStart: function(t) {
|
|
636
|
+
if (t.cancelable) {
|
|
637
|
+
var n = this, i = this.el, a = this.options, r = a.preventOnFilter, o = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, c = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, h = a.filter;
|
|
638
|
+
if (Ei(i), !d && !(/mousedown|pointerdown/.test(o) && t.button !== 0 || a.disabled) && !c.isContentEditable && !(!this.nativeDraggable && At && l && l.tagName.toUpperCase() === "SELECT") && (l = G(l, a.draggable, i, !1), !(l && l.animated) && Yt !== l)) {
|
|
639
|
+
if (mt = H(l), Lt = H(l, a.draggable), typeof h == "function") {
|
|
640
|
+
if (h.call(this, t, l, this)) {
|
|
641
|
+
F({
|
|
642
|
+
sortable: n,
|
|
643
|
+
rootEl: c,
|
|
644
|
+
name: "filter",
|
|
645
|
+
targetEl: l,
|
|
646
|
+
toEl: i,
|
|
647
|
+
fromEl: i
|
|
648
|
+
}), P("filter", n, {
|
|
649
|
+
evt: t
|
|
650
|
+
}), r && t.cancelable && t.preventDefault();
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
} else if (h && (h = h.split(",").some(function(u) {
|
|
654
|
+
if (u = G(c, u.trim(), i, !1), u)
|
|
655
|
+
return F({
|
|
656
|
+
sortable: n,
|
|
657
|
+
rootEl: u,
|
|
658
|
+
name: "filter",
|
|
659
|
+
targetEl: l,
|
|
660
|
+
fromEl: i,
|
|
661
|
+
toEl: i
|
|
662
|
+
}), P("filter", n, {
|
|
663
|
+
evt: t
|
|
664
|
+
}), !0;
|
|
665
|
+
}), h)) {
|
|
666
|
+
r && t.cancelable && t.preventDefault();
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
a.handle && !G(c, a.handle, i, !1) || this._prepareDragStart(t, s, l);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
_prepareDragStart: function(t, n, i) {
|
|
674
|
+
var a = this, r = a.el, o = a.options, s = r.ownerDocument, l;
|
|
675
|
+
if (i && !d && i.parentNode === r) {
|
|
676
|
+
var c = _(i);
|
|
677
|
+
if (C = r, d = i, x = d.parentNode, dt = d.nextSibling, Yt = i, jt = o.group, p.dragged = d, st = {
|
|
678
|
+
target: d,
|
|
679
|
+
clientX: (n || t).clientX,
|
|
680
|
+
clientY: (n || t).clientY
|
|
681
|
+
}, Le = st.clientX - c.left, Fe = st.clientY - c.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, d.style["will-change"] = "all", l = function() {
|
|
682
|
+
if (P("delayEnded", a, {
|
|
683
|
+
evt: t
|
|
684
|
+
}), p.eventCanceled) {
|
|
685
|
+
a._onDrop();
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
a._disableDelayedDragEvents(), !Te && a.nativeDraggable && (d.draggable = !0), a._triggerDragStart(t, n), F({
|
|
689
|
+
sortable: a,
|
|
690
|
+
name: "choose",
|
|
691
|
+
originalEvent: t
|
|
692
|
+
}), N(d, o.chosenClass, !0);
|
|
693
|
+
}, o.ignore.split(",").forEach(function(h) {
|
|
694
|
+
un(d, h.trim(), re);
|
|
695
|
+
}), w(s, "dragover", lt), w(s, "mousemove", lt), w(s, "touchmove", lt), w(s, "mouseup", a._onDrop), w(s, "touchend", a._onDrop), w(s, "touchcancel", a._onDrop), Te && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), P("delayStart", this, {
|
|
696
|
+
evt: t
|
|
697
|
+
}), o.delay && (!o.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Mt || Z))) {
|
|
698
|
+
if (p.eventCanceled) {
|
|
699
|
+
this._onDrop();
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
w(s, "mouseup", a._disableDelayedDrag), w(s, "touchend", a._disableDelayedDrag), w(s, "touchcancel", a._disableDelayedDrag), w(s, "mousemove", a._delayedDragTouchMoveHandler), w(s, "touchmove", a._delayedDragTouchMoveHandler), o.supportPointer && w(s, "pointermove", a._delayedDragTouchMoveHandler), a._dragStartTimer = setTimeout(l, o.delay);
|
|
703
|
+
} else
|
|
704
|
+
l();
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
_delayedDragTouchMoveHandler: function(t) {
|
|
708
|
+
var n = t.touches ? t.touches[0] : t;
|
|
709
|
+
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
710
|
+
},
|
|
711
|
+
_disableDelayedDrag: function() {
|
|
712
|
+
d && re(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
713
|
+
},
|
|
714
|
+
_disableDelayedDragEvents: function() {
|
|
715
|
+
var t = this.el.ownerDocument;
|
|
716
|
+
S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
717
|
+
},
|
|
718
|
+
_triggerDragStart: function(t, n) {
|
|
719
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : n ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(d, "dragend", this), w(C, "dragstart", this._onDragStart));
|
|
720
|
+
try {
|
|
721
|
+
document.selection ? $t(function() {
|
|
722
|
+
document.selection.empty();
|
|
723
|
+
}) : window.getSelection().removeAllRanges();
|
|
724
|
+
} catch {
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
_dragStarted: function(t, n) {
|
|
728
|
+
if (gt = !1, C && d) {
|
|
729
|
+
P("dragStarted", this, {
|
|
730
|
+
evt: n
|
|
731
|
+
}), this.nativeDraggable && w(document, "dragover", ui);
|
|
732
|
+
var i = this.options;
|
|
733
|
+
!t && N(d, i.dragClass, !1), N(d, i.ghostClass, !0), p.active = this, t && this._appendGhost(), F({
|
|
734
|
+
sortable: this,
|
|
735
|
+
name: "start",
|
|
736
|
+
originalEvent: n
|
|
737
|
+
});
|
|
738
|
+
} else
|
|
739
|
+
this._nulling();
|
|
740
|
+
},
|
|
741
|
+
_emulateDragOver: function() {
|
|
742
|
+
if (X) {
|
|
743
|
+
this._lastX = X.clientX, this._lastY = X.clientY, En();
|
|
744
|
+
for (var t = document.elementFromPoint(X.clientX, X.clientY), n = t; t && t.shadowRoot; ) {
|
|
745
|
+
t = t.shadowRoot.elementFromPoint(X.clientX, X.clientY);
|
|
746
|
+
const a = t.getRootNode().host;
|
|
747
|
+
if (a && (t = a), t === n)
|
|
748
|
+
break;
|
|
749
|
+
n = t;
|
|
750
|
+
}
|
|
751
|
+
if (d.parentNode[j]._isOutsideThisEl(t), n)
|
|
752
|
+
do {
|
|
753
|
+
if (n[j]) {
|
|
754
|
+
var i = void 0;
|
|
755
|
+
if (i = n[j]._onDragOver({
|
|
756
|
+
clientX: X.clientX,
|
|
757
|
+
clientY: X.clientY,
|
|
758
|
+
target: t,
|
|
759
|
+
rootEl: n
|
|
760
|
+
}), i && !this.options.dragoverBubble)
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
t = n;
|
|
764
|
+
} while (n = n.parentNode);
|
|
765
|
+
yn();
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
_onTouchMove: function(t) {
|
|
769
|
+
if (st) {
|
|
770
|
+
var n = this.options, i = n.fallbackTolerance, a = n.fallbackOffset, r = t.touches ? t.touches[0] : t, o = g && vt(g, !0), s = g && o && o.a, l = g && o && o.d, c = Bt && O && Oe(O), h = (r.clientX - st.clientX + a.x) / (s || 1) + (c ? c[0] - ae[0] : 0) / (s || 1), u = (r.clientY - st.clientY + a.y) / (l || 1) + (c ? c[1] - ae[1] : 0) / (l || 1);
|
|
771
|
+
if (!p.active && !gt) {
|
|
772
|
+
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
773
|
+
return;
|
|
774
|
+
this._onDragStart(t, !0);
|
|
775
|
+
}
|
|
776
|
+
if (g) {
|
|
777
|
+
o ? (o.e += h - (ne || 0), o.f += u - (ie || 0)) : o = {
|
|
778
|
+
a: 1,
|
|
779
|
+
b: 0,
|
|
780
|
+
c: 0,
|
|
781
|
+
d: 1,
|
|
782
|
+
e: h,
|
|
783
|
+
f: u
|
|
784
|
+
};
|
|
785
|
+
var b = "matrix(".concat(o.a, ",").concat(o.b, ",").concat(o.c, ",").concat(o.d, ",").concat(o.e, ",").concat(o.f, ")");
|
|
786
|
+
f(g, "webkitTransform", b), f(g, "mozTransform", b), f(g, "msTransform", b), f(g, "transform", b), ne = h, ie = u, X = r;
|
|
787
|
+
}
|
|
788
|
+
t.cancelable && t.preventDefault();
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
_appendGhost: function() {
|
|
792
|
+
if (!g) {
|
|
793
|
+
var t = this.options.fallbackOnBody ? document.body : C, n = _(d, !0, Bt, !0, t), i = this.options;
|
|
794
|
+
if (Bt) {
|
|
795
|
+
for (O = t; f(O, "position") === "static" && f(O, "transform") === "none" && O !== document; )
|
|
796
|
+
O = O.parentNode;
|
|
797
|
+
O !== document.body && O !== document.documentElement ? (O === document && (O = $()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = $(), ae = Oe(O);
|
|
798
|
+
}
|
|
799
|
+
g = d.cloneNode(!0), N(g, i.ghostClass, !1), N(g, i.fallbackClass, !0), N(g, i.dragClass, !0), f(g, "transition", ""), f(g, "transform", ""), f(g, "box-sizing", "border-box"), f(g, "margin", 0), f(g, "top", n.top), f(g, "left", n.left), f(g, "width", n.width), f(g, "height", n.height), f(g, "opacity", "0.8"), f(g, "position", Bt ? "absolute" : "fixed"), f(g, "zIndex", "100000"), f(g, "pointerEvents", "none"), p.ghost = g, t.appendChild(g), f(g, "transform-origin", Le / parseInt(g.style.width) * 100 + "% " + Fe / parseInt(g.style.height) * 100 + "%");
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
_onDragStart: function(t, n) {
|
|
803
|
+
var i = this, a = t.dataTransfer, r = i.options;
|
|
804
|
+
if (P("dragStart", this, {
|
|
805
|
+
evt: t
|
|
806
|
+
}), p.eventCanceled) {
|
|
807
|
+
this._onDrop();
|
|
808
|
+
return;
|
|
809
|
+
}
|
|
810
|
+
P("setupClone", this), p.eventCanceled || (D = gn(d), D.removeAttribute("id"), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), N(D, this.options.chosenClass, !1), p.clone = D), i.cloneId = $t(function() {
|
|
811
|
+
P("clone", i), !p.eventCanceled && (i.options.removeCloneOnHide || C.insertBefore(D, d), i._hideClone(), F({
|
|
812
|
+
sortable: i,
|
|
813
|
+
name: "clone"
|
|
814
|
+
}));
|
|
815
|
+
}), !n && N(d, r.dragClass, !0), n ? (qt = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), a && (a.effectAllowed = "move", r.setData && r.setData.call(i, a, d)), w(document, "drop", i), f(d, "transform", "translateZ(0)")), gt = !0, i._dragStartId = $t(i._dragStarted.bind(i, n, t)), w(document, "selectstart", i), xt = !0, At && f(document.body, "user-select", "none");
|
|
816
|
+
},
|
|
817
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
818
|
+
_onDragOver: function(t) {
|
|
819
|
+
var n = this.el, i = t.target, a, r, o, s = this.options, l = s.group, c = p.active, h = jt === l, u = s.sort, b = A || c, E, y = this, m = !1;
|
|
820
|
+
if (ue)
|
|
821
|
+
return;
|
|
822
|
+
function B(Ct, kn) {
|
|
823
|
+
P(Ct, y, W({
|
|
824
|
+
evt: t,
|
|
825
|
+
isOwner: h,
|
|
826
|
+
axis: E ? "vertical" : "horizontal",
|
|
827
|
+
revert: o,
|
|
828
|
+
dragRect: a,
|
|
829
|
+
targetRect: r,
|
|
830
|
+
canSort: u,
|
|
831
|
+
fromSortable: b,
|
|
832
|
+
target: i,
|
|
833
|
+
completed: L,
|
|
834
|
+
onMove: function(Ie, Mn) {
|
|
835
|
+
return zt(C, n, d, a, Ie, _(Ie), t, Mn);
|
|
836
|
+
},
|
|
837
|
+
changed: z
|
|
838
|
+
}, kn));
|
|
839
|
+
}
|
|
840
|
+
function U() {
|
|
841
|
+
B("dragOverAnimationCapture"), y.captureAnimationState(), y !== b && b.captureAnimationState();
|
|
842
|
+
}
|
|
843
|
+
function L(Ct) {
|
|
844
|
+
return B("dragOverCompleted", {
|
|
845
|
+
insertion: Ct
|
|
846
|
+
}), Ct && (h ? c._hideClone() : c._showClone(y), y !== b && (N(d, A ? A.options.ghostClass : c.options.ghostClass, !1), N(d, s.ghostClass, !0)), A !== y && y !== p.active ? A = y : y === p.active && A && (A = null), b === y && (y._ignoreWhileAnimating = i), y.animateAll(function() {
|
|
847
|
+
B("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
|
|
848
|
+
}), y !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (i === d && !d.animated || i === n && !i.animated) && (ft = null), !s.dragoverBubble && !t.rootEl && i !== document && (d.parentNode[j]._isOutsideThisEl(t.target), !Ct && lt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
|
|
849
|
+
}
|
|
850
|
+
function z() {
|
|
851
|
+
R = H(d), et = H(d, s.draggable), F({
|
|
852
|
+
sortable: y,
|
|
853
|
+
name: "change",
|
|
854
|
+
toEl: n,
|
|
855
|
+
newIndex: R,
|
|
856
|
+
newDraggableIndex: et,
|
|
857
|
+
originalEvent: t
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = G(i, s.draggable, n, !0), B("dragOver"), p.eventCanceled)
|
|
861
|
+
return m;
|
|
862
|
+
if (d.contains(t.target) || i.animated && i.animatingX && i.animatingY || y._ignoreWhileAnimating === i)
|
|
863
|
+
return L(!1);
|
|
864
|
+
if (qt = !1, c && !s.disabled && (h ? u || (o = x !== C) : A === this || (this.lastPutMode = jt.checkPull(this, c, d, t)) && l.checkPut(this, c, d, t))) {
|
|
865
|
+
if (E = this._getDirection(t, i) === "vertical", a = _(d), B("dragOverValid"), p.eventCanceled)
|
|
866
|
+
return m;
|
|
867
|
+
if (o)
|
|
868
|
+
return x = C, U(), this._hideClone(), B("revert"), p.eventCanceled || (dt ? C.insertBefore(d, dt) : C.appendChild(d)), L(!0);
|
|
869
|
+
var k = ye(n, s.draggable);
|
|
870
|
+
if (!k || gi(t, E, this) && !k.animated) {
|
|
871
|
+
if (k === d)
|
|
872
|
+
return L(!1);
|
|
873
|
+
if (k && n === t.target && (i = k), i && (r = _(i)), zt(C, n, d, a, i, r, t, !!i) !== !1)
|
|
874
|
+
return U(), k && k.nextSibling ? n.insertBefore(d, k.nextSibling) : n.appendChild(d), x = n, z(), L(!0);
|
|
875
|
+
} else if (k && pi(t, E, this)) {
|
|
876
|
+
var at = Et(n, 0, s, !0);
|
|
877
|
+
if (at === d)
|
|
878
|
+
return L(!1);
|
|
879
|
+
if (i = at, r = _(i), zt(C, n, d, a, i, r, t, !1) !== !1)
|
|
880
|
+
return U(), n.insertBefore(d, at), x = n, z(), L(!0);
|
|
881
|
+
} else if (i.parentNode === n) {
|
|
882
|
+
r = _(i);
|
|
883
|
+
var Y = 0, rt, yt = d.parentNode !== n, M = !ci(d.animated && d.toRect || a, i.animated && i.toRect || r, E), St = E ? "top" : "left", Q = Ae(i, "top", "top") || Ae(d, "top", "top"), wt = Q ? Q.scrollTop : void 0;
|
|
884
|
+
ft !== i && (rt = r[St], Pt = !1, Ht = !M && s.invertSwap || yt), Y = mi(t, i, r, E, M ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ht, ft === i);
|
|
885
|
+
var q;
|
|
886
|
+
if (Y !== 0) {
|
|
887
|
+
var ot = H(d);
|
|
888
|
+
do
|
|
889
|
+
ot -= Y, q = x.children[ot];
|
|
890
|
+
while (q && (f(q, "display") === "none" || q === g));
|
|
891
|
+
}
|
|
892
|
+
if (Y === 0 || q === i)
|
|
893
|
+
return L(!1);
|
|
894
|
+
ft = i, Ft = Y;
|
|
895
|
+
var It = i.nextElementSibling, J = !1;
|
|
896
|
+
J = Y === 1;
|
|
897
|
+
var Rt = zt(C, n, d, a, i, r, t, J);
|
|
898
|
+
if (Rt !== !1)
|
|
899
|
+
return (Rt === 1 || Rt === -1) && (J = Rt === 1), ue = !0, setTimeout(fi, 30), U(), J && !It ? n.appendChild(d) : i.parentNode.insertBefore(d, J ? It : i), Q && pn(Q, 0, wt - Q.scrollTop), x = d.parentNode, rt !== void 0 && !Ht && (Gt = Math.abs(rt - _(i)[St])), z(), L(!0);
|
|
900
|
+
}
|
|
901
|
+
if (n.contains(d))
|
|
902
|
+
return L(!1);
|
|
903
|
+
}
|
|
904
|
+
return !1;
|
|
905
|
+
},
|
|
906
|
+
_ignoreWhileAnimating: null,
|
|
907
|
+
_offMoveEvents: function() {
|
|
908
|
+
S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", lt), S(document, "mousemove", lt), S(document, "touchmove", lt);
|
|
909
|
+
},
|
|
910
|
+
_offUpEvents: function() {
|
|
911
|
+
var t = this.el.ownerDocument;
|
|
912
|
+
S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
|
|
913
|
+
},
|
|
914
|
+
_onDrop: function(t) {
|
|
915
|
+
var n = this.el, i = this.options;
|
|
916
|
+
if (R = H(d), et = H(d, i.draggable), P("drop", this, {
|
|
917
|
+
evt: t
|
|
918
|
+
}), x = d && d.parentNode, R = H(d), et = H(d, i.draggable), p.eventCanceled) {
|
|
919
|
+
this._nulling();
|
|
920
|
+
return;
|
|
921
|
+
}
|
|
922
|
+
gt = !1, Ht = !1, Pt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), he(this.cloneId), he(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), At && f(document.body, "user-select", ""), f(d, "transform", ""), t && (xt && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (C === x || A && A.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), d && (this.nativeDraggable && S(d, "dragend", this), re(d), d.style["will-change"] = "", xt && !gt && N(d, A ? A.options.ghostClass : this.options.ghostClass, !1), N(d, this.options.chosenClass, !1), F({
|
|
923
|
+
sortable: this,
|
|
924
|
+
name: "unchoose",
|
|
925
|
+
toEl: x,
|
|
926
|
+
newIndex: null,
|
|
927
|
+
newDraggableIndex: null,
|
|
928
|
+
originalEvent: t
|
|
929
|
+
}), C !== x ? (R >= 0 && (F({
|
|
930
|
+
rootEl: x,
|
|
931
|
+
name: "add",
|
|
932
|
+
toEl: x,
|
|
933
|
+
fromEl: C,
|
|
934
|
+
originalEvent: t
|
|
935
|
+
}), F({
|
|
936
|
+
sortable: this,
|
|
937
|
+
name: "remove",
|
|
938
|
+
toEl: x,
|
|
939
|
+
originalEvent: t
|
|
940
|
+
}), F({
|
|
941
|
+
rootEl: x,
|
|
942
|
+
name: "sort",
|
|
943
|
+
toEl: x,
|
|
944
|
+
fromEl: C,
|
|
945
|
+
originalEvent: t
|
|
946
|
+
}), F({
|
|
947
|
+
sortable: this,
|
|
948
|
+
name: "sort",
|
|
949
|
+
toEl: x,
|
|
950
|
+
originalEvent: t
|
|
951
|
+
})), A && A.save()) : R !== mt && R >= 0 && (F({
|
|
952
|
+
sortable: this,
|
|
953
|
+
name: "update",
|
|
954
|
+
toEl: x,
|
|
955
|
+
originalEvent: t
|
|
956
|
+
}), F({
|
|
957
|
+
sortable: this,
|
|
958
|
+
name: "sort",
|
|
959
|
+
toEl: x,
|
|
960
|
+
originalEvent: t
|
|
961
|
+
})), p.active && ((R == null || R === -1) && (R = mt, et = Lt), F({
|
|
962
|
+
sortable: this,
|
|
963
|
+
name: "end",
|
|
964
|
+
toEl: x,
|
|
965
|
+
originalEvent: t
|
|
966
|
+
}), this.save()))), this._nulling();
|
|
967
|
+
},
|
|
968
|
+
_nulling: function() {
|
|
969
|
+
P("nulling", this), C = d = x = g = dt = D = Yt = nt = st = X = xt = R = et = mt = Lt = ft = Ft = A = jt = p.dragged = p.ghost = p.clone = p.active = null, Vt.forEach(function(t) {
|
|
970
|
+
t.checked = !0;
|
|
971
|
+
}), Vt.length = ne = ie = 0;
|
|
972
|
+
},
|
|
973
|
+
handleEvent: function(t) {
|
|
974
|
+
switch (t.type) {
|
|
975
|
+
case "drop":
|
|
976
|
+
case "dragend":
|
|
977
|
+
this._onDrop(t);
|
|
978
|
+
break;
|
|
979
|
+
case "dragenter":
|
|
980
|
+
case "dragover":
|
|
981
|
+
d && (this._onDragOver(t), hi(t));
|
|
982
|
+
break;
|
|
983
|
+
case "selectstart":
|
|
984
|
+
t.preventDefault();
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
/**
|
|
989
|
+
* Serializes the item into an array of string.
|
|
990
|
+
* @returns {String[]}
|
|
991
|
+
*/
|
|
992
|
+
toArray: function() {
|
|
993
|
+
for (var t = [], n, i = this.el.children, a = 0, r = i.length, o = this.options; a < r; a++)
|
|
994
|
+
n = i[a], G(n, o.draggable, this.el, !1) && t.push(n.getAttribute(o.dataIdAttr) || vi(n));
|
|
995
|
+
return t;
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
* Sorts the elements according to the array.
|
|
999
|
+
* @param {String[]} order order of the items
|
|
1000
|
+
*/
|
|
1001
|
+
sort: function(t, n) {
|
|
1002
|
+
var i = {}, a = this.el;
|
|
1003
|
+
this.toArray().forEach(function(r, o) {
|
|
1004
|
+
var s = a.children[o];
|
|
1005
|
+
G(s, this.options.draggable, a, !1) && (i[r] = s);
|
|
1006
|
+
}, this), n && this.captureAnimationState(), t.forEach(function(r) {
|
|
1007
|
+
i[r] && (a.removeChild(i[r]), a.appendChild(i[r]));
|
|
1008
|
+
}), n && this.animateAll();
|
|
1009
|
+
},
|
|
1010
|
+
/**
|
|
1011
|
+
* Save the current sorting
|
|
1012
|
+
*/
|
|
1013
|
+
save: function() {
|
|
1014
|
+
var t = this.options.store;
|
|
1015
|
+
t && t.set && t.set(this);
|
|
1016
|
+
},
|
|
1017
|
+
/**
|
|
1018
|
+
* 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.
|
|
1019
|
+
* @param {HTMLElement} el
|
|
1020
|
+
* @param {String} [selector] default: `options.draggable`
|
|
1021
|
+
* @returns {HTMLElement|null}
|
|
1022
|
+
*/
|
|
1023
|
+
closest: function(t, n) {
|
|
1024
|
+
return G(t, n || this.options.draggable, this.el, !1);
|
|
1025
|
+
},
|
|
1026
|
+
/**
|
|
1027
|
+
* Set/get option
|
|
1028
|
+
* @param {string} name
|
|
1029
|
+
* @param {*} [value]
|
|
1030
|
+
* @returns {*}
|
|
1031
|
+
*/
|
|
1032
|
+
option: function(t, n) {
|
|
1033
|
+
var i = this.options;
|
|
1034
|
+
if (n === void 0)
|
|
1035
|
+
return i[t];
|
|
1036
|
+
var a = Nt.modifyOption(this, t, n);
|
|
1037
|
+
typeof a < "u" ? i[t] = a : i[t] = n, t === "group" && vn(i);
|
|
1038
|
+
},
|
|
1039
|
+
/**
|
|
1040
|
+
* Destroy
|
|
1041
|
+
*/
|
|
1042
|
+
destroy: function() {
|
|
1043
|
+
P("destroy", this);
|
|
1044
|
+
var t = this.el;
|
|
1045
|
+
t[j] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
1046
|
+
n.removeAttribute("draggable");
|
|
1047
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Kt.splice(Kt.indexOf(this.el), 1), this.el = t = null;
|
|
1048
|
+
},
|
|
1049
|
+
_hideClone: function() {
|
|
1050
|
+
if (!nt) {
|
|
1051
|
+
if (P("hideClone", this), p.eventCanceled)
|
|
1052
|
+
return;
|
|
1053
|
+
f(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), nt = !0;
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
_showClone: function(t) {
|
|
1057
|
+
if (t.lastPutMode !== "clone") {
|
|
1058
|
+
this._hideClone();
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
if (nt) {
|
|
1062
|
+
if (P("showClone", this), p.eventCanceled)
|
|
1063
|
+
return;
|
|
1064
|
+
d.parentNode == C && !this.options.group.revertClone ? C.insertBefore(D, d) : dt ? C.insertBefore(D, dt) : C.appendChild(D), this.options.group.revertClone && this.animate(d, D), f(D, "display", ""), nt = !1;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
function hi(e) {
|
|
1069
|
+
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1070
|
+
}
|
|
1071
|
+
function zt(e, t, n, i, a, r, o, s) {
|
|
1072
|
+
var l, c = e[j], h = c.options.onMove, u;
|
|
1073
|
+
return window.CustomEvent && !Z && !Mt ? l = new CustomEvent("move", {
|
|
1074
|
+
bubbles: !0,
|
|
1075
|
+
cancelable: !0
|
|
1076
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = a || t, l.relatedRect = r || _(t), l.willInsertAfter = s, l.originalEvent = o, e.dispatchEvent(l), h && (u = h.call(c, l, o)), u;
|
|
1077
|
+
}
|
|
1078
|
+
function re(e) {
|
|
1079
|
+
e.draggable = !1;
|
|
1080
|
+
}
|
|
1081
|
+
function fi() {
|
|
1082
|
+
ue = !1;
|
|
1083
|
+
}
|
|
1084
|
+
function pi(e, t, n) {
|
|
1085
|
+
var i = _(Et(n.el, 0, n.options, !0)), a = hn(n.el), r = 10;
|
|
1086
|
+
return t ? e.clientX < a.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < a.top - r || e.clientY < i.bottom && e.clientX < i.left;
|
|
1087
|
+
}
|
|
1088
|
+
function gi(e, t, n) {
|
|
1089
|
+
var i = _(ye(n.el, n.options.draggable)), a = hn(n.el), r = 10;
|
|
1090
|
+
return t ? e.clientX > a.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > a.bottom + r || e.clientX > i.right && e.clientY > i.top;
|
|
1091
|
+
}
|
|
1092
|
+
function mi(e, t, n, i, a, r, o, s) {
|
|
1093
|
+
var l = i ? e.clientY : e.clientX, c = i ? n.height : n.width, h = i ? n.top : n.left, u = i ? n.bottom : n.right, b = !1;
|
|
1094
|
+
if (!o) {
|
|
1095
|
+
if (s && Gt < c * a) {
|
|
1096
|
+
if (!Pt && (Ft === 1 ? l > h + c * r / 2 : l < u - c * r / 2) && (Pt = !0), Pt)
|
|
1097
|
+
b = !0;
|
|
1098
|
+
else if (Ft === 1 ? l < h + Gt : l > u - Gt)
|
|
1099
|
+
return -Ft;
|
|
1100
|
+
} else if (l > h + c * (1 - a) / 2 && l < u - c * (1 - a) / 2)
|
|
1101
|
+
return bi(t);
|
|
1102
|
+
}
|
|
1103
|
+
return b = b || o, b && (l < h + c * r / 2 || l > u - c * r / 2) ? l > h + c / 2 ? 1 : -1 : 0;
|
|
1104
|
+
}
|
|
1105
|
+
function bi(e) {
|
|
1106
|
+
return H(d) < H(e) ? 1 : -1;
|
|
1107
|
+
}
|
|
1108
|
+
function vi(e) {
|
|
1109
|
+
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
|
|
1110
|
+
i += t.charCodeAt(n);
|
|
1111
|
+
return i.toString(36);
|
|
1112
|
+
}
|
|
1113
|
+
function Ei(e) {
|
|
1114
|
+
Vt.length = 0;
|
|
1115
|
+
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
1116
|
+
var i = t[n];
|
|
1117
|
+
i.checked && Vt.push(i);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
function $t(e) {
|
|
1121
|
+
return setTimeout(e, 0);
|
|
1122
|
+
}
|
|
1123
|
+
function he(e) {
|
|
1124
|
+
return clearTimeout(e);
|
|
1125
|
+
}
|
|
1126
|
+
Qt && w(document, "touchmove", function(e) {
|
|
1127
|
+
(p.active || gt) && e.cancelable && e.preventDefault();
|
|
1128
|
+
});
|
|
1129
|
+
p.utils = {
|
|
1130
|
+
on: w,
|
|
1131
|
+
off: S,
|
|
1132
|
+
css: f,
|
|
1133
|
+
find: un,
|
|
1134
|
+
is: function(t, n) {
|
|
1135
|
+
return !!G(t, n, t, !1);
|
|
1136
|
+
},
|
|
1137
|
+
extend: ei,
|
|
1138
|
+
throttle: fn,
|
|
1139
|
+
closest: G,
|
|
1140
|
+
toggleClass: N,
|
|
1141
|
+
clone: gn,
|
|
1142
|
+
index: H,
|
|
1143
|
+
nextTick: $t,
|
|
1144
|
+
cancelNextTick: he,
|
|
1145
|
+
detectDirection: bn,
|
|
1146
|
+
getChild: Et
|
|
1147
|
+
};
|
|
1148
|
+
p.get = function(e) {
|
|
1149
|
+
return e[j];
|
|
1150
|
+
};
|
|
1151
|
+
p.mount = function() {
|
|
1152
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1153
|
+
t[n] = arguments[n];
|
|
1154
|
+
t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
|
|
1155
|
+
if (!i.prototype || !i.prototype.constructor)
|
|
1156
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
1157
|
+
i.utils && (p.utils = W(W({}, p.utils), i.utils)), Nt.mount(i);
|
|
1158
|
+
});
|
|
1159
|
+
};
|
|
1160
|
+
p.create = function(e, t) {
|
|
1161
|
+
return new p(e, t);
|
|
1162
|
+
};
|
|
1163
|
+
p.version = Qn;
|
|
1164
|
+
var T = [], Tt, fe, pe = !1, oe, se, Zt, _t;
|
|
1165
|
+
function yi() {
|
|
1166
|
+
function e() {
|
|
1167
|
+
this.defaults = {
|
|
1168
|
+
scroll: !0,
|
|
1169
|
+
forceAutoScrollFallback: !1,
|
|
1170
|
+
scrollSensitivity: 30,
|
|
1171
|
+
scrollSpeed: 10,
|
|
1172
|
+
bubbleScroll: !0
|
|
1173
|
+
};
|
|
1174
|
+
for (var t in this)
|
|
1175
|
+
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1176
|
+
}
|
|
1177
|
+
return e.prototype = {
|
|
1178
|
+
dragStarted: function(n) {
|
|
1179
|
+
var i = n.originalEvent;
|
|
1180
|
+
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? w(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? w(document, "touchmove", this._handleFallbackAutoScroll) : w(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1181
|
+
},
|
|
1182
|
+
dragOverCompleted: function(n) {
|
|
1183
|
+
var i = n.originalEvent;
|
|
1184
|
+
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
1185
|
+
},
|
|
1186
|
+
drop: function() {
|
|
1187
|
+
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), ke(), Wt(), ni();
|
|
1188
|
+
},
|
|
1189
|
+
nulling: function() {
|
|
1190
|
+
Zt = fe = Tt = pe = _t = oe = se = null, T.length = 0;
|
|
1191
|
+
},
|
|
1192
|
+
_handleFallbackAutoScroll: function(n) {
|
|
1193
|
+
this._handleAutoScroll(n, !0);
|
|
1194
|
+
},
|
|
1195
|
+
_handleAutoScroll: function(n, i) {
|
|
1196
|
+
var a = this, r = (n.touches ? n.touches[0] : n).clientX, o = (n.touches ? n.touches[0] : n).clientY, s = document.elementFromPoint(r, o);
|
|
1197
|
+
if (Zt = n, i || this.options.forceAutoScrollFallback || Mt || Z || At) {
|
|
1198
|
+
le(n, this.options, s, i);
|
|
1199
|
+
var l = it(s, !0);
|
|
1200
|
+
pe && (!_t || r !== oe || o !== se) && (_t && ke(), _t = setInterval(function() {
|
|
1201
|
+
var c = it(document.elementFromPoint(r, o), !0);
|
|
1202
|
+
c !== l && (l = c, Wt()), le(n, a.options, c, i);
|
|
1203
|
+
}, 10), oe = r, se = o);
|
|
1204
|
+
} else {
|
|
1205
|
+
if (!this.options.bubbleScroll || it(s, !0) === $()) {
|
|
1206
|
+
Wt();
|
|
1207
|
+
return;
|
|
1208
|
+
}
|
|
1209
|
+
le(n, this.options, it(s, !1), !1);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}, V(e, {
|
|
1213
|
+
pluginName: "scroll",
|
|
1214
|
+
initializeByDefault: !0
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
function Wt() {
|
|
1218
|
+
T.forEach(function(e) {
|
|
1219
|
+
clearInterval(e.pid);
|
|
1220
|
+
}), T = [];
|
|
1221
|
+
}
|
|
1222
|
+
function ke() {
|
|
1223
|
+
clearInterval(_t);
|
|
1224
|
+
}
|
|
1225
|
+
var le = fn(function(e, t, n, i) {
|
|
1226
|
+
if (t.scroll) {
|
|
1227
|
+
var a = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, l = $(), c = !1, h;
|
|
1228
|
+
fe !== n && (fe = n, Wt(), Tt = t.scroll, h = t.scrollFn, Tt === !0 && (Tt = it(n, !0)));
|
|
1229
|
+
var u = 0, b = Tt;
|
|
1230
|
+
do {
|
|
1231
|
+
var E = b, y = _(E), m = y.top, B = y.bottom, U = y.left, L = y.right, z = y.width, k = y.height, at = void 0, Y = void 0, rt = E.scrollWidth, yt = E.scrollHeight, M = f(E), St = E.scrollLeft, Q = E.scrollTop;
|
|
1232
|
+
E === l ? (at = z < rt && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), Y = k < yt && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (at = z < rt && (M.overflowX === "auto" || M.overflowX === "scroll"), Y = k < yt && (M.overflowY === "auto" || M.overflowY === "scroll"));
|
|
1233
|
+
var wt = at && (Math.abs(L - a) <= o && St + z < rt) - (Math.abs(U - a) <= o && !!St), q = Y && (Math.abs(B - r) <= o && Q + k < yt) - (Math.abs(m - r) <= o && !!Q);
|
|
1234
|
+
if (!T[u])
|
|
1235
|
+
for (var ot = 0; ot <= u; ot++)
|
|
1236
|
+
T[ot] || (T[ot] = {});
|
|
1237
|
+
(T[u].vx != wt || T[u].vy != q || T[u].el !== E) && (T[u].el = E, T[u].vx = wt, T[u].vy = q, clearInterval(T[u].pid), (wt != 0 || q != 0) && (c = !0, T[u].pid = setInterval((function() {
|
|
1238
|
+
i && this.layer === 0 && p.active._onTouchMove(Zt);
|
|
1239
|
+
var It = T[this.layer].vy ? T[this.layer].vy * s : 0, J = T[this.layer].vx ? T[this.layer].vx * s : 0;
|
|
1240
|
+
typeof h == "function" && h.call(p.dragged.parentNode[j], J, It, e, Zt, T[this.layer].el) !== "continue" || pn(T[this.layer].el, J, It);
|
|
1241
|
+
}).bind({
|
|
1242
|
+
layer: u
|
|
1243
|
+
}), 24))), u++;
|
|
1244
|
+
} while (t.bubbleScroll && b !== l && (b = it(b, !1)));
|
|
1245
|
+
pe = c;
|
|
1246
|
+
}
|
|
1247
|
+
}, 30), Sn = function(t) {
|
|
1248
|
+
var n = t.originalEvent, i = t.putSortable, a = t.dragEl, r = t.activeSortable, o = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
1249
|
+
if (n) {
|
|
1250
|
+
var c = i || r;
|
|
1251
|
+
s();
|
|
1252
|
+
var h = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, u = document.elementFromPoint(h.clientX, h.clientY);
|
|
1253
|
+
l(), c && !c.el.contains(u) && (o("spill"), this.onSpill({
|
|
1254
|
+
dragEl: a,
|
|
1255
|
+
putSortable: i
|
|
1256
|
+
}));
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
function Se() {
|
|
1260
|
+
}
|
|
1261
|
+
Se.prototype = {
|
|
1262
|
+
startIndex: null,
|
|
1263
|
+
dragStart: function(t) {
|
|
1264
|
+
var n = t.oldDraggableIndex;
|
|
1265
|
+
this.startIndex = n;
|
|
1266
|
+
},
|
|
1267
|
+
onSpill: function(t) {
|
|
1268
|
+
var n = t.dragEl, i = t.putSortable;
|
|
1269
|
+
this.sortable.captureAnimationState(), i && i.captureAnimationState();
|
|
1270
|
+
var a = Et(this.sortable.el, this.startIndex, this.options);
|
|
1271
|
+
a ? this.sortable.el.insertBefore(n, a) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
|
|
1272
|
+
},
|
|
1273
|
+
drop: Sn
|
|
1274
|
+
};
|
|
1275
|
+
V(Se, {
|
|
1276
|
+
pluginName: "revertOnSpill"
|
|
1277
|
+
});
|
|
1278
|
+
function we() {
|
|
1279
|
+
}
|
|
1280
|
+
we.prototype = {
|
|
1281
|
+
onSpill: function(t) {
|
|
1282
|
+
var n = t.dragEl, i = t.putSortable, a = i || this.sortable;
|
|
1283
|
+
a.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), a.animateAll();
|
|
1284
|
+
},
|
|
1285
|
+
drop: Sn
|
|
1286
|
+
};
|
|
1287
|
+
V(we, {
|
|
1288
|
+
pluginName: "removeOnSpill"
|
|
1289
|
+
});
|
|
1290
|
+
p.mount(new yi());
|
|
1291
|
+
p.mount(we, Se);
|
|
1292
|
+
const Jt = /* @__PURE__ */ new Set(), Si = {
|
|
1293
|
+
ghostClass: "calcite-sortable--ghost",
|
|
1294
|
+
chosenClass: "calcite-sortable--chosen",
|
|
1295
|
+
dragClass: "calcite-sortable--drag",
|
|
1296
|
+
fallbackClass: "calcite-sortable--fallback"
|
|
1297
|
+
};
|
|
1298
|
+
function wi(e) {
|
|
1299
|
+
wn(e), Jt.add(e);
|
|
1300
|
+
const t = "id", { group: n, handleSelector: i, dragSelector: a } = e;
|
|
1301
|
+
e.sortable = p.create(e.el, {
|
|
1302
|
+
dataIdAttr: t,
|
|
1303
|
+
...Si,
|
|
1304
|
+
...!!a && { draggable: a },
|
|
1305
|
+
...!!n && {
|
|
1306
|
+
group: {
|
|
1307
|
+
name: n,
|
|
1308
|
+
...!!e.canPull && {
|
|
1309
|
+
pull: (r, o, s, { newIndex: l, oldIndex: c }) => e.canPull({ toEl: r.el, fromEl: o.el, dragEl: s, newIndex: l, oldIndex: c })
|
|
1310
|
+
},
|
|
1311
|
+
...!!e.canPut && {
|
|
1312
|
+
put: (r, o, s, { newIndex: l, oldIndex: c }) => e.canPut({ toEl: r.el, fromEl: o.el, dragEl: s, newIndex: l, oldIndex: c })
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
handle: i,
|
|
1317
|
+
filter: `${i}[disabled]`,
|
|
1318
|
+
onStart: ({ from: r, item: o, to: s, newIndex: l, oldIndex: c }) => {
|
|
1319
|
+
ge.active = !0, Ii(), e.onDragStart({ fromEl: r, dragEl: o, toEl: s, newIndex: l, oldIndex: c });
|
|
1320
|
+
},
|
|
1321
|
+
onEnd: ({ from: r, item: o, to: s, newIndex: l, oldIndex: c }) => {
|
|
1322
|
+
ge.active = !1, Ci(), e.onDragEnd({ fromEl: r, dragEl: o, toEl: s, newIndex: l, oldIndex: c });
|
|
1323
|
+
},
|
|
1324
|
+
onSort: ({ from: r, item: o, to: s, newIndex: l, oldIndex: c }) => {
|
|
1325
|
+
e.onDragSort({ fromEl: r, dragEl: o, toEl: s, newIndex: l, oldIndex: c });
|
|
1326
|
+
}
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
function wn(e) {
|
|
1330
|
+
var t;
|
|
1331
|
+
Jt.delete(e), (t = e.sortable) == null || t.destroy(), e.sortable = null;
|
|
1332
|
+
}
|
|
1333
|
+
const ge = { active: !1 };
|
|
1334
|
+
function Me(e) {
|
|
1335
|
+
return e.dragEnabled && ge.active;
|
|
1336
|
+
}
|
|
1337
|
+
function Ii() {
|
|
1338
|
+
Array.from(Jt).forEach((e) => e.onGlobalDragStart());
|
|
1339
|
+
}
|
|
1340
|
+
function Ci() {
|
|
1341
|
+
Array.from(Jt).forEach((e) => e.onGlobalDragEnd());
|
|
1342
|
+
}
|
|
1343
|
+
/*!
|
|
1344
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
1345
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
1346
|
+
* v2.7.1
|
|
1347
|
+
*/
|
|
1348
|
+
const pt = {
|
|
1349
|
+
container: "container",
|
|
1350
|
+
actionsStart: "actions-start",
|
|
1351
|
+
contentStart: "content-start",
|
|
1352
|
+
content: "content",
|
|
1353
|
+
contentEnd: "content-end",
|
|
1354
|
+
actionsEnd: "actions-end"
|
|
1355
|
+
}, bt = {
|
|
1356
|
+
actionsStart: "actions-start",
|
|
1357
|
+
contentStart: "content-start",
|
|
1358
|
+
contentEnd: "content-end",
|
|
1359
|
+
actionsEnd: "actions-end"
|
|
1360
|
+
}, Di = ":host([disabled]) .content{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) .content *,:host([disabled]) .content ::slotted(*){pointer-events:none}:host{display:flex;flex:1 1 0%;flex-direction:column}.container{display:flex;flex:1 1 auto;align-items:stretch;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;padding-inline:var(--calcite-stack-padding-inline, 0.75rem);padding-block:var(--calcite-stack-padding-block, 0.5rem)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-handle),.actions-end ::slotted(calcite-dropdown){align-self:stretch;color:inherit}:host([hidden]){display:none}[hidden]{display:none}", xi = /* @__PURE__ */ me(class extends be {
|
|
1361
|
+
constructor() {
|
|
1362
|
+
super(), this.__registerHost(), this.__attachShadow(), this.handleActionsStartSlotChange = (t) => {
|
|
1363
|
+
this.hasActionsStart = ut(t);
|
|
1364
|
+
}, this.handleActionsEndSlotChange = (t) => {
|
|
1365
|
+
this.hasActionsEnd = ut(t);
|
|
1366
|
+
}, this.handleContentStartSlotChange = (t) => {
|
|
1367
|
+
this.hasContentStart = ut(t);
|
|
1368
|
+
}, this.handleContentEndSlotChange = (t) => {
|
|
1369
|
+
this.hasContentEnd = ut(t);
|
|
1370
|
+
}, this.disabled = !1, this.hasActionsStart = !1, this.hasActionsEnd = !1, this.hasContentStart = !1, this.hasContentEnd = !1;
|
|
1371
|
+
}
|
|
1372
|
+
// --------------------------------------------------------------------------
|
|
1373
|
+
//
|
|
1374
|
+
// Render Methods
|
|
1375
|
+
//
|
|
1376
|
+
// --------------------------------------------------------------------------
|
|
1377
|
+
renderActionsStart() {
|
|
1378
|
+
const { hasActionsStart: t } = this;
|
|
1379
|
+
return v("div", { class: pt.actionsStart, hidden: !t, key: "actions-start-container" }, v("slot", { name: bt.actionsStart, onSlotchange: this.handleActionsStartSlotChange }));
|
|
1380
|
+
}
|
|
1381
|
+
renderActionsEnd() {
|
|
1382
|
+
const { hasActionsEnd: t } = this;
|
|
1383
|
+
return v("div", { class: pt.actionsEnd, hidden: !t, key: "actions-end-container" }, v("slot", { name: bt.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }));
|
|
1384
|
+
}
|
|
1385
|
+
renderContentStart() {
|
|
1386
|
+
const { hasContentStart: t } = this;
|
|
1387
|
+
return v("div", { class: pt.contentStart, hidden: !t }, v("slot", { name: bt.contentStart, onSlotchange: this.handleContentStartSlotChange }));
|
|
1388
|
+
}
|
|
1389
|
+
renderDefaultContent() {
|
|
1390
|
+
return v("div", { class: pt.content }, v("slot", null));
|
|
1391
|
+
}
|
|
1392
|
+
renderContentEnd() {
|
|
1393
|
+
const { hasContentEnd: t } = this;
|
|
1394
|
+
return v("div", { class: pt.contentEnd, hidden: !t }, v("slot", { name: bt.contentEnd, onSlotchange: this.handleContentEndSlotChange }));
|
|
1395
|
+
}
|
|
1396
|
+
render() {
|
|
1397
|
+
return v(Nn, null, v("div", { class: pt.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd()));
|
|
1398
|
+
}
|
|
1399
|
+
static get style() {
|
|
1400
|
+
return Di;
|
|
1401
|
+
}
|
|
1402
|
+
}, [1, "calcite-stack", {
|
|
1403
|
+
disabled: [516],
|
|
1404
|
+
hasActionsStart: [32],
|
|
1405
|
+
hasActionsEnd: [32],
|
|
1406
|
+
hasContentStart: [32],
|
|
1407
|
+
hasContentEnd: [32]
|
|
1408
|
+
}]);
|
|
1409
|
+
function In() {
|
|
1410
|
+
if (typeof customElements > "u")
|
|
1411
|
+
return;
|
|
1412
|
+
["calcite-stack"].forEach((t) => {
|
|
1413
|
+
switch (t) {
|
|
1414
|
+
case "calcite-stack":
|
|
1415
|
+
customElements.get(t) || customElements.define(t, xi);
|
|
1416
|
+
break;
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
In();
|
|
1421
|
+
/*!
|
|
1422
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
1423
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
1424
|
+
* v2.7.1
|
|
1425
|
+
*/
|
|
1426
|
+
function Ti(e, t) {
|
|
1427
|
+
for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; )
|
|
1428
|
+
a[n] = t(e[n], n, e);
|
|
1429
|
+
return a;
|
|
1430
|
+
}
|
|
1431
|
+
var Cn = Array.isArray, _i = 1 / 0, Ne = De ? De.prototype : void 0, Re = Ne ? Ne.toString : void 0;
|
|
1432
|
+
function Dn(e) {
|
|
1433
|
+
if (typeof e == "string")
|
|
1434
|
+
return e;
|
|
1435
|
+
if (Cn(e))
|
|
1436
|
+
return Ti(e, Dn) + "";
|
|
1437
|
+
if (Wn(e))
|
|
1438
|
+
return Re ? Re.call(e) : "";
|
|
1439
|
+
var t = e + "";
|
|
1440
|
+
return t == "0" && 1 / e == -_i ? "-0" : t;
|
|
1441
|
+
}
|
|
1442
|
+
function Ai(e) {
|
|
1443
|
+
return e;
|
|
1444
|
+
}
|
|
1445
|
+
var Oi = "[object AsyncFunction]", Li = "[object Function]", Fi = "[object GeneratorFunction]", Pi = "[object Proxy]";
|
|
1446
|
+
function ki(e) {
|
|
1447
|
+
if (!en(e))
|
|
1448
|
+
return !1;
|
|
1449
|
+
var t = Ee(e);
|
|
1450
|
+
return t == Li || t == Fi || t == Oi || t == Pi;
|
|
1451
|
+
}
|
|
1452
|
+
var Mi = 9007199254740991, Ni = /^(?:0|[1-9]\d*)$/;
|
|
1453
|
+
function Ri(e, t) {
|
|
1454
|
+
var n = typeof e;
|
|
1455
|
+
return t = t ?? Mi, !!t && (n == "number" || n != "symbol" && Ni.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1456
|
+
}
|
|
1457
|
+
var ji = 9007199254740991;
|
|
1458
|
+
function xn(e) {
|
|
1459
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ji;
|
|
1460
|
+
}
|
|
1461
|
+
function Hi(e) {
|
|
1462
|
+
return e != null && xn(e.length) && !ki(e);
|
|
1463
|
+
}
|
|
1464
|
+
var Bi = Object.prototype;
|
|
1465
|
+
function zi(e) {
|
|
1466
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Bi;
|
|
1467
|
+
return e === n;
|
|
1468
|
+
}
|
|
1469
|
+
function Xi(e, t) {
|
|
1470
|
+
for (var n = -1, i = Array(e); ++n < e; )
|
|
1471
|
+
i[n] = t(n);
|
|
1472
|
+
return i;
|
|
1473
|
+
}
|
|
1474
|
+
var Yi = "[object Arguments]";
|
|
1475
|
+
function je(e) {
|
|
1476
|
+
return ve(e) && Ee(e) == Yi;
|
|
1477
|
+
}
|
|
1478
|
+
var Tn = Object.prototype, Gi = Tn.hasOwnProperty, $i = Tn.propertyIsEnumerable, Wi = je(function() {
|
|
1479
|
+
return arguments;
|
|
1480
|
+
}()) ? je : function(e) {
|
|
1481
|
+
return ve(e) && Gi.call(e, "callee") && !$i.call(e, "callee");
|
|
1482
|
+
};
|
|
1483
|
+
function Ui() {
|
|
1484
|
+
return !1;
|
|
1485
|
+
}
|
|
1486
|
+
var _n = typeof exports == "object" && exports && !exports.nodeType && exports, He = _n && typeof module == "object" && module && !module.nodeType && module, qi = He && He.exports === _n, Be = qi ? Gn.Buffer : void 0, Ki = Be ? Be.isBuffer : void 0, Vi = Ki || Ui, Zi = "[object Arguments]", Qi = "[object Array]", Ji = "[object Boolean]", ta = "[object Date]", ea = "[object Error]", na = "[object Function]", ia = "[object Map]", aa = "[object Number]", ra = "[object Object]", oa = "[object RegExp]", sa = "[object Set]", la = "[object String]", ca = "[object WeakMap]", da = "[object ArrayBuffer]", ua = "[object DataView]", ha = "[object Float32Array]", fa = "[object Float64Array]", pa = "[object Int8Array]", ga = "[object Int16Array]", ma = "[object Int32Array]", ba = "[object Uint8Array]", va = "[object Uint8ClampedArray]", Ea = "[object Uint16Array]", ya = "[object Uint32Array]", I = {};
|
|
1487
|
+
I[ha] = I[fa] = I[pa] = I[ga] = I[ma] = I[ba] = I[va] = I[Ea] = I[ya] = !0;
|
|
1488
|
+
I[Zi] = I[Qi] = I[da] = I[Ji] = I[ua] = I[ta] = I[ea] = I[na] = I[ia] = I[aa] = I[ra] = I[oa] = I[sa] = I[la] = I[ca] = !1;
|
|
1489
|
+
function Sa(e) {
|
|
1490
|
+
return ve(e) && xn(e.length) && !!I[Ee(e)];
|
|
1491
|
+
}
|
|
1492
|
+
function wa(e) {
|
|
1493
|
+
return function(t) {
|
|
1494
|
+
return e(t);
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
var An = typeof exports == "object" && exports && !exports.nodeType && exports, kt = An && typeof module == "object" && module && !module.nodeType && module, Ia = kt && kt.exports === An, ce = Ia && $n.process, ze = function() {
|
|
1498
|
+
try {
|
|
1499
|
+
var e = kt && kt.require && kt.require("util").types;
|
|
1500
|
+
return e || ce && ce.binding && ce.binding("util");
|
|
1501
|
+
} catch {
|
|
1502
|
+
}
|
|
1503
|
+
}(), Xe = ze && ze.isTypedArray, Ca = Xe ? wa(Xe) : Sa, Da = Object.prototype, xa = Da.hasOwnProperty;
|
|
1504
|
+
function Ta(e, t) {
|
|
1505
|
+
var n = Cn(e), i = !n && Wi(e), a = !n && !i && Vi(e), r = !n && !i && !a && Ca(e), o = n || i || a || r, s = o ? Xi(e.length, String) : [], l = s.length;
|
|
1506
|
+
for (var c in e)
|
|
1507
|
+
(t || xa.call(e, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1508
|
+
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1509
|
+
a && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1510
|
+
r && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
1511
|
+
Ri(c, l))) && s.push(c);
|
|
1512
|
+
return s;
|
|
1513
|
+
}
|
|
1514
|
+
function _a(e) {
|
|
1515
|
+
var t = [];
|
|
1516
|
+
if (e != null)
|
|
1517
|
+
for (var n in Object(e))
|
|
1518
|
+
t.push(n);
|
|
1519
|
+
return t;
|
|
1520
|
+
}
|
|
1521
|
+
var Aa = Object.prototype, Oa = Aa.hasOwnProperty;
|
|
1522
|
+
function La(e) {
|
|
1523
|
+
if (!en(e))
|
|
1524
|
+
return _a(e);
|
|
1525
|
+
var t = zi(e), n = [];
|
|
1526
|
+
for (var i in e)
|
|
1527
|
+
i == "constructor" && (t || !Oa.call(e, i)) || n.push(i);
|
|
1528
|
+
return n;
|
|
1529
|
+
}
|
|
1530
|
+
function Fa(e) {
|
|
1531
|
+
return Hi(e) ? Ta(e, !0) : La(e);
|
|
1532
|
+
}
|
|
1533
|
+
function Pa(e) {
|
|
1534
|
+
return e == null ? "" : Dn(e);
|
|
1535
|
+
}
|
|
1536
|
+
function ka(e) {
|
|
1537
|
+
return function(t, n, i) {
|
|
1538
|
+
for (var a = -1, r = Object(t), o = i(t), s = o.length; s--; ) {
|
|
1539
|
+
var l = o[e ? s : ++a];
|
|
1540
|
+
if (n(r[l], l, r) === !1)
|
|
1541
|
+
break;
|
|
1542
|
+
}
|
|
1543
|
+
return t;
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1546
|
+
var Ma = ka();
|
|
1547
|
+
function Na(e) {
|
|
1548
|
+
return typeof e == "function" ? e : Ai;
|
|
1549
|
+
}
|
|
1550
|
+
var On = /[\\^$.*+?()[\]{}|]/g, Ra = RegExp(On.source);
|
|
1551
|
+
function ja(e) {
|
|
1552
|
+
return e = Pa(e), e && Ra.test(e) ? e.replace(On, "\\$&") : e;
|
|
1553
|
+
}
|
|
1554
|
+
function Ha(e, t) {
|
|
1555
|
+
return e == null ? e : Ma(e, Na(t), Fa);
|
|
1556
|
+
}
|
|
1557
|
+
const Ye = (e, t) => {
|
|
1558
|
+
const n = ja(t), i = new RegExp(n, "i");
|
|
1559
|
+
e.length === 0 && console.warn(`No data was passed to the filter function.
|
|
1560
|
+
The data argument should be an array of objects`);
|
|
1561
|
+
const a = (o, s) => {
|
|
1562
|
+
if (o != null && o.constant || o != null && o.filterDisabled)
|
|
1563
|
+
return !0;
|
|
1564
|
+
let l = !1;
|
|
1565
|
+
return Ha(o, (c) => {
|
|
1566
|
+
typeof c == "function" || c == null || (Array.isArray(c) || typeof c == "object" && c !== null ? a(c, s) && (l = !0) : s.test(c) && (l = !0));
|
|
1567
|
+
}), l;
|
|
1568
|
+
};
|
|
1569
|
+
return e.filter((o) => a(o, i));
|
|
1570
|
+
};
|
|
1571
|
+
/*!
|
|
1572
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
1573
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
1574
|
+
* v2.7.1
|
|
1575
|
+
*/
|
|
1576
|
+
const Ba = {
|
|
1577
|
+
container: "container",
|
|
1578
|
+
searchIcon: "search-icon"
|
|
1579
|
+
}, za = {
|
|
1580
|
+
search: "search",
|
|
1581
|
+
close: "x"
|
|
1582
|
+
}, Xa = 250, Ya = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;inline-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;inline-size:100%;padding:0.5rem}label{position:relative;margin-inline:0.25rem;margin-block:0px;display:flex;inline-size:100%;align-items:center;overflow:hidden}input[type=text]{margin-block-end:0.25rem;inline-size:100%;border-style:none;background-color:transparent;padding-block:0.25rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);padding-inline-end:0.25rem;padding-inline-start:1.5rem;transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{inline-size:100%}.search-icon{position:absolute;display:flex;color:var(--calcite-color-text-2);inset-inline-start:0;transition:inset-inline-start var(--calcite-animation-timing), inset-inline-end var(--calcite-animation-timing), opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-color-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{display:flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-color-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-color-text-1)}:host([hidden]){display:none}[hidden]{display:none}", Ga = /* @__PURE__ */ me(class extends be {
|
|
1583
|
+
constructor() {
|
|
1584
|
+
super(), this.__registerHost(), this.__attachShadow(), this.calciteFilterChange = ct(this, "calciteFilterChange", 6), this.filterDebounced = nn((t, n = !1, i) => this.items.length && this.updateFiltered(Ye(this.items, t), n, i), Xa), this.inputHandler = (t) => {
|
|
1585
|
+
const n = t.target;
|
|
1586
|
+
this.value = n.value, this.filterDebounced(n.value, !0);
|
|
1587
|
+
}, this.keyDownHandler = (t) => {
|
|
1588
|
+
t.key === "Escape" && (this.clear(), t.preventDefault()), t.key === "Enter" && t.preventDefault();
|
|
1589
|
+
}, this.clear = () => {
|
|
1590
|
+
this.value = "", this.filterDebounced("", !0), this.setFocus();
|
|
1591
|
+
}, this.items = [], this.disabled = !1, this.filteredItems = [], this.placeholder = void 0, this.scale = "m", this.value = "", this.messages = void 0, this.messageOverrides = void 0, this.effectiveLocale = void 0, this.defaultMessages = void 0;
|
|
1592
|
+
}
|
|
1593
|
+
watchItemsHandler() {
|
|
1594
|
+
this.filterDebounced(this.value);
|
|
1595
|
+
}
|
|
1596
|
+
onMessagesChange() {
|
|
1597
|
+
}
|
|
1598
|
+
valueHandler(t) {
|
|
1599
|
+
this.filterDebounced(t);
|
|
1600
|
+
}
|
|
1601
|
+
effectiveLocaleChange() {
|
|
1602
|
+
Ze(this, this.effectiveLocale);
|
|
1603
|
+
}
|
|
1604
|
+
//--------------------------------------------------------------------------
|
|
1605
|
+
//
|
|
1606
|
+
// Lifecycle
|
|
1607
|
+
//
|
|
1608
|
+
//--------------------------------------------------------------------------
|
|
1609
|
+
async componentWillLoad() {
|
|
1610
|
+
qe(this), this.items.length && this.updateFiltered(Ye(this.items, this.value)), await Qe(this);
|
|
1611
|
+
}
|
|
1612
|
+
connectedCallback() {
|
|
1613
|
+
Ge(this), Xn(this), Je(this);
|
|
1614
|
+
}
|
|
1615
|
+
componentDidRender() {
|
|
1616
|
+
$e(this);
|
|
1617
|
+
}
|
|
1618
|
+
disconnectedCallback() {
|
|
1619
|
+
We(this), Yn(this), tn(this), this.filterDebounced.cancel();
|
|
1620
|
+
}
|
|
1621
|
+
componentDidLoad() {
|
|
1622
|
+
Ke(this);
|
|
1623
|
+
}
|
|
1624
|
+
// --------------------------------------------------------------------------
|
|
1625
|
+
//
|
|
1626
|
+
// Public Methods
|
|
1627
|
+
//
|
|
1628
|
+
// --------------------------------------------------------------------------
|
|
1629
|
+
/**
|
|
1630
|
+
* Performs a filter on the component.
|
|
1631
|
+
*
|
|
1632
|
+
* This method can be useful because filtering is delayed and asynchronous.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {string} value - The filter text value.
|
|
1635
|
+
* @returns {Promise<void>}
|
|
1636
|
+
*/
|
|
1637
|
+
async filter(t = this.value) {
|
|
1638
|
+
return new Promise((n) => {
|
|
1639
|
+
this.value = t, this.filterDebounced(t, !1, n);
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
/** Sets focus on the component. */
|
|
1643
|
+
async setFocus() {
|
|
1644
|
+
var t;
|
|
1645
|
+
await Ve(this), (t = this.el) == null || t.focus();
|
|
1646
|
+
}
|
|
1647
|
+
updateFiltered(t, n = !1, i) {
|
|
1648
|
+
this.filteredItems = t, n && this.calciteFilterChange.emit(), i == null || i();
|
|
1649
|
+
}
|
|
1650
|
+
// --------------------------------------------------------------------------
|
|
1651
|
+
//
|
|
1652
|
+
// Render Methods
|
|
1653
|
+
//
|
|
1654
|
+
// --------------------------------------------------------------------------
|
|
1655
|
+
render() {
|
|
1656
|
+
const { disabled: t, scale: n } = this;
|
|
1657
|
+
return v(Ue, { disabled: t }, v("div", { class: Ba.container }, v("label", null, v("calcite-input", {
|
|
1658
|
+
clearable: !0,
|
|
1659
|
+
disabled: t,
|
|
1660
|
+
icon: za.search,
|
|
1661
|
+
label: this.messages.label,
|
|
1662
|
+
messageOverrides: { clear: this.messages.clear },
|
|
1663
|
+
onCalciteInputInput: this.inputHandler,
|
|
1664
|
+
onKeyDown: this.keyDownHandler,
|
|
1665
|
+
placeholder: this.placeholder,
|
|
1666
|
+
scale: n,
|
|
1667
|
+
type: "text",
|
|
1668
|
+
value: this.value,
|
|
1669
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
1670
|
+
ref: (i) => {
|
|
1671
|
+
this.textInput = i;
|
|
1672
|
+
}
|
|
1673
|
+
}))));
|
|
1674
|
+
}
|
|
1675
|
+
static get delegatesFocus() {
|
|
1676
|
+
return !0;
|
|
1677
|
+
}
|
|
1678
|
+
static get assetsDirs() {
|
|
1679
|
+
return ["assets"];
|
|
1680
|
+
}
|
|
1681
|
+
get el() {
|
|
1682
|
+
return this;
|
|
1683
|
+
}
|
|
1684
|
+
static get watchers() {
|
|
1685
|
+
return {
|
|
1686
|
+
items: ["watchItemsHandler"],
|
|
1687
|
+
messageOverrides: ["onMessagesChange"],
|
|
1688
|
+
value: ["valueHandler"],
|
|
1689
|
+
effectiveLocale: ["effectiveLocaleChange"]
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
static get style() {
|
|
1693
|
+
return Ya;
|
|
1694
|
+
}
|
|
1695
|
+
}, [17, "calcite-filter", {
|
|
1696
|
+
items: [16],
|
|
1697
|
+
disabled: [516],
|
|
1698
|
+
filteredItems: [1040],
|
|
1699
|
+
placeholder: [1],
|
|
1700
|
+
scale: [513],
|
|
1701
|
+
value: [1025],
|
|
1702
|
+
messages: [1040],
|
|
1703
|
+
messageOverrides: [1040],
|
|
1704
|
+
effectiveLocale: [32],
|
|
1705
|
+
defaultMessages: [32],
|
|
1706
|
+
filter: [64],
|
|
1707
|
+
setFocus: [64]
|
|
1708
|
+
}, void 0, {
|
|
1709
|
+
items: ["watchItemsHandler"],
|
|
1710
|
+
messageOverrides: ["onMessagesChange"],
|
|
1711
|
+
value: ["valueHandler"],
|
|
1712
|
+
effectiveLocale: ["effectiveLocaleChange"]
|
|
1713
|
+
}]);
|
|
1714
|
+
function Ln() {
|
|
1715
|
+
if (typeof customElements > "u")
|
|
1716
|
+
return;
|
|
1717
|
+
["calcite-filter", "calcite-icon", "calcite-input", "calcite-input-message", "calcite-progress"].forEach((t) => {
|
|
1718
|
+
switch (t) {
|
|
1719
|
+
case "calcite-filter":
|
|
1720
|
+
customElements.get(t) || customElements.define(t, Ga);
|
|
1721
|
+
break;
|
|
1722
|
+
case "calcite-icon":
|
|
1723
|
+
customElements.get(t) || an();
|
|
1724
|
+
break;
|
|
1725
|
+
case "calcite-input":
|
|
1726
|
+
customElements.get(t) || on();
|
|
1727
|
+
break;
|
|
1728
|
+
case "calcite-input-message":
|
|
1729
|
+
customElements.get(t) || sn();
|
|
1730
|
+
break;
|
|
1731
|
+
case "calcite-progress":
|
|
1732
|
+
customElements.get(t) || rn();
|
|
1733
|
+
break;
|
|
1734
|
+
}
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
Ln();
|
|
1738
|
+
/*!
|
|
1739
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
1740
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
1741
|
+
* v2.7.1
|
|
1742
|
+
*/
|
|
1743
|
+
const tt = {
|
|
1744
|
+
container: "container",
|
|
1745
|
+
table: "table",
|
|
1746
|
+
scrim: "scrim",
|
|
1747
|
+
stack: "stack",
|
|
1748
|
+
tableContainer: "table-container",
|
|
1749
|
+
sticky: "sticky-pos",
|
|
1750
|
+
assistiveText: "assistive-text"
|
|
1751
|
+
}, $a = 0, de = {
|
|
1752
|
+
filterNoResults: "filter-no-results",
|
|
1753
|
+
filterActionsStart: "filter-actions-start",
|
|
1754
|
+
filterActionsEnd: "filter-actions-end"
|
|
1755
|
+
}, Wa = ":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{position:relative}.table-container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}.stack{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}::slotted(calcite-list-item){--tw-shadow:0 -1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 -1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:1px}::slotted(calcite-list-item:first-of-type){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item[data-filter]){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:0px}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-color-foreground-1)}.sticky-pos th{padding:0px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}", Dt = "calcite-list-item", Ua = ":scope > calcite-list-item", qa = "calcite-list-item-group, calcite-list-item", Fn = /* @__PURE__ */ me(class extends be {
|
|
1756
|
+
constructor() {
|
|
1757
|
+
super(), this.__registerHost(), this.__attachShadow(), this.calciteListChange = ct(this, "calciteListChange", 6), this.calciteListDragEnd = ct(this, "calciteListDragEnd", 6), this.calciteListDragStart = ct(this, "calciteListDragStart", 6), this.calciteListFilter = ct(this, "calciteListFilter", 6), this.calciteListOrderChange = ct(this, "calciteListOrderChange", 6), this.calciteInternalListDefaultSlotChange = ct(this, "calciteInternalListDefaultSlotChange", 6), this.dragSelector = Dt, this.focusableItems = [], this.handleSelector = "calcite-handle", this.listItems = [], this.mutationObserver = jn("mutation", () => this.updateListItems()), this.visibleItems = [], this.handleDefaultSlotChange = (t) => {
|
|
1758
|
+
Hn(Bn(t.target)), this.parentListEl && this.calciteInternalListDefaultSlotChange.emit();
|
|
1759
|
+
}, this.handleFilterActionsStartSlotChange = (t) => {
|
|
1760
|
+
this.hasFilterActionsStart = ut(t);
|
|
1761
|
+
}, this.handleFilterActionsEndSlotChange = (t) => {
|
|
1762
|
+
this.hasFilterActionsEnd = ut(t);
|
|
1763
|
+
}, this.handleFilterNoResultsSlotChange = (t) => {
|
|
1764
|
+
this.hasFilterNoResults = ut(t);
|
|
1765
|
+
}, this.setActiveListItem = () => {
|
|
1766
|
+
const { focusableItems: t } = this;
|
|
1767
|
+
t.some((n) => n.active) || t[0] && (t[0].active = !0);
|
|
1768
|
+
}, this.updateSelectedItems = (t = !1) => {
|
|
1769
|
+
this.selectedItems = this.visibleItems.filter((n) => n.selected), t && this.calciteListChange.emit();
|
|
1770
|
+
}, this.updateFilteredItems = (t = !1) => {
|
|
1771
|
+
const { visibleItems: n, filteredData: i, filterText: a } = this, r = i.map((c) => c.value), o = n == null ? void 0 : n.filter((c) => n.every((h) => h === c || !c.contains(h))), s = n.filter((c) => !a || r.includes(c.value)) || [], l = /* @__PURE__ */ new WeakSet();
|
|
1772
|
+
o.forEach((c) => this.filterElements({ el: c, filteredItems: s, visibleParents: l })), s.length > 0 && this.findAncestorOfFirstFilteredItem(s), this.filteredItems = s, t && this.calciteListFilter.emit();
|
|
1773
|
+
}, this.setFilterEl = (t) => {
|
|
1774
|
+
this.filterEl = t, this.performFilter();
|
|
1775
|
+
}, this.handleFilterChange = (t) => {
|
|
1776
|
+
t.stopPropagation();
|
|
1777
|
+
const { value: n } = t.currentTarget;
|
|
1778
|
+
this.filterText = n, this.updateFilteredData(!0);
|
|
1779
|
+
}, this.getItemData = () => this.listItems.map((t) => ({
|
|
1780
|
+
label: t.label,
|
|
1781
|
+
description: t.description,
|
|
1782
|
+
metadata: t.metadata,
|
|
1783
|
+
value: t.value
|
|
1784
|
+
})), this.updateListItems = nn((t = !1) => {
|
|
1785
|
+
const { selectionAppearance: n, selectionMode: i, dragEnabled: a } = this;
|
|
1786
|
+
if (this.parentListEl) {
|
|
1787
|
+
this.queryListItems(!0).forEach((l) => {
|
|
1788
|
+
l.dragHandle = a;
|
|
1789
|
+
}), this.setUpSorting();
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1792
|
+
const r = this.queryListItems();
|
|
1793
|
+
r.forEach((s) => {
|
|
1794
|
+
s.selectionAppearance = n, s.selectionMode = i;
|
|
1795
|
+
}), this.queryListItems(!0).forEach((s) => {
|
|
1796
|
+
s.dragHandle = a;
|
|
1797
|
+
}), this.listItems = r, this.filterEnabled && (this.dataForFilter = this.getItemData(), this.filterEl && (this.filterEl.items = this.dataForFilter)), this.visibleItems = this.listItems.filter((s) => !s.closed && !s.hidden), this.updateFilteredItems(t), this.focusableItems = this.filteredItems.filter((s) => !s.disabled), this.setActiveListItem(), this.updateSelectedItems(t), this.setUpSorting();
|
|
1798
|
+
}, $a), this.queryListItems = (t = !1) => Array.from(this.el.querySelectorAll(t ? Ua : Dt)), this.focusRow = (t) => {
|
|
1799
|
+
const { focusableItems: n } = this;
|
|
1800
|
+
t && (n.forEach((i) => i.active = i === t), t.setFocus());
|
|
1801
|
+
}, this.isNavigable = (t) => {
|
|
1802
|
+
var i;
|
|
1803
|
+
const n = (i = t.parentElement) == null ? void 0 : i.closest(Dt);
|
|
1804
|
+
return n ? n.open && this.isNavigable(n) : !0;
|
|
1805
|
+
}, this.handleListKeydown = (t) => {
|
|
1806
|
+
var r;
|
|
1807
|
+
if (t.defaultPrevented || this.parentListEl)
|
|
1808
|
+
return;
|
|
1809
|
+
const { key: n } = t, i = this.focusableItems.filter((o) => this.isNavigable(o)), a = i.findIndex((o) => o.active);
|
|
1810
|
+
if (n === "ArrowDown") {
|
|
1811
|
+
t.preventDefault();
|
|
1812
|
+
const o = t.target === this.filterEl ? 0 : a + 1;
|
|
1813
|
+
i[o] && this.focusRow(i[o]);
|
|
1814
|
+
} else if (n === "ArrowUp") {
|
|
1815
|
+
if (t.preventDefault(), a === 0 && this.filterEnabled) {
|
|
1816
|
+
(r = this.filterEl) == null || r.setFocus();
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1819
|
+
const o = a - 1;
|
|
1820
|
+
i[o] && this.focusRow(i[o]);
|
|
1821
|
+
} else if (n === "Home") {
|
|
1822
|
+
t.preventDefault();
|
|
1823
|
+
const o = i[0];
|
|
1824
|
+
o && this.focusRow(o);
|
|
1825
|
+
} else if (n === "End") {
|
|
1826
|
+
t.preventDefault();
|
|
1827
|
+
const o = i[i.length - 1];
|
|
1828
|
+
o && this.focusRow(o);
|
|
1829
|
+
}
|
|
1830
|
+
}, this.findAncestorOfFirstFilteredItem = (t) => {
|
|
1831
|
+
var n, i;
|
|
1832
|
+
(n = this.ancestorOfFirstFilteredItem) == null || n.removeAttribute("data-filter"), t.forEach((a) => {
|
|
1833
|
+
a.removeAttribute("data-filter");
|
|
1834
|
+
}), this.ancestorOfFirstFilteredItem = this.getTopLevelAncestorItemElement(t[0]), t[0].setAttribute("data-filter", "0"), (i = this.ancestorOfFirstFilteredItem) == null || i.setAttribute("data-filter", "0");
|
|
1835
|
+
}, this.getTopLevelAncestorItemElement = (t) => {
|
|
1836
|
+
let n = t.parentElement.closest(Dt);
|
|
1837
|
+
for (; n; ) {
|
|
1838
|
+
const i = n.parentElement.closest(Dt);
|
|
1839
|
+
if (i)
|
|
1840
|
+
n = i;
|
|
1841
|
+
else
|
|
1842
|
+
return n;
|
|
1843
|
+
}
|
|
1844
|
+
return null;
|
|
1845
|
+
}, this.disabled = !1, this.canPull = void 0, this.canPut = void 0, this.dragEnabled = !1, this.group = void 0, this.filterEnabled = !1, this.filteredItems = [], this.filteredData = [], this.filterPlaceholder = void 0, this.filterText = void 0, this.label = void 0, this.loading = !1, this.messageOverrides = void 0, this.messages = void 0, this.numberingSystem = void 0, this.openable = !1, this.selectedItems = [], this.selectionMode = "none", this.selectionAppearance = "icon", this.effectiveLocale = "", this.defaultMessages = void 0, this.assistiveText = void 0, this.dataForFilter = [], this.hasFilterActionsEnd = !1, this.hasFilterActionsStart = !1, this.hasFilterNoResults = !1;
|
|
1846
|
+
}
|
|
1847
|
+
async handleFilterTextChange() {
|
|
1848
|
+
this.performFilter();
|
|
1849
|
+
}
|
|
1850
|
+
onMessagesChange() {
|
|
1851
|
+
}
|
|
1852
|
+
handleListItemChange() {
|
|
1853
|
+
this.updateListItems();
|
|
1854
|
+
}
|
|
1855
|
+
handleCalciteInternalFocusPreviousItem(t) {
|
|
1856
|
+
if (this.parentListEl)
|
|
1857
|
+
return;
|
|
1858
|
+
t.stopPropagation();
|
|
1859
|
+
const { focusableItems: n } = this, a = n.findIndex((r) => r.active) - 1;
|
|
1860
|
+
n[a] && this.focusRow(n[a]);
|
|
1861
|
+
}
|
|
1862
|
+
handleCalciteInternalListItemActive(t) {
|
|
1863
|
+
if (this.parentListEl)
|
|
1864
|
+
return;
|
|
1865
|
+
t.stopPropagation();
|
|
1866
|
+
const n = t.target, { listItems: i } = this;
|
|
1867
|
+
i.forEach((a) => {
|
|
1868
|
+
a.active = a === n;
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
handleCalciteListItemSelect() {
|
|
1872
|
+
this.parentListEl || this.updateSelectedItems(!0);
|
|
1873
|
+
}
|
|
1874
|
+
handleCalciteInternalAssistiveTextChange(t) {
|
|
1875
|
+
this.assistiveText = t.detail.message, t.stopPropagation();
|
|
1876
|
+
}
|
|
1877
|
+
handleCalciteHandleNudge(t) {
|
|
1878
|
+
this.parentListEl || this.handleNudgeEvent(t);
|
|
1879
|
+
}
|
|
1880
|
+
handleCalciteInternalListItemSelect(t) {
|
|
1881
|
+
if (this.parentListEl)
|
|
1882
|
+
return;
|
|
1883
|
+
t.stopPropagation();
|
|
1884
|
+
const n = t.target, { listItems: i, selectionMode: a } = this;
|
|
1885
|
+
n.selected && (a === "single" || a === "single-persist") && i.forEach((r) => r.selected = r === n), this.updateSelectedItems();
|
|
1886
|
+
}
|
|
1887
|
+
handleCalciteInternalListItemSelectMultiple(t) {
|
|
1888
|
+
if (this.parentListEl)
|
|
1889
|
+
return;
|
|
1890
|
+
t.stopPropagation();
|
|
1891
|
+
const { target: n, detail: i } = t, { focusableItems: a, lastSelectedInfo: r } = this, o = n;
|
|
1892
|
+
if (i.selectMultiple && r) {
|
|
1893
|
+
const s = a.indexOf(o), l = a.indexOf(r.selectedItem), c = Math.min(l, s), h = Math.max(l, s);
|
|
1894
|
+
a.slice(c, h + 1).forEach((u) => u.selected = r.selected);
|
|
1895
|
+
} else
|
|
1896
|
+
this.lastSelectedInfo = { selectedItem: o, selected: o.selected };
|
|
1897
|
+
}
|
|
1898
|
+
handleCalciteInternalListItemChange(t) {
|
|
1899
|
+
this.parentListEl || (t.stopPropagation(), this.updateListItems());
|
|
1900
|
+
}
|
|
1901
|
+
handleCalciteInternalListItemGroupDefaultSlotChange(t) {
|
|
1902
|
+
t.stopPropagation();
|
|
1903
|
+
}
|
|
1904
|
+
//--------------------------------------------------------------------------
|
|
1905
|
+
//
|
|
1906
|
+
// Lifecycle
|
|
1907
|
+
//
|
|
1908
|
+
//--------------------------------------------------------------------------
|
|
1909
|
+
connectedCallback() {
|
|
1910
|
+
Me(this) || (Je(this), this.connectObserver(), this.updateListItems(), this.setUpSorting(), Ge(this), this.setParentList());
|
|
1911
|
+
}
|
|
1912
|
+
async componentWillLoad() {
|
|
1913
|
+
qe(this), await Qe(this);
|
|
1914
|
+
}
|
|
1915
|
+
componentDidRender() {
|
|
1916
|
+
$e(this);
|
|
1917
|
+
}
|
|
1918
|
+
componentDidLoad() {
|
|
1919
|
+
Ke(this);
|
|
1920
|
+
}
|
|
1921
|
+
disconnectedCallback() {
|
|
1922
|
+
Me(this) || (this.disconnectObserver(), wn(this), We(this), tn(this));
|
|
1923
|
+
}
|
|
1924
|
+
effectiveLocaleChange() {
|
|
1925
|
+
Ze(this, this.effectiveLocale);
|
|
1926
|
+
}
|
|
1927
|
+
// --------------------------------------------------------------------------
|
|
1928
|
+
//
|
|
1929
|
+
// Public Methods
|
|
1930
|
+
//
|
|
1931
|
+
// --------------------------------------------------------------------------
|
|
1932
|
+
/**
|
|
1933
|
+
* Sets focus on the component's first focusable element.
|
|
1934
|
+
*
|
|
1935
|
+
* @returns {Promise<void>}
|
|
1936
|
+
*/
|
|
1937
|
+
async setFocus() {
|
|
1938
|
+
var t, n;
|
|
1939
|
+
return await Ve(this), this.filterEnabled ? (t = this.filterEl) == null ? void 0 : t.setFocus() : (n = this.focusableItems.find((i) => i.active)) == null ? void 0 : n.setFocus();
|
|
1940
|
+
}
|
|
1941
|
+
// --------------------------------------------------------------------------
|
|
1942
|
+
//
|
|
1943
|
+
// Render Methods
|
|
1944
|
+
//
|
|
1945
|
+
// --------------------------------------------------------------------------
|
|
1946
|
+
render() {
|
|
1947
|
+
const { loading: t, label: n, disabled: i, dataForFilter: a, filterEnabled: r, filterPlaceholder: o, filterText: s, filteredItems: l, hasFilterActionsStart: c, hasFilterActionsEnd: h, hasFilterNoResults: u } = this;
|
|
1948
|
+
return v(Ue, { disabled: this.disabled }, v("div", { class: tt.container }, this.dragEnabled ? v("span", { "aria-live": "assertive", class: tt.assistiveText }, this.assistiveText) : null, this.renderItemAriaLive(), t ? v("calcite-scrim", { class: tt.scrim, loading: t }) : null, v("table", { "aria-busy": Rn(t), "aria-label": n || "", class: tt.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, r || c || h ? v("thead", { class: tt.sticky }, v("tr", null, v("th", { colSpan: zn }, v("calcite-stack", { class: tt.stack }, v("slot", { name: de.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: bt.actionsStart }), v("calcite-filter", {
|
|
1949
|
+
"aria-label": o,
|
|
1950
|
+
disabled: i,
|
|
1951
|
+
items: a,
|
|
1952
|
+
onCalciteFilterChange: this.handleFilterChange,
|
|
1953
|
+
placeholder: o,
|
|
1954
|
+
value: s,
|
|
1955
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
1956
|
+
ref: this.setFilterEl
|
|
1957
|
+
}), v("slot", { name: de.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: bt.actionsEnd }))))) : null, v("tbody", { class: tt.tableContainer }, v("slot", { onSlotchange: this.handleDefaultSlotChange }))), v("div", { "aria-live": "polite", "data-test-id": "no-results-container", hidden: !(u && r && s && !l.length) }, v("slot", { name: de.filterNoResults, onSlotchange: this.handleFilterNoResultsSlotChange }))));
|
|
1958
|
+
}
|
|
1959
|
+
// --------------------------------------------------------------------------
|
|
1960
|
+
//
|
|
1961
|
+
// Private Methods
|
|
1962
|
+
//
|
|
1963
|
+
// --------------------------------------------------------------------------
|
|
1964
|
+
renderItemAriaLive() {
|
|
1965
|
+
const { messages: t, filteredItems: n, parentListEl: i, effectiveLocale: a, numberingSystem: r, filterEnabled: o, filterText: s, filteredData: l } = this;
|
|
1966
|
+
return Ce.numberFormatOptions = {
|
|
1967
|
+
locale: a,
|
|
1968
|
+
numberingSystem: r
|
|
1969
|
+
}, i ? null : v("div", { "aria-live": "polite", class: tt.assistiveText }, o && s && (l != null && l.length) ? v("div", { key: "aria-filter-enabled" }, t.filterEnabled) : null, v("div", { key: "aria-item-count" }, t.total.replace("{count}", Ce.localize(n.length.toString()))), n.length ? v("ol", { key: "aria-item-list" }, n.map((c) => v("li", null, c.label))) : null);
|
|
1970
|
+
}
|
|
1971
|
+
connectObserver() {
|
|
1972
|
+
var t;
|
|
1973
|
+
(t = this.mutationObserver) == null || t.observe(this.el, { childList: !0, subtree: !0 });
|
|
1974
|
+
}
|
|
1975
|
+
disconnectObserver() {
|
|
1976
|
+
var t;
|
|
1977
|
+
(t = this.mutationObserver) == null || t.disconnect();
|
|
1978
|
+
}
|
|
1979
|
+
setUpSorting() {
|
|
1980
|
+
const { dragEnabled: t } = this;
|
|
1981
|
+
t && wi(this);
|
|
1982
|
+
}
|
|
1983
|
+
onGlobalDragStart() {
|
|
1984
|
+
this.disconnectObserver();
|
|
1985
|
+
}
|
|
1986
|
+
onGlobalDragEnd() {
|
|
1987
|
+
this.connectObserver();
|
|
1988
|
+
}
|
|
1989
|
+
onDragEnd(t) {
|
|
1990
|
+
this.calciteListDragEnd.emit(t);
|
|
1991
|
+
}
|
|
1992
|
+
onDragStart(t) {
|
|
1993
|
+
this.calciteListDragStart.emit(t);
|
|
1994
|
+
}
|
|
1995
|
+
onDragSort(t) {
|
|
1996
|
+
this.setParentList(), this.updateListItems(), this.calciteListOrderChange.emit(t);
|
|
1997
|
+
}
|
|
1998
|
+
setParentList() {
|
|
1999
|
+
var t;
|
|
2000
|
+
this.parentListEl = (t = this.el.parentElement) == null ? void 0 : t.closest("calcite-list");
|
|
2001
|
+
}
|
|
2002
|
+
filterElements({ el: t, filteredItems: n, visibleParents: i }) {
|
|
2003
|
+
const a = !i.has(t) && !n.includes(t);
|
|
2004
|
+
t.filterHidden = a;
|
|
2005
|
+
const r = t.parentElement.closest(qa);
|
|
2006
|
+
r && (a || i.add(r), this.filterElements({
|
|
2007
|
+
el: r,
|
|
2008
|
+
filteredItems: n,
|
|
2009
|
+
visibleParents: i
|
|
2010
|
+
}));
|
|
2011
|
+
}
|
|
2012
|
+
updateFilteredData(t = !1) {
|
|
2013
|
+
const { filterEl: n } = this;
|
|
2014
|
+
n && (n.filteredItems && (this.filteredData = n.filteredItems), this.updateListItems(t));
|
|
2015
|
+
}
|
|
2016
|
+
async performFilter() {
|
|
2017
|
+
const { filterEl: t, filterText: n } = this;
|
|
2018
|
+
t && (t.value = n, await t.filter(n), this.updateFilteredData());
|
|
2019
|
+
}
|
|
2020
|
+
handleNudgeEvent(t) {
|
|
2021
|
+
const { handleSelector: n, dragSelector: i } = this, { direction: a } = t.detail, r = t.composedPath(), o = r.find((m) => (m == null ? void 0 : m.tagName) && m.matches(n)), s = r.find((m) => (m == null ? void 0 : m.tagName) && m.matches(i)), l = s == null ? void 0 : s.parentElement;
|
|
2022
|
+
if (!l)
|
|
2023
|
+
return;
|
|
2024
|
+
const { filteredItems: c } = this, h = c.filter((m) => m.parentElement === l), u = h.length - 1, b = h.indexOf(s);
|
|
2025
|
+
let E;
|
|
2026
|
+
a === "up" ? E = b === 0 ? u : b - 1 : E = b === u ? 0 : b + 1, this.disconnectObserver(), o.blurUnselectDisabled = !0;
|
|
2027
|
+
const y = a === "up" && E !== u || a === "down" && E === 0 ? h[E] : h[E].nextSibling;
|
|
2028
|
+
l.insertBefore(s, y), this.updateListItems(), this.connectObserver(), this.calciteListOrderChange.emit({
|
|
2029
|
+
dragEl: s,
|
|
2030
|
+
fromEl: l,
|
|
2031
|
+
toEl: l,
|
|
2032
|
+
newIndex: E,
|
|
2033
|
+
oldIndex: b
|
|
2034
|
+
}), o.setFocus().then(() => o.blurUnselectDisabled = !1);
|
|
2035
|
+
}
|
|
2036
|
+
static get assetsDirs() {
|
|
2037
|
+
return ["assets"];
|
|
2038
|
+
}
|
|
2039
|
+
get el() {
|
|
2040
|
+
return this;
|
|
2041
|
+
}
|
|
2042
|
+
static get watchers() {
|
|
2043
|
+
return {
|
|
2044
|
+
filterText: ["handleFilterTextChange"],
|
|
2045
|
+
messageOverrides: ["onMessagesChange"],
|
|
2046
|
+
filterEnabled: ["handleListItemChange"],
|
|
2047
|
+
group: ["handleListItemChange"],
|
|
2048
|
+
dragEnabled: ["handleListItemChange"],
|
|
2049
|
+
selectionMode: ["handleListItemChange"],
|
|
2050
|
+
selectionAppearance: ["handleListItemChange"],
|
|
2051
|
+
effectiveLocale: ["effectiveLocaleChange"]
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
static get style() {
|
|
2055
|
+
return Wa;
|
|
2056
|
+
}
|
|
2057
|
+
}, [1, "calcite-list", {
|
|
2058
|
+
disabled: [516],
|
|
2059
|
+
canPull: [16],
|
|
2060
|
+
canPut: [16],
|
|
2061
|
+
dragEnabled: [516, "drag-enabled"],
|
|
2062
|
+
group: [513],
|
|
2063
|
+
filterEnabled: [516, "filter-enabled"],
|
|
2064
|
+
filteredItems: [1040],
|
|
2065
|
+
filteredData: [1040],
|
|
2066
|
+
filterPlaceholder: [513, "filter-placeholder"],
|
|
2067
|
+
filterText: [1537, "filter-text"],
|
|
2068
|
+
label: [1],
|
|
2069
|
+
loading: [516],
|
|
2070
|
+
messageOverrides: [1040],
|
|
2071
|
+
messages: [1040],
|
|
2072
|
+
numberingSystem: [1, "numbering-system"],
|
|
2073
|
+
openable: [4],
|
|
2074
|
+
selectedItems: [1040],
|
|
2075
|
+
selectionMode: [513, "selection-mode"],
|
|
2076
|
+
selectionAppearance: [513, "selection-appearance"],
|
|
2077
|
+
effectiveLocale: [32],
|
|
2078
|
+
defaultMessages: [32],
|
|
2079
|
+
assistiveText: [32],
|
|
2080
|
+
dataForFilter: [32],
|
|
2081
|
+
hasFilterActionsEnd: [32],
|
|
2082
|
+
hasFilterActionsStart: [32],
|
|
2083
|
+
hasFilterNoResults: [32],
|
|
2084
|
+
setFocus: [64]
|
|
2085
|
+
}, [[0, "calciteInternalFocusPreviousItem", "handleCalciteInternalFocusPreviousItem"], [0, "calciteInternalListItemActive", "handleCalciteInternalListItemActive"], [0, "calciteListItemSelect", "handleCalciteListItemSelect"], [0, "calciteInternalAssistiveTextChange", "handleCalciteInternalAssistiveTextChange"], [0, "calciteHandleNudge", "handleCalciteHandleNudge"], [0, "calciteInternalListItemSelect", "handleCalciteInternalListItemSelect"], [0, "calciteInternalListItemSelectMultiple", "handleCalciteInternalListItemSelectMultiple"], [0, "calciteInternalListItemChange", "handleCalciteInternalListItemChange"], [0, "calciteInternalListItemGroupDefaultSlotChange", "handleCalciteInternalListItemGroupDefaultSlotChange"]], {
|
|
2086
|
+
filterText: ["handleFilterTextChange"],
|
|
2087
|
+
messageOverrides: ["onMessagesChange"],
|
|
2088
|
+
filterEnabled: ["handleListItemChange"],
|
|
2089
|
+
group: ["handleListItemChange"],
|
|
2090
|
+
dragEnabled: ["handleListItemChange"],
|
|
2091
|
+
selectionMode: ["handleListItemChange"],
|
|
2092
|
+
selectionAppearance: ["handleListItemChange"],
|
|
2093
|
+
effectiveLocale: ["effectiveLocaleChange"]
|
|
2094
|
+
}]);
|
|
2095
|
+
function Pn() {
|
|
2096
|
+
if (typeof customElements > "u")
|
|
2097
|
+
return;
|
|
2098
|
+
["calcite-list", "calcite-filter", "calcite-icon", "calcite-input", "calcite-input-message", "calcite-loader", "calcite-progress", "calcite-scrim", "calcite-stack"].forEach((t) => {
|
|
2099
|
+
switch (t) {
|
|
2100
|
+
case "calcite-list":
|
|
2101
|
+
customElements.get(t) || customElements.define(t, Fn);
|
|
2102
|
+
break;
|
|
2103
|
+
case "calcite-filter":
|
|
2104
|
+
customElements.get(t) || Ln();
|
|
2105
|
+
break;
|
|
2106
|
+
case "calcite-icon":
|
|
2107
|
+
customElements.get(t) || an();
|
|
2108
|
+
break;
|
|
2109
|
+
case "calcite-input":
|
|
2110
|
+
customElements.get(t) || on();
|
|
2111
|
+
break;
|
|
2112
|
+
case "calcite-input-message":
|
|
2113
|
+
customElements.get(t) || sn();
|
|
2114
|
+
break;
|
|
2115
|
+
case "calcite-loader":
|
|
2116
|
+
customElements.get(t) || Un();
|
|
2117
|
+
break;
|
|
2118
|
+
case "calcite-progress":
|
|
2119
|
+
customElements.get(t) || rn();
|
|
2120
|
+
break;
|
|
2121
|
+
case "calcite-scrim":
|
|
2122
|
+
customElements.get(t) || qn();
|
|
2123
|
+
break;
|
|
2124
|
+
case "calcite-stack":
|
|
2125
|
+
customElements.get(t) || In();
|
|
2126
|
+
break;
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
Pn();
|
|
2131
|
+
const br = Fn, vr = Pn;
|
|
2132
|
+
export {
|
|
2133
|
+
br as CalciteList,
|
|
2134
|
+
vr as defineCustomElement
|
|
2135
|
+
};
|