@esri/solutions-components 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-3ab7dfd7.js +118 -0
- package/dist/cjs/FloatingArrow-89e0e55a.js +50 -0
- package/dist/cjs/Heading-9112a4c5.js +25 -0
- package/dist/cjs/InitiativeUiSchemaEdit-108652db.js +28 -0
- package/dist/cjs/ProjectUiSchemaCreate-81217580.js +126 -0
- package/dist/cjs/ProjectUiSchemaEdit-d5f11c17.js +178 -0
- package/dist/cjs/Validation-20182093.js +20 -0
- package/dist/cjs/_commonjsHelpers-ed90c4ad.js +55 -0
- package/dist/cjs/app-globals-379d737f.js +69 -0
- package/dist/cjs/ar-a694ca24.js +105 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/basemap-gallery.cjs.entry.js +121 -0
- package/dist/cjs/bg-62b6b3ba.js +83 -0
- package/dist/cjs/browser-fe25aefa.js +28 -0
- package/dist/cjs/bs-e673542b.js +52 -0
- package/dist/cjs/buffer-tools.cjs.entry.js +257 -0
- package/dist/cjs/ca-e4d2f562.js +72 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +5 -5
- package/dist/cjs/calcite-accordion.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +295 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js +169 -0
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action.cjs.entry.js +188 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +322 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +4 -4
- package/dist/cjs/calcite-block-section.cjs.entry.js +8 -8
- package/dist/cjs/calcite-block.cjs.entry.js +214 -0
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +8 -8
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +262 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +274 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +99 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js +22 -22
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +145 -0
- package/dist/cjs/calcite-combobox.cjs.entry.js +1431 -0
- package/dist/cjs/calcite-date-picker-day.cjs.entry.js +97 -0
- package/dist/cjs/calcite-date-picker-month-header.cjs.entry.js +207 -0
- package/dist/cjs/calcite-date-picker-month.cjs.entry.js +362 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js +460 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +85 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +188 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js +430 -0
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +179 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js +198 -0
- package/dist/cjs/calcite-flow.cjs.entry.js +153 -0
- package/dist/cjs/calcite-graph.cjs.entry.js +226 -0
- package/dist/cjs/calcite-handle.cjs.entry.js +204 -0
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +744 -0
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +16 -10
- package/dist/cjs/calcite-input-message.cjs.entry.js +70 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-picker-9e93f694.js +1854 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input.cjs.entry.js +695 -0
- package/dist/cjs/calcite-label.cjs.entry.js +4 -4
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-list-item.cjs.entry.js +454 -0
- package/dist/cjs/calcite-list.cjs.entry.js +567 -0
- package/dist/cjs/calcite-loader.cjs.entry.js +80 -0
- package/dist/cjs/calcite-menu-item.cjs.entry.js +8 -8
- package/dist/cjs/calcite-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-meter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-modal.cjs.entry.js +17 -11
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
- package/dist/cjs/calcite-navigation.cjs.entry.js +4 -4
- package/dist/cjs/calcite-notice.cjs.entry.js +10 -10
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option.cjs.entry.js +88 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js +201 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +270 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +23 -23
- package/dist/cjs/calcite-pick-list.cjs.entry.js +10 -10
- package/dist/cjs/calcite-popover.cjs.entry.js +418 -0
- package/dist/cjs/calcite-progress.cjs.entry.js +41 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -12
- package/dist/cjs/calcite-scrim.cjs.entry.js +7 -7
- package/dist/cjs/calcite-segmented-control-item.cjs.entry.js +70 -0
- package/dist/cjs/calcite-segmented-control.cjs.entry.js +245 -0
- package/dist/cjs/calcite-select.cjs.entry.js +235 -0
- package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +5 -5
- package/dist/cjs/calcite-shell-panel.cjs.entry.js +414 -0
- package/dist/cjs/calcite-shell.cjs.entry.js +174 -0
- package/dist/cjs/calcite-slider.cjs.entry.js +844 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -7
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stack.cjs.entry.js +74 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-stepper.cjs.entry.js +7 -7
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab-nav.cjs.entry.js +263 -0
- package/dist/cjs/calcite-tab-title.cjs.entry.js +291 -0
- package/dist/cjs/calcite-tab.cjs.entry.js +112 -0
- package/dist/cjs/calcite-table-cell.cjs.entry.js +156 -0
- package/dist/cjs/calcite-table-header.cjs.entry.js +169 -0
- package/dist/cjs/calcite-table-row.cjs.entry.js +6 -6
- package/dist/cjs/calcite-table.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tabs.cjs.entry.js +178 -0
- package/dist/cjs/calcite-text-area.cjs.entry.js +15 -16
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tile-select.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-time-picker.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +15 -8
- package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tooltip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tree-item.cjs.entry.js +296 -0
- package/dist/cjs/calcite-tree.cjs.entry.js +315 -0
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +157 -0
- package/dist/cjs/calcite-value-list.cjs.entry.js +326 -0
- package/dist/cjs/card-manager.cjs.entry.js +107 -0
- package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
- package/dist/cjs/common-1b4bd8de.js +297 -0
- package/dist/cjs/conditionalSlot-73e71a05.js +63 -0
- package/dist/cjs/consent-manager.cjs.entry.js +379 -15
- package/dist/cjs/create-feature.cjs.entry.js +263 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +7 -5
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -7
- package/dist/cjs/cs-1ea34123.js +148 -0
- package/dist/cjs/da-199f5488.js +67 -0
- package/dist/cjs/date-3d094f58.js +261 -0
- package/dist/cjs/de-222afa04.js +92 -0
- package/dist/cjs/de-at-a62870ea.js +91 -0
- package/dist/cjs/de-ch-b0b46c1b.js +91 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/delete-button.cjs.entry.js +150 -0
- package/dist/cjs/dom-cf1e2e9f.js +1114 -0
- package/dist/cjs/{downloadUtils-c2bd7c80.js → downloadUtils-1f283d95.js} +37 -6
- package/dist/cjs/downloadUtils-de0c0682.js +4246 -0
- package/dist/cjs/edit-card.cjs.entry.js +228 -0
- package/dist/cjs/el-934951a0.js +67 -0
- package/dist/cjs/en-au-6872d248.js +67 -0
- package/dist/cjs/en-ca-7133c4f2.js +66 -0
- package/dist/cjs/en-gb-2c66b954.js +70 -0
- package/dist/cjs/es-48e65aa5.js +67 -0
- package/dist/cjs/es-mx-46d70897.js +66 -0
- package/dist/cjs/esri-loader-5b8fbfa4.js +308 -0
- package/dist/cjs/et-63c5628d.js +93 -0
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +199 -0
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-dc20f9ac.js +116 -0
- package/dist/cjs/filter-cc2705b7.js +48 -0
- package/dist/cjs/floating-ui-90bd00af.js +2350 -0
- package/dist/cjs/floor-filter.cjs.entry.js +111 -0
- package/dist/cjs/focusTrapComponent-946b0666.js +1028 -0
- package/dist/cjs/form-da52e819.js +316 -0
- package/dist/cjs/fr-7067996a.js +69 -0
- package/dist/cjs/fr-ch-dbd7ba02.js +67 -0
- package/dist/cjs/he-4eb6a5a9.js +106 -0
- package/dist/cjs/helpers-7415d67a.js +830 -0
- package/dist/cjs/{helpers-81779c18.js → helpers-b014d9a9.js} +1 -1
- package/dist/cjs/hi-5563acd4.js +66 -0
- package/dist/cjs/hr-7a0a4191.js +81 -0
- package/dist/cjs/html2canvas-57f1616d.js +7847 -0
- package/dist/cjs/hu-0b69b8fb.js +89 -0
- package/dist/cjs/id-345dd5a9.js +67 -0
- package/dist/cjs/index-5799a29c.js +41521 -0
- package/dist/cjs/index-8c75d784.js +1958 -0
- package/dist/cjs/index-af047760.js +201 -0
- package/dist/cjs/index-b53bfd7c.js +4185 -0
- package/dist/cjs/index.cjs.js +15 -0
- package/dist/cjs/index.es-152bb462.js +11342 -0
- package/dist/cjs/{index.es-22b3d1a2.js → index.es-4af23ecc.js} +1 -1
- package/dist/cjs/info-card.cjs.entry.js +320 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper.cjs.entry.js +125 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +20 -14
- package/dist/cjs/instant-apps-filter-list.cjs.entry.js +1059 -0
- package/dist/cjs/instant-apps-header.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +25 -21
- package/dist/cjs/instant-apps-interactive-legend-count.cjs.entry.js +104 -0
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +7 -6
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element.cjs.entry.js +56 -0
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-layer-element-caption.cjs.entry.js +55 -0
- package/dist/cjs/instant-apps-interactive-legend-layer-element.cjs.entry.js +57 -0
- package/dist/cjs/instant-apps-interactive-legend-legend-element-caption.cjs.entry.js +104 -0
- package/dist/cjs/instant-apps-interactive-legend-legend-element.cjs.entry.js +65 -0
- package/dist/cjs/instant-apps-interactive-legend-relationship.cjs.entry.js +552 -0
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +9 -8
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +9 -9
- package/dist/cjs/instant-apps-language-translator-item.cjs.entry.js +384 -0
- package/dist/cjs/instant-apps-language-translator-search.cjs.entry.js +105 -0
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +9 -9
- package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +139 -0
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-popover.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-social-share.cjs.entry.js +515 -0
- package/dist/cjs/instant-apps-splash.cjs.entry.js +17 -8
- package/dist/cjs/interactive-08e5bc95.js +144 -0
- package/dist/cjs/it-ac7cf3e5.js +67 -0
- package/dist/cjs/it-ch-6f7209eb.js +67 -0
- package/dist/cjs/ja-29e7b0a2.js +73 -0
- package/dist/cjs/json-editor.cjs.entry.js +406 -0
- package/dist/cjs/key-86f4a0b0.js +47 -0
- package/dist/cjs/ko-aeebde8b.js +73 -0
- package/dist/cjs/label-24b05042.js +186 -0
- package/dist/cjs/{languageSwitcher-4822684b.js → languageSwitcher-3870c772.js} +1 -1
- package/dist/cjs/languageSwitcher-aafa5b47.js +58 -0
- package/dist/cjs/{languageUtil-9bd00bad.js → languageUtil-0df39c0c.js} +1 -1
- package/dist/cjs/languageUtil-43c3acdc.js +90 -0
- package/dist/cjs/layer-list.cjs.entry.js +207 -0
- package/dist/cjs/layer-table.cjs.entry.js +1487 -0
- package/dist/cjs/layout-manager.cjs.entry.js +5 -4
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{loadModules-69fc5b98.js → loadModules-01306709.js} +1 -1
- package/dist/cjs/loadModules-a67b6702.js +23 -0
- package/dist/cjs/loadModules-b5f244cd.js +30 -0
- package/dist/cjs/loadable-41446b78.js +97 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-3e33f44c.js → locale-28c7c569.js} +2 -2
- package/dist/cjs/locale-42a9e623.js +152 -0
- package/dist/cjs/locale-4cef466e.js +91 -0
- package/dist/cjs/locale-a615b02f.js +585 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/lodash-7587da9f.js +18030 -0
- package/dist/cjs/lt-6816d14c.js +98 -0
- package/dist/cjs/lv-2c998515.js +67 -0
- package/dist/cjs/map-card.cjs.entry.js +192 -0
- package/dist/cjs/map-draw-tools.cjs.entry.js +358 -0
- package/dist/cjs/map-fullscreen.cjs.entry.js +116 -0
- package/dist/cjs/map-layer-picker.cjs.entry.js +346 -0
- package/dist/cjs/map-legend.cjs.entry.js +109 -0
- package/dist/cjs/map-picker.cjs.entry.js +174 -0
- package/dist/cjs/map-search.cjs.entry.js +184 -0
- package/dist/cjs/map-select-tools.cjs.entry.js +798 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/map-tools.cjs.entry.js +375 -0
- package/dist/cjs/mapViewUtils-6fa5bab1.js +271 -0
- package/dist/cjs/mk-147994ea.js +67 -0
- package/dist/cjs/mode-a0417ce5.js +27 -0
- package/dist/cjs/nb-f3d75f05.js +68 -0
- package/dist/cjs/nl-cb0a22c8.js +68 -0
- package/dist/cjs/observers-5923a7cc.js +58 -0
- package/dist/cjs/openCloseComponent-8d9cb545.js +140 -0
- package/dist/cjs/parser-e80279bf.js +1656 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pdf-download.cjs.entry.js +359 -0
- package/dist/cjs/pl-ade28edd.js +115 -0
- package/dist/cjs/popupUtils-4de17e65.js +96 -0
- package/dist/cjs/pt-5543b782.js +68 -0
- package/dist/cjs/pt-br-bdce1868.js +66 -0
- package/dist/cjs/public-notification.cjs.entry.js +12 -11
- package/dist/cjs/publicNotificationStore-f690e171.js +47 -0
- package/dist/cjs/purify-557ad134.js +1715 -0
- package/dist/cjs/queryUtils-aba29fcf.js +253 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/refine-selection.cjs.entry.js +411 -0
- package/dist/cjs/resources-2ccf85d3.js +53 -0
- package/dist/cjs/resources-37006465.js +29 -0
- package/dist/cjs/resources-63b3a6b8.js +116 -0
- package/dist/cjs/resources-a2b1b149.js +49 -0
- package/dist/cjs/resources-ac626172.js +26 -0
- package/dist/cjs/resources-b0cc39b4.js +30 -0
- package/dist/cjs/ro-f4bb9704.js +67 -0
- package/dist/cjs/ru-ba86b627.js +127 -0
- package/dist/cjs/shadow-css-bbaea014.js +483 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-c8555864.js +370 -0
- package/dist/cjs/sk-ac03aca5.js +149 -0
- package/dist/cjs/sl-c68e3fd0.js +169 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +21 -1105
- package/dist/cjs/solution-contents.cjs.entry.js +84 -0
- package/dist/cjs/solution-item-details.cjs.entry.js +199 -0
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solution-item-sharing.cjs.entry.js +139 -0
- package/dist/cjs/solution-item.cjs.entry.js +106 -0
- package/dist/cjs/solution-organization-variables.cjs.entry.js +95 -0
- package/dist/cjs/solution-resource-item.cjs.entry.js +284 -0
- package/dist/cjs/solution-spatial-ref.cjs.entry.js +158 -0
- package/dist/cjs/solution-store-6194ba89.js +589 -0
- package/dist/cjs/solution-template-data.cjs.entry.js +119 -0
- package/dist/cjs/solution-variables.cjs.entry.js +107 -0
- package/dist/cjs/solutions-components.cjs.js +36 -5
- package/dist/cjs/sortableComponent-5e3419af.js +3443 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +7 -6
- package/dist/cjs/sr-80f65cf0.js +102 -0
- package/dist/cjs/store-1f422ad4.js +91 -0
- package/dist/cjs/store-manager.cjs.entry.js +1 -1
- package/dist/cjs/sv-eee15401.js +72 -0
- package/dist/cjs/t9n-463dcbff.js +103 -0
- package/dist/cjs/th-f90768db.js +66 -0
- package/dist/cjs/time-4a9bf7e2.js +289 -0
- package/dist/cjs/tr-37fec0b5.js +67 -0
- package/dist/cjs/uk-3041a292.js +105 -0
- package/dist/cjs/utils-3a633152.js +64 -0
- package/dist/cjs/utils-7281bf72.js +110 -0
- package/dist/cjs/utils-72a66b3c.js +66 -0
- package/dist/cjs/utils-934ee777.js +142 -0
- package/dist/cjs/{utils-ea7a5a63.js → utils-ac836e7a.js} +1 -1
- package/dist/cjs/utils-b276a49d.js +226 -0
- package/dist/cjs/vi-57a02ad1.js +71 -0
- package/dist/cjs/zh-cn-165c486d.js +95 -0
- package/dist/cjs/zh-hk-0aa560a6.js +72 -0
- package/dist/cjs/zh-tw-42d975f0.js +93 -0
- package/dist/collection/utils/downloadUtils.js +36 -5
- package/dist/collection/utils/downloadUtils.ts +44 -5
- package/dist/collection/utils/test/downloadUtils.spec.js +33 -1
- package/dist/collection/utils/test/downloadUtils.spec.tsx +40 -1
- package/dist/components/ExpandToggle.js +8 -8
- package/dist/components/InitiativeUiSchemaEdit.js +26 -0
- package/dist/components/ProjectUiSchemaCreate.js +122 -0
- package/dist/components/ProjectUiSchemaEdit.js +176 -0
- package/dist/components/_commonjsHelpers.js +10 -2
- package/dist/components/action-bar.js +3 -3
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action-pad.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/arcgis-login.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/basemap-gallery2.js +1 -1
- package/dist/components/block.js +1 -1
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-color-picker.js +5 -5
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-time-picker.js +5 -1
- package/dist/components/calcite-input-time-zone.js +2 -2
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-pick-list-group.js +3 -3
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-rating.js +3 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-text-area.js +2 -2
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +8 -1
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +2 -2
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +314 -3
- package/dist/components/consent-manager.js +376 -13
- package/dist/components/create-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +28 -1
- package/dist/components/downloadUtils.js +1213 -102
- package/dist/components/dropdown-group.js +1 -1
- package/dist/components/dropdown-item.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/esri-loader.js +8 -3
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +1 -1
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/filter.js +1 -718
- package/dist/components/filter2.js +2 -2
- package/dist/components/floating-ui.js +384 -7
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/flow-item.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/helpers.js +6 -2
- package/dist/components/html2canvas.js +8 -3
- package/dist/components/icon.js +1 -1
- package/dist/components/index.es.js +555 -22
- package/dist/components/index.js +16 -0
- package/dist/components/index2.js +3 -0
- package/dist/components/index3.js +41270 -1873
- package/dist/components/index5.js +2086 -185
- package/dist/components/index6.js +188 -55
- package/dist/components/index7.js +71 -0
- package/dist/components/info-card2.js +1 -1
- package/dist/components/input-date-picker.js +1 -1
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
- package/dist/components/instant-apps-control-panel.js +1 -1
- package/dist/components/instant-apps-export.js +14 -8
- package/dist/components/instant-apps-filter-list2.js +2 -1
- package/dist/components/instant-apps-header2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-classic2.js +10 -7
- package/dist/components/instant-apps-interactive-legend-count2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +1 -1
- package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-layer-element2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-legend-element2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-relationship2.js +1 -1
- package/dist/components/instant-apps-interactive-legend.js +1 -1
- package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
- package/dist/components/instant-apps-landing-page.js +2 -2
- package/dist/components/instant-apps-language-switcher.js +1 -1
- package/dist/components/instant-apps-language-translator-item2.js +1 -1
- package/dist/components/instant-apps-language-translator-search2.js +1 -1
- package/dist/components/instant-apps-language-translator2.js +1 -1
- package/dist/components/instant-apps-measurement-tool2.js +1 -1
- package/dist/components/instant-apps-measurement.js +2 -2
- package/dist/components/instant-apps-popover.js +1 -1
- package/dist/components/instant-apps-popovers.js +1 -1
- package/dist/components/instant-apps-scoreboard.js +1 -1
- package/dist/components/instant-apps-social-share2.js +14 -8
- package/dist/components/instant-apps-splash.js +18 -4
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/key.js +28 -0
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/languageUtil.js +23 -2
- package/dist/components/layer-list2.js +1 -1
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/list.js +2 -2
- package/dist/components/loadModules2.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +12 -0
- package/dist/components/locale2.js +2 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/lodash.js +18025 -0
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +3 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/modal.js +7 -1
- package/dist/components/mode.js +8 -0
- package/dist/components/notice.js +1 -1
- package/dist/components/openCloseComponent.js +48 -0
- package/dist/components/option.js +1 -1
- package/dist/components/pagination.js +194 -1
- package/dist/components/panel.js +2 -1
- package/dist/components/parser.js +1654 -0
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/purify.js +5 -2
- package/dist/components/queryUtils.js +43 -0
- package/dist/components/radio-button.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/resources.js +17 -0
- package/dist/components/resources4.js +3 -0
- package/dist/components/scrim.js +1 -1
- package/dist/components/segmented-control-item.js +1 -1
- package/dist/components/segmented-control.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/shared-list-render.js +6 -1
- package/dist/components/shell-panel.js +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/slider.js +3 -1
- package/dist/components/solution-configuration.js +2 -1088
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +2 -3
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +1 -756
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/sortableComponent.js +701 -0
- package/dist/components/spatial-ref2.js +263 -4
- package/dist/components/stack.js +1 -1
- package/dist/components/store-manager.js +1 -1
- package/dist/components/store.js +1 -0
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tree-item.js +1 -1
- package/dist/components/tree.js +1 -1
- package/dist/components/utils.js +6 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils4.js +12 -0
- package/dist/components/value-list-item.js +1 -1
- package/dist/components/value-list.js +4 -1
- package/dist/esm/ExpandToggle-22fd2faa.js +110 -0
- package/dist/esm/FloatingArrow-de6fd1c7.js +48 -0
- package/dist/esm/Heading-f003a141.js +22 -0
- package/dist/esm/InitiativeUiSchemaEdit-8ddacfe8.js +26 -0
- package/dist/esm/ProjectUiSchemaCreate-dd179c0f.js +124 -0
- package/dist/esm/ProjectUiSchemaEdit-fbfdf6e4.js +176 -0
- package/dist/esm/Validation-59a77488.js +18 -0
- package/dist/esm/_commonjsHelpers-3cd6d4ee.js +49 -0
- package/dist/esm/app-globals-928553ab.js +67 -0
- package/dist/esm/ar-75ffdabb.js +103 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/basemap-gallery.entry.js +117 -0
- package/dist/esm/bg-fac0bf10.js +81 -0
- package/dist/esm/browser-b8d08bed.js +26 -0
- package/dist/esm/bs-c03c8ef2.js +50 -0
- package/dist/esm/buffer-tools.entry.js +253 -0
- package/dist/esm/ca-29e49f82.js +70 -0
- package/dist/esm/calcite-accordion-item.entry.js +5 -5
- package/dist/esm/calcite-accordion.entry.js +2 -2
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu.entry.js +291 -0
- package/dist/esm/calcite-action-pad.entry.js +165 -0
- package/dist/esm/calcite-action-pad_2.entry.js +1 -1
- package/dist/esm/calcite-action.entry.js +184 -0
- package/dist/esm/calcite-alert.entry.js +318 -0
- package/dist/esm/calcite-avatar.entry.js +4 -4
- package/dist/esm/calcite-block-section.entry.js +8 -8
- package/dist/esm/calcite-block.entry.js +210 -0
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +8 -8
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip-group.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +258 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js +270 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js +95 -0
- package/dist/esm/calcite-color-picker.entry.js +16 -16
- package/dist/esm/calcite-combobox-item-group.entry.js +4 -4
- package/dist/esm/calcite-combobox-item.entry.js +141 -0
- package/dist/esm/calcite-combobox.entry.js +1427 -0
- package/dist/esm/calcite-date-picker-day.entry.js +93 -0
- package/dist/esm/calcite-date-picker-month-header.entry.js +203 -0
- package/dist/esm/calcite-date-picker-month.entry.js +358 -0
- package/dist/esm/calcite-date-picker.entry.js +456 -0
- package/dist/esm/calcite-dropdown-group.entry.js +81 -0
- package/dist/esm/calcite-dropdown-item.entry.js +184 -0
- package/dist/esm/calcite-dropdown.entry.js +426 -0
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +175 -0
- package/dist/esm/calcite-flow-item.entry.js +194 -0
- package/dist/esm/calcite-flow.entry.js +149 -0
- package/dist/esm/calcite-graph.entry.js +222 -0
- package/dist/esm/calcite-handle.entry.js +200 -0
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +11 -11
- package/dist/esm/calcite-input-date-picker.entry.js +740 -0
- package/dist/esm/calcite-input-date-picker_3.entry.js +16 -10
- package/dist/esm/calcite-input-message.entry.js +66 -0
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/calcite-input-time-picker-e5cd4d26.js +1851 -0
- package/dist/esm/calcite-input-time-picker.entry.js +17 -17
- package/dist/esm/calcite-input-time-zone.entry.js +12 -12
- package/dist/esm/calcite-input.entry.js +691 -0
- package/dist/esm/calcite-label.entry.js +4 -4
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list-item-group.entry.js +4 -4
- package/dist/esm/calcite-list-item.entry.js +450 -0
- package/dist/esm/calcite-list.entry.js +563 -0
- package/dist/esm/calcite-loader.entry.js +76 -0
- package/dist/esm/calcite-menu-item.entry.js +8 -8
- package/dist/esm/calcite-menu.entry.js +8 -8
- package/dist/esm/calcite-meter.entry.js +8 -8
- package/dist/esm/calcite-modal.entry.js +17 -11
- package/dist/esm/calcite-navigation-logo.entry.js +2 -2
- package/dist/esm/calcite-navigation-user.entry.js +2 -2
- package/dist/esm/calcite-navigation.entry.js +4 -4
- package/dist/esm/calcite-notice.entry.js +10 -10
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option.entry.js +84 -0
- package/dist/esm/calcite-pagination.entry.js +201 -8
- package/dist/esm/calcite-panel.entry.js +266 -0
- package/dist/esm/calcite-pick-list-group.entry.js +6 -6
- package/dist/esm/calcite-pick-list-item.entry.js +13 -13
- package/dist/esm/calcite-pick-list.entry.js +10 -10
- package/dist/esm/calcite-popover.entry.js +414 -0
- package/dist/esm/calcite-progress.entry.js +37 -0
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +14 -12
- package/dist/esm/calcite-scrim.entry.js +7 -7
- package/dist/esm/calcite-segmented-control-item.entry.js +66 -0
- package/dist/esm/calcite-segmented-control.entry.js +241 -0
- package/dist/esm/calcite-select.entry.js +231 -0
- package/dist/esm/calcite-sheet.entry.js +7 -7
- package/dist/esm/calcite-shell-center-row.entry.js +5 -5
- package/dist/esm/calcite-shell-panel.entry.js +410 -0
- package/dist/esm/calcite-shell.entry.js +170 -0
- package/dist/esm/calcite-slider.entry.js +840 -0
- package/dist/esm/calcite-sortable-list.entry.js +7 -7
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stack.entry.js +70 -0
- package/dist/esm/calcite-stepper-item.entry.js +10 -10
- package/dist/esm/calcite-stepper.entry.js +7 -7
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab-nav.entry.js +259 -0
- package/dist/esm/calcite-tab-title.entry.js +287 -0
- package/dist/esm/calcite-tab.entry.js +108 -0
- package/dist/esm/calcite-table-cell.entry.js +152 -0
- package/dist/esm/calcite-table-header.entry.js +165 -0
- package/dist/esm/calcite-table-row.entry.js +6 -6
- package/dist/esm/calcite-table.entry.js +9 -9
- package/dist/esm/calcite-tabs.entry.js +174 -0
- package/dist/esm/calcite-text-area.entry.js +14 -15
- package/dist/esm/calcite-tile-select-group.entry.js +3 -3
- package/dist/esm/calcite-tile-select.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-time-picker.entry.js +9 -9
- package/dist/esm/calcite-tip-group.entry.js +1 -1
- package/dist/esm/calcite-tip-manager.entry.js +15 -8
- package/dist/esm/calcite-tip.entry.js +9 -9
- package/dist/esm/calcite-tooltip.entry.js +7 -7
- package/dist/esm/calcite-tree-item.entry.js +292 -0
- package/dist/esm/calcite-tree.entry.js +311 -0
- package/dist/esm/calcite-value-list-item.entry.js +153 -0
- package/dist/esm/calcite-value-list.entry.js +322 -0
- package/dist/esm/card-manager.entry.js +103 -0
- package/dist/esm/card-manager_3.entry.js +1 -1
- package/dist/esm/common-7e0dcaa2.js +295 -0
- package/dist/esm/conditionalSlot-a395417e.js +60 -0
- package/dist/esm/consent-manager.entry.js +379 -15
- package/dist/esm/create-feature.entry.js +259 -0
- package/dist/esm/crowdsource-manager.entry.js +7 -5
- package/dist/esm/crowdsource-reporter.entry.js +7 -5
- package/dist/esm/cs-04f36d01.js +146 -0
- package/dist/esm/da-5a3b8600.js +65 -0
- package/dist/esm/date-74c7f03b.js +245 -0
- package/dist/esm/de-579cda2e.js +90 -0
- package/dist/esm/de-at-52bf1c4c.js +89 -0
- package/dist/esm/de-ch-12d03480.js +89 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/delete-button.entry.js +146 -0
- package/dist/esm/dom-b91aa537.js +1083 -0
- package/dist/esm/{downloadUtils-a6c0e25f.js → downloadUtils-01e2cb56.js} +37 -6
- package/dist/esm/downloadUtils-b3220f86.js +4240 -0
- package/dist/esm/edit-card.entry.js +224 -0
- package/dist/esm/el-c18d3ea4.js +65 -0
- package/dist/esm/en-au-2599e6da.js +65 -0
- package/dist/esm/en-ca-8cfbe6bc.js +64 -0
- package/dist/esm/en-gb-5e4e8a1e.js +68 -0
- package/dist/esm/es-d86f9957.js +65 -0
- package/dist/esm/es-mx-f99d9fd1.js +64 -0
- package/dist/esm/esri-loader-af2bbfd5.js +306 -0
- package/dist/esm/et-8bf52e57.js +91 -0
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +195 -0
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-aeb49e52.js +114 -0
- package/dist/esm/filter-0d00d2e2.js +46 -0
- package/dist/esm/floating-ui-b3256614.js +2342 -0
- package/dist/esm/floor-filter.entry.js +107 -0
- package/dist/esm/focusTrapComponent-2fe6623b.js +1023 -0
- package/dist/esm/form-f2181470.js +307 -0
- package/dist/esm/fr-6200cc01.js +67 -0
- package/dist/esm/fr-ch-df62bb30.js +65 -0
- package/dist/esm/he-07ace6cb.js +104 -0
- package/dist/esm/helpers-85ca7251.js +807 -0
- package/dist/esm/{helpers-aeddac74.js → helpers-f9256189.js} +1 -1
- package/dist/esm/hi-5aa9519e.js +64 -0
- package/dist/esm/hr-e0614bed.js +79 -0
- package/dist/esm/html2canvas-d52e7c8d.js +7845 -0
- package/dist/esm/hu-732fe37c.js +87 -0
- package/dist/esm/id-0832fc24.js +65 -0
- package/dist/esm/index-7fc1cba9.js +41502 -0
- package/dist/esm/index-91eeaf01.js +199 -0
- package/dist/esm/index-b1fb529b.js +1956 -0
- package/dist/esm/index-bdfaac50.js +4145 -0
- package/dist/esm/index.es-3db60115.js +11256 -0
- package/dist/esm/{index.es-b0a676ae.js → index.es-ac6f5e76.js} +1 -1
- package/dist/esm/index.js +15 -0
- package/dist/esm/info-card.entry.js +316 -0
- package/dist/esm/instant-apps-ckeditor-wrapper.entry.js +121 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
- package/dist/esm/instant-apps-control-panel.entry.js +4 -4
- package/dist/esm/instant-apps-export.entry.js +20 -14
- package/dist/esm/instant-apps-filter-list.entry.js +1055 -0
- package/dist/esm/instant-apps-header.entry.js +5 -4
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +15 -11
- package/dist/esm/instant-apps-interactive-legend-count.entry.js +100 -0
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +7 -6
- package/dist/esm/instant-apps-interactive-legend-group-legend-element.entry.js +52 -0
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-layer-element-caption.entry.js +51 -0
- package/dist/esm/instant-apps-interactive-legend-layer-element.entry.js +53 -0
- package/dist/esm/instant-apps-interactive-legend-legend-element-caption.entry.js +100 -0
- package/dist/esm/instant-apps-interactive-legend-legend-element.entry.js +61 -0
- package/dist/esm/instant-apps-interactive-legend-relationship.entry.js +548 -0
- package/dist/esm/instant-apps-interactive-legend.entry.js +9 -8
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +6 -6
- package/dist/esm/instant-apps-landing-page.entry.js +2 -2
- package/dist/esm/instant-apps-language-switcher.entry.js +9 -9
- package/dist/esm/instant-apps-language-translator-item.entry.js +380 -0
- package/dist/esm/instant-apps-language-translator-search.entry.js +101 -0
- package/dist/esm/instant-apps-language-translator.entry.js +9 -9
- package/dist/esm/instant-apps-measurement-tool.entry.js +135 -0
- package/dist/esm/instant-apps-measurement.entry.js +7 -7
- package/dist/esm/instant-apps-popover.entry.js +6 -6
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +6 -6
- package/dist/esm/instant-apps-social-share.entry.js +511 -0
- package/dist/esm/instant-apps-splash.entry.js +17 -8
- package/dist/esm/interactive-71585ecc.js +139 -0
- package/dist/esm/it-142bc820.js +65 -0
- package/dist/esm/it-ch-1ad1f0ac.js +65 -0
- package/dist/esm/ja-6a33e9d4.js +71 -0
- package/dist/esm/json-editor.entry.js +402 -0
- package/dist/esm/key-9a10d862.js +44 -0
- package/dist/esm/ko-d61df01d.js +71 -0
- package/dist/esm/label-16184ce7.js +179 -0
- package/dist/esm/{languageSwitcher-4faa659f.js → languageSwitcher-068998b1.js} +1 -1
- package/dist/esm/languageSwitcher-2a9037e5.js +55 -0
- package/dist/esm/{languageUtil-dc3111c1.js → languageUtil-035e7728.js} +1 -1
- package/dist/esm/languageUtil-71a7a914.js +87 -0
- package/dist/esm/layer-list.entry.js +203 -0
- package/dist/esm/layer-table.entry.js +1483 -0
- package/dist/esm/layout-manager.entry.js +5 -4
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/{loadModules-877bbb89.js → loadModules-7a5f1022.js} +1 -1
- package/dist/esm/loadModules-827c5581.js +28 -0
- package/dist/esm/loadModules-acccbc1c.js +21 -0
- package/dist/esm/loadable-aea90723.js +92 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-bd9034e1.js → locale-4cab280d.js} +2 -2
- package/dist/esm/locale-4cfbae3e.js +86 -0
- package/dist/esm/locale-857f39cf.js +572 -0
- package/dist/esm/locale-d9463a95.js +148 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/lodash-98e4b7d0.js +18025 -0
- package/dist/esm/lt-652c530a.js +96 -0
- package/dist/esm/lv-84e48ed0.js +65 -0
- package/dist/esm/map-card.entry.js +188 -0
- package/dist/esm/map-draw-tools.entry.js +354 -0
- package/dist/esm/map-fullscreen.entry.js +112 -0
- package/dist/esm/map-layer-picker.entry.js +342 -0
- package/dist/esm/map-legend.entry.js +105 -0
- package/dist/esm/map-picker.entry.js +170 -0
- package/dist/esm/map-search.entry.js +180 -0
- package/dist/esm/map-select-tools.entry.js +794 -0
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/map-tools.entry.js +371 -0
- package/dist/esm/mapViewUtils-436a516e.js +261 -0
- package/dist/esm/mk-bbf2ee01.js +65 -0
- package/dist/esm/mode-f9bfc4e9.js +25 -0
- package/dist/esm/nb-ccfaa0f7.js +66 -0
- package/dist/esm/nl-4bc56289.js +66 -0
- package/dist/esm/observers-5ba39eee.js +56 -0
- package/dist/esm/openCloseComponent-b4b3788b.js +138 -0
- package/dist/esm/parser-87982ce2.js +1654 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pdf-download.entry.js +355 -0
- package/dist/esm/pl-1f435988.js +113 -0
- package/dist/esm/popupUtils-b61d7ffd.js +94 -0
- package/dist/esm/pt-4a05a00d.js +66 -0
- package/dist/esm/pt-br-9720547b.js +64 -0
- package/dist/esm/public-notification.entry.js +11 -10
- package/dist/esm/publicNotificationStore-208e26f0.js +45 -0
- package/dist/esm/purify-909c20fa.js +1713 -0
- package/dist/esm/queryUtils-2529c537.js +244 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/refine-selection.entry.js +407 -0
- package/dist/esm/resources-0f8db821.js +45 -0
- package/dist/esm/resources-3c6947d3.js +26 -0
- package/dist/esm/resources-47b3ca40.js +106 -0
- package/dist/esm/resources-667afb5d.js +27 -0
- package/dist/esm/resources-9b2084c6.js +24 -0
- package/dist/esm/resources-bb6c11c3.js +49 -0
- package/dist/esm/ro-f87076a1.js +65 -0
- package/dist/esm/ru-e69ca895.js +125 -0
- package/dist/esm/shadow-css-f5236d52.js +481 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-a572ef93.js +348 -0
- package/dist/esm/sk-d632e850.js +147 -0
- package/dist/esm/sl-5099fa6f.js +167 -0
- package/dist/esm/solution-configuration.entry.js +9 -1093
- package/dist/esm/solution-contents.entry.js +80 -0
- package/dist/esm/solution-item-details.entry.js +195 -0
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solution-item-sharing.entry.js +135 -0
- package/dist/esm/solution-item.entry.js +102 -0
- package/dist/esm/solution-organization-variables.entry.js +91 -0
- package/dist/esm/solution-resource-item.entry.js +280 -0
- package/dist/esm/solution-spatial-ref.entry.js +154 -0
- package/dist/esm/solution-store-31cccb90.js +587 -0
- package/dist/esm/solution-template-data.entry.js +115 -0
- package/dist/esm/solution-variables.entry.js +103 -0
- package/dist/esm/solutions-components.js +37 -6
- package/dist/esm/sortableComponent-e715a3dd.js +3439 -0
- package/dist/esm/spatial-ref.entry.js +7 -6
- package/dist/esm/sr-944b7fd7.js +100 -0
- package/dist/esm/store-194c1a01.js +87 -0
- package/dist/esm/store-manager.entry.js +1 -1
- package/dist/esm/sv-e481fa6a.js +70 -0
- package/dist/esm/t9n-b39c5433.js +98 -0
- package/dist/esm/th-60961669.js +64 -0
- package/dist/esm/time-4a90614b.js +274 -0
- package/dist/esm/tr-eba8dd86.js +65 -0
- package/dist/esm/uk-ec375ce0.js +103 -0
- package/dist/esm/utils-32df4a1e.js +133 -0
- package/dist/esm/utils-57e2ccde.js +61 -0
- package/dist/esm/{utils-28d0a086.js → utils-78fe6e5b.js} +1 -1
- package/dist/esm/utils-7db4ecdc.js +100 -0
- package/dist/esm/utils-95e9dd51.js +55 -0
- package/dist/esm/utils-cfbe589a.js +208 -0
- package/dist/esm/vi-29345f79.js +69 -0
- package/dist/esm/zh-cn-32c7c714.js +93 -0
- package/dist/esm/zh-hk-7c770845.js +70 -0
- package/dist/esm/zh-tw-c318be5c.js +91 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +8 -1
- package/dist/solutions-components/ExpandToggle-22fd2faa.js +110 -0
- package/dist/solutions-components/FloatingArrow-de6fd1c7.js +48 -0
- package/dist/solutions-components/Heading-f003a141.js +22 -0
- package/dist/solutions-components/InitiativeUiSchemaEdit-8ddacfe8.js +26 -0
- package/dist/solutions-components/ProjectUiSchemaCreate-dd179c0f.js +124 -0
- package/dist/solutions-components/ProjectUiSchemaEdit-fbfdf6e4.js +176 -0
- package/dist/solutions-components/Validation-59a77488.js +18 -0
- package/dist/solutions-components/_commonjsHelpers-3cd6d4ee.js +49 -0
- package/dist/solutions-components/app-globals-928553ab.js +67 -0
- package/dist/solutions-components/ar-75ffdabb.js +103 -0
- package/dist/solutions-components/arcgis-login.entry.js +56 -0
- package/dist/solutions-components/array-396bdf3c.js +15 -0
- package/dist/solutions-components/basemap-gallery.entry.js +117 -0
- package/dist/solutions-components/bg-fac0bf10.js +81 -0
- package/dist/solutions-components/breakpoints-f0f1417d.js +15 -0
- package/dist/solutions-components/browser-b8d08bed.js +26 -0
- package/dist/solutions-components/bs-c03c8ef2.js +50 -0
- package/dist/solutions-components/buffer-tools.entry.js +253 -0
- package/dist/solutions-components/ca-29e49f82.js +70 -0
- package/dist/solutions-components/calcite-accordion-item.entry.js +176 -0
- package/dist/solutions-components/calcite-accordion.entry.js +81 -0
- package/dist/solutions-components/calcite-action-bar.entry.js +252 -0
- package/dist/solutions-components/calcite-action-group.entry.js +112 -0
- package/dist/solutions-components/calcite-action-menu.entry.js +291 -0
- package/dist/solutions-components/calcite-action-pad.entry.js +165 -0
- package/dist/solutions-components/calcite-action.entry.js +184 -0
- package/dist/solutions-components/calcite-alert.entry.js +318 -0
- package/dist/solutions-components/calcite-avatar.entry.js +146 -0
- package/dist/solutions-components/calcite-block-section.entry.js +162 -0
- package/dist/solutions-components/calcite-block.entry.js +210 -0
- package/dist/solutions-components/calcite-button.entry.js +227 -0
- package/dist/solutions-components/calcite-card.entry.js +132 -0
- package/dist/solutions-components/calcite-checkbox.entry.js +134 -0
- package/dist/solutions-components/calcite-chip-group.entry.js +175 -0
- package/dist/solutions-components/calcite-chip.entry.js +258 -0
- package/dist/solutions-components/calcite-color-picker-hex-input.entry.js +270 -0
- package/dist/solutions-components/calcite-color-picker-swatch.entry.js +95 -0
- package/dist/solutions-components/calcite-color-picker.entry.js +906 -0
- package/dist/solutions-components/calcite-combobox-item-group.entry.js +56 -0
- package/dist/solutions-components/calcite-combobox-item.entry.js +141 -0
- package/dist/solutions-components/calcite-combobox.entry.js +1427 -0
- package/dist/solutions-components/calcite-date-picker-day.entry.js +93 -0
- package/dist/solutions-components/calcite-date-picker-month-header.entry.js +203 -0
- package/dist/solutions-components/calcite-date-picker-month.entry.js +358 -0
- package/dist/solutions-components/calcite-date-picker.entry.js +456 -0
- package/dist/solutions-components/calcite-dropdown-group.entry.js +81 -0
- package/dist/solutions-components/calcite-dropdown-item.entry.js +184 -0
- package/dist/solutions-components/calcite-dropdown.entry.js +426 -0
- package/dist/solutions-components/calcite-fab.entry.js +90 -0
- package/dist/solutions-components/calcite-filter.entry.js +175 -0
- package/dist/solutions-components/calcite-flow-item.entry.js +194 -0
- package/dist/solutions-components/calcite-flow.entry.js +149 -0
- package/dist/solutions-components/calcite-graph.entry.js +222 -0
- package/dist/solutions-components/calcite-handle.entry.js +200 -0
- package/dist/solutions-components/calcite-icon.entry.js +179 -0
- package/dist/solutions-components/calcite-inline-editable.entry.js +253 -0
- package/dist/solutions-components/calcite-input-date-picker.entry.js +740 -0
- package/dist/solutions-components/calcite-input-message.entry.js +66 -0
- package/dist/solutions-components/calcite-input-number.entry.js +610 -0
- package/dist/solutions-components/calcite-input-text.entry.js +349 -0
- package/dist/solutions-components/calcite-input-time-picker-e5cd4d26.js +1851 -0
- package/dist/solutions-components/calcite-input-time-picker.entry.js +25 -0
- package/dist/solutions-components/calcite-input-time-zone.entry.js +332 -0
- package/dist/solutions-components/calcite-input.entry.js +691 -0
- package/dist/solutions-components/calcite-label.entry.js +67 -0
- package/dist/solutions-components/calcite-link.entry.js +108 -0
- package/dist/solutions-components/calcite-list-item-group.entry.js +69 -0
- package/dist/solutions-components/calcite-list-item.entry.js +450 -0
- package/dist/solutions-components/calcite-list.entry.js +563 -0
- package/dist/solutions-components/calcite-loader.entry.js +76 -0
- package/dist/solutions-components/calcite-menu-item.entry.js +281 -0
- package/dist/solutions-components/calcite-menu.entry.js +180 -0
- package/dist/solutions-components/calcite-meter.entry.js +332 -0
- package/dist/solutions-components/calcite-modal.entry.js +394 -0
- package/dist/solutions-components/calcite-navigation-logo.entry.js +84 -0
- package/dist/solutions-components/calcite-navigation-user.entry.js +68 -0
- package/dist/solutions-components/calcite-navigation.entry.js +166 -0
- package/dist/solutions-components/calcite-notice.entry.js +163 -0
- package/dist/solutions-components/calcite-option-group.entry.js +35 -0
- package/dist/solutions-components/calcite-option.entry.js +84 -0
- package/dist/solutions-components/calcite-pagination.entry.js +554 -0
- package/dist/solutions-components/calcite-panel.entry.js +266 -0
- package/dist/solutions-components/calcite-pick-list-group.entry.js +57 -0
- package/dist/solutions-components/calcite-pick-list-item.entry.js +193 -0
- package/dist/solutions-components/calcite-pick-list.entry.js +142 -0
- package/dist/solutions-components/calcite-popover.entry.js +414 -0
- package/dist/solutions-components/calcite-progress.entry.js +37 -0
- package/dist/solutions-components/calcite-radio-button-group.entry.js +141 -0
- package/dist/solutions-components/calcite-radio-button.entry.js +318 -0
- package/dist/solutions-components/calcite-rating.entry.js +261 -0
- package/dist/solutions-components/calcite-scrim.entry.js +121 -0
- package/dist/solutions-components/calcite-segmented-control-item.entry.js +66 -0
- package/dist/solutions-components/calcite-segmented-control.entry.js +241 -0
- package/dist/solutions-components/calcite-select.entry.js +231 -0
- package/dist/solutions-components/calcite-sheet.entry.js +223 -0
- package/dist/solutions-components/calcite-shell-center-row.entry.js +66 -0
- package/dist/solutions-components/calcite-shell-panel.entry.js +410 -0
- package/dist/solutions-components/calcite-shell.entry.js +170 -0
- package/dist/solutions-components/calcite-slider.entry.js +840 -0
- package/dist/solutions-components/calcite-sortable-list.entry.js +166 -0
- package/dist/solutions-components/calcite-split-button.entry.js +112 -0
- package/dist/solutions-components/calcite-stack.entry.js +70 -0
- package/dist/solutions-components/calcite-stepper-item.entry.js +238 -0
- package/dist/solutions-components/calcite-stepper.entry.js +377 -0
- package/dist/solutions-components/calcite-switch.entry.js +113 -0
- package/dist/solutions-components/calcite-tab-nav.entry.js +259 -0
- package/dist/solutions-components/calcite-tab-title.entry.js +287 -0
- package/dist/solutions-components/calcite-tab.entry.js +108 -0
- package/dist/solutions-components/calcite-table-cell.entry.js +152 -0
- package/dist/solutions-components/calcite-table-header.entry.js +165 -0
- package/dist/solutions-components/calcite-table-row.entry.js +244 -0
- package/dist/solutions-components/calcite-table.entry.js +314 -0
- package/dist/solutions-components/calcite-tabs.entry.js +174 -0
- package/dist/solutions-components/calcite-text-area.entry.js +276 -0
- package/dist/solutions-components/calcite-tile-select-group.entry.js +39 -0
- package/dist/solutions-components/calcite-tile-select.entry.js +225 -0
- package/dist/solutions-components/calcite-tile.entry.js +75 -0
- package/dist/solutions-components/calcite-time-picker.entry.js +839 -0
- package/dist/solutions-components/calcite-tip-group.entry.js +21 -0
- package/dist/solutions-components/calcite-tip-manager.entry.js +227 -0
- package/dist/solutions-components/calcite-tip.entry.js +126 -0
- package/dist/solutions-components/calcite-tooltip.entry.js +434 -0
- package/dist/solutions-components/calcite-tree-item.entry.js +292 -0
- package/dist/solutions-components/calcite-tree.entry.js +311 -0
- package/dist/solutions-components/calcite-value-list-item.entry.js +153 -0
- package/dist/solutions-components/calcite-value-list.entry.js +322 -0
- package/dist/solutions-components/card-manager.entry.js +103 -0
- package/dist/solutions-components/common-7e0dcaa2.js +295 -0
- package/dist/solutions-components/component-edd2c3cd.js +30 -0
- package/dist/solutions-components/conditionalSlot-a395417e.js +60 -0
- package/dist/solutions-components/consent-manager.entry.js +2139 -0
- package/dist/solutions-components/create-feature.entry.js +259 -0
- package/dist/solutions-components/crowdsource-manager.entry.js +494 -0
- package/dist/solutions-components/crowdsource-reporter.entry.js +557 -0
- package/dist/solutions-components/cs-04f36d01.js +146 -0
- package/dist/solutions-components/da-5a3b8600.js +65 -0
- package/dist/solutions-components/date-74c7f03b.js +245 -0
- package/dist/solutions-components/de-579cda2e.js +90 -0
- package/dist/solutions-components/de-at-52bf1c4c.js +89 -0
- package/dist/solutions-components/de-ch-12d03480.js +89 -0
- package/dist/solutions-components/deduct-calculator.entry.js +101 -0
- package/dist/solutions-components/delete-button.entry.js +146 -0
- package/dist/solutions-components/dom-b91aa537.js +1083 -0
- package/dist/solutions-components/downloadUtils-b3220f86.js +4240 -0
- package/dist/solutions-components/edit-card.entry.js +224 -0
- package/dist/solutions-components/el-c18d3ea4.js +65 -0
- package/dist/solutions-components/en-au-2599e6da.js +65 -0
- package/dist/solutions-components/en-ca-8cfbe6bc.js +64 -0
- package/dist/solutions-components/en-gb-5e4e8a1e.js +68 -0
- package/dist/solutions-components/es-d86f9957.js +65 -0
- package/dist/solutions-components/es-mx-f99d9fd1.js +64 -0
- package/dist/solutions-components/esri-loader-af2bbfd5.js +306 -0
- package/dist/solutions-components/et-8bf52e57.js +91 -0
- package/dist/solutions-components/feature-comments.entry.js +56 -0
- package/dist/solutions-components/feature-form-flow-item.entry.js +56 -0
- package/dist/solutions-components/feature-list.entry.js +195 -0
- package/dist/solutions-components/features-flow-item.entry.js +56 -0
- package/dist/solutions-components/fi-aeb49e52.js +114 -0
- package/dist/solutions-components/filter-0d00d2e2.js +46 -0
- package/dist/solutions-components/floating-ui-b3256614.js +2342 -0
- package/dist/solutions-components/floor-filter.entry.js +107 -0
- package/dist/solutions-components/focusTrapComponent-2fe6623b.js +1023 -0
- package/dist/solutions-components/form-f2181470.js +307 -0
- package/dist/solutions-components/fr-6200cc01.js +67 -0
- package/dist/solutions-components/fr-ch-df62bb30.js +65 -0
- package/dist/solutions-components/guid-b75a5f7b.js +24 -0
- package/dist/solutions-components/he-07ace6cb.js +104 -0
- package/dist/solutions-components/helpers-85ca7251.js +807 -0
- package/dist/solutions-components/hi-5aa9519e.js +64 -0
- package/dist/solutions-components/hr-e0614bed.js +79 -0
- package/dist/solutions-components/html2canvas-d52e7c8d.js +7845 -0
- package/dist/solutions-components/hu-732fe37c.js +87 -0
- package/dist/solutions-components/id-0832fc24.js +65 -0
- package/dist/solutions-components/index-5110a27a.js +71 -0
- package/dist/solutions-components/index-7fc1cba9.js +41502 -0
- package/dist/solutions-components/index-91eeaf01.js +199 -0
- package/dist/solutions-components/index-a1e91462.js +2105 -0
- package/dist/solutions-components/index-b1fb529b.js +1956 -0
- package/dist/solutions-components/index-bdfaac50.js +4145 -0
- package/dist/solutions-components/index-d8ff08ed.js +204 -0
- package/dist/solutions-components/index.es-3db60115.js +11256 -0
- package/dist/solutions-components/index.esm.js +15 -0
- package/dist/solutions-components/info-card.entry.js +316 -0
- package/dist/solutions-components/instant-apps-ckeditor-wrapper.entry.js +121 -0
- package/dist/solutions-components/instant-apps-control-panel.entry.js +94 -0
- package/dist/solutions-components/instant-apps-export.entry.js +888 -0
- package/dist/solutions-components/instant-apps-filter-list.entry.js +1055 -0
- package/dist/solutions-components/instant-apps-header.entry.js +124 -0
- package/dist/solutions-components/instant-apps-interactive-legend-classic.entry.js +1604 -0
- package/dist/solutions-components/instant-apps-interactive-legend-count.entry.js +100 -0
- package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element-caption.entry.js +53 -0
- package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element.entry.js +52 -0
- package/dist/solutions-components/instant-apps-interactive-legend-layer-element-caption.entry.js +51 -0
- package/dist/solutions-components/instant-apps-interactive-legend-layer-element.entry.js +53 -0
- package/dist/solutions-components/instant-apps-interactive-legend-legend-element-caption.entry.js +100 -0
- package/dist/solutions-components/instant-apps-interactive-legend-legend-element.entry.js +61 -0
- package/dist/solutions-components/instant-apps-interactive-legend-relationship.entry.js +548 -0
- package/dist/solutions-components/instant-apps-interactive-legend.entry.js +112 -0
- package/dist/solutions-components/instant-apps-keyboard-shortcuts.entry.js +139 -0
- package/dist/solutions-components/instant-apps-landing-page.entry.js +114 -0
- package/dist/solutions-components/instant-apps-language-switcher.entry.js +173 -0
- package/dist/solutions-components/instant-apps-language-translator-item.entry.js +380 -0
- package/dist/solutions-components/instant-apps-language-translator-search.entry.js +101 -0
- package/dist/solutions-components/instant-apps-language-translator.entry.js +286 -0
- package/dist/solutions-components/instant-apps-measurement-tool.entry.js +135 -0
- package/dist/solutions-components/instant-apps-measurement.entry.js +66 -0
- package/dist/solutions-components/instant-apps-popover.entry.js +74 -0
- package/dist/solutions-components/instant-apps-popovers.entry.js +88 -0
- package/dist/solutions-components/instant-apps-scoreboard.entry.js +463 -0
- package/dist/solutions-components/instant-apps-social-share.entry.js +511 -0
- package/dist/solutions-components/instant-apps-splash.entry.js +144 -0
- package/dist/solutions-components/interactive-71585ecc.js +139 -0
- package/dist/solutions-components/interfaces-586e863c.js +80 -0
- package/dist/solutions-components/it-142bc820.js +65 -0
- package/dist/solutions-components/it-ch-1ad1f0ac.js +65 -0
- package/dist/solutions-components/ja-6a33e9d4.js +71 -0
- package/dist/solutions-components/json-editor.entry.js +402 -0
- package/dist/solutions-components/key-9a10d862.js +44 -0
- package/dist/solutions-components/ko-d61df01d.js +71 -0
- package/dist/solutions-components/label-16184ce7.js +179 -0
- package/dist/solutions-components/languageSwitcher-2a9037e5.js +55 -0
- package/dist/solutions-components/languageUtil-71a7a914.js +87 -0
- package/dist/solutions-components/layer-list.entry.js +203 -0
- package/dist/solutions-components/layer-table.entry.js +1483 -0
- package/dist/solutions-components/layout-manager.entry.js +91 -0
- package/dist/solutions-components/list-flow-item.entry.js +56 -0
- package/dist/solutions-components/loadModules-827c5581.js +28 -0
- package/dist/solutions-components/loadModules-acccbc1c.js +21 -0
- package/dist/solutions-components/loadable-aea90723.js +92 -0
- package/dist/solutions-components/locale-4cfbae3e.js +86 -0
- package/dist/solutions-components/locale-857f39cf.js +572 -0
- package/dist/solutions-components/locale-d9463a95.js +148 -0
- package/dist/solutions-components/location-flow-item.entry.js +56 -0
- package/dist/solutions-components/lodash-98e4b7d0.js +18025 -0
- package/dist/solutions-components/lt-652c530a.js +96 -0
- package/dist/solutions-components/lv-84e48ed0.js +65 -0
- package/dist/solutions-components/map-card.entry.js +188 -0
- package/dist/solutions-components/map-draw-tools.entry.js +354 -0
- package/dist/solutions-components/map-fullscreen.entry.js +112 -0
- package/dist/solutions-components/map-layer-picker.entry.js +342 -0
- package/dist/solutions-components/map-legend.entry.js +105 -0
- package/dist/solutions-components/map-picker.entry.js +170 -0
- package/dist/solutions-components/map-search.entry.js +180 -0
- package/dist/solutions-components/map-select-tools.entry.js +794 -0
- package/dist/solutions-components/map-tools.entry.js +371 -0
- package/dist/solutions-components/mapViewUtils-436a516e.js +261 -0
- package/dist/solutions-components/math-efada7a9.js +54 -0
- package/dist/solutions-components/mk-bbf2ee01.js +65 -0
- package/dist/solutions-components/mode-f9bfc4e9.js +25 -0
- package/dist/solutions-components/nb-ccfaa0f7.js +66 -0
- package/dist/solutions-components/nl-4bc56289.js +66 -0
- package/dist/solutions-components/observers-5ba39eee.js +56 -0
- package/dist/solutions-components/openCloseComponent-b4b3788b.js +138 -0
- package/dist/solutions-components/{p-a455c3f0.entry.js → p-00524417.entry.js} +1 -1
- package/dist/solutions-components/{p-52b37bad.entry.js → p-04dbc667.entry.js} +1 -1
- package/dist/solutions-components/{p-8e9f96db.js → p-12a7d0d1.js} +1 -1
- package/dist/solutions-components/{p-a7b7f8d1.js → p-15a0e7fb.js} +1 -1
- package/dist/solutions-components/p-2d72eac3.entry.js +6 -0
- package/dist/solutions-components/{p-a2544cba.entry.js → p-30edeb79.entry.js} +1 -1
- package/dist/solutions-components/{p-220c46c2.entry.js → p-3a6a1ce9.entry.js} +1 -1
- package/dist/solutions-components/{p-a59078ee.entry.js → p-3b9e4882.entry.js} +1 -1
- package/dist/solutions-components/{p-8ad937b4.entry.js → p-465aa7d9.entry.js} +1 -1
- package/dist/solutions-components/p-4dcc150d.entry.js +6 -0
- package/dist/solutions-components/{p-1bca71bf.entry.js → p-4efd2af6.entry.js} +1 -1
- package/dist/solutions-components/{p-5a28d60c.entry.js → p-5320dc25.entry.js} +1 -1
- package/dist/solutions-components/{p-015a45e2.entry.js → p-53ef8adf.entry.js} +1 -1
- package/dist/solutions-components/{p-0d72a9ca.entry.js → p-5f6e7429.entry.js} +1 -1
- package/dist/solutions-components/{p-0f427774.entry.js → p-607773a3.entry.js} +1 -1
- package/dist/solutions-components/{p-2e7a9b9b.entry.js → p-88932d2f.entry.js} +2 -2
- package/dist/solutions-components/{p-b41e2c4c.js → p-8910dc99.js} +10 -10
- package/dist/solutions-components/{p-104f07e3.entry.js → p-954dc86f.entry.js} +1 -1
- package/dist/solutions-components/{p-c302bbea.entry.js → p-a3132356.entry.js} +1 -1
- package/dist/solutions-components/{p-c10b44ee.entry.js → p-a886ab7f.entry.js} +1 -1
- package/dist/solutions-components/{p-03037cf9.js → p-ad98c346.js} +1 -1
- package/dist/solutions-components/{p-734d1dc5.js → p-b4913a01.js} +1 -1
- package/dist/solutions-components/{p-03a65871.entry.js → p-bf6b4eb7.entry.js} +1 -1
- package/dist/solutions-components/{p-09801ba6.entry.js → p-c4ff3b52.entry.js} +3 -3
- package/dist/solutions-components/p-d599cfa8.entry.js +6 -0
- package/dist/solutions-components/{p-cfe890f6.entry.js → p-f313b45b.entry.js} +1 -1
- package/dist/solutions-components/{p-aec4441b.entry.js → p-fc1367d9.entry.js} +1 -1
- package/dist/solutions-components/{p-07626c45.js → p-fc2fb61b.js} +1 -1
- package/dist/solutions-components/parser-87982ce2.js +1654 -0
- package/dist/solutions-components/pci-calculator.entry.js +113 -0
- package/dist/solutions-components/pciUtils-73d4b6b4.js +844 -0
- package/dist/solutions-components/pdf-download.entry.js +355 -0
- package/dist/solutions-components/pl-1f435988.js +113 -0
- package/dist/solutions-components/popupUtils-b61d7ffd.js +94 -0
- package/dist/solutions-components/pt-4a05a00d.js +66 -0
- package/dist/solutions-components/pt-br-9720547b.js +64 -0
- package/dist/solutions-components/public-notification.entry.js +886 -0
- package/dist/solutions-components/publicNotificationStore-208e26f0.js +45 -0
- package/dist/solutions-components/purify-909c20fa.js +1713 -0
- package/dist/solutions-components/queryUtils-2529c537.js +244 -0
- package/dist/solutions-components/refine-results-flow-item.entry.js +56 -0
- package/dist/solutions-components/refine-selection.entry.js +407 -0
- package/dist/solutions-components/resources-0f8db821.js +45 -0
- package/dist/solutions-components/resources-20074cb1.js +24 -0
- package/dist/solutions-components/resources-3709252d.js +35 -0
- package/dist/solutions-components/resources-3c6947d3.js +26 -0
- package/dist/solutions-components/resources-47b3ca40.js +106 -0
- package/dist/solutions-components/resources-667afb5d.js +27 -0
- package/dist/solutions-components/resources-88a48c5c.js +20 -0
- package/dist/solutions-components/resources-9b2084c6.js +24 -0
- package/dist/solutions-components/resources-9b7e72d5.js +20 -0
- package/dist/solutions-components/resources-b0e2b809.js +22 -0
- package/dist/solutions-components/resources-bb6c11c3.js +49 -0
- package/dist/solutions-components/ro-f87076a1.js +65 -0
- package/dist/solutions-components/ru-e69ca895.js +125 -0
- package/dist/solutions-components/shadow-css-f5236d52.js +481 -0
- package/dist/solutions-components/share-item.entry.js +56 -0
- package/dist/solutions-components/shared-list-render-a572ef93.js +348 -0
- package/dist/solutions-components/sk-d632e850.js +147 -0
- package/dist/solutions-components/sl-5099fa6f.js +167 -0
- package/dist/solutions-components/solution-configuration.entry.js +906 -0
- package/dist/solutions-components/solution-contents.entry.js +80 -0
- package/dist/solutions-components/solution-item-details.entry.js +195 -0
- package/dist/solutions-components/solution-item-icon.entry.js +323 -0
- package/dist/solutions-components/solution-item-sharing.entry.js +135 -0
- package/dist/solutions-components/solution-item.entry.js +102 -0
- package/dist/solutions-components/solution-organization-variables.entry.js +91 -0
- package/dist/solutions-components/solution-resource-item.entry.js +280 -0
- package/dist/solutions-components/solution-spatial-ref.entry.js +154 -0
- package/dist/solutions-components/solution-store-31cccb90.js +587 -0
- package/dist/solutions-components/solution-template-data.entry.js +115 -0
- package/dist/solutions-components/solution-variables.entry.js +103 -0
- package/dist/solutions-components/solutions-components.css +84 -1
- package/dist/solutions-components/solutions-components.esm.js +52 -1
- package/dist/solutions-components/sortableComponent-e715a3dd.js +3439 -0
- package/dist/solutions-components/spatial-ref.entry.js +21296 -0
- package/dist/solutions-components/sr-944b7fd7.js +100 -0
- package/dist/solutions-components/store-194c1a01.js +87 -0
- package/dist/solutions-components/store-manager.entry.js +61 -0
- package/dist/solutions-components/styles-367380b5.js +11 -0
- package/dist/solutions-components/sv-e481fa6a.js +70 -0
- package/dist/solutions-components/t9n-b39c5433.js +98 -0
- package/dist/solutions-components/th-60961669.js +64 -0
- package/dist/solutions-components/time-4a90614b.js +274 -0
- package/dist/solutions-components/tr-eba8dd86.js +65 -0
- package/dist/solutions-components/uk-ec375ce0.js +103 -0
- package/dist/solutions-components/utils/downloadUtils.ts +44 -5
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +40 -1
- package/dist/solutions-components/utils-32df4a1e.js +133 -0
- package/dist/solutions-components/utils-57e2ccde.js +61 -0
- package/dist/solutions-components/utils-7db4ecdc.js +100 -0
- package/dist/solutions-components/utils-95e9dd51.js +55 -0
- package/dist/solutions-components/utils-cfbe589a.js +208 -0
- package/dist/solutions-components/vi-29345f79.js +69 -0
- package/dist/solutions-components/zh-cn-32c7c714.js +93 -0
- package/dist/solutions-components/zh-hk-7c770845.js +70 -0
- package/dist/solutions-components/zh-tw-c318be5c.js +91 -0
- package/dist/types/utils/downloadUtils.d.ts +18 -4
- package/package.json +6 -6
- package/dist/solutions-components/p-7d6ee026.entry.js +0 -6
- package/dist/solutions-components/p-b80bc5b9.entry.js +0 -6
- package/dist/solutions-components/p-dd45738e.entry.js +0 -6
- /package/dist/solutions-components/{p-70359c2b.js → p-89218b6e.js} +0 -0
- /package/dist/solutions-components/{p-090e0241.js → p-e85ba21c.js} +0 -0
@@ -0,0 +1,1851 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { r as registerInstance, e as createEvent, h, a as Host, g as getElement } from './index-bdfaac50.js';
|
7
|
+
import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-f2181470.js';
|
8
|
+
import { g as guid } from './guid-b75a5f7b.js';
|
9
|
+
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction, I as InteractiveContainer } from './interactive-71585ecc.js';
|
10
|
+
import { n as numberKeys } from './key-9a10d862.js';
|
11
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-16184ce7.js';
|
12
|
+
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-aea90723.js';
|
13
|
+
import { n as numberStringFormatter, g as getSupportedLocale, c as connectLocalized, d as disconnectLocalized } from './locale-857f39cf.js';
|
14
|
+
import { d as deactivateFocusTrap, a as activateFocusTrap, c as connectFocusTrap } from './focusTrapComponent-2fe6623b.js';
|
15
|
+
import { l as localizeTimeString, t as toISOTimeString, i as isValidTime, f as formatTimeString, a as formatTimePart } from './time-4a90614b.js';
|
16
|
+
import { c as connectMessages, s as setUpMessages, d as disconnectMessages } from './t9n-b39c5433.js';
|
17
|
+
import { o as onToggleOpenCloseComponent } from './openCloseComponent-b4b3788b.js';
|
18
|
+
import { d as decimalPlaces } from './math-efada7a9.js';
|
19
|
+
import { g as getIconScale } from './component-edd2c3cd.js';
|
20
|
+
import { V as Validation } from './Validation-59a77488.js';
|
21
|
+
|
22
|
+
/*!
|
23
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
24
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
25
|
+
* v2.4.0
|
26
|
+
*/
|
27
|
+
const CSS = {
|
28
|
+
toggleIcon: "toggle-icon",
|
29
|
+
};
|
30
|
+
|
31
|
+
var SECONDS_A_MINUTE = 60;
|
32
|
+
var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
33
|
+
var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
34
|
+
var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
35
|
+
var MILLISECONDS_A_SECOND = 1e3;
|
36
|
+
var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
|
37
|
+
var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
38
|
+
var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
39
|
+
var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND; // English locales
|
40
|
+
|
41
|
+
var MS = 'millisecond';
|
42
|
+
var S = 'second';
|
43
|
+
var MIN = 'minute';
|
44
|
+
var H = 'hour';
|
45
|
+
var D = 'day';
|
46
|
+
var W = 'week';
|
47
|
+
var M = 'month';
|
48
|
+
var Q = 'quarter';
|
49
|
+
var Y = 'year';
|
50
|
+
var DATE = 'date';
|
51
|
+
var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
|
52
|
+
var INVALID_DATE_STRING = 'Invalid Date'; // regex
|
53
|
+
|
54
|
+
var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
|
55
|
+
var REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
|
56
|
+
|
57
|
+
// English [en]
|
58
|
+
// We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale
|
59
|
+
const en = {
|
60
|
+
name: 'en',
|
61
|
+
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
62
|
+
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
63
|
+
ordinal: function ordinal(n) {
|
64
|
+
var s = ['th', 'st', 'nd', 'rd'];
|
65
|
+
var v = n % 100;
|
66
|
+
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
67
|
+
}
|
68
|
+
};
|
69
|
+
|
70
|
+
const en$1 = /*#__PURE__*/Object.freeze({
|
71
|
+
__proto__: null,
|
72
|
+
'default': en
|
73
|
+
});
|
74
|
+
|
75
|
+
var padStart = function padStart(string, length, pad) {
|
76
|
+
var s = String(string);
|
77
|
+
if (!s || s.length >= length) return string;
|
78
|
+
return "" + Array(length + 1 - s.length).join(pad) + string;
|
79
|
+
};
|
80
|
+
|
81
|
+
var padZoneStr = function padZoneStr(instance) {
|
82
|
+
var negMinutes = -instance.utcOffset();
|
83
|
+
var minutes = Math.abs(negMinutes);
|
84
|
+
var hourOffset = Math.floor(minutes / 60);
|
85
|
+
var minuteOffset = minutes % 60;
|
86
|
+
return "" + (negMinutes <= 0 ? '+' : '-') + padStart(hourOffset, 2, '0') + ":" + padStart(minuteOffset, 2, '0');
|
87
|
+
};
|
88
|
+
|
89
|
+
var monthDiff = function monthDiff(a, b) {
|
90
|
+
// function from moment.js in order to keep the same result
|
91
|
+
if (a.date() < b.date()) return -monthDiff(b, a);
|
92
|
+
var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
|
93
|
+
var anchor = a.clone().add(wholeMonthDiff, M);
|
94
|
+
var c = b - anchor < 0;
|
95
|
+
var anchor2 = a.clone().add(wholeMonthDiff + (c ? -1 : 1), M);
|
96
|
+
return +(-(wholeMonthDiff + (b - anchor) / (c ? anchor - anchor2 : anchor2 - anchor)) || 0);
|
97
|
+
};
|
98
|
+
|
99
|
+
var absFloor = function absFloor(n) {
|
100
|
+
return n < 0 ? Math.ceil(n) || 0 : Math.floor(n);
|
101
|
+
};
|
102
|
+
|
103
|
+
var prettyUnit = function prettyUnit(u) {
|
104
|
+
var special = {
|
105
|
+
M: M,
|
106
|
+
y: Y,
|
107
|
+
w: W,
|
108
|
+
d: D,
|
109
|
+
D: DATE,
|
110
|
+
h: H,
|
111
|
+
m: MIN,
|
112
|
+
s: S,
|
113
|
+
ms: MS,
|
114
|
+
Q: Q
|
115
|
+
};
|
116
|
+
return special[u] || String(u || '').toLowerCase().replace(/s$/, '');
|
117
|
+
};
|
118
|
+
|
119
|
+
var isUndefined = function isUndefined(s) {
|
120
|
+
return s === undefined;
|
121
|
+
};
|
122
|
+
|
123
|
+
const U = {
|
124
|
+
s: padStart,
|
125
|
+
z: padZoneStr,
|
126
|
+
m: monthDiff,
|
127
|
+
a: absFloor,
|
128
|
+
p: prettyUnit,
|
129
|
+
u: isUndefined
|
130
|
+
};
|
131
|
+
|
132
|
+
var L = 'en'; // global locale
|
133
|
+
|
134
|
+
var Ls = {}; // global loaded locale
|
135
|
+
|
136
|
+
Ls[L] = en;
|
137
|
+
var IS_DAYJS = '$isDayjsObject'; // eslint-disable-next-line no-use-before-define
|
138
|
+
|
139
|
+
var isDayjs = function isDayjs(d) {
|
140
|
+
return d instanceof Dayjs || !!(d && d[IS_DAYJS]);
|
141
|
+
};
|
142
|
+
|
143
|
+
var parseLocale = function parseLocale(preset, object, isLocal) {
|
144
|
+
var l;
|
145
|
+
if (!preset) return L;
|
146
|
+
|
147
|
+
if (typeof preset === 'string') {
|
148
|
+
var presetLower = preset.toLowerCase();
|
149
|
+
|
150
|
+
if (Ls[presetLower]) {
|
151
|
+
l = presetLower;
|
152
|
+
}
|
153
|
+
|
154
|
+
if (object) {
|
155
|
+
Ls[presetLower] = object;
|
156
|
+
l = presetLower;
|
157
|
+
}
|
158
|
+
|
159
|
+
var presetSplit = preset.split('-');
|
160
|
+
|
161
|
+
if (!l && presetSplit.length > 1) {
|
162
|
+
return parseLocale(presetSplit[0]);
|
163
|
+
}
|
164
|
+
} else {
|
165
|
+
var name = preset.name;
|
166
|
+
Ls[name] = preset;
|
167
|
+
l = name;
|
168
|
+
}
|
169
|
+
|
170
|
+
if (!isLocal && l) L = l;
|
171
|
+
return l || !isLocal && L;
|
172
|
+
};
|
173
|
+
|
174
|
+
var dayjs = function dayjs(date, c) {
|
175
|
+
if (isDayjs(date)) {
|
176
|
+
return date.clone();
|
177
|
+
} // eslint-disable-next-line no-nested-ternary
|
178
|
+
|
179
|
+
|
180
|
+
var cfg = typeof c === 'object' ? c : {};
|
181
|
+
cfg.date = date;
|
182
|
+
cfg.args = arguments; // eslint-disable-line prefer-rest-params
|
183
|
+
|
184
|
+
return new Dayjs(cfg); // eslint-disable-line no-use-before-define
|
185
|
+
};
|
186
|
+
|
187
|
+
var wrapper = function wrapper(date, instance) {
|
188
|
+
return dayjs(date, {
|
189
|
+
locale: instance.$L,
|
190
|
+
utc: instance.$u,
|
191
|
+
x: instance.$x,
|
192
|
+
$offset: instance.$offset // todo: refactor; do not use this.$offset in you code
|
193
|
+
|
194
|
+
});
|
195
|
+
};
|
196
|
+
|
197
|
+
var Utils = U; // for plugin use
|
198
|
+
|
199
|
+
Utils.l = parseLocale;
|
200
|
+
Utils.i = isDayjs;
|
201
|
+
Utils.w = wrapper;
|
202
|
+
|
203
|
+
var parseDate = function parseDate(cfg) {
|
204
|
+
var date = cfg.date,
|
205
|
+
utc = cfg.utc;
|
206
|
+
if (date === null) return new Date(NaN); // null is invalid
|
207
|
+
|
208
|
+
if (Utils.u(date)) return new Date(); // today
|
209
|
+
|
210
|
+
if (date instanceof Date) return new Date(date);
|
211
|
+
|
212
|
+
if (typeof date === 'string' && !/Z$/i.test(date)) {
|
213
|
+
var d = date.match(REGEX_PARSE);
|
214
|
+
|
215
|
+
if (d) {
|
216
|
+
var m = d[2] - 1 || 0;
|
217
|
+
var ms = (d[7] || '0').substring(0, 3);
|
218
|
+
|
219
|
+
if (utc) {
|
220
|
+
return new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms));
|
221
|
+
}
|
222
|
+
|
223
|
+
return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
return new Date(date); // everything else
|
228
|
+
};
|
229
|
+
|
230
|
+
var Dayjs = /*#__PURE__*/function () {
|
231
|
+
function Dayjs(cfg) {
|
232
|
+
this.$L = parseLocale(cfg.locale, null, true);
|
233
|
+
this.parse(cfg); // for plugin
|
234
|
+
|
235
|
+
this.$x = this.$x || cfg.x || {};
|
236
|
+
this[IS_DAYJS] = true;
|
237
|
+
}
|
238
|
+
|
239
|
+
var _proto = Dayjs.prototype;
|
240
|
+
|
241
|
+
_proto.parse = function parse(cfg) {
|
242
|
+
this.$d = parseDate(cfg);
|
243
|
+
this.init();
|
244
|
+
};
|
245
|
+
|
246
|
+
_proto.init = function init() {
|
247
|
+
var $d = this.$d;
|
248
|
+
this.$y = $d.getFullYear();
|
249
|
+
this.$M = $d.getMonth();
|
250
|
+
this.$D = $d.getDate();
|
251
|
+
this.$W = $d.getDay();
|
252
|
+
this.$H = $d.getHours();
|
253
|
+
this.$m = $d.getMinutes();
|
254
|
+
this.$s = $d.getSeconds();
|
255
|
+
this.$ms = $d.getMilliseconds();
|
256
|
+
} // eslint-disable-next-line class-methods-use-this
|
257
|
+
;
|
258
|
+
|
259
|
+
_proto.$utils = function $utils() {
|
260
|
+
return Utils;
|
261
|
+
};
|
262
|
+
|
263
|
+
_proto.isValid = function isValid() {
|
264
|
+
return !(this.$d.toString() === INVALID_DATE_STRING);
|
265
|
+
};
|
266
|
+
|
267
|
+
_proto.isSame = function isSame(that, units) {
|
268
|
+
var other = dayjs(that);
|
269
|
+
return this.startOf(units) <= other && other <= this.endOf(units);
|
270
|
+
};
|
271
|
+
|
272
|
+
_proto.isAfter = function isAfter(that, units) {
|
273
|
+
return dayjs(that) < this.startOf(units);
|
274
|
+
};
|
275
|
+
|
276
|
+
_proto.isBefore = function isBefore(that, units) {
|
277
|
+
return this.endOf(units) < dayjs(that);
|
278
|
+
};
|
279
|
+
|
280
|
+
_proto.$g = function $g(input, get, set) {
|
281
|
+
if (Utils.u(input)) return this[get];
|
282
|
+
return this.set(set, input);
|
283
|
+
};
|
284
|
+
|
285
|
+
_proto.unix = function unix() {
|
286
|
+
return Math.floor(this.valueOf() / 1000);
|
287
|
+
};
|
288
|
+
|
289
|
+
_proto.valueOf = function valueOf() {
|
290
|
+
// timezone(hour) * 60 * 60 * 1000 => ms
|
291
|
+
return this.$d.getTime();
|
292
|
+
};
|
293
|
+
|
294
|
+
_proto.startOf = function startOf(units, _startOf) {
|
295
|
+
var _this = this;
|
296
|
+
|
297
|
+
// startOf -> endOf
|
298
|
+
var isStartOf = !Utils.u(_startOf) ? _startOf : true;
|
299
|
+
var unit = Utils.p(units);
|
300
|
+
|
301
|
+
var instanceFactory = function instanceFactory(d, m) {
|
302
|
+
var ins = Utils.w(_this.$u ? Date.UTC(_this.$y, m, d) : new Date(_this.$y, m, d), _this);
|
303
|
+
return isStartOf ? ins : ins.endOf(D);
|
304
|
+
};
|
305
|
+
|
306
|
+
var instanceFactorySet = function instanceFactorySet(method, slice) {
|
307
|
+
var argumentStart = [0, 0, 0, 0];
|
308
|
+
var argumentEnd = [23, 59, 59, 999];
|
309
|
+
return Utils.w(_this.toDate()[method].apply( // eslint-disable-line prefer-spread
|
310
|
+
_this.toDate('s'), (isStartOf ? argumentStart : argumentEnd).slice(slice)), _this);
|
311
|
+
};
|
312
|
+
|
313
|
+
var $W = this.$W,
|
314
|
+
$M = this.$M,
|
315
|
+
$D = this.$D;
|
316
|
+
var utcPad = "set" + (this.$u ? 'UTC' : '');
|
317
|
+
|
318
|
+
switch (unit) {
|
319
|
+
case Y:
|
320
|
+
return isStartOf ? instanceFactory(1, 0) : instanceFactory(31, 11);
|
321
|
+
|
322
|
+
case M:
|
323
|
+
return isStartOf ? instanceFactory(1, $M) : instanceFactory(0, $M + 1);
|
324
|
+
|
325
|
+
case W:
|
326
|
+
{
|
327
|
+
var weekStart = this.$locale().weekStart || 0;
|
328
|
+
var gap = ($W < weekStart ? $W + 7 : $W) - weekStart;
|
329
|
+
return instanceFactory(isStartOf ? $D - gap : $D + (6 - gap), $M);
|
330
|
+
}
|
331
|
+
|
332
|
+
case D:
|
333
|
+
case DATE:
|
334
|
+
return instanceFactorySet(utcPad + "Hours", 0);
|
335
|
+
|
336
|
+
case H:
|
337
|
+
return instanceFactorySet(utcPad + "Minutes", 1);
|
338
|
+
|
339
|
+
case MIN:
|
340
|
+
return instanceFactorySet(utcPad + "Seconds", 2);
|
341
|
+
|
342
|
+
case S:
|
343
|
+
return instanceFactorySet(utcPad + "Milliseconds", 3);
|
344
|
+
|
345
|
+
default:
|
346
|
+
return this.clone();
|
347
|
+
}
|
348
|
+
};
|
349
|
+
|
350
|
+
_proto.endOf = function endOf(arg) {
|
351
|
+
return this.startOf(arg, false);
|
352
|
+
};
|
353
|
+
|
354
|
+
_proto.$set = function $set(units, _int) {
|
355
|
+
var _C$D$C$DATE$C$M$C$Y$C;
|
356
|
+
|
357
|
+
// private set
|
358
|
+
var unit = Utils.p(units);
|
359
|
+
var utcPad = "set" + (this.$u ? 'UTC' : '');
|
360
|
+
var name = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[MIN] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
|
361
|
+
var arg = unit === D ? this.$D + (_int - this.$W) : _int;
|
362
|
+
|
363
|
+
if (unit === M || unit === Y) {
|
364
|
+
// clone is for badMutable plugin
|
365
|
+
var date = this.clone().set(DATE, 1);
|
366
|
+
date.$d[name](arg);
|
367
|
+
date.init();
|
368
|
+
this.$d = date.set(DATE, Math.min(this.$D, date.daysInMonth())).$d;
|
369
|
+
} else if (name) this.$d[name](arg);
|
370
|
+
|
371
|
+
this.init();
|
372
|
+
return this;
|
373
|
+
};
|
374
|
+
|
375
|
+
_proto.set = function set(string, _int2) {
|
376
|
+
return this.clone().$set(string, _int2);
|
377
|
+
};
|
378
|
+
|
379
|
+
_proto.get = function get(unit) {
|
380
|
+
return this[Utils.p(unit)]();
|
381
|
+
};
|
382
|
+
|
383
|
+
_proto.add = function add(number, units) {
|
384
|
+
var _this2 = this,
|
385
|
+
_C$MIN$C$H$C$S$unit;
|
386
|
+
|
387
|
+
number = Number(number); // eslint-disable-line no-param-reassign
|
388
|
+
|
389
|
+
var unit = Utils.p(units);
|
390
|
+
|
391
|
+
var instanceFactorySet = function instanceFactorySet(n) {
|
392
|
+
var d = dayjs(_this2);
|
393
|
+
return Utils.w(d.date(d.date() + Math.round(n * number)), _this2);
|
394
|
+
};
|
395
|
+
|
396
|
+
if (unit === M) {
|
397
|
+
return this.set(M, this.$M + number);
|
398
|
+
}
|
399
|
+
|
400
|
+
if (unit === Y) {
|
401
|
+
return this.set(Y, this.$y + number);
|
402
|
+
}
|
403
|
+
|
404
|
+
if (unit === D) {
|
405
|
+
return instanceFactorySet(1);
|
406
|
+
}
|
407
|
+
|
408
|
+
if (unit === W) {
|
409
|
+
return instanceFactorySet(7);
|
410
|
+
}
|
411
|
+
|
412
|
+
var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[MIN] = MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[H] = MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[S] = MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1; // ms
|
413
|
+
|
414
|
+
var nextTimeStamp = this.$d.getTime() + number * step;
|
415
|
+
return Utils.w(nextTimeStamp, this);
|
416
|
+
};
|
417
|
+
|
418
|
+
_proto.subtract = function subtract(number, string) {
|
419
|
+
return this.add(number * -1, string);
|
420
|
+
};
|
421
|
+
|
422
|
+
_proto.format = function format(formatStr) {
|
423
|
+
var _this3 = this;
|
424
|
+
|
425
|
+
var locale = this.$locale();
|
426
|
+
if (!this.isValid()) return locale.invalidDate || INVALID_DATE_STRING;
|
427
|
+
var str = formatStr || FORMAT_DEFAULT;
|
428
|
+
var zoneStr = Utils.z(this);
|
429
|
+
var $H = this.$H,
|
430
|
+
$m = this.$m,
|
431
|
+
$M = this.$M;
|
432
|
+
var weekdays = locale.weekdays,
|
433
|
+
months = locale.months,
|
434
|
+
meridiem = locale.meridiem;
|
435
|
+
|
436
|
+
var getShort = function getShort(arr, index, full, length) {
|
437
|
+
return arr && (arr[index] || arr(_this3, str)) || full[index].slice(0, length);
|
438
|
+
};
|
439
|
+
|
440
|
+
var get$H = function get$H(num) {
|
441
|
+
return Utils.s($H % 12 || 12, num, '0');
|
442
|
+
};
|
443
|
+
|
444
|
+
var meridiemFunc = meridiem || function (hour, minute, isLowercase) {
|
445
|
+
var m = hour < 12 ? 'AM' : 'PM';
|
446
|
+
return isLowercase ? m.toLowerCase() : m;
|
447
|
+
};
|
448
|
+
|
449
|
+
var matches = function matches(match) {
|
450
|
+
switch (match) {
|
451
|
+
case 'YY':
|
452
|
+
return String(_this3.$y).slice(-2);
|
453
|
+
|
454
|
+
case 'YYYY':
|
455
|
+
return Utils.s(_this3.$y, 4, '0');
|
456
|
+
|
457
|
+
case 'M':
|
458
|
+
return $M + 1;
|
459
|
+
|
460
|
+
case 'MM':
|
461
|
+
return Utils.s($M + 1, 2, '0');
|
462
|
+
|
463
|
+
case 'MMM':
|
464
|
+
return getShort(locale.monthsShort, $M, months, 3);
|
465
|
+
|
466
|
+
case 'MMMM':
|
467
|
+
return getShort(months, $M);
|
468
|
+
|
469
|
+
case 'D':
|
470
|
+
return _this3.$D;
|
471
|
+
|
472
|
+
case 'DD':
|
473
|
+
return Utils.s(_this3.$D, 2, '0');
|
474
|
+
|
475
|
+
case 'd':
|
476
|
+
return String(_this3.$W);
|
477
|
+
|
478
|
+
case 'dd':
|
479
|
+
return getShort(locale.weekdaysMin, _this3.$W, weekdays, 2);
|
480
|
+
|
481
|
+
case 'ddd':
|
482
|
+
return getShort(locale.weekdaysShort, _this3.$W, weekdays, 3);
|
483
|
+
|
484
|
+
case 'dddd':
|
485
|
+
return weekdays[_this3.$W];
|
486
|
+
|
487
|
+
case 'H':
|
488
|
+
return String($H);
|
489
|
+
|
490
|
+
case 'HH':
|
491
|
+
return Utils.s($H, 2, '0');
|
492
|
+
|
493
|
+
case 'h':
|
494
|
+
return get$H(1);
|
495
|
+
|
496
|
+
case 'hh':
|
497
|
+
return get$H(2);
|
498
|
+
|
499
|
+
case 'a':
|
500
|
+
return meridiemFunc($H, $m, true);
|
501
|
+
|
502
|
+
case 'A':
|
503
|
+
return meridiemFunc($H, $m, false);
|
504
|
+
|
505
|
+
case 'm':
|
506
|
+
return String($m);
|
507
|
+
|
508
|
+
case 'mm':
|
509
|
+
return Utils.s($m, 2, '0');
|
510
|
+
|
511
|
+
case 's':
|
512
|
+
return String(_this3.$s);
|
513
|
+
|
514
|
+
case 'ss':
|
515
|
+
return Utils.s(_this3.$s, 2, '0');
|
516
|
+
|
517
|
+
case 'SSS':
|
518
|
+
return Utils.s(_this3.$ms, 3, '0');
|
519
|
+
|
520
|
+
case 'Z':
|
521
|
+
return zoneStr;
|
522
|
+
// 'ZZ' logic below
|
523
|
+
|
524
|
+
default:
|
525
|
+
break;
|
526
|
+
}
|
527
|
+
|
528
|
+
return null;
|
529
|
+
};
|
530
|
+
|
531
|
+
return str.replace(REGEX_FORMAT, function (match, $1) {
|
532
|
+
return $1 || matches(match) || zoneStr.replace(':', '');
|
533
|
+
}); // 'ZZ'
|
534
|
+
};
|
535
|
+
|
536
|
+
_proto.utcOffset = function utcOffset() {
|
537
|
+
// Because a bug at FF24, we're rounding the timezone offset around 15 minutes
|
538
|
+
// https://github.com/moment/moment/pull/1871
|
539
|
+
return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
|
540
|
+
};
|
541
|
+
|
542
|
+
_proto.diff = function diff(input, units, _float) {
|
543
|
+
var _this4 = this;
|
544
|
+
|
545
|
+
var unit = Utils.p(units);
|
546
|
+
var that = dayjs(input);
|
547
|
+
var zoneDelta = (that.utcOffset() - this.utcOffset()) * MILLISECONDS_A_MINUTE;
|
548
|
+
var diff = this - that;
|
549
|
+
|
550
|
+
var getMonth = function getMonth() {
|
551
|
+
return Utils.m(_this4, that);
|
552
|
+
};
|
553
|
+
|
554
|
+
var result;
|
555
|
+
|
556
|
+
switch (unit) {
|
557
|
+
case Y:
|
558
|
+
result = getMonth() / 12;
|
559
|
+
break;
|
560
|
+
|
561
|
+
case M:
|
562
|
+
result = getMonth();
|
563
|
+
break;
|
564
|
+
|
565
|
+
case Q:
|
566
|
+
result = getMonth() / 3;
|
567
|
+
break;
|
568
|
+
|
569
|
+
case W:
|
570
|
+
result = (diff - zoneDelta) / MILLISECONDS_A_WEEK;
|
571
|
+
break;
|
572
|
+
|
573
|
+
case D:
|
574
|
+
result = (diff - zoneDelta) / MILLISECONDS_A_DAY;
|
575
|
+
break;
|
576
|
+
|
577
|
+
case H:
|
578
|
+
result = diff / MILLISECONDS_A_HOUR;
|
579
|
+
break;
|
580
|
+
|
581
|
+
case MIN:
|
582
|
+
result = diff / MILLISECONDS_A_MINUTE;
|
583
|
+
break;
|
584
|
+
|
585
|
+
case S:
|
586
|
+
result = diff / MILLISECONDS_A_SECOND;
|
587
|
+
break;
|
588
|
+
|
589
|
+
default:
|
590
|
+
result = diff; // milliseconds
|
591
|
+
|
592
|
+
break;
|
593
|
+
}
|
594
|
+
|
595
|
+
return _float ? result : Utils.a(result);
|
596
|
+
};
|
597
|
+
|
598
|
+
_proto.daysInMonth = function daysInMonth() {
|
599
|
+
return this.endOf(M).$D;
|
600
|
+
};
|
601
|
+
|
602
|
+
_proto.$locale = function $locale() {
|
603
|
+
// get locale object
|
604
|
+
return Ls[this.$L];
|
605
|
+
};
|
606
|
+
|
607
|
+
_proto.locale = function locale(preset, object) {
|
608
|
+
if (!preset) return this.$L;
|
609
|
+
var that = this.clone();
|
610
|
+
var nextLocaleName = parseLocale(preset, object, true);
|
611
|
+
if (nextLocaleName) that.$L = nextLocaleName;
|
612
|
+
return that;
|
613
|
+
};
|
614
|
+
|
615
|
+
_proto.clone = function clone() {
|
616
|
+
return Utils.w(this.$d, this);
|
617
|
+
};
|
618
|
+
|
619
|
+
_proto.toDate = function toDate() {
|
620
|
+
return new Date(this.valueOf());
|
621
|
+
};
|
622
|
+
|
623
|
+
_proto.toJSON = function toJSON() {
|
624
|
+
return this.isValid() ? this.toISOString() : null;
|
625
|
+
};
|
626
|
+
|
627
|
+
_proto.toISOString = function toISOString() {
|
628
|
+
// ie 8 return
|
629
|
+
// new Dayjs(this.valueOf() + this.$d.getTimezoneOffset() * 60000)
|
630
|
+
// .format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
|
631
|
+
return this.$d.toISOString();
|
632
|
+
};
|
633
|
+
|
634
|
+
_proto.toString = function toString() {
|
635
|
+
return this.$d.toUTCString();
|
636
|
+
};
|
637
|
+
|
638
|
+
return Dayjs;
|
639
|
+
}();
|
640
|
+
|
641
|
+
var proto = Dayjs.prototype;
|
642
|
+
dayjs.prototype = proto;
|
643
|
+
[['$ms', MS], ['$s', S], ['$m', MIN], ['$H', H], ['$W', D], ['$M', M], ['$y', Y], ['$D', DATE]].forEach(function (g) {
|
644
|
+
proto[g[1]] = function (input) {
|
645
|
+
return this.$g(input, g[0], g[1]);
|
646
|
+
};
|
647
|
+
});
|
648
|
+
|
649
|
+
dayjs.extend = function (plugin, option) {
|
650
|
+
if (!plugin.$i) {
|
651
|
+
// install plugin only once
|
652
|
+
plugin(option, Dayjs, dayjs);
|
653
|
+
plugin.$i = true;
|
654
|
+
}
|
655
|
+
|
656
|
+
return dayjs;
|
657
|
+
};
|
658
|
+
|
659
|
+
dayjs.locale = parseLocale;
|
660
|
+
dayjs.isDayjs = isDayjs;
|
661
|
+
|
662
|
+
dayjs.unix = function (timestamp) {
|
663
|
+
return dayjs(timestamp * 1e3);
|
664
|
+
};
|
665
|
+
|
666
|
+
dayjs.en = Ls[L];
|
667
|
+
dayjs.Ls = Ls;
|
668
|
+
dayjs.p = {};
|
669
|
+
|
670
|
+
// eslint-disable-next-line import/prefer-default-export
|
671
|
+
var t = function t(format) {
|
672
|
+
return format.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function (_, a, b) {
|
673
|
+
return a || b.slice(1);
|
674
|
+
});
|
675
|
+
};
|
676
|
+
var englishFormats = {
|
677
|
+
LTS: 'h:mm:ss A',
|
678
|
+
LT: 'h:mm A',
|
679
|
+
L: 'MM/DD/YYYY',
|
680
|
+
LL: 'MMMM D, YYYY',
|
681
|
+
LLL: 'MMMM D, YYYY h:mm A',
|
682
|
+
LLLL: 'dddd, MMMM D, YYYY h:mm A'
|
683
|
+
};
|
684
|
+
var u = function u(formatStr, formats) {
|
685
|
+
return formatStr.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function (_, a, b) {
|
686
|
+
var B = b && b.toUpperCase();
|
687
|
+
return a || formats[b] || englishFormats[b] || t(formats[B]);
|
688
|
+
});
|
689
|
+
};
|
690
|
+
|
691
|
+
var formattingTokens = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g;
|
692
|
+
var match1 = /\d/; // 0 - 9
|
693
|
+
|
694
|
+
var match2 = /\d\d/; // 00 - 99
|
695
|
+
|
696
|
+
var match3 = /\d{3}/; // 000 - 999
|
697
|
+
|
698
|
+
var match4 = /\d{4}/; // 0000 - 9999
|
699
|
+
|
700
|
+
var match1to2 = /\d\d?/; // 0 - 99
|
701
|
+
|
702
|
+
var matchSigned = /[+-]?\d+/; // -inf - inf
|
703
|
+
|
704
|
+
var matchOffset = /[+-]\d\d:?(\d\d)?|Z/; // +00:00 -00:00 +0000 or -0000 +00 or Z
|
705
|
+
|
706
|
+
var matchWord = /\d*[^-_:/,()\s\d]+/; // Word
|
707
|
+
|
708
|
+
var locale = {};
|
709
|
+
|
710
|
+
var parseTwoDigitYear = function parseTwoDigitYear(input) {
|
711
|
+
input = +input;
|
712
|
+
return input + (input > 68 ? 1900 : 2000);
|
713
|
+
};
|
714
|
+
|
715
|
+
function offsetFromString(string) {
|
716
|
+
if (!string) return 0;
|
717
|
+
if (string === 'Z') return 0;
|
718
|
+
var parts = string.match(/([+-]|\d\d)/g);
|
719
|
+
var minutes = +(parts[1] * 60) + (+parts[2] || 0);
|
720
|
+
return minutes === 0 ? 0 : parts[0] === '+' ? -minutes : minutes; // eslint-disable-line no-nested-ternary
|
721
|
+
}
|
722
|
+
|
723
|
+
var addInput = function addInput(property) {
|
724
|
+
return function (input) {
|
725
|
+
this[property] = +input;
|
726
|
+
};
|
727
|
+
};
|
728
|
+
|
729
|
+
var zoneExpressions = [matchOffset, function (input) {
|
730
|
+
var zone = this.zone || (this.zone = {});
|
731
|
+
zone.offset = offsetFromString(input);
|
732
|
+
}];
|
733
|
+
|
734
|
+
var getLocalePart = function getLocalePart(name) {
|
735
|
+
var part = locale[name];
|
736
|
+
return part && (part.indexOf ? part : part.s.concat(part.f));
|
737
|
+
};
|
738
|
+
|
739
|
+
var meridiemMatch = function meridiemMatch(input, isLowerCase) {
|
740
|
+
var isAfternoon;
|
741
|
+
var _locale = locale,
|
742
|
+
meridiem = _locale.meridiem;
|
743
|
+
|
744
|
+
if (!meridiem) {
|
745
|
+
isAfternoon = input === (isLowerCase ? 'pm' : 'PM');
|
746
|
+
} else {
|
747
|
+
for (var i = 1; i <= 24; i += 1) {
|
748
|
+
// todo: fix input === meridiem(i, 0, isLowerCase)
|
749
|
+
if (input.indexOf(meridiem(i, 0, isLowerCase)) > -1) {
|
750
|
+
isAfternoon = i > 12;
|
751
|
+
break;
|
752
|
+
}
|
753
|
+
}
|
754
|
+
}
|
755
|
+
|
756
|
+
return isAfternoon;
|
757
|
+
};
|
758
|
+
|
759
|
+
var expressions = {
|
760
|
+
A: [matchWord, function (input) {
|
761
|
+
this.afternoon = meridiemMatch(input, false);
|
762
|
+
}],
|
763
|
+
a: [matchWord, function (input) {
|
764
|
+
this.afternoon = meridiemMatch(input, true);
|
765
|
+
}],
|
766
|
+
S: [match1, function (input) {
|
767
|
+
this.milliseconds = +input * 100;
|
768
|
+
}],
|
769
|
+
SS: [match2, function (input) {
|
770
|
+
this.milliseconds = +input * 10;
|
771
|
+
}],
|
772
|
+
SSS: [match3, function (input) {
|
773
|
+
this.milliseconds = +input;
|
774
|
+
}],
|
775
|
+
s: [match1to2, addInput('seconds')],
|
776
|
+
ss: [match1to2, addInput('seconds')],
|
777
|
+
m: [match1to2, addInput('minutes')],
|
778
|
+
mm: [match1to2, addInput('minutes')],
|
779
|
+
H: [match1to2, addInput('hours')],
|
780
|
+
h: [match1to2, addInput('hours')],
|
781
|
+
HH: [match1to2, addInput('hours')],
|
782
|
+
hh: [match1to2, addInput('hours')],
|
783
|
+
D: [match1to2, addInput('day')],
|
784
|
+
DD: [match2, addInput('day')],
|
785
|
+
Do: [matchWord, function (input) {
|
786
|
+
var _locale2 = locale,
|
787
|
+
ordinal = _locale2.ordinal;
|
788
|
+
|
789
|
+
var _input$match = input.match(/\d+/);
|
790
|
+
|
791
|
+
this.day = _input$match[0];
|
792
|
+
if (!ordinal) return;
|
793
|
+
|
794
|
+
for (var i = 1; i <= 31; i += 1) {
|
795
|
+
if (ordinal(i).replace(/\[|\]/g, '') === input) {
|
796
|
+
this.day = i;
|
797
|
+
}
|
798
|
+
}
|
799
|
+
}],
|
800
|
+
M: [match1to2, addInput('month')],
|
801
|
+
MM: [match2, addInput('month')],
|
802
|
+
MMM: [matchWord, function (input) {
|
803
|
+
var months = getLocalePart('months');
|
804
|
+
var monthsShort = getLocalePart('monthsShort');
|
805
|
+
var matchIndex = (monthsShort || months.map(function (_) {
|
806
|
+
return _.slice(0, 3);
|
807
|
+
})).indexOf(input) + 1;
|
808
|
+
|
809
|
+
if (matchIndex < 1) {
|
810
|
+
throw new Error();
|
811
|
+
}
|
812
|
+
|
813
|
+
this.month = matchIndex % 12 || matchIndex;
|
814
|
+
}],
|
815
|
+
MMMM: [matchWord, function (input) {
|
816
|
+
var months = getLocalePart('months');
|
817
|
+
var matchIndex = months.indexOf(input) + 1;
|
818
|
+
|
819
|
+
if (matchIndex < 1) {
|
820
|
+
throw new Error();
|
821
|
+
}
|
822
|
+
|
823
|
+
this.month = matchIndex % 12 || matchIndex;
|
824
|
+
}],
|
825
|
+
Y: [matchSigned, addInput('year')],
|
826
|
+
YY: [match2, function (input) {
|
827
|
+
this.year = parseTwoDigitYear(input);
|
828
|
+
}],
|
829
|
+
YYYY: [match4, addInput('year')],
|
830
|
+
Z: zoneExpressions,
|
831
|
+
ZZ: zoneExpressions
|
832
|
+
};
|
833
|
+
|
834
|
+
function correctHours(time) {
|
835
|
+
var afternoon = time.afternoon;
|
836
|
+
|
837
|
+
if (afternoon !== undefined) {
|
838
|
+
var hours = time.hours;
|
839
|
+
|
840
|
+
if (afternoon) {
|
841
|
+
if (hours < 12) {
|
842
|
+
time.hours += 12;
|
843
|
+
}
|
844
|
+
} else if (hours === 12) {
|
845
|
+
time.hours = 0;
|
846
|
+
}
|
847
|
+
|
848
|
+
delete time.afternoon;
|
849
|
+
}
|
850
|
+
}
|
851
|
+
|
852
|
+
function makeParser(format) {
|
853
|
+
format = u(format, locale && locale.formats);
|
854
|
+
var array = format.match(formattingTokens);
|
855
|
+
var length = array.length;
|
856
|
+
|
857
|
+
for (var i = 0; i < length; i += 1) {
|
858
|
+
var token = array[i];
|
859
|
+
var parseTo = expressions[token];
|
860
|
+
var regex = parseTo && parseTo[0];
|
861
|
+
var parser = parseTo && parseTo[1];
|
862
|
+
|
863
|
+
if (parser) {
|
864
|
+
array[i] = {
|
865
|
+
regex: regex,
|
866
|
+
parser: parser
|
867
|
+
};
|
868
|
+
} else {
|
869
|
+
array[i] = token.replace(/^\[|\]$/g, '');
|
870
|
+
}
|
871
|
+
}
|
872
|
+
|
873
|
+
return function (input) {
|
874
|
+
var time = {};
|
875
|
+
|
876
|
+
for (var _i = 0, start = 0; _i < length; _i += 1) {
|
877
|
+
var _token = array[_i];
|
878
|
+
|
879
|
+
if (typeof _token === 'string') {
|
880
|
+
start += _token.length;
|
881
|
+
} else {
|
882
|
+
var _regex = _token.regex,
|
883
|
+
_parser = _token.parser;
|
884
|
+
var part = input.slice(start);
|
885
|
+
|
886
|
+
var match = _regex.exec(part);
|
887
|
+
|
888
|
+
var value = match[0];
|
889
|
+
|
890
|
+
_parser.call(time, value);
|
891
|
+
|
892
|
+
input = input.replace(value, '');
|
893
|
+
}
|
894
|
+
}
|
895
|
+
|
896
|
+
correctHours(time);
|
897
|
+
return time;
|
898
|
+
};
|
899
|
+
}
|
900
|
+
|
901
|
+
var parseFormattedInput = function parseFormattedInput(input, format, utc) {
|
902
|
+
try {
|
903
|
+
if (['x', 'X'].indexOf(format) > -1) return new Date((format === 'X' ? 1000 : 1) * input);
|
904
|
+
var parser = makeParser(format);
|
905
|
+
|
906
|
+
var _parser2 = parser(input),
|
907
|
+
year = _parser2.year,
|
908
|
+
month = _parser2.month,
|
909
|
+
day = _parser2.day,
|
910
|
+
hours = _parser2.hours,
|
911
|
+
minutes = _parser2.minutes,
|
912
|
+
seconds = _parser2.seconds,
|
913
|
+
milliseconds = _parser2.milliseconds,
|
914
|
+
zone = _parser2.zone;
|
915
|
+
|
916
|
+
var now = new Date();
|
917
|
+
var d = day || (!year && !month ? now.getDate() : 1);
|
918
|
+
var y = year || now.getFullYear();
|
919
|
+
var M = 0;
|
920
|
+
|
921
|
+
if (!(year && !month)) {
|
922
|
+
M = month > 0 ? month - 1 : now.getMonth();
|
923
|
+
}
|
924
|
+
|
925
|
+
var h = hours || 0;
|
926
|
+
var m = minutes || 0;
|
927
|
+
var s = seconds || 0;
|
928
|
+
var ms = milliseconds || 0;
|
929
|
+
|
930
|
+
if (zone) {
|
931
|
+
return new Date(Date.UTC(y, M, d, h, m, s, ms + zone.offset * 60 * 1000));
|
932
|
+
}
|
933
|
+
|
934
|
+
if (utc) {
|
935
|
+
return new Date(Date.UTC(y, M, d, h, m, s, ms));
|
936
|
+
}
|
937
|
+
|
938
|
+
return new Date(y, M, d, h, m, s, ms);
|
939
|
+
} catch (e) {
|
940
|
+
return new Date(''); // Invalid Date
|
941
|
+
}
|
942
|
+
};
|
943
|
+
|
944
|
+
const customParseFormat = (function (o, C, d) {
|
945
|
+
d.p.customParseFormat = true;
|
946
|
+
|
947
|
+
if (o && o.parseTwoDigitYear) {
|
948
|
+
parseTwoDigitYear = o.parseTwoDigitYear;
|
949
|
+
}
|
950
|
+
|
951
|
+
var proto = C.prototype;
|
952
|
+
var oldParse = proto.parse;
|
953
|
+
|
954
|
+
proto.parse = function (cfg) {
|
955
|
+
var date = cfg.date,
|
956
|
+
utc = cfg.utc,
|
957
|
+
args = cfg.args;
|
958
|
+
this.$u = utc;
|
959
|
+
var format = args[1];
|
960
|
+
|
961
|
+
if (typeof format === 'string') {
|
962
|
+
var isStrictWithoutLocale = args[2] === true;
|
963
|
+
var isStrictWithLocale = args[3] === true;
|
964
|
+
var isStrict = isStrictWithoutLocale || isStrictWithLocale;
|
965
|
+
var pl = args[2];
|
966
|
+
|
967
|
+
if (isStrictWithLocale) {
|
968
|
+
pl = args[2];
|
969
|
+
}
|
970
|
+
|
971
|
+
locale = this.$locale();
|
972
|
+
|
973
|
+
if (!isStrictWithoutLocale && pl) {
|
974
|
+
locale = d.Ls[pl];
|
975
|
+
}
|
976
|
+
|
977
|
+
this.$d = parseFormattedInput(date, format, utc);
|
978
|
+
this.init();
|
979
|
+
if (pl && pl !== true) this.$L = this.locale(pl).$L; // use != to treat
|
980
|
+
// input number 1410715640579 and format string '1410715640579' equal
|
981
|
+
// eslint-disable-next-line eqeqeq
|
982
|
+
|
983
|
+
if (isStrict && date != this.format(format)) {
|
984
|
+
this.$d = new Date('');
|
985
|
+
} // reset global locale to make parallel unit test
|
986
|
+
|
987
|
+
|
988
|
+
locale = {};
|
989
|
+
} else if (format instanceof Array) {
|
990
|
+
var len = format.length;
|
991
|
+
|
992
|
+
for (var i = 1; i <= len; i += 1) {
|
993
|
+
args[1] = format[i - 1];
|
994
|
+
var result = d.apply(this, args);
|
995
|
+
|
996
|
+
if (result.isValid()) {
|
997
|
+
this.$d = result.$d;
|
998
|
+
this.$L = result.$L;
|
999
|
+
this.init();
|
1000
|
+
break;
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
if (i === len) this.$d = new Date('');
|
1004
|
+
}
|
1005
|
+
} else {
|
1006
|
+
oldParse.call(this, cfg);
|
1007
|
+
}
|
1008
|
+
};
|
1009
|
+
});
|
1010
|
+
|
1011
|
+
const localeData = (function (o, c, dayjs) {
|
1012
|
+
// locale needed later
|
1013
|
+
var proto = c.prototype;
|
1014
|
+
|
1015
|
+
var getLocalePart = function getLocalePart(part) {
|
1016
|
+
return part && (part.indexOf ? part : part.s);
|
1017
|
+
};
|
1018
|
+
|
1019
|
+
var getShort = function getShort(ins, target, full, num, localeOrder) {
|
1020
|
+
var locale = ins.name ? ins : ins.$locale();
|
1021
|
+
var targetLocale = getLocalePart(locale[target]);
|
1022
|
+
var fullLocale = getLocalePart(locale[full]);
|
1023
|
+
var result = targetLocale || fullLocale.map(function (f) {
|
1024
|
+
return f.slice(0, num);
|
1025
|
+
});
|
1026
|
+
if (!localeOrder) return result;
|
1027
|
+
var weekStart = locale.weekStart;
|
1028
|
+
return result.map(function (_, index) {
|
1029
|
+
return result[(index + (weekStart || 0)) % 7];
|
1030
|
+
});
|
1031
|
+
};
|
1032
|
+
|
1033
|
+
var getDayjsLocaleObject = function getDayjsLocaleObject() {
|
1034
|
+
return dayjs.Ls[dayjs.locale()];
|
1035
|
+
};
|
1036
|
+
|
1037
|
+
var getLongDateFormat = function getLongDateFormat(l, format) {
|
1038
|
+
return l.formats[format] || t(l.formats[format.toUpperCase()]);
|
1039
|
+
};
|
1040
|
+
|
1041
|
+
var localeData = function localeData() {
|
1042
|
+
var _this = this;
|
1043
|
+
|
1044
|
+
return {
|
1045
|
+
months: function months(instance) {
|
1046
|
+
return instance ? instance.format('MMMM') : getShort(_this, 'months');
|
1047
|
+
},
|
1048
|
+
monthsShort: function monthsShort(instance) {
|
1049
|
+
return instance ? instance.format('MMM') : getShort(_this, 'monthsShort', 'months', 3);
|
1050
|
+
},
|
1051
|
+
firstDayOfWeek: function firstDayOfWeek() {
|
1052
|
+
return _this.$locale().weekStart || 0;
|
1053
|
+
},
|
1054
|
+
weekdays: function weekdays(instance) {
|
1055
|
+
return instance ? instance.format('dddd') : getShort(_this, 'weekdays');
|
1056
|
+
},
|
1057
|
+
weekdaysMin: function weekdaysMin(instance) {
|
1058
|
+
return instance ? instance.format('dd') : getShort(_this, 'weekdaysMin', 'weekdays', 2);
|
1059
|
+
},
|
1060
|
+
weekdaysShort: function weekdaysShort(instance) {
|
1061
|
+
return instance ? instance.format('ddd') : getShort(_this, 'weekdaysShort', 'weekdays', 3);
|
1062
|
+
},
|
1063
|
+
longDateFormat: function longDateFormat(format) {
|
1064
|
+
return getLongDateFormat(_this.$locale(), format);
|
1065
|
+
},
|
1066
|
+
meridiem: this.$locale().meridiem,
|
1067
|
+
ordinal: this.$locale().ordinal
|
1068
|
+
};
|
1069
|
+
};
|
1070
|
+
|
1071
|
+
proto.localeData = function () {
|
1072
|
+
return localeData.bind(this)();
|
1073
|
+
};
|
1074
|
+
|
1075
|
+
dayjs.localeData = function () {
|
1076
|
+
var localeObject = getDayjsLocaleObject();
|
1077
|
+
return {
|
1078
|
+
firstDayOfWeek: function firstDayOfWeek() {
|
1079
|
+
return localeObject.weekStart || 0;
|
1080
|
+
},
|
1081
|
+
weekdays: function weekdays() {
|
1082
|
+
return dayjs.weekdays();
|
1083
|
+
},
|
1084
|
+
weekdaysShort: function weekdaysShort() {
|
1085
|
+
return dayjs.weekdaysShort();
|
1086
|
+
},
|
1087
|
+
weekdaysMin: function weekdaysMin() {
|
1088
|
+
return dayjs.weekdaysMin();
|
1089
|
+
},
|
1090
|
+
months: function months() {
|
1091
|
+
return dayjs.months();
|
1092
|
+
},
|
1093
|
+
monthsShort: function monthsShort() {
|
1094
|
+
return dayjs.monthsShort();
|
1095
|
+
},
|
1096
|
+
longDateFormat: function longDateFormat(format) {
|
1097
|
+
return getLongDateFormat(localeObject, format);
|
1098
|
+
},
|
1099
|
+
meridiem: localeObject.meridiem,
|
1100
|
+
ordinal: localeObject.ordinal
|
1101
|
+
};
|
1102
|
+
};
|
1103
|
+
|
1104
|
+
dayjs.months = function () {
|
1105
|
+
return getShort(getDayjsLocaleObject(), 'months');
|
1106
|
+
};
|
1107
|
+
|
1108
|
+
dayjs.monthsShort = function () {
|
1109
|
+
return getShort(getDayjsLocaleObject(), 'monthsShort', 'months', 3);
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
dayjs.weekdays = function (localeOrder) {
|
1113
|
+
return getShort(getDayjsLocaleObject(), 'weekdays', null, null, localeOrder);
|
1114
|
+
};
|
1115
|
+
|
1116
|
+
dayjs.weekdaysShort = function (localeOrder) {
|
1117
|
+
return getShort(getDayjsLocaleObject(), 'weekdaysShort', 'weekdays', 3, localeOrder);
|
1118
|
+
};
|
1119
|
+
|
1120
|
+
dayjs.weekdaysMin = function (localeOrder) {
|
1121
|
+
return getShort(getDayjsLocaleObject(), 'weekdaysMin', 'weekdays', 2, localeOrder);
|
1122
|
+
};
|
1123
|
+
});
|
1124
|
+
|
1125
|
+
const localizedFormat = (function (o, c, d) {
|
1126
|
+
var proto = c.prototype;
|
1127
|
+
var oldFormat = proto.format;
|
1128
|
+
d.en.formats = englishFormats;
|
1129
|
+
|
1130
|
+
proto.format = function (formatStr) {
|
1131
|
+
if (formatStr === void 0) {
|
1132
|
+
formatStr = FORMAT_DEFAULT;
|
1133
|
+
}
|
1134
|
+
|
1135
|
+
var _this$$locale = this.$locale(),
|
1136
|
+
_this$$locale$formats = _this$$locale.formats,
|
1137
|
+
formats = _this$$locale$formats === void 0 ? {} : _this$$locale$formats;
|
1138
|
+
|
1139
|
+
var result = u(formatStr, formats);
|
1140
|
+
return oldFormat.call(this, result);
|
1141
|
+
};
|
1142
|
+
});
|
1143
|
+
|
1144
|
+
// Plugin template from https://day.js.org/docs/en/plugin/plugin
|
1145
|
+
const preParsePostFormat = (function (option, dayjsClass) {
|
1146
|
+
var oldParse = dayjsClass.prototype.parse;
|
1147
|
+
|
1148
|
+
dayjsClass.prototype.parse = function (cfg) {
|
1149
|
+
if (typeof cfg.date === 'string') {
|
1150
|
+
var locale = this.$locale();
|
1151
|
+
cfg.date = locale && locale.preparse ? locale.preparse(cfg.date) : cfg.date;
|
1152
|
+
} // original parse result
|
1153
|
+
|
1154
|
+
|
1155
|
+
return oldParse.bind(this)(cfg);
|
1156
|
+
}; // // overriding existing API
|
1157
|
+
// // e.g. extend dayjs().format()
|
1158
|
+
|
1159
|
+
|
1160
|
+
var oldFormat = dayjsClass.prototype.format;
|
1161
|
+
|
1162
|
+
dayjsClass.prototype.format = function () {
|
1163
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1164
|
+
args[_key] = arguments[_key];
|
1165
|
+
}
|
1166
|
+
|
1167
|
+
// original format result
|
1168
|
+
var result = oldFormat.call.apply(oldFormat, [this].concat(args)); // return modified result
|
1169
|
+
|
1170
|
+
var locale = this.$locale();
|
1171
|
+
return locale && locale.postformat ? locale.postformat(result) : result;
|
1172
|
+
};
|
1173
|
+
|
1174
|
+
var oldFromTo = dayjsClass.prototype.fromToBase;
|
1175
|
+
|
1176
|
+
if (oldFromTo) {
|
1177
|
+
dayjsClass.prototype.fromToBase = function (input, withoutSuffix, instance, isFrom) {
|
1178
|
+
var locale = this.$locale() || instance.$locale(); // original format result
|
1179
|
+
|
1180
|
+
return oldFromTo.call(this, input, withoutSuffix, instance, isFrom, locale && locale.postformat);
|
1181
|
+
};
|
1182
|
+
}
|
1183
|
+
});
|
1184
|
+
|
1185
|
+
const updateLocale = (function (option, Dayjs, dayjs) {
|
1186
|
+
dayjs.updateLocale = function (locale, customConfig) {
|
1187
|
+
var localeList = dayjs.Ls;
|
1188
|
+
var localeConfig = localeList[locale];
|
1189
|
+
if (!localeConfig) return;
|
1190
|
+
var customConfigKeys = customConfig ? Object.keys(customConfig) : [];
|
1191
|
+
customConfigKeys.forEach(function (c) {
|
1192
|
+
localeConfig[c] = customConfig[c];
|
1193
|
+
});
|
1194
|
+
return localeConfig; // eslint-disable-line consistent-return
|
1195
|
+
};
|
1196
|
+
});
|
1197
|
+
|
1198
|
+
const inputTimePickerCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([scale=s]){--calcite-toggle-spacing:0.5rem;--calcite-internal-input-text-input-padding-inline-end:calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing:0.75rem;--calcite-internal-input-text-input-padding-inline-end:calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing:1rem;--calcite-internal-input-text-input-padding-inline-end:calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}:host([hidden]){display:none}[hidden]{display:none}";
|
1199
|
+
|
1200
|
+
// some bundlers (e.g., Webpack) need dynamic import paths to be static
|
1201
|
+
const supportedDayjsLocaleToLocaleConfigImport = new Map([
|
1202
|
+
["ar", () => import('./ar-75ffdabb.js')],
|
1203
|
+
["bg", () => import('./bg-fac0bf10.js')],
|
1204
|
+
["bs", () => import('./bs-c03c8ef2.js')],
|
1205
|
+
["ca", () => import('./ca-29e49f82.js')],
|
1206
|
+
["cs", () => import('./cs-04f36d01.js')],
|
1207
|
+
["da", () => import('./da-5a3b8600.js')],
|
1208
|
+
["de", () => import('./de-579cda2e.js')],
|
1209
|
+
["de-at", () => import('./de-at-52bf1c4c.js')],
|
1210
|
+
["de-ch", () => import('./de-ch-12d03480.js')],
|
1211
|
+
["el", () => import('./el-c18d3ea4.js')],
|
1212
|
+
["en", () => Promise.resolve().then(function () { return en$1; })],
|
1213
|
+
["en-au", () => import('./en-au-2599e6da.js')],
|
1214
|
+
["en-ca", () => import('./en-ca-8cfbe6bc.js')],
|
1215
|
+
["en-gb", () => import('./en-gb-5e4e8a1e.js')],
|
1216
|
+
["es", () => import('./es-d86f9957.js')],
|
1217
|
+
["es-mx", () => import('./es-mx-f99d9fd1.js')],
|
1218
|
+
["et", () => import('./et-8bf52e57.js')],
|
1219
|
+
["fi", () => import('./fi-aeb49e52.js')],
|
1220
|
+
["fr", () => import('./fr-6200cc01.js')],
|
1221
|
+
["fr-ch", () => import('./fr-ch-df62bb30.js')],
|
1222
|
+
["he", () => import('./he-07ace6cb.js')],
|
1223
|
+
["hi", () => import('./hi-5aa9519e.js')],
|
1224
|
+
["hr", () => import('./hr-e0614bed.js')],
|
1225
|
+
["hu", () => import('./hu-732fe37c.js')],
|
1226
|
+
["id", () => import('./id-0832fc24.js')],
|
1227
|
+
["it", () => import('./it-142bc820.js')],
|
1228
|
+
["it-ch", () => import('./it-ch-1ad1f0ac.js')],
|
1229
|
+
["ja", () => import('./ja-6a33e9d4.js')],
|
1230
|
+
["ko", () => import('./ko-d61df01d.js')],
|
1231
|
+
["lt", () => import('./lt-652c530a.js')],
|
1232
|
+
["lv", () => import('./lv-84e48ed0.js')],
|
1233
|
+
["mk", () => import('./mk-bbf2ee01.js')],
|
1234
|
+
["nl", () => import('./nl-4bc56289.js')],
|
1235
|
+
["nb", () => import('./nb-ccfaa0f7.js')],
|
1236
|
+
["pl", () => import('./pl-1f435988.js')],
|
1237
|
+
["pt", () => import('./pt-4a05a00d.js')],
|
1238
|
+
["pt-br", () => import('./pt-br-9720547b.js')],
|
1239
|
+
["ro", () => import('./ro-f87076a1.js')],
|
1240
|
+
["ru", () => import('./ru-e69ca895.js')],
|
1241
|
+
["sk", () => import('./sk-d632e850.js')],
|
1242
|
+
["sl", () => import('./sl-5099fa6f.js')],
|
1243
|
+
["sr", () => import('./sr-944b7fd7.js')],
|
1244
|
+
["sv", () => import('./sv-e481fa6a.js')],
|
1245
|
+
["th", () => import('./th-60961669.js')],
|
1246
|
+
["tr", () => import('./tr-eba8dd86.js')],
|
1247
|
+
["uk", () => import('./uk-ec375ce0.js')],
|
1248
|
+
["vi", () => import('./vi-29345f79.js')],
|
1249
|
+
["zh-cn", () => import('./zh-cn-32c7c714.js')],
|
1250
|
+
["zh-hk", () => import('./zh-hk-7c770845.js')],
|
1251
|
+
["zh-tw", () => import('./zh-tw-c318be5c.js')],
|
1252
|
+
]);
|
1253
|
+
dayjs.extend(customParseFormat);
|
1254
|
+
dayjs.extend(localeData);
|
1255
|
+
dayjs.extend(localizedFormat);
|
1256
|
+
dayjs.extend(preParsePostFormat);
|
1257
|
+
dayjs.extend(updateLocale);
|
1258
|
+
const InputTimePicker = class {
|
1259
|
+
constructor(hostRef) {
|
1260
|
+
registerInstance(this, hostRef);
|
1261
|
+
this.calciteInputTimePickerBeforeClose = createEvent(this, "calciteInputTimePickerBeforeClose", 6);
|
1262
|
+
this.calciteInputTimePickerBeforeOpen = createEvent(this, "calciteInputTimePickerBeforeOpen", 6);
|
1263
|
+
this.calciteInputTimePickerChange = createEvent(this, "calciteInputTimePickerChange", 7);
|
1264
|
+
this.calciteInputTimePickerClose = createEvent(this, "calciteInputTimePickerClose", 6);
|
1265
|
+
this.calciteInputTimePickerOpen = createEvent(this, "calciteInputTimePickerOpen", 6);
|
1266
|
+
this.focusOnOpen = false;
|
1267
|
+
this.dialogId = `time-picker-dialog--${guid()}`;
|
1268
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
1269
|
+
this.userChangedValue = false;
|
1270
|
+
this.referenceElementId = `input-time-picker-${guid()}`;
|
1271
|
+
this.openTransitionProp = "opacity";
|
1272
|
+
//--------------------------------------------------------------------------
|
1273
|
+
//
|
1274
|
+
// Event Listeners
|
1275
|
+
//
|
1276
|
+
//--------------------------------------------------------------------------
|
1277
|
+
this.hostBlurHandler = () => {
|
1278
|
+
const inputValue = this.calciteInputEl.value;
|
1279
|
+
const delocalizedInputValue = this.delocalizeTimeString(inputValue);
|
1280
|
+
if (!delocalizedInputValue) {
|
1281
|
+
this.setValue("");
|
1282
|
+
return;
|
1283
|
+
}
|
1284
|
+
if (delocalizedInputValue !== this.value) {
|
1285
|
+
this.setValue(delocalizedInputValue);
|
1286
|
+
}
|
1287
|
+
const localizedTimeString = localizeTimeString({
|
1288
|
+
value: this.value,
|
1289
|
+
locale: this.effectiveLocale,
|
1290
|
+
numberingSystem: this.numberingSystem,
|
1291
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
1292
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1293
|
+
});
|
1294
|
+
if (localizedTimeString !== inputValue) {
|
1295
|
+
this.setInputValue(localizedTimeString);
|
1296
|
+
}
|
1297
|
+
this.deactivate();
|
1298
|
+
};
|
1299
|
+
this.calciteInternalInputFocusHandler = (event) => {
|
1300
|
+
if (!this.readOnly) {
|
1301
|
+
event.stopPropagation();
|
1302
|
+
}
|
1303
|
+
};
|
1304
|
+
this.calciteInternalInputInputHandler = (event) => {
|
1305
|
+
const { effectiveLocale: locale, numberingSystem } = this;
|
1306
|
+
if (numberingSystem && numberingSystem !== "latn") {
|
1307
|
+
const target = event.target;
|
1308
|
+
numberStringFormatter.numberFormatOptions = {
|
1309
|
+
locale,
|
1310
|
+
numberingSystem,
|
1311
|
+
useGrouping: false,
|
1312
|
+
};
|
1313
|
+
const valueInNumberingSystem = numberStringFormatter
|
1314
|
+
.delocalize(target.value)
|
1315
|
+
.split("")
|
1316
|
+
.map((char) => numberKeys.includes(char)
|
1317
|
+
? numberStringFormatter.numberFormatter.format(Number(char))
|
1318
|
+
: char)
|
1319
|
+
.join("");
|
1320
|
+
this.setInputValue(valueInNumberingSystem);
|
1321
|
+
}
|
1322
|
+
};
|
1323
|
+
this.timePickerChangeHandler = (event) => {
|
1324
|
+
event.stopPropagation();
|
1325
|
+
const target = event.target;
|
1326
|
+
const value = target.value;
|
1327
|
+
const includeSeconds = this.shouldIncludeSeconds();
|
1328
|
+
this.setValue(toISOTimeString(value, includeSeconds));
|
1329
|
+
this.setInputValue(localizeTimeString({
|
1330
|
+
value,
|
1331
|
+
locale: this.effectiveLocale,
|
1332
|
+
numberingSystem: this.numberingSystem,
|
1333
|
+
includeSeconds,
|
1334
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1335
|
+
}));
|
1336
|
+
};
|
1337
|
+
this.popoverCloseHandler = () => {
|
1338
|
+
deactivateFocusTrap(this, {
|
1339
|
+
onDeactivate: () => {
|
1340
|
+
this.calciteInputEl.setFocus();
|
1341
|
+
this.focusOnOpen = false;
|
1342
|
+
},
|
1343
|
+
});
|
1344
|
+
this.open = false;
|
1345
|
+
};
|
1346
|
+
this.popoverOpenHandler = () => {
|
1347
|
+
activateFocusTrap(this, {
|
1348
|
+
onActivate: () => {
|
1349
|
+
if (this.focusOnOpen) {
|
1350
|
+
this.calciteTimePickerEl.setFocus();
|
1351
|
+
this.focusOnOpen = false;
|
1352
|
+
}
|
1353
|
+
},
|
1354
|
+
});
|
1355
|
+
};
|
1356
|
+
this.keyDownHandler = (event) => {
|
1357
|
+
const { defaultPrevented, key } = event;
|
1358
|
+
if (defaultPrevented) {
|
1359
|
+
return;
|
1360
|
+
}
|
1361
|
+
if (key === "Enter") {
|
1362
|
+
if (submitForm(this)) {
|
1363
|
+
event.preventDefault();
|
1364
|
+
this.calciteInputEl.setFocus();
|
1365
|
+
}
|
1366
|
+
if (event.composedPath().includes(this.calciteTimePickerEl)) {
|
1367
|
+
return;
|
1368
|
+
}
|
1369
|
+
const newValue = this.delocalizeTimeString(this.calciteInputEl.value);
|
1370
|
+
if (isValidTime(newValue)) {
|
1371
|
+
this.setValue(newValue);
|
1372
|
+
const localizedTimeString = localizeTimeString({
|
1373
|
+
value: this.value,
|
1374
|
+
locale: this.effectiveLocale,
|
1375
|
+
numberingSystem: this.numberingSystem,
|
1376
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
1377
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1378
|
+
});
|
1379
|
+
if (newValue && this.calciteInputEl.value !== localizedTimeString) {
|
1380
|
+
this.setInputValue(localizedTimeString);
|
1381
|
+
}
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
else if (key === "ArrowDown") {
|
1385
|
+
this.open = true;
|
1386
|
+
this.focusOnOpen = true;
|
1387
|
+
event.preventDefault();
|
1388
|
+
}
|
1389
|
+
else if (key === "Escape" && this.open) {
|
1390
|
+
this.open = false;
|
1391
|
+
event.preventDefault();
|
1392
|
+
this.calciteInputEl.setFocus();
|
1393
|
+
}
|
1394
|
+
};
|
1395
|
+
this.setCalcitePopoverEl = (el) => {
|
1396
|
+
this.popoverEl = el;
|
1397
|
+
};
|
1398
|
+
this.setInputAndTransitionEl = (el) => {
|
1399
|
+
this.calciteInputEl = el;
|
1400
|
+
this.transitionEl = el;
|
1401
|
+
};
|
1402
|
+
this.setCalciteTimePickerEl = (el) => {
|
1403
|
+
this.calciteTimePickerEl = el;
|
1404
|
+
connectFocusTrap(this, {
|
1405
|
+
focusTrapEl: el,
|
1406
|
+
focusTrapOptions: {
|
1407
|
+
initialFocus: false,
|
1408
|
+
setReturnFocus: false,
|
1409
|
+
},
|
1410
|
+
});
|
1411
|
+
};
|
1412
|
+
this.setInputValue = (newInputValue) => {
|
1413
|
+
if (!this.calciteInputEl) {
|
1414
|
+
return;
|
1415
|
+
}
|
1416
|
+
this.calciteInputEl.value = newInputValue;
|
1417
|
+
};
|
1418
|
+
/**
|
1419
|
+
* Sets the value and emits a change event.
|
1420
|
+
* This is used to update the value as a result of user interaction.
|
1421
|
+
*
|
1422
|
+
* @param value
|
1423
|
+
*/
|
1424
|
+
this.setValue = (value) => {
|
1425
|
+
const oldValue = this.value;
|
1426
|
+
const newValue = formatTimeString(value) || "";
|
1427
|
+
if (newValue === oldValue) {
|
1428
|
+
return;
|
1429
|
+
}
|
1430
|
+
this.userChangedValue = true;
|
1431
|
+
this.value = newValue || "";
|
1432
|
+
const changeEvent = this.calciteInputTimePickerChange.emit();
|
1433
|
+
if (changeEvent.defaultPrevented) {
|
1434
|
+
this.userChangedValue = false;
|
1435
|
+
this.value = oldValue;
|
1436
|
+
this.setInputValue(localizeTimeString({
|
1437
|
+
value: oldValue,
|
1438
|
+
locale: this.effectiveLocale,
|
1439
|
+
numberingSystem: this.numberingSystem,
|
1440
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
1441
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1442
|
+
}));
|
1443
|
+
}
|
1444
|
+
};
|
1445
|
+
/**
|
1446
|
+
* Sets the value directly without emitting a change event.
|
1447
|
+
* This is used to update the value on initial load and when props change that are not the result of user interaction.
|
1448
|
+
*
|
1449
|
+
* @param value
|
1450
|
+
*/
|
1451
|
+
this.setValueDirectly = (value) => {
|
1452
|
+
const includeSeconds = this.shouldIncludeSeconds();
|
1453
|
+
this.value = toISOTimeString(value, includeSeconds);
|
1454
|
+
this.setInputValue(this.value
|
1455
|
+
? localizeTimeString({
|
1456
|
+
value: this.value,
|
1457
|
+
includeSeconds,
|
1458
|
+
locale: this.effectiveLocale,
|
1459
|
+
numberingSystem: this.numberingSystem,
|
1460
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1461
|
+
})
|
1462
|
+
: "");
|
1463
|
+
};
|
1464
|
+
this.onInputWrapperClick = () => {
|
1465
|
+
this.open = !this.open;
|
1466
|
+
};
|
1467
|
+
this.deactivate = () => {
|
1468
|
+
this.open = false;
|
1469
|
+
};
|
1470
|
+
this.open = false;
|
1471
|
+
this.disabled = false;
|
1472
|
+
this.focusTrapDisabled = false;
|
1473
|
+
this.form = undefined;
|
1474
|
+
this.readOnly = false;
|
1475
|
+
this.messageOverrides = undefined;
|
1476
|
+
this.messages = undefined;
|
1477
|
+
this.validationMessage = undefined;
|
1478
|
+
this.validationIcon = undefined;
|
1479
|
+
this.name = undefined;
|
1480
|
+
this.numberingSystem = undefined;
|
1481
|
+
this.required = false;
|
1482
|
+
this.scale = "m";
|
1483
|
+
this.status = "idle";
|
1484
|
+
this.overlayPositioning = "absolute";
|
1485
|
+
this.placement = "auto";
|
1486
|
+
this.step = 60;
|
1487
|
+
this.value = null;
|
1488
|
+
this.defaultMessages = undefined;
|
1489
|
+
this.effectiveLocale = "";
|
1490
|
+
}
|
1491
|
+
openHandler() {
|
1492
|
+
onToggleOpenCloseComponent(this);
|
1493
|
+
if (this.disabled || this.readOnly) {
|
1494
|
+
this.open = false;
|
1495
|
+
return;
|
1496
|
+
}
|
1497
|
+
this.reposition(true);
|
1498
|
+
}
|
1499
|
+
handleFocusTrapDisabled(focusTrapDisabled) {
|
1500
|
+
if (!this.open) {
|
1501
|
+
return;
|
1502
|
+
}
|
1503
|
+
focusTrapDisabled ? deactivateFocusTrap(this) : activateFocusTrap(this);
|
1504
|
+
}
|
1505
|
+
handleDisabledAndReadOnlyChange(value) {
|
1506
|
+
if (!value) {
|
1507
|
+
this.open = false;
|
1508
|
+
}
|
1509
|
+
}
|
1510
|
+
onMessagesChange() {
|
1511
|
+
/* wired up by t9n util */
|
1512
|
+
}
|
1513
|
+
numberingSystemWatcher(numberingSystem) {
|
1514
|
+
this.setInputValue(localizeTimeString({
|
1515
|
+
value: this.value,
|
1516
|
+
locale: this.effectiveLocale,
|
1517
|
+
numberingSystem,
|
1518
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
1519
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1520
|
+
}));
|
1521
|
+
}
|
1522
|
+
stepWatcher(newStep, oldStep) {
|
1523
|
+
if ((oldStep >= 60 && newStep > 0 && newStep < 60) ||
|
1524
|
+
(newStep >= 60 && oldStep > 0 && oldStep < 60)) {
|
1525
|
+
this.setValueDirectly(this.value);
|
1526
|
+
}
|
1527
|
+
}
|
1528
|
+
valueWatcher(newValue) {
|
1529
|
+
if (!this.userChangedValue) {
|
1530
|
+
this.setValueDirectly(newValue);
|
1531
|
+
}
|
1532
|
+
this.userChangedValue = false;
|
1533
|
+
}
|
1534
|
+
async effectiveLocaleWatcher(locale) {
|
1535
|
+
await this.loadDateTimeLocaleData();
|
1536
|
+
this.setInputValue(localizeTimeString({
|
1537
|
+
value: this.value,
|
1538
|
+
locale,
|
1539
|
+
numberingSystem: this.numberingSystem,
|
1540
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
1541
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1542
|
+
}));
|
1543
|
+
}
|
1544
|
+
// --------------------------------------------------------------------------
|
1545
|
+
//
|
1546
|
+
// Public Methods
|
1547
|
+
//
|
1548
|
+
// --------------------------------------------------------------------------
|
1549
|
+
/** Sets focus on the component. */
|
1550
|
+
async setFocus() {
|
1551
|
+
await componentFocusable(this);
|
1552
|
+
this.el.focus();
|
1553
|
+
}
|
1554
|
+
/**
|
1555
|
+
* Updates the position of the component.
|
1556
|
+
*
|
1557
|
+
* @param delayed
|
1558
|
+
*/
|
1559
|
+
async reposition(delayed = false) {
|
1560
|
+
var _a;
|
1561
|
+
(_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition(delayed);
|
1562
|
+
}
|
1563
|
+
// --------------------------------------------------------------------------
|
1564
|
+
//
|
1565
|
+
// Private Methods
|
1566
|
+
//
|
1567
|
+
// --------------------------------------------------------------------------
|
1568
|
+
onBeforeOpen() {
|
1569
|
+
this.calciteInputTimePickerBeforeOpen.emit();
|
1570
|
+
}
|
1571
|
+
onOpen() {
|
1572
|
+
this.calciteInputTimePickerOpen.emit();
|
1573
|
+
}
|
1574
|
+
onBeforeClose() {
|
1575
|
+
this.calciteInputTimePickerBeforeClose.emit();
|
1576
|
+
}
|
1577
|
+
onClose() {
|
1578
|
+
this.calciteInputTimePickerClose.emit();
|
1579
|
+
}
|
1580
|
+
delocalizeTimeString(value) {
|
1581
|
+
// we need to set the corresponding locale before parsing, otherwise it defaults to English (possible dayjs bug)
|
1582
|
+
dayjs.locale(this.effectiveLocale.toLowerCase());
|
1583
|
+
const nonFractionalSecondParts = this.delocalizeTimeStringToParts(value);
|
1584
|
+
let delocalizedTimeString;
|
1585
|
+
if (this.shouldIncludeFractionalSeconds()) {
|
1586
|
+
const stepPrecision = decimalPlaces(this.step);
|
1587
|
+
const centisecondParts = this.delocalizeTimeStringToParts(value, "S");
|
1588
|
+
if (stepPrecision === 1) {
|
1589
|
+
delocalizedTimeString =
|
1590
|
+
centisecondParts.millisecond !== 0
|
1591
|
+
? this.getTimeStringFromParts(centisecondParts)
|
1592
|
+
: this.getTimeStringFromParts(nonFractionalSecondParts);
|
1593
|
+
}
|
1594
|
+
else {
|
1595
|
+
const decisecondParts = this.delocalizeTimeStringToParts(value, "SS");
|
1596
|
+
if (stepPrecision === 2) {
|
1597
|
+
if (decisecondParts.millisecond !== 0) {
|
1598
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
1599
|
+
}
|
1600
|
+
else if (centisecondParts.millisecond !== 0) {
|
1601
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
1602
|
+
}
|
1603
|
+
else {
|
1604
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
1605
|
+
}
|
1606
|
+
}
|
1607
|
+
else if (stepPrecision >= 3) {
|
1608
|
+
const millisecondParts = this.delocalizeTimeStringToParts(value, "SSS");
|
1609
|
+
if (millisecondParts.millisecond !== 0) {
|
1610
|
+
delocalizedTimeString = this.getTimeStringFromParts(millisecondParts);
|
1611
|
+
}
|
1612
|
+
else if (decisecondParts.millisecond !== 0) {
|
1613
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
1614
|
+
}
|
1615
|
+
else if (centisecondParts.millisecond !== 0) {
|
1616
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
1617
|
+
}
|
1618
|
+
else {
|
1619
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
1620
|
+
}
|
1621
|
+
}
|
1622
|
+
}
|
1623
|
+
}
|
1624
|
+
else {
|
1625
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
1626
|
+
}
|
1627
|
+
return delocalizedTimeString;
|
1628
|
+
}
|
1629
|
+
delocalizeTimeStringToParts(localizedTimeString, fractionalSecondFormatToken) {
|
1630
|
+
var _a, _b;
|
1631
|
+
const ltsFormatString = (_b = (_a = this.localeConfig) === null || _a === void 0 ? void 0 : _a.formats) === null || _b === void 0 ? void 0 : _b.LTS;
|
1632
|
+
const fractionalSecondTokenMatch = ltsFormatString.match(/ss\.*(S+)/g);
|
1633
|
+
if (fractionalSecondFormatToken && this.shouldIncludeFractionalSeconds()) {
|
1634
|
+
const secondFormatToken = `ss.${fractionalSecondFormatToken}`;
|
1635
|
+
this.localeConfig.formats.LTS = fractionalSecondTokenMatch
|
1636
|
+
? ltsFormatString.replace(fractionalSecondTokenMatch[0], secondFormatToken)
|
1637
|
+
: ltsFormatString.replace("ss", secondFormatToken);
|
1638
|
+
}
|
1639
|
+
else if (fractionalSecondTokenMatch) {
|
1640
|
+
this.localeConfig.formats.LTS = ltsFormatString.replace(fractionalSecondTokenMatch[0], "ss");
|
1641
|
+
}
|
1642
|
+
dayjs.updateLocale(this.getSupportedDayjsLocale(getSupportedLocale(this.effectiveLocale)), this.localeConfig);
|
1643
|
+
const dayjsParseResult = dayjs(localizedTimeString, ["LTS", "LT"]);
|
1644
|
+
if (dayjsParseResult.isValid()) {
|
1645
|
+
return {
|
1646
|
+
hour: dayjsParseResult.get("hour"),
|
1647
|
+
minute: dayjsParseResult.get("minute"),
|
1648
|
+
second: dayjsParseResult.get("second"),
|
1649
|
+
millisecond: dayjsParseResult.get("millisecond"),
|
1650
|
+
};
|
1651
|
+
}
|
1652
|
+
return {
|
1653
|
+
hour: null,
|
1654
|
+
minute: null,
|
1655
|
+
second: null,
|
1656
|
+
millisecond: null,
|
1657
|
+
};
|
1658
|
+
}
|
1659
|
+
getTimeStringFromParts(parts) {
|
1660
|
+
let timeString = "";
|
1661
|
+
if (!parts) {
|
1662
|
+
return timeString;
|
1663
|
+
}
|
1664
|
+
if (parts.hour !== null && parts.minute !== null) {
|
1665
|
+
timeString = `${formatTimePart(parts.hour)}:${formatTimePart(parts.minute)}`;
|
1666
|
+
if (this.shouldIncludeSeconds() && parts.second !== null) {
|
1667
|
+
timeString += `:${formatTimePart(parts.second)}`;
|
1668
|
+
if (this.shouldIncludeFractionalSeconds() && parts.millisecond !== null) {
|
1669
|
+
const second = (parts.millisecond * 0.001).toFixed(decimalPlaces(this.step));
|
1670
|
+
timeString += `.${second.toString().replace("0.", "")}`;
|
1671
|
+
}
|
1672
|
+
}
|
1673
|
+
}
|
1674
|
+
return timeString;
|
1675
|
+
}
|
1676
|
+
getSupportedDayjsLocale(locale) {
|
1677
|
+
const dayjsLocale = locale.toLowerCase();
|
1678
|
+
if (dayjsLocale === "no") {
|
1679
|
+
return "nb";
|
1680
|
+
}
|
1681
|
+
if (dayjsLocale === "pt-pt") {
|
1682
|
+
return "pt";
|
1683
|
+
}
|
1684
|
+
return dayjsLocale;
|
1685
|
+
}
|
1686
|
+
async loadDateTimeLocaleData() {
|
1687
|
+
let supportedLocale = getSupportedLocale(this.effectiveLocale).toLowerCase();
|
1688
|
+
supportedLocale = this.getSupportedDayjsLocale(supportedLocale);
|
1689
|
+
const { default: localeConfig } = await supportedDayjsLocaleToLocaleConfigImport.get(supportedLocale)();
|
1690
|
+
this.localeConfig = localeConfig;
|
1691
|
+
dayjs.locale(this.localeConfig, null, true);
|
1692
|
+
dayjs.updateLocale(supportedLocale, this.getExtendedLocaleConfig(supportedLocale));
|
1693
|
+
}
|
1694
|
+
getExtendedLocaleConfig(locale) {
|
1695
|
+
if (locale === "ar") {
|
1696
|
+
return {
|
1697
|
+
meridiem: (hour) => (hour > 12 ? "م" : "ص"),
|
1698
|
+
formats: {
|
1699
|
+
LT: "HH:mm A",
|
1700
|
+
LTS: "HH:mm:ss A",
|
1701
|
+
L: "DD/MM/YYYY",
|
1702
|
+
LL: "D MMMM YYYY",
|
1703
|
+
LLL: "D MMMM YYYY HH:mm A",
|
1704
|
+
LLLL: "dddd D MMMM YYYY HH:mm A",
|
1705
|
+
},
|
1706
|
+
};
|
1707
|
+
}
|
1708
|
+
if (locale === "en-au") {
|
1709
|
+
return {
|
1710
|
+
meridiem: (hour) => (hour > 12 ? "pm" : "am"),
|
1711
|
+
};
|
1712
|
+
}
|
1713
|
+
if (locale === "en-ca") {
|
1714
|
+
return {
|
1715
|
+
meridiem: (hour) => (hour > 12 ? "p.m." : "a.m."),
|
1716
|
+
};
|
1717
|
+
}
|
1718
|
+
if (locale === "el") {
|
1719
|
+
return {
|
1720
|
+
meridiem: (hour) => (hour > 12 ? "μ.μ." : "π.μ."),
|
1721
|
+
};
|
1722
|
+
}
|
1723
|
+
if (locale === "hi") {
|
1724
|
+
return {
|
1725
|
+
formats: {
|
1726
|
+
LT: "h:mm A",
|
1727
|
+
LTS: "h:mm:ss A",
|
1728
|
+
L: "DD/MM/YYYY",
|
1729
|
+
LL: "D MMMM YYYY",
|
1730
|
+
LLL: "D MMMM YYYY, h:mm A",
|
1731
|
+
LLLL: "dddd, D MMMM YYYY, h:mm A",
|
1732
|
+
},
|
1733
|
+
meridiem: (hour) => (hour > 12 ? "pm" : "am"),
|
1734
|
+
};
|
1735
|
+
}
|
1736
|
+
if (locale === "ko") {
|
1737
|
+
return {
|
1738
|
+
meridiem: (hour) => (hour > 12 ? "오후" : "오전"),
|
1739
|
+
};
|
1740
|
+
}
|
1741
|
+
if (locale === "zh-tw") {
|
1742
|
+
return {
|
1743
|
+
formats: {
|
1744
|
+
LT: "AHH:mm",
|
1745
|
+
LTS: "AHH:mm:ss",
|
1746
|
+
},
|
1747
|
+
};
|
1748
|
+
}
|
1749
|
+
if (locale === "zh-hk") {
|
1750
|
+
return {
|
1751
|
+
formats: {
|
1752
|
+
LT: "AHH:mm",
|
1753
|
+
LTS: "AHH:mm:ss",
|
1754
|
+
},
|
1755
|
+
meridiem: (hour) => (hour > 12 ? "下午" : "上午"),
|
1756
|
+
};
|
1757
|
+
}
|
1758
|
+
}
|
1759
|
+
onLabelClick() {
|
1760
|
+
this.setFocus();
|
1761
|
+
}
|
1762
|
+
shouldIncludeSeconds() {
|
1763
|
+
return this.step < 60;
|
1764
|
+
}
|
1765
|
+
shouldIncludeFractionalSeconds() {
|
1766
|
+
return decimalPlaces(this.step) > 0;
|
1767
|
+
}
|
1768
|
+
//--------------------------------------------------------------------------
|
1769
|
+
//
|
1770
|
+
// Lifecycle
|
1771
|
+
//
|
1772
|
+
//--------------------------------------------------------------------------
|
1773
|
+
connectedCallback() {
|
1774
|
+
connectInteractive(this);
|
1775
|
+
connectLocalized(this);
|
1776
|
+
if (isValidTime(this.value)) {
|
1777
|
+
this.setValueDirectly(this.value);
|
1778
|
+
}
|
1779
|
+
else {
|
1780
|
+
this.value = undefined;
|
1781
|
+
}
|
1782
|
+
connectLabel(this);
|
1783
|
+
connectForm(this);
|
1784
|
+
connectMessages(this);
|
1785
|
+
}
|
1786
|
+
async componentWillLoad() {
|
1787
|
+
setUpLoadableComponent(this);
|
1788
|
+
await Promise.all([setUpMessages(this), this.loadDateTimeLocaleData()]);
|
1789
|
+
if (this.open) {
|
1790
|
+
onToggleOpenCloseComponent(this);
|
1791
|
+
}
|
1792
|
+
}
|
1793
|
+
componentDidLoad() {
|
1794
|
+
setComponentLoaded(this);
|
1795
|
+
if (isValidTime(this.value)) {
|
1796
|
+
this.setInputValue(localizeTimeString({
|
1797
|
+
value: this.value,
|
1798
|
+
locale: this.effectiveLocale,
|
1799
|
+
numberingSystem: this.numberingSystem,
|
1800
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
1801
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
1802
|
+
}));
|
1803
|
+
}
|
1804
|
+
}
|
1805
|
+
disconnectedCallback() {
|
1806
|
+
disconnectInteractive(this);
|
1807
|
+
disconnectLabel(this);
|
1808
|
+
disconnectForm(this);
|
1809
|
+
disconnectLocalized(this);
|
1810
|
+
deactivateFocusTrap(this);
|
1811
|
+
disconnectMessages(this);
|
1812
|
+
}
|
1813
|
+
componentDidRender() {
|
1814
|
+
updateHostInteraction(this);
|
1815
|
+
}
|
1816
|
+
// --------------------------------------------------------------------------
|
1817
|
+
//
|
1818
|
+
// Render Methods
|
1819
|
+
//
|
1820
|
+
// --------------------------------------------------------------------------
|
1821
|
+
render() {
|
1822
|
+
const { disabled, messages, readOnly, dialogId } = this;
|
1823
|
+
return (h(Host, { onBlur: this.hostBlurHandler, onKeyDown: this.keyDownHandler }, h(InteractiveContainer, { disabled: this.disabled }, h("div", { class: "input-wrapper", onClick: this.onInputWrapperClick }, h("calcite-input-text", { "aria-autocomplete": "none", "aria-haspopup": "dialog", disabled: disabled, icon: "clock", id: this.referenceElementId, label: getLabelText(this), lang: this.effectiveLocale, onCalciteInputTextInput: this.calciteInternalInputInputHandler, onCalciteInternalInputTextFocus: this.calciteInternalInputFocusHandler, readOnly: readOnly, role: "combobox", scale: this.scale, status: this.status,
|
1824
|
+
// 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)
|
1825
|
+
ref: this.setInputAndTransitionEl }), !this.readOnly && this.renderToggleIcon(this.open)), h("calcite-popover", { focusTrapDisabled: true, id: dialogId, label: messages.chooseTime, lang: this.effectiveLocale, onCalcitePopoverClose: this.popoverCloseHandler, onCalcitePopoverOpen: this.popoverOpenHandler, open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, referenceElement: this.referenceElementId, triggerDisabled: true,
|
1826
|
+
// 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)
|
1827
|
+
ref: this.setCalcitePopoverEl }, h("calcite-time-picker", { lang: this.effectiveLocale, messageOverrides: this.messageOverrides, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, scale: this.scale, step: this.step, tabIndex: this.open ? undefined : -1, value: this.value,
|
1828
|
+
// 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)
|
1829
|
+
ref: this.setCalciteTimePickerEl })), h(HiddenFormInputSlot, { component: this }), this.validationMessage ? (h(Validation, { icon: this.validationIcon, message: this.validationMessage, scale: this.scale, status: this.status })) : null)));
|
1830
|
+
}
|
1831
|
+
renderToggleIcon(open) {
|
1832
|
+
return (h("span", { class: CSS.toggleIcon }, h("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
1833
|
+
}
|
1834
|
+
static get delegatesFocus() { return true; }
|
1835
|
+
static get assetsDirs() { return ["assets"]; }
|
1836
|
+
get el() { return getElement(this); }
|
1837
|
+
static get watchers() { return {
|
1838
|
+
"open": ["openHandler"],
|
1839
|
+
"focusTrapDisabled": ["handleFocusTrapDisabled"],
|
1840
|
+
"disabled": ["handleDisabledAndReadOnlyChange"],
|
1841
|
+
"readOnly": ["handleDisabledAndReadOnlyChange"],
|
1842
|
+
"messageOverrides": ["onMessagesChange"],
|
1843
|
+
"numberingSystem": ["numberingSystemWatcher"],
|
1844
|
+
"step": ["stepWatcher"],
|
1845
|
+
"value": ["valueWatcher"],
|
1846
|
+
"effectiveLocale": ["effectiveLocaleWatcher"]
|
1847
|
+
}; }
|
1848
|
+
};
|
1849
|
+
InputTimePicker.style = inputTimePickerCss;
|
1850
|
+
|
1851
|
+
export { InputTimePicker as I, dayjs as d };
|