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