@esri/solutions-components 0.10.10 → 0.10.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-4bf03edc.js +115 -0
- package/dist/cjs/FloatingArrow-7eca410a.js +48 -0
- package/dist/cjs/Heading-2333bcd2.js +25 -0
- package/dist/cjs/Validation-aa47298a.js +20 -0
- package/dist/cjs/app-globals-7f35a2ee.js +67 -0
- package/dist/cjs/ar-cecfe7a4.js +106 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/array-59824898.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +9 -9
- package/dist/cjs/bg-4fc20839.js +84 -0
- package/dist/cjs/browser-69696af0.js +35 -0
- package/dist/cjs/bs-3bffda26.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +11 -11
- package/dist/cjs/ca-368f111b.js +73 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +24 -24
- package/dist/cjs/calcite-accordion.cjs.entry.js +18 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -16
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +28 -28
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +18 -18
- package/dist/cjs/calcite-action_2.cjs.entry.js +49 -19
- package/dist/cjs/calcite-alert_4.cjs.entry.js +154 -118
- package/dist/cjs/calcite-avatar.cjs.entry.js +176 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js +11 -11
- package/dist/cjs/calcite-block_5.cjs.entry.js +96 -64
- package/dist/cjs/calcite-button.cjs.entry.js +21 -34
- package/dist/cjs/calcite-card-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-card.cjs.entry.js +13 -13
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -3
- package/dist/cjs/calcite-carousel.cjs.entry.js +13 -13
- package/dist/cjs/calcite-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/calcite-chip-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip_2.cjs.entry.js +31 -21
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker.cjs.entry.js +32 -52
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +47 -39
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dialog.cjs.entry.js +308 -36
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +22 -22
- package/dist/cjs/calcite-fab.cjs.entry.js +9 -9
- package/dist/cjs/calcite-filter_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-flow_6.cjs.entry.js +132 -46
- package/dist/cjs/calcite-graph_2.cjs.entry.js +26 -22
- package/dist/cjs/calcite-icon.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-number.cjs.entry.js +39 -34
- package/dist/cjs/calcite-input-text.cjs.entry.js +32 -27
- package/dist/cjs/calcite-input-time-picker-de202530.js +1861 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +21 -22
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +168 -87
- package/dist/cjs/calcite-input_2.cjs.entry.js +41 -36
- package/dist/cjs/calcite-label.cjs.entry.js +11 -8
- package/dist/cjs/calcite-link.cjs.entry.js +11 -11
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-menu-item.cjs.entry.js +14 -14
- package/dist/cjs/calcite-menu.cjs.entry.js +11 -11
- package/dist/cjs/calcite-meter.cjs.entry.js +12 -12
- package/dist/cjs/calcite-modal.cjs.entry.js +21 -21
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +7 -7
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +74 -0
- package/dist/cjs/calcite-navigation.cjs.entry.js +9 -9
- package/dist/cjs/calcite-notice.cjs.entry.js +18 -18
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_2.cjs.entry.js +18 -15
- package/dist/cjs/calcite-pagination.cjs.entry.js +14 -14
- package/dist/cjs/calcite-panel_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list.cjs.entry.js +14 -14
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +13 -7
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-rating.cjs.entry.js +17 -17
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +19 -16
- package/dist/cjs/calcite-sheet.cjs.entry.js +17 -15
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +53 -53
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +11 -11
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-stepper.cjs.entry.js +12 -12
- package/dist/cjs/calcite-switch.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +30 -20
- package/dist/cjs/calcite-table-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-table.cjs.entry.js +14 -14
- package/dist/cjs/calcite-text-area.cjs.entry.js +24 -21
- package/dist/cjs/calcite-tile-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tile.cjs.entry.js +10 -10
- package/dist/cjs/calcite-time-picker.cjs.entry.js +32 -32
- package/dist/cjs/calcite-tip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tooltip.cjs.entry.js +18 -14
- package/dist/cjs/calcite-tree_3.cjs.entry.js +44 -26
- package/dist/cjs/card-manager_3.cjs.entry.js +6 -6
- package/dist/cjs/component-a4c6a35d.js +33 -0
- package/dist/cjs/conditionalSlot-6b5d9b84.js +54 -0
- package/dist/cjs/config-afe9063b.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +3 -3
- package/dist/cjs/constants-0a4fc296.js +812 -0
- package/dist/cjs/continent-cdee1112.js +34 -0
- package/dist/cjs/country-a8539532.js +446 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +29 -26
- package/dist/cjs/cs-1386c8b8.js +149 -0
- package/dist/cjs/da-68d9e5ce.js +69 -0
- package/dist/cjs/date-5a57b606.js +264 -0
- package/dist/cjs/de-at-017d79c1.js +92 -0
- package/dist/cjs/de-ch-f892b97a.js +92 -0
- package/dist/cjs/de-f3b48b7d.js +93 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
- package/dist/cjs/dom-6a9b6275.js +1215 -0
- package/dist/cjs/downloadUtils-e6e2f8c4.js +3163 -0
- package/dist/cjs/el-16691582.js +68 -0
- package/dist/cjs/en-au-3cba8189.js +68 -0
- package/dist/cjs/en-ca-e63c64a3.js +67 -0
- package/dist/cjs/en-gb-66e297eb.js +71 -0
- package/dist/cjs/es-473df127.js +68 -0
- package/dist/cjs/es-mx-b8fc355d.js +67 -0
- package/dist/cjs/et-dfe831e4.js +94 -0
- package/dist/cjs/feature-comments.cjs.entry.js +2 -2
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +58 -14
- package/dist/cjs/features-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/fi-8ab8c685.js +117 -0
- package/dist/cjs/filter-1f98198b.js +778 -0
- package/dist/cjs/floating-ui-b20fd1f7.js +2373 -0
- package/dist/cjs/focusTrapComponent-a4531bc7.js +1018 -0
- package/dist/cjs/form-5229f1c8.js +381 -0
- package/dist/cjs/fr-ch-9cdf5409.js +68 -0
- package/dist/cjs/fr-fbc089e3.js +70 -0
- package/dist/cjs/guid-02e5380f.js +26 -0
- package/dist/cjs/he-33e82ae7.js +107 -0
- package/dist/cjs/helpers-3a8234e8.js +940 -0
- package/dist/cjs/hi-bc15c04d.js +67 -0
- package/dist/cjs/hr-94438cce.js +82 -0
- package/dist/cjs/hu-e076cebf.js +90 -0
- package/dist/cjs/id-81a2fef0.js +68 -0
- package/dist/cjs/index-5a0af791.js +1782 -0
- package/dist/cjs/index-6189d0bb.js +62 -0
- package/dist/cjs/index-866b8a4c.js +127 -0
- package/dist/cjs/index-d21e03cd.js +14 -0
- package/dist/cjs/index-da709a10.js +201 -0
- package/dist/cjs/index.es-fa362797.js +11317 -0
- package/dist/cjs/input-33270a99.js +60 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-create.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-export.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-header.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +9 -11
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +19 -19
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +17 -17
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +39 -54
- package/dist/cjs/instant-apps-splash.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +6 -6
- package/dist/cjs/interactive-89f913ba.js +167 -0
- package/dist/cjs/it-549faba6.js +68 -0
- package/dist/cjs/it-ch-f2165d11.js +68 -0
- package/dist/cjs/ja-2c7ee1fb.js +74 -0
- package/dist/cjs/key-d6da79d8.js +19 -0
- package/dist/cjs/ko-ac460bc7.js +74 -0
- package/dist/cjs/label-26ee0ddb.js +186 -0
- package/dist/cjs/languageUtil-a3e1eafd.js +69 -0
- package/dist/cjs/layout-manager.cjs.entry.js +4 -4
- package/dist/cjs/list-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/loadModules-8567855e.js +23 -0
- package/dist/cjs/loadable-2e2626dc.js +98 -0
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/locale-42c21404.js +605 -0
- package/dist/cjs/locale-a09603ee.js +160 -0
- package/dist/cjs/locale-a1bcb6eb.js +120 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/logger-1c9bfcfd.js +61 -0
- package/dist/cjs/lt-8fd46749.js +99 -0
- package/dist/cjs/lv-49bc9ddb.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +11 -10
- package/dist/cjs/math-2911c0c9.js +60 -0
- package/dist/cjs/mk-5a82adab.js +68 -0
- package/dist/cjs/nb-24cd76dd.js +69 -0
- package/dist/cjs/nl-f6394232.js +69 -0
- package/dist/cjs/observers-8fed90f3.js +58 -0
- package/dist/cjs/openCloseComponent-14628d11.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
- package/dist/cjs/pl-1b2c1ac1.js +116 -0
- package/dist/cjs/popupUtils-92e52dbf.js +121 -0
- package/dist/cjs/pt-b9970ff4.js +69 -0
- package/dist/cjs/pt-br-bfdc1da5.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +7 -7
- package/dist/cjs/publicNotificationStore-f229e839.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/resources-151788f3.js +23 -0
- package/dist/cjs/resources-3eec4ddc.js +27 -0
- package/dist/cjs/resources-41443a57.js +26 -0
- package/dist/cjs/resources-44478618.js +29 -0
- package/dist/cjs/resources-9fb1bc89.js +68 -0
- package/dist/cjs/resources-dfe71ff2.js +39 -0
- package/dist/cjs/resources-e23d63db.js +39 -0
- package/dist/cjs/resources-e96455bb.js +68 -0
- package/dist/cjs/resources-ed5f0434.js +21 -0
- package/dist/cjs/resources-fac4579f.js +23 -0
- package/dist/cjs/ro-d3dcee3e.js +68 -0
- package/dist/cjs/ru-86dc7992.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +2 -2
- package/dist/cjs/shared-list-render-54fa8d30.js +361 -0
- package/dist/cjs/sk-f4477e9e.js +150 -0
- package/dist/cjs/sl-056c7a3e.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +8 -8
- package/dist/cjs/solution-contents_3.cjs.entry.js +8 -8
- package/dist/cjs/solution-store-1218246d.js +1353 -0
- package/dist/cjs/solutions-components.cjs.js +7 -7
- package/dist/cjs/sortableComponent-9bfb9488.js +2748 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
- package/dist/cjs/sr-98be5235.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +3 -3
- package/dist/cjs/sv-cb8dd245.js +73 -0
- package/dist/cjs/t9n-42ba6ea3.js +108 -0
- package/dist/cjs/th-9d1805bf.js +67 -0
- package/dist/cjs/time-d48f5d3e.js +301 -0
- package/dist/cjs/time-zones-cd027b1e.js +367 -0
- package/dist/cjs/tr-833a6ecc.js +68 -0
- package/dist/cjs/uk-df027a8a.js +106 -0
- package/dist/cjs/utils-051e0119.js +78 -0
- package/dist/cjs/utils-357c41eb.js +2304 -0
- package/dist/cjs/utils-a2799a10.js +130 -0
- package/dist/cjs/vi-2f15ae72.js +72 -0
- package/dist/cjs/zh-cn-ede80e9d.js +96 -0
- package/dist/cjs/zh-hk-5de99bec.js +94 -0
- package/dist/cjs/zh-tw-9cf1d1bd.js +94 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/create-feature/create-feature.css +13 -0
- package/dist/collection/components/create-feature/create-feature.js +112 -13
- package/dist/collection/components/create-related-feature/create-related-feature.js +11 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +44 -23
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.js +29 -9
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.css +13 -2
- package/dist/collection/components/feature-list/feature-list.js +70 -8
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +6 -4
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +3 -2
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/crowdsource-reporter.html +11 -3
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +2 -2
- package/dist/components/action-bar.js +2 -2
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +2 -2
- package/dist/components/action-pad.js +2 -2
- package/dist/components/action.js +2 -2
- package/dist/components/alert.js +141 -103
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/block.js +8 -10
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +7 -22
- package/dist/components/calcite-accordion-item.js +15 -15
- package/dist/components/calcite-accordion.js +15 -5
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- package/dist/components/calcite-carousel-item.js +1 -1
- package/dist/components/calcite-carousel.js +1 -1
- package/dist/components/calcite-color-picker.js +19 -39
- package/dist/components/calcite-combobox-item-group.js +1 -69
- package/dist/components/calcite-dialog.js +303 -22
- package/dist/components/calcite-fab.js +2 -2
- package/dist/components/calcite-inline-editable.js +4 -4
- package/dist/components/calcite-input-time-picker.js +38 -40
- package/dist/components/calcite-input-time-zone.js +166 -79
- package/dist/components/calcite-list-item-group.js +2 -2
- package/dist/components/calcite-menu-item.js +4 -4
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-navigation-logo.js +3 -3
- package/dist/components/calcite-navigation.js +3 -3
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-radio-button-group.js +6 -2
- package/dist/components/calcite-rating.js +3 -3
- package/dist/components/calcite-sheet.js +7 -5
- package/dist/components/calcite-shell-center-row.js +3 -3
- package/dist/components/calcite-sortable-list.js +3 -3
- package/dist/components/calcite-split-button.js +2 -2
- package/dist/components/calcite-stepper-item.js +4 -4
- package/dist/components/calcite-stepper.js +3 -3
- package/dist/components/calcite-table-row.js +2 -2
- package/dist/components/calcite-table.js +4 -4
- package/dist/components/calcite-text-area.js +8 -5
- package/dist/components/calcite-tile-group.js +2 -2
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +3 -3
- package/dist/components/calcite-tile.js +3 -3
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +76 -0
- package/dist/components/combobox-item.js +20 -6
- package/dist/components/combobox.js +18 -12
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +5 -5
- package/dist/components/continent.js +31 -0
- package/dist/components/country.js +444 -0
- package/dist/components/create-feature2.js +82 -14
- package/dist/components/create-related-feature2.js +11 -2
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +39 -29
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +10 -7
- package/dist/components/dropdown-group.js +2 -2
- package/dist/components/dropdown-item.js +4 -4
- package/dist/components/dropdown.js +6 -6
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +24 -15
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +64 -13
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +3 -3
- package/dist/components/floating-ui.js +17 -6
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/flow-item.js +14 -5
- package/dist/components/flow.js +2 -2
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +3 -3
- package/dist/components/icon.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/components/index4.js +4 -196
- package/dist/components/index5.js +51 -62
- package/dist/components/index6.js +125 -0
- package/dist/components/info-card2.js +2 -2
- package/dist/components/input-date-picker.js +27 -20
- package/dist/components/input-message.js +2 -2
- package/dist/components/input-number.js +24 -19
- package/dist/components/input-text.js +17 -12
- package/dist/components/input.js +25 -20
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +39 -7
- package/dist/components/instant-apps-landing-page.js +8 -10
- package/dist/components/instant-apps-language-switcher.js +8 -8
- package/dist/components/instant-apps-language-translator2.js +759 -8
- package/dist/components/instant-apps-sign-in2.js +34 -49
- package/dist/components/interactive.js +2 -4
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +5 -2
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/link.js +4 -4
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/list-item.js +2 -2
- package/dist/components/list.js +2 -2
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +41 -6
- package/dist/components/locale2.js +23 -3
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/logger.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +6 -4
- 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 +3 -2
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/modal.js +5 -5
- package/dist/components/navigation-user.js +3 -3
- package/dist/components/notice.js +4 -4
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/option.js +1 -1
- package/dist/components/pagination.js +3 -3
- package/dist/components/panel.js +10 -6
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/pick-list-item.js +2 -2
- package/dist/components/popover.js +6 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/radio-button.js +2 -2
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/scrim.js +2 -2
- package/dist/components/segmented-control-item.js +2 -2
- package/dist/components/segmented-control.js +6 -3
- package/dist/components/select.js +6 -3
- package/dist/components/share-item.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +3 -3
- package/dist/components/shell.js +3 -3
- package/dist/components/slider.js +12 -8
- package/dist/components/solution-configuration.js +11 -17
- package/dist/components/solution-contents2.js +2 -8
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +9 -15
- package/dist/components/solution-organization-variables2.js +2 -8
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +7 -13
- package/dist/components/solution-variables2.js +2 -8
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/spatial-ref.js +2 -8
- package/dist/components/stack.js +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +5 -5
- package/dist/components/tab.js +2 -2
- package/dist/components/table-cell.js +3 -3
- package/dist/components/table-header.js +15 -5
- package/dist/components/tabs.js +2 -2
- package/dist/components/time-picker.js +21 -21
- package/dist/components/time-zones.js +365 -0
- package/dist/components/tooltip.js +10 -6
- package/dist/components/tree-item.js +33 -20
- package/dist/components/tree.js +3 -3
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +8 -3
- package/dist/components/utils3.js +1 -1
- package/dist/components/value-list-item.js +2 -2
- package/dist/components/value-list.js +2 -2
- package/dist/esm/ExpandToggle-bddb5e82.js +108 -0
- package/dist/esm/FloatingArrow-adf66cf8.js +46 -0
- package/dist/esm/Heading-20345c69.js +22 -0
- package/dist/esm/Validation-63949b7d.js +18 -0
- package/dist/esm/app-globals-5d3ac5ed.js +65 -0
- package/dist/esm/ar-c466a382.js +104 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/array-dd6e2c7d.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +9 -9
- package/dist/esm/bg-9cb15225.js +82 -0
- package/dist/esm/browser-552eb2d0.js +32 -0
- package/dist/esm/bs-f5629d7c.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +11 -11
- package/dist/esm/ca-4bf4a8d1.js +71 -0
- package/dist/esm/calcite-accordion-item.entry.js +24 -24
- package/dist/esm/calcite-accordion.entry.js +18 -8
- package/dist/esm/calcite-action-bar.entry.js +16 -16
- package/dist/esm/calcite-action-group.entry.js +14 -14
- package/dist/esm/calcite-action-menu_3.entry.js +28 -28
- package/dist/esm/calcite-action-pad_2.entry.js +18 -18
- package/dist/esm/calcite-action_2.entry.js +49 -19
- package/dist/esm/calcite-alert_4.entry.js +154 -118
- package/dist/esm/calcite-avatar.entry.js +172 -0
- package/dist/esm/calcite-block-section.entry.js +11 -11
- package/dist/esm/calcite-block_5.entry.js +96 -64
- package/dist/esm/calcite-button.entry.js +21 -34
- package/dist/esm/calcite-card-group.entry.js +7 -7
- package/dist/esm/calcite-card.entry.js +13 -13
- package/dist/esm/calcite-carousel-item.entry.js +3 -3
- package/dist/esm/calcite-carousel.entry.js +13 -13
- package/dist/esm/calcite-checkbox.entry.js +12 -12
- package/dist/esm/calcite-chip-group.entry.js +7 -7
- package/dist/esm/calcite-chip_2.entry.js +31 -21
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +9 -9
- package/dist/esm/calcite-color-picker.entry.js +32 -52
- package/dist/esm/calcite-combobox-item-group.entry.js +7 -7
- package/dist/esm/calcite-combobox_3.entry.js +48 -40
- package/dist/esm/calcite-date-picker-day_3.entry.js +14 -14
- package/dist/esm/calcite-dialog.entry.js +308 -36
- package/dist/esm/calcite-dropdown_2.entry.js +22 -22
- package/dist/esm/calcite-fab.entry.js +9 -9
- package/dist/esm/calcite-filter_5.entry.js +27 -27
- package/dist/esm/calcite-flow_6.entry.js +132 -46
- package/dist/esm/calcite-graph_2.entry.js +26 -22
- package/dist/esm/calcite-icon.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +17 -17
- package/dist/esm/calcite-input-number.entry.js +39 -34
- package/dist/esm/calcite-input-text.entry.js +32 -27
- package/dist/esm/calcite-input-time-picker-60dbdc25.js +1858 -0
- package/dist/esm/calcite-input-time-picker.entry.js +21 -22
- package/dist/esm/calcite-input-time-zone.entry.js +168 -87
- package/dist/esm/calcite-input_2.entry.js +41 -36
- package/dist/esm/calcite-label.entry.js +11 -8
- package/dist/esm/calcite-link.entry.js +11 -11
- package/dist/esm/calcite-list-item-group.entry.js +6 -6
- package/dist/esm/calcite-menu-item.entry.js +14 -14
- package/dist/esm/calcite-menu.entry.js +11 -11
- package/dist/esm/calcite-meter.entry.js +12 -12
- package/dist/esm/calcite-modal.entry.js +21 -21
- package/dist/esm/calcite-navigation-logo.entry.js +7 -7
- package/dist/esm/calcite-navigation-user.entry.js +70 -0
- package/dist/esm/calcite-navigation.entry.js +9 -9
- package/dist/esm/calcite-notice.entry.js +18 -18
- package/dist/esm/calcite-option-group.entry.js +2 -2
- package/dist/esm/calcite-option_2.entry.js +18 -15
- package/dist/esm/calcite-pagination.entry.js +14 -14
- package/dist/esm/calcite-panel_2.entry.js +23 -23
- package/dist/esm/calcite-pick-list-group.entry.js +12 -12
- package/dist/esm/calcite-pick-list-item.entry.js +17 -17
- package/dist/esm/calcite-pick-list.entry.js +14 -14
- package/dist/esm/calcite-radio-button-group.entry.js +13 -7
- package/dist/esm/calcite-radio-button.entry.js +13 -13
- package/dist/esm/calcite-rating.entry.js +17 -17
- package/dist/esm/calcite-segmented-control_2.entry.js +19 -16
- package/dist/esm/calcite-sheet.entry.js +17 -15
- package/dist/esm/calcite-shell-center-row.entry.js +10 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +53 -53
- package/dist/esm/calcite-sortable-list.entry.js +11 -11
- package/dist/esm/calcite-split-button.entry.js +6 -6
- package/dist/esm/calcite-stepper-item.entry.js +15 -15
- package/dist/esm/calcite-stepper.entry.js +12 -12
- package/dist/esm/calcite-switch.entry.js +13 -13
- package/dist/esm/calcite-table-cell_2.entry.js +30 -20
- package/dist/esm/calcite-table-row.entry.js +10 -10
- package/dist/esm/calcite-table.entry.js +14 -14
- package/dist/esm/calcite-text-area.entry.js +24 -21
- package/dist/esm/calcite-tile-group.entry.js +9 -9
- package/dist/esm/calcite-tile-select-group.entry.js +6 -6
- package/dist/esm/calcite-tile-select.entry.js +10 -10
- package/dist/esm/calcite-tile.entry.js +10 -10
- package/dist/esm/calcite-time-picker.entry.js +32 -32
- package/dist/esm/calcite-tip-group.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +13 -13
- package/dist/esm/calcite-tip.entry.js +15 -15
- package/dist/esm/calcite-tooltip.entry.js +18 -14
- package/dist/esm/calcite-tree_3.entry.js +44 -26
- package/dist/esm/card-manager_3.entry.js +6 -6
- package/dist/esm/component-c2c32481.js +30 -0
- package/dist/esm/conditionalSlot-60e775f3.js +51 -0
- package/dist/esm/config-2fa7bb77.js +36 -0
- package/dist/esm/consent-manager.entry.js +3 -3
- package/dist/esm/constants-045d6a1b.js +808 -0
- package/dist/esm/continent-125eb777.js +31 -0
- package/dist/esm/country-2d5661ee.js +444 -0
- package/dist/esm/crowdsource-manager.entry.js +4 -4
- package/dist/esm/crowdsource-reporter.entry.js +29 -26
- package/dist/esm/cs-41ed0d89.js +147 -0
- package/dist/esm/da-a8c74a48.js +67 -0
- package/dist/esm/date-45f24c42.js +248 -0
- package/dist/esm/de-9a636f1a.js +91 -0
- package/dist/esm/de-at-26352836.js +90 -0
- package/dist/esm/de-ch-25495449.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +2 -2
- package/dist/esm/dom-b5c50286.js +1180 -0
- package/dist/esm/downloadUtils-74bc82ae.js +3156 -0
- package/dist/esm/el-82ffddec.js +66 -0
- package/dist/esm/en-au-0f081a3c.js +66 -0
- package/dist/esm/en-ca-f04aeac2.js +65 -0
- package/dist/esm/en-gb-81e968d6.js +69 -0
- package/dist/esm/es-e058977a.js +66 -0
- package/dist/esm/es-mx-14a1f320.js +65 -0
- package/dist/esm/et-4a06c642.js +92 -0
- package/dist/esm/feature-comments.entry.js +2 -2
- package/dist/esm/feature-form-flow-item.entry.js +2 -2
- package/dist/esm/feature-list.entry.js +58 -14
- package/dist/esm/features-flow-item.entry.js +2 -2
- package/dist/esm/fi-9673a0e6.js +115 -0
- package/dist/esm/filter-23b3858b.js +775 -0
- package/dist/esm/floating-ui-ba0acfca.js +2365 -0
- package/dist/esm/focusTrapComponent-6ec0f681.js +1013 -0
- package/dist/esm/form-ba965042.js +372 -0
- package/dist/esm/fr-94ff7253.js +68 -0
- package/dist/esm/fr-ch-00b7e60e.js +66 -0
- package/dist/esm/guid-4c746a7f.js +24 -0
- package/dist/esm/he-faefbd69.js +105 -0
- package/dist/esm/helpers-3be8dbbc.js +913 -0
- package/dist/esm/hi-923b9ffd.js +65 -0
- package/dist/esm/hr-6ed6939b.js +80 -0
- package/dist/esm/hu-25918d1e.js +88 -0
- package/dist/esm/id-520427a1.js +66 -0
- package/dist/esm/index-2c724afd.js +199 -0
- package/dist/esm/index-87ec7c0a.js +71 -0
- package/dist/esm/index-ad182a71.js +125 -0
- package/dist/esm/index-b793d9aa.js +1748 -0
- package/dist/esm/index-f5d562b1.js +60 -0
- package/dist/esm/index-f8c935d6.js +12 -0
- package/dist/esm/index.es-40ce1695.js +11230 -0
- package/dist/esm/input-d11f5ac8.js +58 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +7 -7
- package/dist/esm/instant-apps-control-panel.entry.js +3 -3
- package/dist/esm/instant-apps-create.entry.js +5 -5
- package/dist/esm/instant-apps-export-views.entry.js +5 -5
- package/dist/esm/instant-apps-export.entry.js +5 -5
- package/dist/esm/instant-apps-header.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend.entry.js +7 -7
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +5 -5
- package/dist/esm/instant-apps-landing-page.entry.js +9 -11
- package/dist/esm/instant-apps-language-switcher.entry.js +15 -15
- package/dist/esm/instant-apps-language-translator.entry.js +15 -15
- package/dist/esm/instant-apps-measurement.entry.js +5 -5
- package/dist/esm/instant-apps-popover.entry.js +5 -5
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +5 -5
- package/dist/esm/instant-apps-sign-in.entry.js +39 -54
- package/dist/esm/instant-apps-splash.entry.js +5 -5
- package/dist/esm/instant-apps-time-filter.entry.js +6 -6
- package/dist/esm/interactive-742ba555.js +162 -0
- package/dist/esm/it-7751f7dc.js +66 -0
- package/dist/esm/it-ch-cec3226b.js +66 -0
- package/dist/esm/ja-1df4233a.js +72 -0
- package/dist/esm/key-58898f0a.js +16 -0
- package/dist/esm/ko-a104769f.js +72 -0
- package/dist/esm/label-0b82858a.js +179 -0
- package/dist/esm/languageUtil-2b6e191a.js +66 -0
- package/dist/esm/layout-manager.entry.js +4 -4
- package/dist/esm/list-flow-item.entry.js +2 -2
- package/dist/esm/loadModules-03ba7abe.js +21 -0
- package/dist/esm/loadable-73f289b6.js +93 -0
- package/dist/esm/loader.js +7 -7
- package/dist/esm/locale-21e40b0c.js +591 -0
- package/dist/esm/locale-adb5ff0b.js +115 -0
- package/dist/esm/locale-b1d53fb1.js +155 -0
- package/dist/esm/location-flow-item.entry.js +2 -2
- package/dist/esm/logger-0d6e5bfe.js +59 -0
- package/dist/esm/lt-747213da.js +97 -0
- package/dist/esm/lv-06088b99.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +11 -10
- package/dist/esm/math-8c04292e.js +54 -0
- package/dist/esm/mk-5f581ea0.js +66 -0
- package/dist/esm/nb-f9d01bec.js +67 -0
- package/dist/esm/nl-48b9338d.js +67 -0
- package/dist/esm/observers-e2484555.js +56 -0
- package/dist/esm/openCloseComponent-7b8f2e24.js +63 -0
- package/dist/esm/pci-calculator.entry.js +2 -2
- package/dist/esm/pl-2ff50be7.js +114 -0
- package/dist/esm/popupUtils-00c655fb.js +119 -0
- package/dist/esm/pt-br-45ae496b.js +65 -0
- package/dist/esm/pt-ed25c80b.js +67 -0
- package/dist/esm/public-notification.entry.js +7 -7
- package/dist/esm/publicNotificationStore-7b0b97b6.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +2 -2
- package/dist/esm/resources-2d6e35cf.js +20 -0
- package/dist/esm/resources-30b747d4.js +23 -0
- package/dist/esm/resources-5ba50a1d.js +19 -0
- package/dist/esm/resources-64237427.js +63 -0
- package/dist/esm/resources-8665df6b.js +62 -0
- package/dist/esm/resources-896b6b00.js +35 -0
- package/dist/esm/resources-8f90cf93.js +22 -0
- package/dist/esm/resources-bc5c2adb.js +21 -0
- package/dist/esm/resources-cfbcc1ed.js +24 -0
- package/dist/esm/resources-defbb49f.js +34 -0
- package/dist/esm/ro-c5727d93.js +66 -0
- package/dist/esm/ru-ecb35906.js +126 -0
- package/dist/esm/share-item.entry.js +2 -2
- package/dist/esm/shared-list-render-4053f1dc.js +339 -0
- package/dist/esm/sk-e9c31458.js +148 -0
- package/dist/esm/sl-063df216.js +168 -0
- package/dist/esm/solution-configuration.entry.js +8 -8
- package/dist/esm/solution-contents_3.entry.js +8 -8
- package/dist/esm/solution-store-61fd39ea.js +1351 -0
- package/dist/esm/solutions-components.js +8 -8
- package/dist/esm/sortableComponent-3f9e9322.js +2745 -0
- package/dist/esm/spatial-ref.entry.js +4 -4
- package/dist/esm/sr-68f70e45.js +101 -0
- package/dist/esm/store-manager.entry.js +3 -3
- package/dist/esm/sv-b5a85ee5.js +71 -0
- package/dist/esm/t9n-2fb3af62.js +103 -0
- package/dist/esm/th-3a5ed31b.js +65 -0
- package/dist/esm/time-a215e415.js +286 -0
- package/dist/esm/time-zones-211c88e3.js +365 -0
- package/dist/esm/tr-b8829177.js +66 -0
- package/dist/esm/uk-c74df043.js +104 -0
- package/dist/esm/utils-13c5908e.js +65 -0
- package/dist/esm/utils-1f0d1828.js +2274 -0
- package/dist/esm/utils-5b977646.js +121 -0
- package/dist/esm/vi-a5092b10.js +70 -0
- package/dist/esm/zh-cn-f1e998fb.js +94 -0
- package/dist/esm/zh-hk-3ec32fe3.js +92 -0
- package/dist/esm/zh-tw-33f4a290.js +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +85 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +240 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +320 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +91 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +116 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +78 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +105 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +428 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +81 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +338 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +156 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +802 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +339 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +73 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +330 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +45 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +179 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +501 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +78 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +256 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +66 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +74 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +455 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +248 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +101 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +72 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +294 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +96 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +189 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +338 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +141 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +84 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +199 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +76 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +140 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +98 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +94 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +51 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +102 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +74 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +93 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +650 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +295 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +504 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +417 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +125 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +75 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +138 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +152 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +106 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +348 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +79 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +301 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +50 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +281 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +187 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +529 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +142 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +137 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +112 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +288 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +36 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +36 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +151 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +364 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +96 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +83 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +183 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +199 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +110 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +168 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +96 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +182 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +76 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +120 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +179 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +252 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +267 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +209 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +124 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +394 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +395 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +72 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +192 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +116 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +150 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +479 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +188 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +105 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +158 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +422 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +135 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +170 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +154 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +82 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +101 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +300 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +297 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +86 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +239 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +68 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +144 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +151 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +47 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +194 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +121 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +41 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +338 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +109 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +125 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-control-panel/instant-apps-control-panel.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-create/instant-apps-create.css +150 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +92 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export-views/instant-apps-export-views.css +92 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +108 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +180 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +124 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +18 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element/instant-apps-interactive-legend-group-legend-element.css +10 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element-caption/instant-apps-interactive-legend-group-legend-element-caption.css +65 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element/instant-apps-interactive-legend-layer-element.css +17 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +66 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element/instant-apps-interactive-legend-legend-element.css +10 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +51 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-relationship/instant-apps-interactive-legend-relationship.css +15 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +12 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +33 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +228 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +13 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-ckeditor-wrapper/instant-apps-ckeditor-wrapper.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-item/instant-apps-language-translator-item.css +90 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-search/instant-apps-language-translator-search.css +34 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +86 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement-tool/instant-apps-measurement-tool.css +6 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +6 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +58 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popovers/instant-apps-popovers.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +200 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +90 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +286 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +13 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-time-filter/instant-apps-time-filter.css +42 -0
- package/dist/solutions-components/assets/dialog/t9n/index.d.ts +2 -0
- package/dist/solutions-components/assets/dialog/t9n/messages.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_en.json +3 -1
- package/dist/solutions-components/assets/icon/closedCaption16.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption16F.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption24.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption24F.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption32.json +1 -0
- package/dist/solutions-components/assets/icon/closedCaption32F.json +1 -0
- package/dist/solutions-components/assets/icon/flag16.json +1 -0
- package/dist/solutions-components/assets/icon/flag16F.json +1 -0
- package/dist/solutions-components/assets/icon/flag24.json +1 -0
- package/dist/solutions-components/assets/icon/flag24F.json +1 -0
- package/dist/solutions-components/assets/icon/flag32.json +1 -0
- package/dist/solutions-components/assets/icon/flag32F.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash16.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash24.json +1 -0
- package/dist/solutions-components/assets/icon/flagSlash32.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection16.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection24.json +1 -0
- package/dist/solutions-components/assets/icon/layerConnection32.json +1 -0
- package/dist/solutions-components/assets/icon/transcript16.json +1 -0
- package/dist/solutions-components/assets/icon/transcript16F.json +1 -0
- package/dist/solutions-components/assets/icon/transcript24.json +1 -0
- package/dist/solutions-components/assets/icon/transcript24F.json +1 -0
- package/dist/solutions-components/assets/icon/transcript32.json +1 -0
- package/dist/solutions-components/assets/icon/transcript32F.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/index.d.ts +261 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_en.json +262 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +11 -3
- package/dist/solutions-components/p-0005175a.js +16 -0
- package/dist/solutions-components/p-004d601f.entry.js +6 -0
- package/dist/solutions-components/p-00d131cd.entry.js +11 -0
- package/dist/solutions-components/p-013188f8.entry.js +6 -0
- package/dist/solutions-components/p-01df774b.js +11 -0
- package/dist/solutions-components/p-0215daed.js +6 -0
- package/dist/solutions-components/p-022c49af.js +489 -0
- package/dist/solutions-components/p-04f09e7f.entry.js +11 -0
- package/dist/solutions-components/p-0558fbc7.js +143 -0
- package/dist/solutions-components/p-05b7d3ce.js +6 -0
- package/dist/solutions-components/p-06084e6c.js +11 -0
- package/dist/solutions-components/p-064e43e0.entry.js +6 -0
- package/dist/solutions-components/p-089bc565.js +11 -0
- package/dist/solutions-components/p-0fe5de6b.entry.js +6 -0
- package/dist/solutions-components/p-1061076b.js +6 -0
- package/dist/solutions-components/p-14fbc662.js +11 -0
- package/dist/solutions-components/p-1500d4c7.js +6 -0
- package/dist/solutions-components/p-15622ace.entry.js +11 -0
- package/dist/solutions-components/p-16d4eb72.entry.js +16 -0
- package/dist/solutions-components/p-172fcecd.entry.js +11 -0
- package/dist/solutions-components/p-1892c357.js +11 -0
- package/dist/solutions-components/p-18f18ab3.js +11 -0
- package/dist/solutions-components/p-1900269a.entry.js +6 -0
- package/dist/solutions-components/p-19a942c4.entry.js +16 -0
- package/dist/solutions-components/p-1a9a47a0.js +11 -0
- package/dist/solutions-components/p-1bbe9e22.js +6 -0
- package/dist/solutions-components/p-1d71e81f.js +11 -0
- package/dist/solutions-components/p-1d99dfcd.entry.js +11 -0
- package/dist/solutions-components/p-1e455668.js +6 -0
- package/dist/solutions-components/p-1ed47f10.entry.js +21 -0
- package/dist/solutions-components/p-2058b5d9.js +36 -0
- package/dist/solutions-components/p-207b4e70.entry.js +11 -0
- package/dist/solutions-components/p-24997e81.js +6 -0
- package/dist/solutions-components/p-25a1fe4d.js +6 -0
- package/dist/solutions-components/p-25c584f4.entry.js +17 -0
- package/dist/solutions-components/p-26eb6f09.js +6 -0
- package/dist/solutions-components/p-274cad02.entry.js +6 -0
- package/dist/solutions-components/p-2ab773ed.js +6 -0
- package/dist/solutions-components/p-2c423f9c.js +6 -0
- package/dist/solutions-components/p-2d1afda0.entry.js +17 -0
- package/dist/solutions-components/p-2ed8e994.entry.js +17 -0
- package/dist/solutions-components/p-3110db7a.entry.js +6 -0
- package/dist/solutions-components/p-31f7dd8e.entry.js +6 -0
- package/dist/solutions-components/p-32be7387.js +6 -0
- package/dist/solutions-components/p-336b8f46.js +6 -0
- package/dist/solutions-components/p-371dbb0f.entry.js +6 -0
- package/dist/solutions-components/p-388725c2.entry.js +6 -0
- package/dist/solutions-components/p-3917c6f8.entry.js +11 -0
- package/dist/solutions-components/p-3a74aab6.entry.js +6 -0
- package/dist/solutions-components/p-3c1945a9.js +6 -0
- package/dist/solutions-components/p-3d0666fe.js +6 -0
- package/dist/solutions-components/p-3d6b18ec.entry.js +11 -0
- package/dist/solutions-components/p-3df511e0.entry.js +6 -0
- package/dist/solutions-components/p-3eff6da3.js +11 -0
- package/dist/solutions-components/p-3f9238e9.entry.js +11 -0
- package/dist/solutions-components/p-40724bfb.js +11 -0
- package/dist/solutions-components/p-40d7e510.js +6 -0
- package/dist/solutions-components/p-415cf05e.js +12 -0
- package/dist/solutions-components/p-4216af0e.js +6 -0
- package/dist/solutions-components/p-42a8493c.entry.js +6 -0
- package/dist/solutions-components/p-44240d03.js +18 -0
- package/dist/solutions-components/p-4514dc6f.entry.js +11 -0
- package/dist/solutions-components/p-47f6f996.entry.js +6 -0
- package/dist/solutions-components/p-49118e69.js +6 -0
- package/dist/solutions-components/p-4a0d9efe.entry.js +6 -0
- package/dist/solutions-components/p-4cd4cb85.js +6 -0
- package/dist/solutions-components/p-4de4fff6.entry.js +6 -0
- package/dist/solutions-components/p-4f06e105.entry.js +11 -0
- package/dist/solutions-components/p-4f074a84.entry.js +11 -0
- package/dist/solutions-components/p-4f474f64.js +6 -0
- package/dist/solutions-components/p-4fc5ab17.js +6 -0
- package/dist/solutions-components/p-51270f04.entry.js +6 -0
- package/dist/solutions-components/p-52576649.entry.js +17 -0
- package/dist/solutions-components/p-534cd147.js +6 -0
- package/dist/solutions-components/p-544cd7fd.entry.js +11 -0
- package/dist/solutions-components/p-56601650.js +11 -0
- package/dist/solutions-components/p-569ccf2c.entry.js +11 -0
- package/dist/solutions-components/p-56b9dc0d.entry.js +11 -0
- package/dist/solutions-components/p-580a4537.js +11 -0
- package/dist/solutions-components/p-58405b19.entry.js +11 -0
- package/dist/solutions-components/p-5c1366f7.entry.js +11 -0
- package/dist/solutions-components/p-5cca7ef7.entry.js +17 -0
- package/dist/solutions-components/p-5dcec135.js +21 -0
- package/dist/solutions-components/p-5ee4ba5c.js +6 -0
- package/dist/solutions-components/p-6070857c.js +6 -0
- package/dist/solutions-components/p-61f47dfa.entry.js +11 -0
- package/dist/solutions-components/p-621e306e.js +6 -0
- package/dist/solutions-components/p-62c6764c.js +6 -0
- package/dist/solutions-components/p-66be22db.entry.js +11 -0
- package/dist/solutions-components/p-682d053f.entry.js +6 -0
- package/dist/solutions-components/p-68ec5c15.js +17 -0
- package/dist/solutions-components/p-6d6c3d56.js +6 -0
- package/dist/solutions-components/p-6eb37ed2.js +7 -0
- package/dist/solutions-components/p-6f253995.js +61 -0
- package/dist/solutions-components/p-6fb5c228.entry.js +11 -0
- package/dist/solutions-components/p-70b46ea4.js +6 -0
- package/dist/solutions-components/p-712269bc.entry.js +29 -0
- package/dist/solutions-components/p-720a12c0.js +6 -0
- package/dist/solutions-components/p-7324cb9f.js +6 -0
- package/dist/solutions-components/p-7699e80b.js +11 -0
- package/dist/solutions-components/p-7987d73b.entry.js +6 -0
- package/dist/solutions-components/p-7a61d771.entry.js +11 -0
- package/dist/solutions-components/p-7b0b9681.js +6 -0
- package/dist/solutions-components/p-7b68d1ea.js +6 -0
- package/dist/solutions-components/p-7bfecd07.js +6 -0
- package/dist/solutions-components/p-7c00971f.js +6 -0
- package/dist/solutions-components/p-7ca6f4d5.entry.js +6 -0
- package/dist/solutions-components/p-7d32b6a4.entry.js +11 -0
- package/dist/solutions-components/p-7d484762.entry.js +6 -0
- package/dist/solutions-components/p-7eb5d31a.js +6 -0
- package/dist/solutions-components/p-81790f41.js +6 -0
- package/dist/solutions-components/p-8208ba6c.entry.js +6 -0
- package/dist/solutions-components/p-8241cd35.js +11 -0
- package/dist/solutions-components/p-83786108.js +6 -0
- package/dist/solutions-components/p-84a049f7.entry.js +6 -0
- package/dist/solutions-components/p-8524bacc.js +11 -0
- package/dist/solutions-components/p-86d877d8.entry.js +17 -0
- package/dist/solutions-components/p-89195780.entry.js +29 -0
- package/dist/solutions-components/p-8a177acd.entry.js +11 -0
- package/dist/solutions-components/p-8c2d05c1.js +6 -0
- package/dist/solutions-components/p-8ce7e559.entry.js +11 -0
- package/dist/solutions-components/p-8d576a9a.js +6 -0
- package/dist/solutions-components/p-8df67871.entry.js +11 -0
- package/dist/solutions-components/p-8f07cef3.entry.js +11 -0
- package/dist/solutions-components/p-8f0ee4b0.js +17 -0
- package/dist/solutions-components/p-8f218bfe.entry.js +11 -0
- package/dist/solutions-components/p-900fee65.js +21 -0
- package/dist/solutions-components/p-92baaf77.entry.js +11 -0
- package/dist/solutions-components/p-939bc1b4.js +16 -0
- package/dist/solutions-components/p-93fd86cd.entry.js +6 -0
- package/dist/solutions-components/p-960baebc.entry.js +6 -0
- package/dist/solutions-components/p-969008d8.entry.js +6 -0
- package/dist/solutions-components/p-97331a60.entry.js +12 -0
- package/dist/solutions-components/p-976ad17d.entry.js +6 -0
- package/dist/solutions-components/p-99af3f50.js +6 -0
- package/dist/solutions-components/p-9ab3df4f.js +11 -0
- package/dist/solutions-components/p-9d0528ac.js +6 -0
- package/dist/solutions-components/p-9dc4186e.entry.js +11 -0
- package/dist/solutions-components/p-9ec1aa8c.js +6 -0
- package/dist/solutions-components/p-9f0b8f8b.js +11 -0
- package/dist/solutions-components/p-9f574f86.entry.js +6 -0
- package/dist/solutions-components/p-9f63a45c.js +11 -0
- package/dist/solutions-components/p-9f8b30b5.entry.js +11 -0
- package/dist/solutions-components/p-a0db88ed.js +6 -0
- package/dist/solutions-components/p-a2246051.entry.js +17 -0
- package/dist/solutions-components/p-a432f638.entry.js +6 -0
- package/dist/solutions-components/p-a474882d.js +6 -0
- package/dist/solutions-components/p-a5609b81.js +11 -0
- package/dist/solutions-components/p-a6935ddf.js +6 -0
- package/dist/solutions-components/p-a6aba7d4.entry.js +6 -0
- package/dist/solutions-components/p-a72f5cc6.js +6 -0
- package/dist/solutions-components/p-a84b3d50.js +6 -0
- package/dist/solutions-components/p-a858460b.entry.js +47 -0
- package/dist/solutions-components/p-a94a0072.js +6 -0
- package/dist/solutions-components/p-a957cdd8.entry.js +11 -0
- package/dist/solutions-components/p-aa0ac2d2.js +16 -0
- package/dist/solutions-components/p-aa3140aa.entry.js +6 -0
- package/dist/solutions-components/p-aa71106f.entry.js +11 -0
- package/dist/solutions-components/p-abd3e579.entry.js +6 -0
- package/dist/solutions-components/p-ac122d9e.js +6 -0
- package/dist/solutions-components/p-ac52e0ba.js +11 -0
- package/dist/solutions-components/p-acaae81d.js +11 -0
- package/dist/solutions-components/p-aeb86188.js +11 -0
- package/dist/solutions-components/p-afcd5996.js +11 -0
- package/dist/solutions-components/p-b12af1e0.entry.js +17 -0
- package/dist/solutions-components/p-b1bc21ac.js +11 -0
- package/dist/solutions-components/p-b39c5275.js +11 -0
- package/dist/solutions-components/p-b3f2bb6f.js +6 -0
- package/dist/solutions-components/p-b448a7a7.js +6 -0
- package/dist/solutions-components/p-b5963a0f.js +6 -0
- package/dist/solutions-components/p-b7c200a0.entry.js +12 -0
- package/dist/solutions-components/p-b8eee32e.js +6 -0
- package/dist/solutions-components/p-bb9ac684.entry.js +6 -0
- package/dist/solutions-components/p-bc0aaf2f.entry.js +11 -0
- package/dist/solutions-components/p-bc14b643.entry.js +12 -0
- package/dist/solutions-components/p-bc1d8894.js +11 -0
- package/dist/solutions-components/p-bc33d298.js +6 -0
- package/dist/solutions-components/p-bcc79697.js +11 -0
- package/dist/solutions-components/p-beb23ced.entry.js +6 -0
- package/dist/solutions-components/p-bef2141e.entry.js +6 -0
- package/dist/solutions-components/p-bfa395e9.js +6 -0
- package/dist/solutions-components/p-c2964e00.entry.js +11 -0
- package/dist/solutions-components/p-c5e13ebc.js +11 -0
- package/dist/solutions-components/p-c638d28e.js +11 -0
- package/dist/solutions-components/p-c71745d0.entry.js +6 -0
- package/dist/solutions-components/p-c7bfe120.entry.js +6 -0
- package/dist/solutions-components/p-c7e2d3e6.entry.js +6 -0
- package/dist/solutions-components/p-c89f1175.entry.js +11 -0
- package/dist/solutions-components/p-c8b149b8.entry.js +6 -0
- package/dist/solutions-components/p-c911c46d.entry.js +11 -0
- package/dist/solutions-components/p-c9260b4c.entry.js +6 -0
- package/dist/solutions-components/p-c9a45311.entry.js +6 -0
- package/dist/solutions-components/p-ca3430fd.entry.js +21 -0
- package/dist/solutions-components/p-ca65d7ff.entry.js +12 -0
- package/dist/solutions-components/p-cabc6e5c.entry.js +17 -0
- package/dist/solutions-components/p-cb5ddaae.js +6 -0
- package/dist/solutions-components/p-cb5de432.entry.js +11 -0
- package/dist/solutions-components/p-cde8d6e5.entry.js +11 -0
- package/dist/solutions-components/p-d301b8fd.js +6 -0
- package/dist/solutions-components/p-d3453ce8.entry.js +6 -0
- package/dist/solutions-components/p-d4d4b4e3.entry.js +6 -0
- package/dist/solutions-components/p-d4e58347.entry.js +6 -0
- package/dist/solutions-components/p-d52da3ad.js +6 -0
- package/dist/solutions-components/p-d559f79c.js +11 -0
- package/dist/solutions-components/p-d5dae468.js +6 -0
- package/dist/solutions-components/p-d62336e2.entry.js +6 -0
- package/dist/solutions-components/p-d6e62ea2.js +6 -0
- package/dist/solutions-components/p-da713b07.entry.js +6 -0
- package/dist/solutions-components/p-da9cee72.entry.js +11 -0
- package/dist/solutions-components/p-dc58c4da.entry.js +6 -0
- package/dist/solutions-components/p-dc7710b5.js +11 -0
- package/dist/solutions-components/p-dd3530da.entry.js +11 -0
- package/dist/solutions-components/p-de02a060.entry.js +11 -0
- package/dist/solutions-components/p-de197552.js +6 -0
- package/dist/solutions-components/p-df191993.entry.js +11 -0
- package/dist/solutions-components/p-e1917512.js +6 -0
- package/dist/solutions-components/p-e33e07a4.entry.js +11 -0
- package/dist/solutions-components/p-e83d2d34.entry.js +24 -0
- package/dist/solutions-components/p-e98c4f93.js +11 -0
- package/dist/solutions-components/p-ead8696c.js +16 -0
- package/dist/solutions-components/p-ec702c30.entry.js +11 -0
- package/dist/solutions-components/p-ed60dff0.entry.js +11 -0
- package/dist/solutions-components/p-ed7cba2a.entry.js +11 -0
- package/dist/solutions-components/p-ee157540.entry.js +22 -0
- package/dist/solutions-components/p-eeaa122b.entry.js +11 -0
- package/dist/solutions-components/p-ef4f2c1d.entry.js +6 -0
- package/dist/solutions-components/p-f0345689.entry.js +16 -0
- package/dist/solutions-components/p-f25d5c18.entry.js +6 -0
- package/dist/solutions-components/p-f31a44b7.js +11 -0
- package/dist/solutions-components/p-f32f57a3.entry.js +6 -0
- package/dist/solutions-components/p-f47d6a10.entry.js +11 -0
- package/dist/solutions-components/p-f69ca69c.js +6 -0
- package/dist/solutions-components/p-f7d3ef3e.entry.js +6 -0
- package/dist/solutions-components/p-f89104bc.entry.js +6 -0
- package/dist/solutions-components/p-f91ae108.entry.js +6 -0
- package/dist/solutions-components/p-f9393949.entry.js +6 -0
- package/dist/solutions-components/p-fc58da4b.entry.js +6 -0
- package/dist/solutions-components/p-fce978b9.entry.js +6 -0
- package/dist/solutions-components/p-fe6f7734.js +11 -0
- package/dist/solutions-components/p-ff8343ec.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +0 -1
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +0 -2
- package/dist/types/components/card-manager/card-manager.d.ts +0 -1
- package/dist/types/components/consent-manager/consent-manager.d.ts +0 -1
- package/dist/types/components/create-feature/create-feature.d.ts +37 -2
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +0 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +10 -6
- package/dist/types/components/delete-button/delete-button.d.ts +0 -1
- package/dist/types/components/edit-card/edit-card.d.ts +0 -1
- package/dist/types/components/feature-details/feature-details.d.ts +4 -1
- package/dist/types/components/feature-list/feature-list.d.ts +18 -2
- package/dist/types/components/floor-filter/floor-filter.d.ts +0 -1
- package/dist/types/components/info-card/info-card.d.ts +0 -1
- package/dist/types/components/layer-list/layer-list.d.ts +0 -1
- package/dist/types/components/layer-table/layer-table.d.ts +0 -1
- package/dist/types/components/map-card/map-card.d.ts +0 -1
- package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +0 -1
- package/dist/types/components/map-fullscreen/map-fullscreen.d.ts +0 -1
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +0 -1
- package/dist/types/components/map-legend/map-legend.d.ts +0 -1
- package/dist/types/components/map-search/map-search.d.ts +0 -1
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +0 -1
- package/dist/types/components/map-tools/map-tools.d.ts +0 -1
- package/dist/types/components/pdf-download/pdf-download.d.ts +0 -1
- package/dist/types/components/public-notification/public-notification.d.ts +0 -1
- package/dist/types/components/refine-selection/refine-selection.d.ts +0 -1
- package/dist/types/components.d.ts +37 -0
- package/dist/types/preact.d.ts +5 -5
- package/dist/types/utils/downloadUtils.d.ts +0 -1
- package/dist/types/utils/interfaces.d.ts +0 -1
- package/dist/types/utils/mapViewUtils.d.ts +0 -1
- package/dist/types/utils/popupUtils.d.ts +0 -1
- package/dist/types/utils/queryUtils.d.ts +0 -1
- package/package.json +7 -7
- package/dist/cjs/ExpandToggle-9cf51aba.js +0 -115
- package/dist/cjs/FloatingArrow-f78d627c.js +0 -48
- package/dist/cjs/Heading-5b274572.js +0 -25
- package/dist/cjs/Validation-a9d22fb7.js +0 -20
- package/dist/cjs/app-globals-62e0da30.js +0 -67
- package/dist/cjs/ar-67bbaacf.js +0 -107
- package/dist/cjs/array-67eea0ed.js +0 -17
- package/dist/cjs/bg-52d767e3.js +0 -85
- package/dist/cjs/browser-02cbd1d9.js +0 -35
- package/dist/cjs/bs-abb7a3ee.js +0 -54
- package/dist/cjs/ca-2618e485.js +0 -74
- package/dist/cjs/calcite-avatar_2.cjs.entry.js +0 -239
- package/dist/cjs/calcite-input-time-picker-be5ad250.js +0 -1863
- package/dist/cjs/component-9d0efa36.js +0 -33
- package/dist/cjs/conditionalSlot-fe01e316.js +0 -54
- package/dist/cjs/config-6a670c0d.js +0 -41
- package/dist/cjs/cs-9566238a.js +0 -150
- package/dist/cjs/da-86f2f759.js +0 -70
- package/dist/cjs/date-163d7302.js +0 -264
- package/dist/cjs/de-at-90927f4b.js +0 -93
- package/dist/cjs/de-ch-7185b180.js +0 -93
- package/dist/cjs/de-e7327417.js +0 -94
- package/dist/cjs/dom-63b93b3b.js +0 -1212
- package/dist/cjs/downloadUtils-60ee99e0.js +0 -3163
- package/dist/cjs/el-ee1c6246.js +0 -69
- package/dist/cjs/en-au-c245e1fa.js +0 -69
- package/dist/cjs/en-ca-44552f66.js +0 -68
- package/dist/cjs/en-gb-cf4bdbbf.js +0 -72
- package/dist/cjs/es-e27b3455.js +0 -69
- package/dist/cjs/es-mx-d5455d49.js +0 -68
- package/dist/cjs/et-521fe75e.js +0 -95
- package/dist/cjs/fi-ba5f1240.js +0 -118
- package/dist/cjs/filter-adc5c5aa.js +0 -778
- package/dist/cjs/floating-ui-1ef64f13.js +0 -2362
- package/dist/cjs/focusTrapComponent-1881eaf7.js +0 -1018
- package/dist/cjs/form-4c0bbbe5.js +0 -381
- package/dist/cjs/fr-014e6869.js +0 -71
- package/dist/cjs/fr-ch-9174a431.js +0 -69
- package/dist/cjs/guid-4bc1bc0f.js +0 -26
- package/dist/cjs/he-ac6a1230.js +0 -108
- package/dist/cjs/helpers-6f7660d4.js +0 -940
- package/dist/cjs/hi-b605b081.js +0 -68
- package/dist/cjs/hr-1f50021e.js +0 -83
- package/dist/cjs/hu-0dbb012b.js +0 -91
- package/dist/cjs/id-be5cad02.js +0 -69
- package/dist/cjs/index-696e53e6.js +0 -1756
- package/dist/cjs/index-a0cca96e.js +0 -201
- package/dist/cjs/index-c0ee2715.js +0 -206
- package/dist/cjs/index.es-38913dfa.js +0 -11317
- package/dist/cjs/input-2d5a669d.js +0 -60
- package/dist/cjs/interactive-272b8484.js +0 -169
- package/dist/cjs/it-2d267c40.js +0 -69
- package/dist/cjs/it-ch-7e63ab0d.js +0 -69
- package/dist/cjs/ja-f84367c9.js +0 -75
- package/dist/cjs/key-e4dd32ff.js +0 -19
- package/dist/cjs/ko-3b4ea66e.js +0 -75
- package/dist/cjs/label-afda7da7.js +0 -186
- package/dist/cjs/languageSwitcher-f0bb94fa.js +0 -60
- package/dist/cjs/languageUtil-f22ce913.js +0 -69
- package/dist/cjs/loadModules-36d49819.js +0 -23
- package/dist/cjs/loadable-ef8f0acf.js +0 -98
- package/dist/cjs/locale-239118c6.js +0 -120
- package/dist/cjs/locale-2dc1252d.js +0 -160
- package/dist/cjs/locale-428354f0.js +0 -584
- package/dist/cjs/logger-bb2cd9dd.js +0 -61
- package/dist/cjs/lt-52ddc840.js +0 -100
- package/dist/cjs/lv-646b5876.js +0 -69
- package/dist/cjs/math-8677dfd7.js +0 -60
- package/dist/cjs/mk-bfa4f151.js +0 -69
- package/dist/cjs/nb-8d337597.js +0 -70
- package/dist/cjs/nl-da233a0d.js +0 -70
- package/dist/cjs/observers-3440c668.js +0 -58
- package/dist/cjs/openCloseComponent-f9bf524b.js +0 -65
- package/dist/cjs/pl-596b9933.js +0 -117
- package/dist/cjs/popupUtils-0cabaa1f.js +0 -121
- package/dist/cjs/pt-bc779aca.js +0 -70
- package/dist/cjs/pt-br-ab04f8b9.js +0 -68
- package/dist/cjs/publicNotificationStore-8d2558c6.js +0 -47
- package/dist/cjs/resources-2f7b1adf.js +0 -23
- package/dist/cjs/resources-361aeee1.js +0 -68
- package/dist/cjs/resources-388b6f7e.js +0 -29
- package/dist/cjs/resources-6ed4d812.js +0 -39
- package/dist/cjs/resources-8556a9ce.js +0 -39
- package/dist/cjs/resources-91cff82d.js +0 -21
- package/dist/cjs/resources-a88c66ba.js +0 -26
- package/dist/cjs/resources-cb7b739c.js +0 -63
- package/dist/cjs/resources-e3034d0f.js +0 -27
- package/dist/cjs/resources-ea500edf.js +0 -23
- package/dist/cjs/ro-8e73fabd.js +0 -69
- package/dist/cjs/ru-a9cf0c93.js +0 -129
- package/dist/cjs/shared-list-render-8da9f754.js +0 -361
- package/dist/cjs/sk-f23f0865.js +0 -151
- package/dist/cjs/sl-66cee3ca.js +0 -171
- package/dist/cjs/solution-store-747a28ab.js +0 -1353
- package/dist/cjs/sortableComponent-842b0585.js +0 -2748
- package/dist/cjs/sr-f6958417.js +0 -104
- package/dist/cjs/sv-b6f30578.js +0 -74
- package/dist/cjs/t9n-e5fb720b.js +0 -108
- package/dist/cjs/th-7266bbe1.js +0 -68
- package/dist/cjs/time-35e40020.js +0 -301
- package/dist/cjs/tr-0ca37955.js +0 -69
- package/dist/cjs/uk-84db760b.js +0 -107
- package/dist/cjs/utils-3f254442.js +0 -72
- package/dist/cjs/utils-42df996f.js +0 -2304
- package/dist/cjs/utils-e486aa01.js +0 -130
- package/dist/cjs/vi-c9c7a4bc.js +0 -73
- package/dist/cjs/zh-cn-c1bd1cac.js +0 -97
- package/dist/cjs/zh-hk-80a1b071.js +0 -95
- package/dist/cjs/zh-tw-b1d0baea.js +0 -95
- package/dist/esm/ExpandToggle-0a6958eb.js +0 -108
- package/dist/esm/FloatingArrow-3593832a.js +0 -46
- package/dist/esm/Heading-dcf63f4d.js +0 -22
- package/dist/esm/Validation-8ddc15e3.js +0 -18
- package/dist/esm/app-globals-e3c6f3f0.js +0 -65
- package/dist/esm/ar-ad19e823.js +0 -105
- package/dist/esm/array-5ce54fce.js +0 -15
- package/dist/esm/bg-d39d00d4.js +0 -83
- package/dist/esm/browser-8c71dd57.js +0 -32
- package/dist/esm/bs-5578d068.js +0 -52
- package/dist/esm/ca-50d49800.js +0 -72
- package/dist/esm/calcite-avatar_2.entry.js +0 -234
- package/dist/esm/calcite-input-time-picker-48568b36.js +0 -1860
- package/dist/esm/component-e3f05da5.js +0 -30
- package/dist/esm/conditionalSlot-33053690.js +0 -51
- package/dist/esm/config-6d8fa5c8.js +0 -37
- package/dist/esm/cs-c01bc02b.js +0 -148
- package/dist/esm/da-30f1c62d.js +0 -68
- package/dist/esm/date-1f2a59fd.js +0 -248
- package/dist/esm/de-at-8b651f1b.js +0 -91
- package/dist/esm/de-ch-16f901cb.js +0 -91
- package/dist/esm/de-f3ff49fe.js +0 -92
- package/dist/esm/dom-982585e7.js +0 -1177
- package/dist/esm/downloadUtils-51c2c502.js +0 -3156
- package/dist/esm/el-3cc5361f.js +0 -67
- package/dist/esm/en-au-5e1ae1c6.js +0 -67
- package/dist/esm/en-ca-eca7afe3.js +0 -66
- package/dist/esm/en-gb-d41a41f9.js +0 -70
- package/dist/esm/es-3119bf5f.js +0 -67
- package/dist/esm/es-mx-765f73cd.js +0 -66
- package/dist/esm/et-524d60ab.js +0 -93
- package/dist/esm/fi-103b9c33.js +0 -116
- package/dist/esm/filter-4fc9cd19.js +0 -775
- package/dist/esm/floating-ui-28a86be6.js +0 -2354
- package/dist/esm/focusTrapComponent-2dc61826.js +0 -1013
- package/dist/esm/form-9827fc54.js +0 -372
- package/dist/esm/fr-a0f46db0.js +0 -69
- package/dist/esm/fr-ch-d4198d14.js +0 -67
- package/dist/esm/guid-5c959cfd.js +0 -24
- package/dist/esm/he-88cc49d1.js +0 -106
- package/dist/esm/helpers-62213648.js +0 -913
- package/dist/esm/hi-3fb3aeaf.js +0 -66
- package/dist/esm/hr-30bc6bf7.js +0 -81
- package/dist/esm/hu-ca65e08b.js +0 -89
- package/dist/esm/id-4c1eee8c.js +0 -67
- package/dist/esm/index-1dc14abf.js +0 -199
- package/dist/esm/index-d8ff08ed.js +0 -204
- package/dist/esm/index-e3f04fa1.js +0 -1722
- package/dist/esm/index.es-afea294f.js +0 -11230
- package/dist/esm/input-bf439d4b.js +0 -58
- package/dist/esm/interactive-1d03c7ff.js +0 -164
- package/dist/esm/it-4cb0e1d5.js +0 -67
- package/dist/esm/it-ch-4de1f33e.js +0 -67
- package/dist/esm/ja-2d531f7b.js +0 -73
- package/dist/esm/key-7f394a98.js +0 -16
- package/dist/esm/ko-1d957d12.js +0 -73
- package/dist/esm/label-38802319.js +0 -179
- package/dist/esm/languageSwitcher-b665499d.js +0 -57
- package/dist/esm/languageUtil-a3e6adf6.js +0 -66
- package/dist/esm/loadModules-9c062d08.js +0 -21
- package/dist/esm/loadable-869378d9.js +0 -93
- package/dist/esm/locale-35ebf4af.js +0 -115
- package/dist/esm/locale-53748f98.js +0 -571
- package/dist/esm/locale-e758c2ee.js +0 -155
- package/dist/esm/logger-c6b14fe1.js +0 -59
- package/dist/esm/lt-d09d3afe.js +0 -98
- package/dist/esm/lv-09f370a6.js +0 -67
- package/dist/esm/math-dbb62ccf.js +0 -54
- package/dist/esm/mk-f19a0976.js +0 -67
- package/dist/esm/nb-458b5aed.js +0 -68
- package/dist/esm/nl-f3c1e8a1.js +0 -68
- package/dist/esm/observers-0f4a5f9e.js +0 -56
- package/dist/esm/openCloseComponent-f118bfc5.js +0 -63
- package/dist/esm/pl-f9862e9b.js +0 -115
- package/dist/esm/popupUtils-d4fe0b41.js +0 -119
- package/dist/esm/pt-4e37d6f8.js +0 -68
- package/dist/esm/pt-br-30daca3c.js +0 -66
- package/dist/esm/publicNotificationStore-065c7136.js +0 -45
- package/dist/esm/resources-098ed485.js +0 -62
- package/dist/esm/resources-0bf41f5d.js +0 -20
- package/dist/esm/resources-124c42d1.js +0 -35
- package/dist/esm/resources-27689859.js +0 -21
- package/dist/esm/resources-3bc82696.js +0 -34
- package/dist/esm/resources-84590a8e.js +0 -24
- package/dist/esm/resources-98bf974e.js +0 -59
- package/dist/esm/resources-a4ff051c.js +0 -23
- package/dist/esm/resources-af396281.js +0 -22
- package/dist/esm/resources-cdba986a.js +0 -19
- package/dist/esm/ro-a83cfcaa.js +0 -67
- package/dist/esm/ru-bb2c629b.js +0 -127
- package/dist/esm/shared-list-render-d8c49a1f.js +0 -339
- package/dist/esm/sk-4cc2af3f.js +0 -149
- package/dist/esm/sl-0df8c942.js +0 -169
- package/dist/esm/solution-store-0586e891.js +0 -1351
- package/dist/esm/sortableComponent-173802fd.js +0 -2745
- package/dist/esm/sr-8d0e01f0.js +0 -102
- package/dist/esm/sv-8971f2c2.js +0 -72
- package/dist/esm/t9n-5371b7ab.js +0 -103
- package/dist/esm/th-32517448.js +0 -66
- package/dist/esm/time-2996215a.js +0 -286
- package/dist/esm/tr-42c9ac73.js +0 -67
- package/dist/esm/uk-d1b99329.js +0 -105
- package/dist/esm/utils-67264f4a.js +0 -2274
- package/dist/esm/utils-72a48b01.js +0 -121
- package/dist/esm/utils-ac0f19ea.js +0 -60
- package/dist/esm/vi-c6ff5a39.js +0 -71
- package/dist/esm/zh-cn-973d18ea.js +0 -95
- package/dist/esm/zh-hk-6fc51e3d.js +0 -93
- package/dist/esm/zh-tw-4e1d2a6a.js +0 -93
- package/dist/solutions-components/p-0034f196.entry.js +0 -21
- package/dist/solutions-components/p-00786a30.entry.js +0 -6
- package/dist/solutions-components/p-016e190c.entry.js +0 -6
- package/dist/solutions-components/p-01cc2423.js +0 -21
- package/dist/solutions-components/p-021da1d4.js +0 -6
- package/dist/solutions-components/p-02c4127b.entry.js +0 -17
- package/dist/solutions-components/p-071a9f50.entry.js +0 -11
- package/dist/solutions-components/p-09b47605.js +0 -36
- package/dist/solutions-components/p-09d62c22.js +0 -6
- package/dist/solutions-components/p-09ded315.js +0 -6
- package/dist/solutions-components/p-0a877c91.entry.js +0 -11
- package/dist/solutions-components/p-0ae5f8fe.js +0 -11
- package/dist/solutions-components/p-0d654053.entry.js +0 -11
- package/dist/solutions-components/p-0dcb7d0c.js +0 -6
- package/dist/solutions-components/p-0fb2abfe.js +0 -6
- package/dist/solutions-components/p-0feb3e7f.js +0 -6
- package/dist/solutions-components/p-104fa4cf.entry.js +0 -6
- package/dist/solutions-components/p-1176ec70.entry.js +0 -6
- package/dist/solutions-components/p-11f138bf.entry.js +0 -6
- package/dist/solutions-components/p-122a81b5.js +0 -21
- package/dist/solutions-components/p-13f83a1a.entry.js +0 -6
- package/dist/solutions-components/p-1452f846.js +0 -6
- package/dist/solutions-components/p-1628325d.entry.js +0 -17
- package/dist/solutions-components/p-16ae29b6.entry.js +0 -11
- package/dist/solutions-components/p-16d69510.js +0 -16
- package/dist/solutions-components/p-1931eae1.entry.js +0 -11
- package/dist/solutions-components/p-1a634d43.js +0 -6
- package/dist/solutions-components/p-1b64ce16.js +0 -6
- package/dist/solutions-components/p-1c785e3a.js +0 -6
- package/dist/solutions-components/p-1cae39b3.js +0 -6
- package/dist/solutions-components/p-1d229886.js +0 -16
- package/dist/solutions-components/p-1ddef837.entry.js +0 -12
- package/dist/solutions-components/p-1ee635a2.entry.js +0 -6
- package/dist/solutions-components/p-210588d0.entry.js +0 -6
- package/dist/solutions-components/p-210d75fe.js +0 -18
- package/dist/solutions-components/p-2162a9d3.js +0 -11
- package/dist/solutions-components/p-22d81e03.js +0 -11
- package/dist/solutions-components/p-2327029a.js +0 -11
- package/dist/solutions-components/p-23f5aa20.entry.js +0 -6
- package/dist/solutions-components/p-24fab352.js +0 -6
- package/dist/solutions-components/p-259ce172.js +0 -6
- package/dist/solutions-components/p-262e91ea.js +0 -11
- package/dist/solutions-components/p-274c182a.entry.js +0 -6
- package/dist/solutions-components/p-2923d5ed.js +0 -489
- package/dist/solutions-components/p-29962ae5.entry.js +0 -6
- package/dist/solutions-components/p-29984000.js +0 -6
- package/dist/solutions-components/p-2b21f196.js +0 -6
- package/dist/solutions-components/p-2d01b83d.entry.js +0 -11
- package/dist/solutions-components/p-2d03b0d7.entry.js +0 -6
- package/dist/solutions-components/p-2eb8993c.entry.js +0 -11
- package/dist/solutions-components/p-2ed4f0cf.entry.js +0 -6
- package/dist/solutions-components/p-2f08fd73.js +0 -16
- package/dist/solutions-components/p-2f2118a7.entry.js +0 -11
- package/dist/solutions-components/p-3058da8b.entry.js +0 -29
- package/dist/solutions-components/p-31f602c0.js +0 -11
- package/dist/solutions-components/p-32ded6e5.entry.js +0 -6
- package/dist/solutions-components/p-33447b6f.js +0 -11
- package/dist/solutions-components/p-34a9bd5d.entry.js +0 -11
- package/dist/solutions-components/p-3581d7dc.entry.js +0 -12
- package/dist/solutions-components/p-376e8412.js +0 -11
- package/dist/solutions-components/p-386429a4.entry.js +0 -6
- package/dist/solutions-components/p-392c6cec.entry.js +0 -6
- package/dist/solutions-components/p-39ae36e9.js +0 -6
- package/dist/solutions-components/p-3b0859ac.entry.js +0 -6
- package/dist/solutions-components/p-3b4170e9.entry.js +0 -22
- package/dist/solutions-components/p-3cc9861e.entry.js +0 -17
- package/dist/solutions-components/p-3e909ad8.entry.js +0 -11
- package/dist/solutions-components/p-3fcbaab8.js +0 -11
- package/dist/solutions-components/p-407d22c9.entry.js +0 -11
- package/dist/solutions-components/p-4250bde1.js +0 -11
- package/dist/solutions-components/p-440c2d17.js +0 -11
- package/dist/solutions-components/p-44194734.js +0 -6
- package/dist/solutions-components/p-482948c4.entry.js +0 -17
- package/dist/solutions-components/p-483fbfa7.entry.js +0 -6
- package/dist/solutions-components/p-4a0838c0.entry.js +0 -6
- package/dist/solutions-components/p-4a5f0a97.entry.js +0 -17
- package/dist/solutions-components/p-4b03ad1e.js +0 -6
- package/dist/solutions-components/p-4b843bc0.entry.js +0 -6
- package/dist/solutions-components/p-4c0b8e55.entry.js +0 -6
- package/dist/solutions-components/p-4d03fed9.js +0 -61
- package/dist/solutions-components/p-4d8ac736.entry.js +0 -6
- package/dist/solutions-components/p-51cfb4a6.entry.js +0 -6
- package/dist/solutions-components/p-57262e5a.js +0 -6
- package/dist/solutions-components/p-5835b3f4.entry.js +0 -11
- package/dist/solutions-components/p-583ecbf6.js +0 -11
- package/dist/solutions-components/p-595ec807.entry.js +0 -11
- package/dist/solutions-components/p-5df3d135.js +0 -16
- package/dist/solutions-components/p-5df4b021.entry.js +0 -11
- package/dist/solutions-components/p-60a80c7f.entry.js +0 -29
- package/dist/solutions-components/p-60efb594.entry.js +0 -11
- package/dist/solutions-components/p-614edd9f.entry.js +0 -6
- package/dist/solutions-components/p-62050072.js +0 -6
- package/dist/solutions-components/p-62414b49.js +0 -6
- package/dist/solutions-components/p-626b6acd.js +0 -6
- package/dist/solutions-components/p-65283b75.entry.js +0 -6
- package/dist/solutions-components/p-65581d83.js +0 -6
- package/dist/solutions-components/p-66daf5ec.entry.js +0 -17
- package/dist/solutions-components/p-680ed47d.js +0 -6
- package/dist/solutions-components/p-681fbb6e.js +0 -6
- package/dist/solutions-components/p-687e9081.entry.js +0 -11
- package/dist/solutions-components/p-6a66d5a9.entry.js +0 -6
- package/dist/solutions-components/p-6b0ecd98.entry.js +0 -11
- package/dist/solutions-components/p-6b64edcd.js +0 -6
- package/dist/solutions-components/p-6c11b89e.js +0 -6
- package/dist/solutions-components/p-6d030079.js +0 -6
- package/dist/solutions-components/p-6d04189c.entry.js +0 -6
- package/dist/solutions-components/p-6f836c0a.entry.js +0 -6
- package/dist/solutions-components/p-70a52e62.entry.js +0 -11
- package/dist/solutions-components/p-70b4e46f.js +0 -11
- package/dist/solutions-components/p-71a2d5b8.entry.js +0 -6
- package/dist/solutions-components/p-73a1e1b9.js +0 -6
- package/dist/solutions-components/p-73ae4b9b.js +0 -11
- package/dist/solutions-components/p-756a5a7f.entry.js +0 -12
- package/dist/solutions-components/p-762eab84.js +0 -6
- package/dist/solutions-components/p-77548c28.entry.js +0 -11
- package/dist/solutions-components/p-77fa776e.entry.js +0 -11
- package/dist/solutions-components/p-78c82389.js +0 -6
- package/dist/solutions-components/p-79fd09fa.js +0 -6
- package/dist/solutions-components/p-7a2f9e5b.entry.js +0 -16
- package/dist/solutions-components/p-7a326ee8.entry.js +0 -11
- package/dist/solutions-components/p-7a64b026.entry.js +0 -17
- package/dist/solutions-components/p-7bdef5f5.entry.js +0 -11
- package/dist/solutions-components/p-7c585a72.js +0 -11
- package/dist/solutions-components/p-7e7ddb11.js +0 -6
- package/dist/solutions-components/p-7ed62b29.js +0 -6
- package/dist/solutions-components/p-8428237a.entry.js +0 -11
- package/dist/solutions-components/p-84478793.js +0 -11
- package/dist/solutions-components/p-8448b98b.js +0 -17
- package/dist/solutions-components/p-85c25564.entry.js +0 -6
- package/dist/solutions-components/p-86660809.js +0 -6
- package/dist/solutions-components/p-88b55caa.entry.js +0 -6
- package/dist/solutions-components/p-8904675a.entry.js +0 -11
- package/dist/solutions-components/p-8a9257ec.entry.js +0 -11
- package/dist/solutions-components/p-8af893c6.entry.js +0 -6
- package/dist/solutions-components/p-8b611f1f.entry.js +0 -6
- package/dist/solutions-components/p-8b922152.js +0 -6
- package/dist/solutions-components/p-8ce3d9f3.entry.js +0 -11
- package/dist/solutions-components/p-8d7479ec.entry.js +0 -6
- package/dist/solutions-components/p-8f3af937.entry.js +0 -24
- package/dist/solutions-components/p-90372205.entry.js +0 -11
- package/dist/solutions-components/p-90dd8aec.js +0 -11
- package/dist/solutions-components/p-91a87888.entry.js +0 -6
- package/dist/solutions-components/p-92744164.entry.js +0 -6
- package/dist/solutions-components/p-93a86792.entry.js +0 -11
- package/dist/solutions-components/p-93c34427.entry.js +0 -6
- package/dist/solutions-components/p-947ef2fa.entry.js +0 -6
- package/dist/solutions-components/p-94b118d5.js +0 -6
- package/dist/solutions-components/p-94f68938.js +0 -6
- package/dist/solutions-components/p-9779be82.js +0 -6
- package/dist/solutions-components/p-988fc332.entry.js +0 -11
- package/dist/solutions-components/p-998933e7.entry.js +0 -6
- package/dist/solutions-components/p-9a2ab5bc.js +0 -11
- package/dist/solutions-components/p-9a370c05.entry.js +0 -47
- package/dist/solutions-components/p-9a46618c.entry.js +0 -6
- package/dist/solutions-components/p-a2150807.entry.js +0 -6
- package/dist/solutions-components/p-a3544947.entry.js +0 -11
- package/dist/solutions-components/p-a3e66f8e.entry.js +0 -11
- package/dist/solutions-components/p-a432be00.js +0 -6
- package/dist/solutions-components/p-a72fd9b4.js +0 -6
- package/dist/solutions-components/p-a7710355.js +0 -143
- package/dist/solutions-components/p-a7b05a79.entry.js +0 -6
- package/dist/solutions-components/p-a8e556aa.js +0 -11
- package/dist/solutions-components/p-ab2c4033.entry.js +0 -6
- package/dist/solutions-components/p-add49b80.entry.js +0 -23
- package/dist/solutions-components/p-af2c8aa9.js +0 -6
- package/dist/solutions-components/p-af3a9822.js +0 -6
- package/dist/solutions-components/p-afad4f05.js +0 -6
- package/dist/solutions-components/p-b05b7f3e.entry.js +0 -11
- package/dist/solutions-components/p-b0609d19.entry.js +0 -11
- package/dist/solutions-components/p-b06ae708.js +0 -6
- package/dist/solutions-components/p-b1c71e50.js +0 -11
- package/dist/solutions-components/p-b470a429.js +0 -6
- package/dist/solutions-components/p-b4f06fe2.entry.js +0 -11
- package/dist/solutions-components/p-b981067f.entry.js +0 -6
- package/dist/solutions-components/p-bb3ce613.js +0 -11
- package/dist/solutions-components/p-beeccd19.entry.js +0 -6
- package/dist/solutions-components/p-c2bafa94.entry.js +0 -6
- package/dist/solutions-components/p-c4d3790a.entry.js +0 -6
- package/dist/solutions-components/p-c5897e36.js +0 -11
- package/dist/solutions-components/p-c5d15c91.js +0 -11
- package/dist/solutions-components/p-c5f22510.js +0 -11
- package/dist/solutions-components/p-c6f8bc28.js +0 -6
- package/dist/solutions-components/p-c742acd9.js +0 -6
- package/dist/solutions-components/p-c7c0c863.entry.js +0 -11
- package/dist/solutions-components/p-c8a8591b.entry.js +0 -11
- package/dist/solutions-components/p-c9fc3253.js +0 -6
- package/dist/solutions-components/p-ca42f3d3.js +0 -11
- package/dist/solutions-components/p-cc47ff22.entry.js +0 -11
- package/dist/solutions-components/p-ccba7d93.js +0 -6
- package/dist/solutions-components/p-cd4d69c1.js +0 -11
- package/dist/solutions-components/p-cdb01b99.entry.js +0 -11
- package/dist/solutions-components/p-cf754ff5.js +0 -11
- package/dist/solutions-components/p-cfca5772.js +0 -11
- package/dist/solutions-components/p-d0ff7db8.js +0 -6
- package/dist/solutions-components/p-d34e12f4.entry.js +0 -11
- package/dist/solutions-components/p-d4e3e979.js +0 -11
- package/dist/solutions-components/p-d655a7a2.entry.js +0 -6
- package/dist/solutions-components/p-d7ee860a.js +0 -11
- package/dist/solutions-components/p-d98d3d33.js +0 -6
- package/dist/solutions-components/p-da2d0073.entry.js +0 -6
- package/dist/solutions-components/p-da9fc69b.entry.js +0 -11
- package/dist/solutions-components/p-dcc35070.js +0 -6
- package/dist/solutions-components/p-de30afd0.entry.js +0 -6
- package/dist/solutions-components/p-e1f30753.entry.js +0 -11
- package/dist/solutions-components/p-e21efd7d.js +0 -11
- package/dist/solutions-components/p-e2f3674f.entry.js +0 -11
- package/dist/solutions-components/p-e4767cc4.entry.js +0 -11
- package/dist/solutions-components/p-e6742158.entry.js +0 -11
- package/dist/solutions-components/p-e8bd5b44.entry.js +0 -11
- package/dist/solutions-components/p-e936f80a.entry.js +0 -21
- package/dist/solutions-components/p-ec561560.js +0 -12
- package/dist/solutions-components/p-ed95c75e.js +0 -11
- package/dist/solutions-components/p-ed9b7fa1.entry.js +0 -6
- package/dist/solutions-components/p-ee056d26.js +0 -17
- package/dist/solutions-components/p-ee0a512f.entry.js +0 -6
- package/dist/solutions-components/p-eefcb751.entry.js +0 -6
- package/dist/solutions-components/p-ef493a84.entry.js +0 -6
- package/dist/solutions-components/p-f012ccbb.js +0 -11
- package/dist/solutions-components/p-f021c564.js +0 -6
- package/dist/solutions-components/p-f2ac5d0e.js +0 -6
- package/dist/solutions-components/p-f39f661e.entry.js +0 -11
- package/dist/solutions-components/p-f3e54df7.entry.js +0 -6
- package/dist/solutions-components/p-f4828ba4.entry.js +0 -6
- package/dist/solutions-components/p-f4c4a2b7.js +0 -7
- package/dist/solutions-components/p-f7d822f7.entry.js +0 -6
- package/dist/solutions-components/p-f83c0ef6.js +0 -11
- package/dist/solutions-components/p-fbeba590.entry.js +0 -11
- package/dist/solutions-components/p-fc02896c.entry.js +0 -6
- package/dist/solutions-components/p-fc474b33.js +0 -6
- package/dist/solutions-components/p-fcfbd587.js +0 -6
- package/dist/solutions-components/p-fdf4caad.js +0 -11
- package/dist/solutions-components/p-fe43ec31.entry.js +0 -16
- package/dist/solutions-components/p-fee0a94a.entry.js +0 -17
- package/dist/solutions-components/p-ffbecb75.js +0 -6
- package/dist/solutions-components_commit.txt +0 -7
- /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/cjs/{index-4c1b0d3c.js → index-04255c05.js} +0 -0
- /package/dist/{esm/index-5110a27a.js → components/index7.js} +0 -0
- /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
- /package/dist/solutions-components/{p-74062e42.js → p-fc17754b.js} +0 -0
@@ -0,0 +1,2304 @@
|
|
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
|
+
var colorString$1 = {exports: {}};
|
9
|
+
|
10
|
+
var colorName = {
|
11
|
+
"aliceblue": [240, 248, 255],
|
12
|
+
"antiquewhite": [250, 235, 215],
|
13
|
+
"aqua": [0, 255, 255],
|
14
|
+
"aquamarine": [127, 255, 212],
|
15
|
+
"azure": [240, 255, 255],
|
16
|
+
"beige": [245, 245, 220],
|
17
|
+
"bisque": [255, 228, 196],
|
18
|
+
"black": [0, 0, 0],
|
19
|
+
"blanchedalmond": [255, 235, 205],
|
20
|
+
"blue": [0, 0, 255],
|
21
|
+
"blueviolet": [138, 43, 226],
|
22
|
+
"brown": [165, 42, 42],
|
23
|
+
"burlywood": [222, 184, 135],
|
24
|
+
"cadetblue": [95, 158, 160],
|
25
|
+
"chartreuse": [127, 255, 0],
|
26
|
+
"chocolate": [210, 105, 30],
|
27
|
+
"coral": [255, 127, 80],
|
28
|
+
"cornflowerblue": [100, 149, 237],
|
29
|
+
"cornsilk": [255, 248, 220],
|
30
|
+
"crimson": [220, 20, 60],
|
31
|
+
"cyan": [0, 255, 255],
|
32
|
+
"darkblue": [0, 0, 139],
|
33
|
+
"darkcyan": [0, 139, 139],
|
34
|
+
"darkgoldenrod": [184, 134, 11],
|
35
|
+
"darkgray": [169, 169, 169],
|
36
|
+
"darkgreen": [0, 100, 0],
|
37
|
+
"darkgrey": [169, 169, 169],
|
38
|
+
"darkkhaki": [189, 183, 107],
|
39
|
+
"darkmagenta": [139, 0, 139],
|
40
|
+
"darkolivegreen": [85, 107, 47],
|
41
|
+
"darkorange": [255, 140, 0],
|
42
|
+
"darkorchid": [153, 50, 204],
|
43
|
+
"darkred": [139, 0, 0],
|
44
|
+
"darksalmon": [233, 150, 122],
|
45
|
+
"darkseagreen": [143, 188, 143],
|
46
|
+
"darkslateblue": [72, 61, 139],
|
47
|
+
"darkslategray": [47, 79, 79],
|
48
|
+
"darkslategrey": [47, 79, 79],
|
49
|
+
"darkturquoise": [0, 206, 209],
|
50
|
+
"darkviolet": [148, 0, 211],
|
51
|
+
"deeppink": [255, 20, 147],
|
52
|
+
"deepskyblue": [0, 191, 255],
|
53
|
+
"dimgray": [105, 105, 105],
|
54
|
+
"dimgrey": [105, 105, 105],
|
55
|
+
"dodgerblue": [30, 144, 255],
|
56
|
+
"firebrick": [178, 34, 34],
|
57
|
+
"floralwhite": [255, 250, 240],
|
58
|
+
"forestgreen": [34, 139, 34],
|
59
|
+
"fuchsia": [255, 0, 255],
|
60
|
+
"gainsboro": [220, 220, 220],
|
61
|
+
"ghostwhite": [248, 248, 255],
|
62
|
+
"gold": [255, 215, 0],
|
63
|
+
"goldenrod": [218, 165, 32],
|
64
|
+
"gray": [128, 128, 128],
|
65
|
+
"green": [0, 128, 0],
|
66
|
+
"greenyellow": [173, 255, 47],
|
67
|
+
"grey": [128, 128, 128],
|
68
|
+
"honeydew": [240, 255, 240],
|
69
|
+
"hotpink": [255, 105, 180],
|
70
|
+
"indianred": [205, 92, 92],
|
71
|
+
"indigo": [75, 0, 130],
|
72
|
+
"ivory": [255, 255, 240],
|
73
|
+
"khaki": [240, 230, 140],
|
74
|
+
"lavender": [230, 230, 250],
|
75
|
+
"lavenderblush": [255, 240, 245],
|
76
|
+
"lawngreen": [124, 252, 0],
|
77
|
+
"lemonchiffon": [255, 250, 205],
|
78
|
+
"lightblue": [173, 216, 230],
|
79
|
+
"lightcoral": [240, 128, 128],
|
80
|
+
"lightcyan": [224, 255, 255],
|
81
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
82
|
+
"lightgray": [211, 211, 211],
|
83
|
+
"lightgreen": [144, 238, 144],
|
84
|
+
"lightgrey": [211, 211, 211],
|
85
|
+
"lightpink": [255, 182, 193],
|
86
|
+
"lightsalmon": [255, 160, 122],
|
87
|
+
"lightseagreen": [32, 178, 170],
|
88
|
+
"lightskyblue": [135, 206, 250],
|
89
|
+
"lightslategray": [119, 136, 153],
|
90
|
+
"lightslategrey": [119, 136, 153],
|
91
|
+
"lightsteelblue": [176, 196, 222],
|
92
|
+
"lightyellow": [255, 255, 224],
|
93
|
+
"lime": [0, 255, 0],
|
94
|
+
"limegreen": [50, 205, 50],
|
95
|
+
"linen": [250, 240, 230],
|
96
|
+
"magenta": [255, 0, 255],
|
97
|
+
"maroon": [128, 0, 0],
|
98
|
+
"mediumaquamarine": [102, 205, 170],
|
99
|
+
"mediumblue": [0, 0, 205],
|
100
|
+
"mediumorchid": [186, 85, 211],
|
101
|
+
"mediumpurple": [147, 112, 219],
|
102
|
+
"mediumseagreen": [60, 179, 113],
|
103
|
+
"mediumslateblue": [123, 104, 238],
|
104
|
+
"mediumspringgreen": [0, 250, 154],
|
105
|
+
"mediumturquoise": [72, 209, 204],
|
106
|
+
"mediumvioletred": [199, 21, 133],
|
107
|
+
"midnightblue": [25, 25, 112],
|
108
|
+
"mintcream": [245, 255, 250],
|
109
|
+
"mistyrose": [255, 228, 225],
|
110
|
+
"moccasin": [255, 228, 181],
|
111
|
+
"navajowhite": [255, 222, 173],
|
112
|
+
"navy": [0, 0, 128],
|
113
|
+
"oldlace": [253, 245, 230],
|
114
|
+
"olive": [128, 128, 0],
|
115
|
+
"olivedrab": [107, 142, 35],
|
116
|
+
"orange": [255, 165, 0],
|
117
|
+
"orangered": [255, 69, 0],
|
118
|
+
"orchid": [218, 112, 214],
|
119
|
+
"palegoldenrod": [238, 232, 170],
|
120
|
+
"palegreen": [152, 251, 152],
|
121
|
+
"paleturquoise": [175, 238, 238],
|
122
|
+
"palevioletred": [219, 112, 147],
|
123
|
+
"papayawhip": [255, 239, 213],
|
124
|
+
"peachpuff": [255, 218, 185],
|
125
|
+
"peru": [205, 133, 63],
|
126
|
+
"pink": [255, 192, 203],
|
127
|
+
"plum": [221, 160, 221],
|
128
|
+
"powderblue": [176, 224, 230],
|
129
|
+
"purple": [128, 0, 128],
|
130
|
+
"rebeccapurple": [102, 51, 153],
|
131
|
+
"red": [255, 0, 0],
|
132
|
+
"rosybrown": [188, 143, 143],
|
133
|
+
"royalblue": [65, 105, 225],
|
134
|
+
"saddlebrown": [139, 69, 19],
|
135
|
+
"salmon": [250, 128, 114],
|
136
|
+
"sandybrown": [244, 164, 96],
|
137
|
+
"seagreen": [46, 139, 87],
|
138
|
+
"seashell": [255, 245, 238],
|
139
|
+
"sienna": [160, 82, 45],
|
140
|
+
"silver": [192, 192, 192],
|
141
|
+
"skyblue": [135, 206, 235],
|
142
|
+
"slateblue": [106, 90, 205],
|
143
|
+
"slategray": [112, 128, 144],
|
144
|
+
"slategrey": [112, 128, 144],
|
145
|
+
"snow": [255, 250, 250],
|
146
|
+
"springgreen": [0, 255, 127],
|
147
|
+
"steelblue": [70, 130, 180],
|
148
|
+
"tan": [210, 180, 140],
|
149
|
+
"teal": [0, 128, 128],
|
150
|
+
"thistle": [216, 191, 216],
|
151
|
+
"tomato": [255, 99, 71],
|
152
|
+
"turquoise": [64, 224, 208],
|
153
|
+
"violet": [238, 130, 238],
|
154
|
+
"wheat": [245, 222, 179],
|
155
|
+
"white": [255, 255, 255],
|
156
|
+
"whitesmoke": [245, 245, 245],
|
157
|
+
"yellow": [255, 255, 0],
|
158
|
+
"yellowgreen": [154, 205, 50]
|
159
|
+
};
|
160
|
+
|
161
|
+
var simpleSwizzle = {exports: {}};
|
162
|
+
|
163
|
+
var isArrayish$1 = function isArrayish(obj) {
|
164
|
+
if (!obj || typeof obj === 'string') {
|
165
|
+
return false;
|
166
|
+
}
|
167
|
+
|
168
|
+
return obj instanceof Array || Array.isArray(obj) ||
|
169
|
+
(obj.length >= 0 && (obj.splice instanceof Function ||
|
170
|
+
(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
|
171
|
+
};
|
172
|
+
|
173
|
+
var isArrayish = isArrayish$1;
|
174
|
+
|
175
|
+
var concat = Array.prototype.concat;
|
176
|
+
var slice = Array.prototype.slice;
|
177
|
+
|
178
|
+
var swizzle$1 = simpleSwizzle.exports = function swizzle(args) {
|
179
|
+
var results = [];
|
180
|
+
|
181
|
+
for (var i = 0, len = args.length; i < len; i++) {
|
182
|
+
var arg = args[i];
|
183
|
+
|
184
|
+
if (isArrayish(arg)) {
|
185
|
+
// http://jsperf.com/javascript-array-concat-vs-push/98
|
186
|
+
results = concat.call(results, slice.call(arg));
|
187
|
+
} else {
|
188
|
+
results.push(arg);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
return results;
|
193
|
+
};
|
194
|
+
|
195
|
+
swizzle$1.wrap = function (fn) {
|
196
|
+
return function () {
|
197
|
+
return fn(swizzle$1(arguments));
|
198
|
+
};
|
199
|
+
};
|
200
|
+
|
201
|
+
/* MIT license */
|
202
|
+
|
203
|
+
var colorNames = colorName;
|
204
|
+
var swizzle = simpleSwizzle.exports;
|
205
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
206
|
+
|
207
|
+
var reverseNames = Object.create(null);
|
208
|
+
|
209
|
+
// create a list of reverse color names
|
210
|
+
for (var name in colorNames) {
|
211
|
+
if (hasOwnProperty.call(colorNames, name)) {
|
212
|
+
reverseNames[colorNames[name]] = name;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
var cs = colorString$1.exports = {
|
217
|
+
to: {},
|
218
|
+
get: {}
|
219
|
+
};
|
220
|
+
|
221
|
+
cs.get = function (string) {
|
222
|
+
var prefix = string.substring(0, 3).toLowerCase();
|
223
|
+
var val;
|
224
|
+
var model;
|
225
|
+
switch (prefix) {
|
226
|
+
case 'hsl':
|
227
|
+
val = cs.get.hsl(string);
|
228
|
+
model = 'hsl';
|
229
|
+
break;
|
230
|
+
case 'hwb':
|
231
|
+
val = cs.get.hwb(string);
|
232
|
+
model = 'hwb';
|
233
|
+
break;
|
234
|
+
default:
|
235
|
+
val = cs.get.rgb(string);
|
236
|
+
model = 'rgb';
|
237
|
+
break;
|
238
|
+
}
|
239
|
+
|
240
|
+
if (!val) {
|
241
|
+
return null;
|
242
|
+
}
|
243
|
+
|
244
|
+
return {model: model, value: val};
|
245
|
+
};
|
246
|
+
|
247
|
+
cs.get.rgb = function (string) {
|
248
|
+
if (!string) {
|
249
|
+
return null;
|
250
|
+
}
|
251
|
+
|
252
|
+
var abbr = /^#([a-f0-9]{3,4})$/i;
|
253
|
+
var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
|
254
|
+
var rgba = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
255
|
+
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
256
|
+
var keyword = /^(\w+)$/;
|
257
|
+
|
258
|
+
var rgb = [0, 0, 0, 1];
|
259
|
+
var match;
|
260
|
+
var i;
|
261
|
+
var hexAlpha;
|
262
|
+
|
263
|
+
if (match = string.match(hex)) {
|
264
|
+
hexAlpha = match[2];
|
265
|
+
match = match[1];
|
266
|
+
|
267
|
+
for (i = 0; i < 3; i++) {
|
268
|
+
// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
|
269
|
+
var i2 = i * 2;
|
270
|
+
rgb[i] = parseInt(match.slice(i2, i2 + 2), 16);
|
271
|
+
}
|
272
|
+
|
273
|
+
if (hexAlpha) {
|
274
|
+
rgb[3] = parseInt(hexAlpha, 16) / 255;
|
275
|
+
}
|
276
|
+
} else if (match = string.match(abbr)) {
|
277
|
+
match = match[1];
|
278
|
+
hexAlpha = match[3];
|
279
|
+
|
280
|
+
for (i = 0; i < 3; i++) {
|
281
|
+
rgb[i] = parseInt(match[i] + match[i], 16);
|
282
|
+
}
|
283
|
+
|
284
|
+
if (hexAlpha) {
|
285
|
+
rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;
|
286
|
+
}
|
287
|
+
} else if (match = string.match(rgba)) {
|
288
|
+
for (i = 0; i < 3; i++) {
|
289
|
+
rgb[i] = parseInt(match[i + 1], 0);
|
290
|
+
}
|
291
|
+
|
292
|
+
if (match[4]) {
|
293
|
+
if (match[5]) {
|
294
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
295
|
+
} else {
|
296
|
+
rgb[3] = parseFloat(match[4]);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
} else if (match = string.match(per)) {
|
300
|
+
for (i = 0; i < 3; i++) {
|
301
|
+
rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
|
302
|
+
}
|
303
|
+
|
304
|
+
if (match[4]) {
|
305
|
+
if (match[5]) {
|
306
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
307
|
+
} else {
|
308
|
+
rgb[3] = parseFloat(match[4]);
|
309
|
+
}
|
310
|
+
}
|
311
|
+
} else if (match = string.match(keyword)) {
|
312
|
+
if (match[1] === 'transparent') {
|
313
|
+
return [0, 0, 0, 0];
|
314
|
+
}
|
315
|
+
|
316
|
+
if (!hasOwnProperty.call(colorNames, match[1])) {
|
317
|
+
return null;
|
318
|
+
}
|
319
|
+
|
320
|
+
rgb = colorNames[match[1]];
|
321
|
+
rgb[3] = 1;
|
322
|
+
|
323
|
+
return rgb;
|
324
|
+
} else {
|
325
|
+
return null;
|
326
|
+
}
|
327
|
+
|
328
|
+
for (i = 0; i < 3; i++) {
|
329
|
+
rgb[i] = clamp(rgb[i], 0, 255);
|
330
|
+
}
|
331
|
+
rgb[3] = clamp(rgb[3], 0, 1);
|
332
|
+
|
333
|
+
return rgb;
|
334
|
+
};
|
335
|
+
|
336
|
+
cs.get.hsl = function (string) {
|
337
|
+
if (!string) {
|
338
|
+
return null;
|
339
|
+
}
|
340
|
+
|
341
|
+
var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
|
342
|
+
var match = string.match(hsl);
|
343
|
+
|
344
|
+
if (match) {
|
345
|
+
var alpha = parseFloat(match[4]);
|
346
|
+
var h = ((parseFloat(match[1]) % 360) + 360) % 360;
|
347
|
+
var s = clamp(parseFloat(match[2]), 0, 100);
|
348
|
+
var l = clamp(parseFloat(match[3]), 0, 100);
|
349
|
+
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
350
|
+
|
351
|
+
return [h, s, l, a];
|
352
|
+
}
|
353
|
+
|
354
|
+
return null;
|
355
|
+
};
|
356
|
+
|
357
|
+
cs.get.hwb = function (string) {
|
358
|
+
if (!string) {
|
359
|
+
return null;
|
360
|
+
}
|
361
|
+
|
362
|
+
var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
|
363
|
+
var match = string.match(hwb);
|
364
|
+
|
365
|
+
if (match) {
|
366
|
+
var alpha = parseFloat(match[4]);
|
367
|
+
var h = ((parseFloat(match[1]) % 360) + 360) % 360;
|
368
|
+
var w = clamp(parseFloat(match[2]), 0, 100);
|
369
|
+
var b = clamp(parseFloat(match[3]), 0, 100);
|
370
|
+
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
371
|
+
return [h, w, b, a];
|
372
|
+
}
|
373
|
+
|
374
|
+
return null;
|
375
|
+
};
|
376
|
+
|
377
|
+
cs.to.hex = function () {
|
378
|
+
var rgba = swizzle(arguments);
|
379
|
+
|
380
|
+
return (
|
381
|
+
'#' +
|
382
|
+
hexDouble(rgba[0]) +
|
383
|
+
hexDouble(rgba[1]) +
|
384
|
+
hexDouble(rgba[2]) +
|
385
|
+
(rgba[3] < 1
|
386
|
+
? (hexDouble(Math.round(rgba[3] * 255)))
|
387
|
+
: '')
|
388
|
+
);
|
389
|
+
};
|
390
|
+
|
391
|
+
cs.to.rgb = function () {
|
392
|
+
var rgba = swizzle(arguments);
|
393
|
+
|
394
|
+
return rgba.length < 4 || rgba[3] === 1
|
395
|
+
? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'
|
396
|
+
: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';
|
397
|
+
};
|
398
|
+
|
399
|
+
cs.to.rgb.percent = function () {
|
400
|
+
var rgba = swizzle(arguments);
|
401
|
+
|
402
|
+
var r = Math.round(rgba[0] / 255 * 100);
|
403
|
+
var g = Math.round(rgba[1] / 255 * 100);
|
404
|
+
var b = Math.round(rgba[2] / 255 * 100);
|
405
|
+
|
406
|
+
return rgba.length < 4 || rgba[3] === 1
|
407
|
+
? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'
|
408
|
+
: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';
|
409
|
+
};
|
410
|
+
|
411
|
+
cs.to.hsl = function () {
|
412
|
+
var hsla = swizzle(arguments);
|
413
|
+
return hsla.length < 4 || hsla[3] === 1
|
414
|
+
? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'
|
415
|
+
: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';
|
416
|
+
};
|
417
|
+
|
418
|
+
// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
|
419
|
+
// (hwb have alpha optional & 1 is default value)
|
420
|
+
cs.to.hwb = function () {
|
421
|
+
var hwba = swizzle(arguments);
|
422
|
+
|
423
|
+
var a = '';
|
424
|
+
if (hwba.length >= 4 && hwba[3] !== 1) {
|
425
|
+
a = ', ' + hwba[3];
|
426
|
+
}
|
427
|
+
|
428
|
+
return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';
|
429
|
+
};
|
430
|
+
|
431
|
+
cs.to.keyword = function (rgb) {
|
432
|
+
return reverseNames[rgb.slice(0, 3)];
|
433
|
+
};
|
434
|
+
|
435
|
+
// helpers
|
436
|
+
function clamp(num, min, max) {
|
437
|
+
return Math.min(Math.max(min, num), max);
|
438
|
+
}
|
439
|
+
|
440
|
+
function hexDouble(num) {
|
441
|
+
var str = Math.round(num).toString(16).toUpperCase();
|
442
|
+
return (str.length < 2) ? '0' + str : str;
|
443
|
+
}
|
444
|
+
|
445
|
+
/* MIT license */
|
446
|
+
|
447
|
+
/* eslint-disable no-mixed-operators */
|
448
|
+
const cssKeywords = colorName;
|
449
|
+
|
450
|
+
// NOTE: conversions should only return primitive values (i.e. arrays, or
|
451
|
+
// values that give correct `typeof` results).
|
452
|
+
// do not use box values types (i.e. Number(), String(), etc.)
|
453
|
+
|
454
|
+
const reverseKeywords = {};
|
455
|
+
for (const key of Object.keys(cssKeywords)) {
|
456
|
+
reverseKeywords[cssKeywords[key]] = key;
|
457
|
+
}
|
458
|
+
|
459
|
+
const convert$2 = {
|
460
|
+
rgb: {channels: 3, labels: 'rgb'},
|
461
|
+
hsl: {channels: 3, labels: 'hsl'},
|
462
|
+
hsv: {channels: 3, labels: 'hsv'},
|
463
|
+
hwb: {channels: 3, labels: 'hwb'},
|
464
|
+
cmyk: {channels: 4, labels: 'cmyk'},
|
465
|
+
xyz: {channels: 3, labels: 'xyz'},
|
466
|
+
lab: {channels: 3, labels: 'lab'},
|
467
|
+
lch: {channels: 3, labels: 'lch'},
|
468
|
+
hex: {channels: 1, labels: ['hex']},
|
469
|
+
keyword: {channels: 1, labels: ['keyword']},
|
470
|
+
ansi16: {channels: 1, labels: ['ansi16']},
|
471
|
+
ansi256: {channels: 1, labels: ['ansi256']},
|
472
|
+
hcg: {channels: 3, labels: ['h', 'c', 'g']},
|
473
|
+
apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
|
474
|
+
gray: {channels: 1, labels: ['gray']}
|
475
|
+
};
|
476
|
+
|
477
|
+
var conversions$2 = convert$2;
|
478
|
+
|
479
|
+
// Hide .channels and .labels properties
|
480
|
+
for (const model of Object.keys(convert$2)) {
|
481
|
+
if (!('channels' in convert$2[model])) {
|
482
|
+
throw new Error('missing channels property: ' + model);
|
483
|
+
}
|
484
|
+
|
485
|
+
if (!('labels' in convert$2[model])) {
|
486
|
+
throw new Error('missing channel labels property: ' + model);
|
487
|
+
}
|
488
|
+
|
489
|
+
if (convert$2[model].labels.length !== convert$2[model].channels) {
|
490
|
+
throw new Error('channel and label counts mismatch: ' + model);
|
491
|
+
}
|
492
|
+
|
493
|
+
const {channels, labels} = convert$2[model];
|
494
|
+
delete convert$2[model].channels;
|
495
|
+
delete convert$2[model].labels;
|
496
|
+
Object.defineProperty(convert$2[model], 'channels', {value: channels});
|
497
|
+
Object.defineProperty(convert$2[model], 'labels', {value: labels});
|
498
|
+
}
|
499
|
+
|
500
|
+
convert$2.rgb.hsl = function (rgb) {
|
501
|
+
const r = rgb[0] / 255;
|
502
|
+
const g = rgb[1] / 255;
|
503
|
+
const b = rgb[2] / 255;
|
504
|
+
const min = Math.min(r, g, b);
|
505
|
+
const max = Math.max(r, g, b);
|
506
|
+
const delta = max - min;
|
507
|
+
let h;
|
508
|
+
let s;
|
509
|
+
|
510
|
+
if (max === min) {
|
511
|
+
h = 0;
|
512
|
+
} else if (r === max) {
|
513
|
+
h = (g - b) / delta;
|
514
|
+
} else if (g === max) {
|
515
|
+
h = 2 + (b - r) / delta;
|
516
|
+
} else if (b === max) {
|
517
|
+
h = 4 + (r - g) / delta;
|
518
|
+
}
|
519
|
+
|
520
|
+
h = Math.min(h * 60, 360);
|
521
|
+
|
522
|
+
if (h < 0) {
|
523
|
+
h += 360;
|
524
|
+
}
|
525
|
+
|
526
|
+
const l = (min + max) / 2;
|
527
|
+
|
528
|
+
if (max === min) {
|
529
|
+
s = 0;
|
530
|
+
} else if (l <= 0.5) {
|
531
|
+
s = delta / (max + min);
|
532
|
+
} else {
|
533
|
+
s = delta / (2 - max - min);
|
534
|
+
}
|
535
|
+
|
536
|
+
return [h, s * 100, l * 100];
|
537
|
+
};
|
538
|
+
|
539
|
+
convert$2.rgb.hsv = function (rgb) {
|
540
|
+
let rdif;
|
541
|
+
let gdif;
|
542
|
+
let bdif;
|
543
|
+
let h;
|
544
|
+
let s;
|
545
|
+
|
546
|
+
const r = rgb[0] / 255;
|
547
|
+
const g = rgb[1] / 255;
|
548
|
+
const b = rgb[2] / 255;
|
549
|
+
const v = Math.max(r, g, b);
|
550
|
+
const diff = v - Math.min(r, g, b);
|
551
|
+
const diffc = function (c) {
|
552
|
+
return (v - c) / 6 / diff + 1 / 2;
|
553
|
+
};
|
554
|
+
|
555
|
+
if (diff === 0) {
|
556
|
+
h = 0;
|
557
|
+
s = 0;
|
558
|
+
} else {
|
559
|
+
s = diff / v;
|
560
|
+
rdif = diffc(r);
|
561
|
+
gdif = diffc(g);
|
562
|
+
bdif = diffc(b);
|
563
|
+
|
564
|
+
if (r === v) {
|
565
|
+
h = bdif - gdif;
|
566
|
+
} else if (g === v) {
|
567
|
+
h = (1 / 3) + rdif - bdif;
|
568
|
+
} else if (b === v) {
|
569
|
+
h = (2 / 3) + gdif - rdif;
|
570
|
+
}
|
571
|
+
|
572
|
+
if (h < 0) {
|
573
|
+
h += 1;
|
574
|
+
} else if (h > 1) {
|
575
|
+
h -= 1;
|
576
|
+
}
|
577
|
+
}
|
578
|
+
|
579
|
+
return [
|
580
|
+
h * 360,
|
581
|
+
s * 100,
|
582
|
+
v * 100
|
583
|
+
];
|
584
|
+
};
|
585
|
+
|
586
|
+
convert$2.rgb.hwb = function (rgb) {
|
587
|
+
const r = rgb[0];
|
588
|
+
const g = rgb[1];
|
589
|
+
let b = rgb[2];
|
590
|
+
const h = convert$2.rgb.hsl(rgb)[0];
|
591
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
592
|
+
|
593
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
594
|
+
|
595
|
+
return [h, w * 100, b * 100];
|
596
|
+
};
|
597
|
+
|
598
|
+
convert$2.rgb.cmyk = function (rgb) {
|
599
|
+
const r = rgb[0] / 255;
|
600
|
+
const g = rgb[1] / 255;
|
601
|
+
const b = rgb[2] / 255;
|
602
|
+
|
603
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
604
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
605
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
606
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
607
|
+
|
608
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
609
|
+
};
|
610
|
+
|
611
|
+
function comparativeDistance(x, y) {
|
612
|
+
/*
|
613
|
+
See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
|
614
|
+
*/
|
615
|
+
return (
|
616
|
+
((x[0] - y[0]) ** 2) +
|
617
|
+
((x[1] - y[1]) ** 2) +
|
618
|
+
((x[2] - y[2]) ** 2)
|
619
|
+
);
|
620
|
+
}
|
621
|
+
|
622
|
+
convert$2.rgb.keyword = function (rgb) {
|
623
|
+
const reversed = reverseKeywords[rgb];
|
624
|
+
if (reversed) {
|
625
|
+
return reversed;
|
626
|
+
}
|
627
|
+
|
628
|
+
let currentClosestDistance = Infinity;
|
629
|
+
let currentClosestKeyword;
|
630
|
+
|
631
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
632
|
+
const value = cssKeywords[keyword];
|
633
|
+
|
634
|
+
// Compute comparative distance
|
635
|
+
const distance = comparativeDistance(rgb, value);
|
636
|
+
|
637
|
+
// Check if its less, if so set as closest
|
638
|
+
if (distance < currentClosestDistance) {
|
639
|
+
currentClosestDistance = distance;
|
640
|
+
currentClosestKeyword = keyword;
|
641
|
+
}
|
642
|
+
}
|
643
|
+
|
644
|
+
return currentClosestKeyword;
|
645
|
+
};
|
646
|
+
|
647
|
+
convert$2.keyword.rgb = function (keyword) {
|
648
|
+
return cssKeywords[keyword];
|
649
|
+
};
|
650
|
+
|
651
|
+
convert$2.rgb.xyz = function (rgb) {
|
652
|
+
let r = rgb[0] / 255;
|
653
|
+
let g = rgb[1] / 255;
|
654
|
+
let b = rgb[2] / 255;
|
655
|
+
|
656
|
+
// Assume sRGB
|
657
|
+
r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
|
658
|
+
g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
|
659
|
+
b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
|
660
|
+
|
661
|
+
const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
|
662
|
+
const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
|
663
|
+
const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
|
664
|
+
|
665
|
+
return [x * 100, y * 100, z * 100];
|
666
|
+
};
|
667
|
+
|
668
|
+
convert$2.rgb.lab = function (rgb) {
|
669
|
+
const xyz = convert$2.rgb.xyz(rgb);
|
670
|
+
let x = xyz[0];
|
671
|
+
let y = xyz[1];
|
672
|
+
let z = xyz[2];
|
673
|
+
|
674
|
+
x /= 95.047;
|
675
|
+
y /= 100;
|
676
|
+
z /= 108.883;
|
677
|
+
|
678
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
679
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
680
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
681
|
+
|
682
|
+
const l = (116 * y) - 16;
|
683
|
+
const a = 500 * (x - y);
|
684
|
+
const b = 200 * (y - z);
|
685
|
+
|
686
|
+
return [l, a, b];
|
687
|
+
};
|
688
|
+
|
689
|
+
convert$2.hsl.rgb = function (hsl) {
|
690
|
+
const h = hsl[0] / 360;
|
691
|
+
const s = hsl[1] / 100;
|
692
|
+
const l = hsl[2] / 100;
|
693
|
+
let t2;
|
694
|
+
let t3;
|
695
|
+
let val;
|
696
|
+
|
697
|
+
if (s === 0) {
|
698
|
+
val = l * 255;
|
699
|
+
return [val, val, val];
|
700
|
+
}
|
701
|
+
|
702
|
+
if (l < 0.5) {
|
703
|
+
t2 = l * (1 + s);
|
704
|
+
} else {
|
705
|
+
t2 = l + s - l * s;
|
706
|
+
}
|
707
|
+
|
708
|
+
const t1 = 2 * l - t2;
|
709
|
+
|
710
|
+
const rgb = [0, 0, 0];
|
711
|
+
for (let i = 0; i < 3; i++) {
|
712
|
+
t3 = h + 1 / 3 * -(i - 1);
|
713
|
+
if (t3 < 0) {
|
714
|
+
t3++;
|
715
|
+
}
|
716
|
+
|
717
|
+
if (t3 > 1) {
|
718
|
+
t3--;
|
719
|
+
}
|
720
|
+
|
721
|
+
if (6 * t3 < 1) {
|
722
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
723
|
+
} else if (2 * t3 < 1) {
|
724
|
+
val = t2;
|
725
|
+
} else if (3 * t3 < 2) {
|
726
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
727
|
+
} else {
|
728
|
+
val = t1;
|
729
|
+
}
|
730
|
+
|
731
|
+
rgb[i] = val * 255;
|
732
|
+
}
|
733
|
+
|
734
|
+
return rgb;
|
735
|
+
};
|
736
|
+
|
737
|
+
convert$2.hsl.hsv = function (hsl) {
|
738
|
+
const h = hsl[0];
|
739
|
+
let s = hsl[1] / 100;
|
740
|
+
let l = hsl[2] / 100;
|
741
|
+
let smin = s;
|
742
|
+
const lmin = Math.max(l, 0.01);
|
743
|
+
|
744
|
+
l *= 2;
|
745
|
+
s *= (l <= 1) ? l : 2 - l;
|
746
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
747
|
+
const v = (l + s) / 2;
|
748
|
+
const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
|
749
|
+
|
750
|
+
return [h, sv * 100, v * 100];
|
751
|
+
};
|
752
|
+
|
753
|
+
convert$2.hsv.rgb = function (hsv) {
|
754
|
+
const h = hsv[0] / 60;
|
755
|
+
const s = hsv[1] / 100;
|
756
|
+
let v = hsv[2] / 100;
|
757
|
+
const hi = Math.floor(h) % 6;
|
758
|
+
|
759
|
+
const f = h - Math.floor(h);
|
760
|
+
const p = 255 * v * (1 - s);
|
761
|
+
const q = 255 * v * (1 - (s * f));
|
762
|
+
const t = 255 * v * (1 - (s * (1 - f)));
|
763
|
+
v *= 255;
|
764
|
+
|
765
|
+
switch (hi) {
|
766
|
+
case 0:
|
767
|
+
return [v, t, p];
|
768
|
+
case 1:
|
769
|
+
return [q, v, p];
|
770
|
+
case 2:
|
771
|
+
return [p, v, t];
|
772
|
+
case 3:
|
773
|
+
return [p, q, v];
|
774
|
+
case 4:
|
775
|
+
return [t, p, v];
|
776
|
+
case 5:
|
777
|
+
return [v, p, q];
|
778
|
+
}
|
779
|
+
};
|
780
|
+
|
781
|
+
convert$2.hsv.hsl = function (hsv) {
|
782
|
+
const h = hsv[0];
|
783
|
+
const s = hsv[1] / 100;
|
784
|
+
const v = hsv[2] / 100;
|
785
|
+
const vmin = Math.max(v, 0.01);
|
786
|
+
let sl;
|
787
|
+
let l;
|
788
|
+
|
789
|
+
l = (2 - s) * v;
|
790
|
+
const lmin = (2 - s) * vmin;
|
791
|
+
sl = s * vmin;
|
792
|
+
sl /= (lmin <= 1) ? lmin : 2 - lmin;
|
793
|
+
sl = sl || 0;
|
794
|
+
l /= 2;
|
795
|
+
|
796
|
+
return [h, sl * 100, l * 100];
|
797
|
+
};
|
798
|
+
|
799
|
+
// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
|
800
|
+
convert$2.hwb.rgb = function (hwb) {
|
801
|
+
const h = hwb[0] / 360;
|
802
|
+
let wh = hwb[1] / 100;
|
803
|
+
let bl = hwb[2] / 100;
|
804
|
+
const ratio = wh + bl;
|
805
|
+
let f;
|
806
|
+
|
807
|
+
// Wh + bl cant be > 1
|
808
|
+
if (ratio > 1) {
|
809
|
+
wh /= ratio;
|
810
|
+
bl /= ratio;
|
811
|
+
}
|
812
|
+
|
813
|
+
const i = Math.floor(6 * h);
|
814
|
+
const v = 1 - bl;
|
815
|
+
f = 6 * h - i;
|
816
|
+
|
817
|
+
if ((i & 0x01) !== 0) {
|
818
|
+
f = 1 - f;
|
819
|
+
}
|
820
|
+
|
821
|
+
const n = wh + f * (v - wh); // Linear interpolation
|
822
|
+
|
823
|
+
let r;
|
824
|
+
let g;
|
825
|
+
let b;
|
826
|
+
/* eslint-disable max-statements-per-line,no-multi-spaces */
|
827
|
+
switch (i) {
|
828
|
+
default:
|
829
|
+
case 6:
|
830
|
+
case 0: r = v; g = n; b = wh; break;
|
831
|
+
case 1: r = n; g = v; b = wh; break;
|
832
|
+
case 2: r = wh; g = v; b = n; break;
|
833
|
+
case 3: r = wh; g = n; b = v; break;
|
834
|
+
case 4: r = n; g = wh; b = v; break;
|
835
|
+
case 5: r = v; g = wh; b = n; break;
|
836
|
+
}
|
837
|
+
/* eslint-enable max-statements-per-line,no-multi-spaces */
|
838
|
+
|
839
|
+
return [r * 255, g * 255, b * 255];
|
840
|
+
};
|
841
|
+
|
842
|
+
convert$2.cmyk.rgb = function (cmyk) {
|
843
|
+
const c = cmyk[0] / 100;
|
844
|
+
const m = cmyk[1] / 100;
|
845
|
+
const y = cmyk[2] / 100;
|
846
|
+
const k = cmyk[3] / 100;
|
847
|
+
|
848
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
849
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
850
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
851
|
+
|
852
|
+
return [r * 255, g * 255, b * 255];
|
853
|
+
};
|
854
|
+
|
855
|
+
convert$2.xyz.rgb = function (xyz) {
|
856
|
+
const x = xyz[0] / 100;
|
857
|
+
const y = xyz[1] / 100;
|
858
|
+
const z = xyz[2] / 100;
|
859
|
+
let r;
|
860
|
+
let g;
|
861
|
+
let b;
|
862
|
+
|
863
|
+
r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
|
864
|
+
g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
|
865
|
+
b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
|
866
|
+
|
867
|
+
// Assume sRGB
|
868
|
+
r = r > 0.0031308
|
869
|
+
? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
|
870
|
+
: r * 12.92;
|
871
|
+
|
872
|
+
g = g > 0.0031308
|
873
|
+
? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
|
874
|
+
: g * 12.92;
|
875
|
+
|
876
|
+
b = b > 0.0031308
|
877
|
+
? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
|
878
|
+
: b * 12.92;
|
879
|
+
|
880
|
+
r = Math.min(Math.max(0, r), 1);
|
881
|
+
g = Math.min(Math.max(0, g), 1);
|
882
|
+
b = Math.min(Math.max(0, b), 1);
|
883
|
+
|
884
|
+
return [r * 255, g * 255, b * 255];
|
885
|
+
};
|
886
|
+
|
887
|
+
convert$2.xyz.lab = function (xyz) {
|
888
|
+
let x = xyz[0];
|
889
|
+
let y = xyz[1];
|
890
|
+
let z = xyz[2];
|
891
|
+
|
892
|
+
x /= 95.047;
|
893
|
+
y /= 100;
|
894
|
+
z /= 108.883;
|
895
|
+
|
896
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
897
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
898
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
899
|
+
|
900
|
+
const l = (116 * y) - 16;
|
901
|
+
const a = 500 * (x - y);
|
902
|
+
const b = 200 * (y - z);
|
903
|
+
|
904
|
+
return [l, a, b];
|
905
|
+
};
|
906
|
+
|
907
|
+
convert$2.lab.xyz = function (lab) {
|
908
|
+
const l = lab[0];
|
909
|
+
const a = lab[1];
|
910
|
+
const b = lab[2];
|
911
|
+
let x;
|
912
|
+
let y;
|
913
|
+
let z;
|
914
|
+
|
915
|
+
y = (l + 16) / 116;
|
916
|
+
x = a / 500 + y;
|
917
|
+
z = y - b / 200;
|
918
|
+
|
919
|
+
const y2 = y ** 3;
|
920
|
+
const x2 = x ** 3;
|
921
|
+
const z2 = z ** 3;
|
922
|
+
y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
923
|
+
x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
924
|
+
z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
925
|
+
|
926
|
+
x *= 95.047;
|
927
|
+
y *= 100;
|
928
|
+
z *= 108.883;
|
929
|
+
|
930
|
+
return [x, y, z];
|
931
|
+
};
|
932
|
+
|
933
|
+
convert$2.lab.lch = function (lab) {
|
934
|
+
const l = lab[0];
|
935
|
+
const a = lab[1];
|
936
|
+
const b = lab[2];
|
937
|
+
let h;
|
938
|
+
|
939
|
+
const hr = Math.atan2(b, a);
|
940
|
+
h = hr * 360 / 2 / Math.PI;
|
941
|
+
|
942
|
+
if (h < 0) {
|
943
|
+
h += 360;
|
944
|
+
}
|
945
|
+
|
946
|
+
const c = Math.sqrt(a * a + b * b);
|
947
|
+
|
948
|
+
return [l, c, h];
|
949
|
+
};
|
950
|
+
|
951
|
+
convert$2.lch.lab = function (lch) {
|
952
|
+
const l = lch[0];
|
953
|
+
const c = lch[1];
|
954
|
+
const h = lch[2];
|
955
|
+
|
956
|
+
const hr = h / 360 * 2 * Math.PI;
|
957
|
+
const a = c * Math.cos(hr);
|
958
|
+
const b = c * Math.sin(hr);
|
959
|
+
|
960
|
+
return [l, a, b];
|
961
|
+
};
|
962
|
+
|
963
|
+
convert$2.rgb.ansi16 = function (args, saturation = null) {
|
964
|
+
const [r, g, b] = args;
|
965
|
+
let value = saturation === null ? convert$2.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
|
966
|
+
|
967
|
+
value = Math.round(value / 50);
|
968
|
+
|
969
|
+
if (value === 0) {
|
970
|
+
return 30;
|
971
|
+
}
|
972
|
+
|
973
|
+
let ansi = 30
|
974
|
+
+ ((Math.round(b / 255) << 2)
|
975
|
+
| (Math.round(g / 255) << 1)
|
976
|
+
| Math.round(r / 255));
|
977
|
+
|
978
|
+
if (value === 2) {
|
979
|
+
ansi += 60;
|
980
|
+
}
|
981
|
+
|
982
|
+
return ansi;
|
983
|
+
};
|
984
|
+
|
985
|
+
convert$2.hsv.ansi16 = function (args) {
|
986
|
+
// Optimization here; we already know the value and don't need to get
|
987
|
+
// it converted for us.
|
988
|
+
return convert$2.rgb.ansi16(convert$2.hsv.rgb(args), args[2]);
|
989
|
+
};
|
990
|
+
|
991
|
+
convert$2.rgb.ansi256 = function (args) {
|
992
|
+
const r = args[0];
|
993
|
+
const g = args[1];
|
994
|
+
const b = args[2];
|
995
|
+
|
996
|
+
// We use the extended greyscale palette here, with the exception of
|
997
|
+
// black and white. normal palette only has 4 greyscale shades.
|
998
|
+
if (r === g && g === b) {
|
999
|
+
if (r < 8) {
|
1000
|
+
return 16;
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
if (r > 248) {
|
1004
|
+
return 231;
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
return Math.round(((r - 8) / 247) * 24) + 232;
|
1008
|
+
}
|
1009
|
+
|
1010
|
+
const ansi = 16
|
1011
|
+
+ (36 * Math.round(r / 255 * 5))
|
1012
|
+
+ (6 * Math.round(g / 255 * 5))
|
1013
|
+
+ Math.round(b / 255 * 5);
|
1014
|
+
|
1015
|
+
return ansi;
|
1016
|
+
};
|
1017
|
+
|
1018
|
+
convert$2.ansi16.rgb = function (args) {
|
1019
|
+
let color = args % 10;
|
1020
|
+
|
1021
|
+
// Handle greyscale
|
1022
|
+
if (color === 0 || color === 7) {
|
1023
|
+
if (args > 50) {
|
1024
|
+
color += 3.5;
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
color = color / 10.5 * 255;
|
1028
|
+
|
1029
|
+
return [color, color, color];
|
1030
|
+
}
|
1031
|
+
|
1032
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
1033
|
+
const r = ((color & 1) * mult) * 255;
|
1034
|
+
const g = (((color >> 1) & 1) * mult) * 255;
|
1035
|
+
const b = (((color >> 2) & 1) * mult) * 255;
|
1036
|
+
|
1037
|
+
return [r, g, b];
|
1038
|
+
};
|
1039
|
+
|
1040
|
+
convert$2.ansi256.rgb = function (args) {
|
1041
|
+
// Handle greyscale
|
1042
|
+
if (args >= 232) {
|
1043
|
+
const c = (args - 232) * 10 + 8;
|
1044
|
+
return [c, c, c];
|
1045
|
+
}
|
1046
|
+
|
1047
|
+
args -= 16;
|
1048
|
+
|
1049
|
+
let rem;
|
1050
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
1051
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
1052
|
+
const b = (rem % 6) / 5 * 255;
|
1053
|
+
|
1054
|
+
return [r, g, b];
|
1055
|
+
};
|
1056
|
+
|
1057
|
+
convert$2.rgb.hex = function (args) {
|
1058
|
+
const integer = ((Math.round(args[0]) & 0xFF) << 16)
|
1059
|
+
+ ((Math.round(args[1]) & 0xFF) << 8)
|
1060
|
+
+ (Math.round(args[2]) & 0xFF);
|
1061
|
+
|
1062
|
+
const string = integer.toString(16).toUpperCase();
|
1063
|
+
return '000000'.substring(string.length) + string;
|
1064
|
+
};
|
1065
|
+
|
1066
|
+
convert$2.hex.rgb = function (args) {
|
1067
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
1068
|
+
if (!match) {
|
1069
|
+
return [0, 0, 0];
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
let colorString = match[0];
|
1073
|
+
|
1074
|
+
if (match[0].length === 3) {
|
1075
|
+
colorString = colorString.split('').map(char => {
|
1076
|
+
return char + char;
|
1077
|
+
}).join('');
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
const integer = parseInt(colorString, 16);
|
1081
|
+
const r = (integer >> 16) & 0xFF;
|
1082
|
+
const g = (integer >> 8) & 0xFF;
|
1083
|
+
const b = integer & 0xFF;
|
1084
|
+
|
1085
|
+
return [r, g, b];
|
1086
|
+
};
|
1087
|
+
|
1088
|
+
convert$2.rgb.hcg = function (rgb) {
|
1089
|
+
const r = rgb[0] / 255;
|
1090
|
+
const g = rgb[1] / 255;
|
1091
|
+
const b = rgb[2] / 255;
|
1092
|
+
const max = Math.max(Math.max(r, g), b);
|
1093
|
+
const min = Math.min(Math.min(r, g), b);
|
1094
|
+
const chroma = (max - min);
|
1095
|
+
let grayscale;
|
1096
|
+
let hue;
|
1097
|
+
|
1098
|
+
if (chroma < 1) {
|
1099
|
+
grayscale = min / (1 - chroma);
|
1100
|
+
} else {
|
1101
|
+
grayscale = 0;
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
if (chroma <= 0) {
|
1105
|
+
hue = 0;
|
1106
|
+
} else
|
1107
|
+
if (max === r) {
|
1108
|
+
hue = ((g - b) / chroma) % 6;
|
1109
|
+
} else
|
1110
|
+
if (max === g) {
|
1111
|
+
hue = 2 + (b - r) / chroma;
|
1112
|
+
} else {
|
1113
|
+
hue = 4 + (r - g) / chroma;
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
hue /= 6;
|
1117
|
+
hue %= 1;
|
1118
|
+
|
1119
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
1120
|
+
};
|
1121
|
+
|
1122
|
+
convert$2.hsl.hcg = function (hsl) {
|
1123
|
+
const s = hsl[1] / 100;
|
1124
|
+
const l = hsl[2] / 100;
|
1125
|
+
|
1126
|
+
const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
|
1127
|
+
|
1128
|
+
let f = 0;
|
1129
|
+
if (c < 1.0) {
|
1130
|
+
f = (l - 0.5 * c) / (1.0 - c);
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
return [hsl[0], c * 100, f * 100];
|
1134
|
+
};
|
1135
|
+
|
1136
|
+
convert$2.hsv.hcg = function (hsv) {
|
1137
|
+
const s = hsv[1] / 100;
|
1138
|
+
const v = hsv[2] / 100;
|
1139
|
+
|
1140
|
+
const c = s * v;
|
1141
|
+
let f = 0;
|
1142
|
+
|
1143
|
+
if (c < 1.0) {
|
1144
|
+
f = (v - c) / (1 - c);
|
1145
|
+
}
|
1146
|
+
|
1147
|
+
return [hsv[0], c * 100, f * 100];
|
1148
|
+
};
|
1149
|
+
|
1150
|
+
convert$2.hcg.rgb = function (hcg) {
|
1151
|
+
const h = hcg[0] / 360;
|
1152
|
+
const c = hcg[1] / 100;
|
1153
|
+
const g = hcg[2] / 100;
|
1154
|
+
|
1155
|
+
if (c === 0.0) {
|
1156
|
+
return [g * 255, g * 255, g * 255];
|
1157
|
+
}
|
1158
|
+
|
1159
|
+
const pure = [0, 0, 0];
|
1160
|
+
const hi = (h % 1) * 6;
|
1161
|
+
const v = hi % 1;
|
1162
|
+
const w = 1 - v;
|
1163
|
+
let mg = 0;
|
1164
|
+
|
1165
|
+
/* eslint-disable max-statements-per-line */
|
1166
|
+
switch (Math.floor(hi)) {
|
1167
|
+
case 0:
|
1168
|
+
pure[0] = 1; pure[1] = v; pure[2] = 0; break;
|
1169
|
+
case 1:
|
1170
|
+
pure[0] = w; pure[1] = 1; pure[2] = 0; break;
|
1171
|
+
case 2:
|
1172
|
+
pure[0] = 0; pure[1] = 1; pure[2] = v; break;
|
1173
|
+
case 3:
|
1174
|
+
pure[0] = 0; pure[1] = w; pure[2] = 1; break;
|
1175
|
+
case 4:
|
1176
|
+
pure[0] = v; pure[1] = 0; pure[2] = 1; break;
|
1177
|
+
default:
|
1178
|
+
pure[0] = 1; pure[1] = 0; pure[2] = w;
|
1179
|
+
}
|
1180
|
+
/* eslint-enable max-statements-per-line */
|
1181
|
+
|
1182
|
+
mg = (1.0 - c) * g;
|
1183
|
+
|
1184
|
+
return [
|
1185
|
+
(c * pure[0] + mg) * 255,
|
1186
|
+
(c * pure[1] + mg) * 255,
|
1187
|
+
(c * pure[2] + mg) * 255
|
1188
|
+
];
|
1189
|
+
};
|
1190
|
+
|
1191
|
+
convert$2.hcg.hsv = function (hcg) {
|
1192
|
+
const c = hcg[1] / 100;
|
1193
|
+
const g = hcg[2] / 100;
|
1194
|
+
|
1195
|
+
const v = c + g * (1.0 - c);
|
1196
|
+
let f = 0;
|
1197
|
+
|
1198
|
+
if (v > 0.0) {
|
1199
|
+
f = c / v;
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
return [hcg[0], f * 100, v * 100];
|
1203
|
+
};
|
1204
|
+
|
1205
|
+
convert$2.hcg.hsl = function (hcg) {
|
1206
|
+
const c = hcg[1] / 100;
|
1207
|
+
const g = hcg[2] / 100;
|
1208
|
+
|
1209
|
+
const l = g * (1.0 - c) + 0.5 * c;
|
1210
|
+
let s = 0;
|
1211
|
+
|
1212
|
+
if (l > 0.0 && l < 0.5) {
|
1213
|
+
s = c / (2 * l);
|
1214
|
+
} else
|
1215
|
+
if (l >= 0.5 && l < 1.0) {
|
1216
|
+
s = c / (2 * (1 - l));
|
1217
|
+
}
|
1218
|
+
|
1219
|
+
return [hcg[0], s * 100, l * 100];
|
1220
|
+
};
|
1221
|
+
|
1222
|
+
convert$2.hcg.hwb = function (hcg) {
|
1223
|
+
const c = hcg[1] / 100;
|
1224
|
+
const g = hcg[2] / 100;
|
1225
|
+
const v = c + g * (1.0 - c);
|
1226
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
convert$2.hwb.hcg = function (hwb) {
|
1230
|
+
const w = hwb[1] / 100;
|
1231
|
+
const b = hwb[2] / 100;
|
1232
|
+
const v = 1 - b;
|
1233
|
+
const c = v - w;
|
1234
|
+
let g = 0;
|
1235
|
+
|
1236
|
+
if (c < 1) {
|
1237
|
+
g = (v - c) / (1 - c);
|
1238
|
+
}
|
1239
|
+
|
1240
|
+
return [hwb[0], c * 100, g * 100];
|
1241
|
+
};
|
1242
|
+
|
1243
|
+
convert$2.apple.rgb = function (apple) {
|
1244
|
+
return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
|
1245
|
+
};
|
1246
|
+
|
1247
|
+
convert$2.rgb.apple = function (rgb) {
|
1248
|
+
return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
|
1249
|
+
};
|
1250
|
+
|
1251
|
+
convert$2.gray.rgb = function (args) {
|
1252
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
1253
|
+
};
|
1254
|
+
|
1255
|
+
convert$2.gray.hsl = function (args) {
|
1256
|
+
return [0, 0, args[0]];
|
1257
|
+
};
|
1258
|
+
|
1259
|
+
convert$2.gray.hsv = convert$2.gray.hsl;
|
1260
|
+
|
1261
|
+
convert$2.gray.hwb = function (gray) {
|
1262
|
+
return [0, 100, gray[0]];
|
1263
|
+
};
|
1264
|
+
|
1265
|
+
convert$2.gray.cmyk = function (gray) {
|
1266
|
+
return [0, 0, 0, gray[0]];
|
1267
|
+
};
|
1268
|
+
|
1269
|
+
convert$2.gray.lab = function (gray) {
|
1270
|
+
return [gray[0], 0, 0];
|
1271
|
+
};
|
1272
|
+
|
1273
|
+
convert$2.gray.hex = function (gray) {
|
1274
|
+
const val = Math.round(gray[0] / 100 * 255) & 0xFF;
|
1275
|
+
const integer = (val << 16) + (val << 8) + val;
|
1276
|
+
|
1277
|
+
const string = integer.toString(16).toUpperCase();
|
1278
|
+
return '000000'.substring(string.length) + string;
|
1279
|
+
};
|
1280
|
+
|
1281
|
+
convert$2.rgb.gray = function (rgb) {
|
1282
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
1283
|
+
return [val / 255 * 100];
|
1284
|
+
};
|
1285
|
+
|
1286
|
+
const conversions$1 = conversions$2;
|
1287
|
+
|
1288
|
+
/*
|
1289
|
+
This function routes a model to all other models.
|
1290
|
+
|
1291
|
+
all functions that are routed have a property `.conversion` attached
|
1292
|
+
to the returned synthetic function. This property is an array
|
1293
|
+
of strings, each with the steps in between the 'from' and 'to'
|
1294
|
+
color models (inclusive).
|
1295
|
+
|
1296
|
+
conversions that are not possible simply are not included.
|
1297
|
+
*/
|
1298
|
+
|
1299
|
+
function buildGraph() {
|
1300
|
+
const graph = {};
|
1301
|
+
// https://jsperf.com/object-keys-vs-for-in-with-closure/3
|
1302
|
+
const models = Object.keys(conversions$1);
|
1303
|
+
|
1304
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
1305
|
+
graph[models[i]] = {
|
1306
|
+
// http://jsperf.com/1-vs-infinity
|
1307
|
+
// micro-opt, but this is simple.
|
1308
|
+
distance: -1,
|
1309
|
+
parent: null
|
1310
|
+
};
|
1311
|
+
}
|
1312
|
+
|
1313
|
+
return graph;
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
// https://en.wikipedia.org/wiki/Breadth-first_search
|
1317
|
+
function deriveBFS(fromModel) {
|
1318
|
+
const graph = buildGraph();
|
1319
|
+
const queue = [fromModel]; // Unshift -> queue -> pop
|
1320
|
+
|
1321
|
+
graph[fromModel].distance = 0;
|
1322
|
+
|
1323
|
+
while (queue.length) {
|
1324
|
+
const current = queue.pop();
|
1325
|
+
const adjacents = Object.keys(conversions$1[current]);
|
1326
|
+
|
1327
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
1328
|
+
const adjacent = adjacents[i];
|
1329
|
+
const node = graph[adjacent];
|
1330
|
+
|
1331
|
+
if (node.distance === -1) {
|
1332
|
+
node.distance = graph[current].distance + 1;
|
1333
|
+
node.parent = current;
|
1334
|
+
queue.unshift(adjacent);
|
1335
|
+
}
|
1336
|
+
}
|
1337
|
+
}
|
1338
|
+
|
1339
|
+
return graph;
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
function link(from, to) {
|
1343
|
+
return function (args) {
|
1344
|
+
return to(from(args));
|
1345
|
+
};
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
function wrapConversion(toModel, graph) {
|
1349
|
+
const path = [graph[toModel].parent, toModel];
|
1350
|
+
let fn = conversions$1[graph[toModel].parent][toModel];
|
1351
|
+
|
1352
|
+
let cur = graph[toModel].parent;
|
1353
|
+
while (graph[cur].parent) {
|
1354
|
+
path.unshift(graph[cur].parent);
|
1355
|
+
fn = link(conversions$1[graph[cur].parent][cur], fn);
|
1356
|
+
cur = graph[cur].parent;
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
fn.conversion = path;
|
1360
|
+
return fn;
|
1361
|
+
}
|
1362
|
+
|
1363
|
+
var route$1 = function (fromModel) {
|
1364
|
+
const graph = deriveBFS(fromModel);
|
1365
|
+
const conversion = {};
|
1366
|
+
|
1367
|
+
const models = Object.keys(graph);
|
1368
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
1369
|
+
const toModel = models[i];
|
1370
|
+
const node = graph[toModel];
|
1371
|
+
|
1372
|
+
if (node.parent === null) {
|
1373
|
+
// No possible conversion, or this node is the source model.
|
1374
|
+
continue;
|
1375
|
+
}
|
1376
|
+
|
1377
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
1378
|
+
}
|
1379
|
+
|
1380
|
+
return conversion;
|
1381
|
+
};
|
1382
|
+
|
1383
|
+
const conversions = conversions$2;
|
1384
|
+
const route = route$1;
|
1385
|
+
|
1386
|
+
const convert$1 = {};
|
1387
|
+
|
1388
|
+
const models = Object.keys(conversions);
|
1389
|
+
|
1390
|
+
function wrapRaw(fn) {
|
1391
|
+
const wrappedFn = function (...args) {
|
1392
|
+
const arg0 = args[0];
|
1393
|
+
if (arg0 === undefined || arg0 === null) {
|
1394
|
+
return arg0;
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
if (arg0.length > 1) {
|
1398
|
+
args = arg0;
|
1399
|
+
}
|
1400
|
+
|
1401
|
+
return fn(args);
|
1402
|
+
};
|
1403
|
+
|
1404
|
+
// Preserve .conversion property if there is one
|
1405
|
+
if ('conversion' in fn) {
|
1406
|
+
wrappedFn.conversion = fn.conversion;
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
return wrappedFn;
|
1410
|
+
}
|
1411
|
+
|
1412
|
+
function wrapRounded(fn) {
|
1413
|
+
const wrappedFn = function (...args) {
|
1414
|
+
const arg0 = args[0];
|
1415
|
+
|
1416
|
+
if (arg0 === undefined || arg0 === null) {
|
1417
|
+
return arg0;
|
1418
|
+
}
|
1419
|
+
|
1420
|
+
if (arg0.length > 1) {
|
1421
|
+
args = arg0;
|
1422
|
+
}
|
1423
|
+
|
1424
|
+
const result = fn(args);
|
1425
|
+
|
1426
|
+
// We're assuming the result is an array here.
|
1427
|
+
// see notice in conversions.js; don't use box types
|
1428
|
+
// in conversion functions.
|
1429
|
+
if (typeof result === 'object') {
|
1430
|
+
for (let len = result.length, i = 0; i < len; i++) {
|
1431
|
+
result[i] = Math.round(result[i]);
|
1432
|
+
}
|
1433
|
+
}
|
1434
|
+
|
1435
|
+
return result;
|
1436
|
+
};
|
1437
|
+
|
1438
|
+
// Preserve .conversion property if there is one
|
1439
|
+
if ('conversion' in fn) {
|
1440
|
+
wrappedFn.conversion = fn.conversion;
|
1441
|
+
}
|
1442
|
+
|
1443
|
+
return wrappedFn;
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
models.forEach(fromModel => {
|
1447
|
+
convert$1[fromModel] = {};
|
1448
|
+
|
1449
|
+
Object.defineProperty(convert$1[fromModel], 'channels', {value: conversions[fromModel].channels});
|
1450
|
+
Object.defineProperty(convert$1[fromModel], 'labels', {value: conversions[fromModel].labels});
|
1451
|
+
|
1452
|
+
const routes = route(fromModel);
|
1453
|
+
const routeModels = Object.keys(routes);
|
1454
|
+
|
1455
|
+
routeModels.forEach(toModel => {
|
1456
|
+
const fn = routes[toModel];
|
1457
|
+
|
1458
|
+
convert$1[fromModel][toModel] = wrapRounded(fn);
|
1459
|
+
convert$1[fromModel][toModel].raw = wrapRaw(fn);
|
1460
|
+
});
|
1461
|
+
});
|
1462
|
+
|
1463
|
+
var colorConvert = convert$1;
|
1464
|
+
|
1465
|
+
const colorString = colorString$1.exports;
|
1466
|
+
const convert = colorConvert;
|
1467
|
+
|
1468
|
+
const skippedModels = [
|
1469
|
+
// To be honest, I don't really feel like keyword belongs in color convert, but eh.
|
1470
|
+
'keyword',
|
1471
|
+
|
1472
|
+
// Gray conflicts with some method names, and has its own method defined.
|
1473
|
+
'gray',
|
1474
|
+
|
1475
|
+
// Shouldn't really be in color-convert either...
|
1476
|
+
'hex',
|
1477
|
+
];
|
1478
|
+
|
1479
|
+
const hashedModelKeys = {};
|
1480
|
+
for (const model of Object.keys(convert)) {
|
1481
|
+
hashedModelKeys[[...convert[model].labels].sort().join('')] = model;
|
1482
|
+
}
|
1483
|
+
|
1484
|
+
const limiters = {};
|
1485
|
+
|
1486
|
+
function Color(object, model) {
|
1487
|
+
if (!(this instanceof Color)) {
|
1488
|
+
return new Color(object, model);
|
1489
|
+
}
|
1490
|
+
|
1491
|
+
if (model && model in skippedModels) {
|
1492
|
+
model = null;
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
if (model && !(model in convert)) {
|
1496
|
+
throw new Error('Unknown model: ' + model);
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
let i;
|
1500
|
+
let channels;
|
1501
|
+
|
1502
|
+
if (object == null) { // eslint-disable-line no-eq-null,eqeqeq
|
1503
|
+
this.model = 'rgb';
|
1504
|
+
this.color = [0, 0, 0];
|
1505
|
+
this.valpha = 1;
|
1506
|
+
} else if (object instanceof Color) {
|
1507
|
+
this.model = object.model;
|
1508
|
+
this.color = [...object.color];
|
1509
|
+
this.valpha = object.valpha;
|
1510
|
+
} else if (typeof object === 'string') {
|
1511
|
+
const result = colorString.get(object);
|
1512
|
+
if (result === null) {
|
1513
|
+
throw new Error('Unable to parse color from string: ' + object);
|
1514
|
+
}
|
1515
|
+
|
1516
|
+
this.model = result.model;
|
1517
|
+
channels = convert[this.model].channels;
|
1518
|
+
this.color = result.value.slice(0, channels);
|
1519
|
+
this.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;
|
1520
|
+
} else if (object.length > 0) {
|
1521
|
+
this.model = model || 'rgb';
|
1522
|
+
channels = convert[this.model].channels;
|
1523
|
+
const newArray = Array.prototype.slice.call(object, 0, channels);
|
1524
|
+
this.color = zeroArray(newArray, channels);
|
1525
|
+
this.valpha = typeof object[channels] === 'number' ? object[channels] : 1;
|
1526
|
+
} else if (typeof object === 'number') {
|
1527
|
+
// This is always RGB - can be converted later on.
|
1528
|
+
this.model = 'rgb';
|
1529
|
+
this.color = [
|
1530
|
+
(object >> 16) & 0xFF,
|
1531
|
+
(object >> 8) & 0xFF,
|
1532
|
+
object & 0xFF,
|
1533
|
+
];
|
1534
|
+
this.valpha = 1;
|
1535
|
+
} else {
|
1536
|
+
this.valpha = 1;
|
1537
|
+
|
1538
|
+
const keys = Object.keys(object);
|
1539
|
+
if ('alpha' in object) {
|
1540
|
+
keys.splice(keys.indexOf('alpha'), 1);
|
1541
|
+
this.valpha = typeof object.alpha === 'number' ? object.alpha : 0;
|
1542
|
+
}
|
1543
|
+
|
1544
|
+
const hashedKeys = keys.sort().join('');
|
1545
|
+
if (!(hashedKeys in hashedModelKeys)) {
|
1546
|
+
throw new Error('Unable to parse color from object: ' + JSON.stringify(object));
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
this.model = hashedModelKeys[hashedKeys];
|
1550
|
+
|
1551
|
+
const {labels} = convert[this.model];
|
1552
|
+
const color = [];
|
1553
|
+
for (i = 0; i < labels.length; i++) {
|
1554
|
+
color.push(object[labels[i]]);
|
1555
|
+
}
|
1556
|
+
|
1557
|
+
this.color = zeroArray(color);
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
// Perform limitations (clamping, etc.)
|
1561
|
+
if (limiters[this.model]) {
|
1562
|
+
channels = convert[this.model].channels;
|
1563
|
+
for (i = 0; i < channels; i++) {
|
1564
|
+
const limit = limiters[this.model][i];
|
1565
|
+
if (limit) {
|
1566
|
+
this.color[i] = limit(this.color[i]);
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
}
|
1570
|
+
|
1571
|
+
this.valpha = Math.max(0, Math.min(1, this.valpha));
|
1572
|
+
|
1573
|
+
if (Object.freeze) {
|
1574
|
+
Object.freeze(this);
|
1575
|
+
}
|
1576
|
+
}
|
1577
|
+
|
1578
|
+
Color.prototype = {
|
1579
|
+
toString() {
|
1580
|
+
return this.string();
|
1581
|
+
},
|
1582
|
+
|
1583
|
+
toJSON() {
|
1584
|
+
return this[this.model]();
|
1585
|
+
},
|
1586
|
+
|
1587
|
+
string(places) {
|
1588
|
+
let self = this.model in colorString.to ? this : this.rgb();
|
1589
|
+
self = self.round(typeof places === 'number' ? places : 1);
|
1590
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
1591
|
+
return colorString.to[self.model](args);
|
1592
|
+
},
|
1593
|
+
|
1594
|
+
percentString(places) {
|
1595
|
+
const self = this.rgb().round(typeof places === 'number' ? places : 1);
|
1596
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
1597
|
+
return colorString.to.rgb.percent(args);
|
1598
|
+
},
|
1599
|
+
|
1600
|
+
array() {
|
1601
|
+
return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
|
1602
|
+
},
|
1603
|
+
|
1604
|
+
object() {
|
1605
|
+
const result = {};
|
1606
|
+
const {channels} = convert[this.model];
|
1607
|
+
const {labels} = convert[this.model];
|
1608
|
+
|
1609
|
+
for (let i = 0; i < channels; i++) {
|
1610
|
+
result[labels[i]] = this.color[i];
|
1611
|
+
}
|
1612
|
+
|
1613
|
+
if (this.valpha !== 1) {
|
1614
|
+
result.alpha = this.valpha;
|
1615
|
+
}
|
1616
|
+
|
1617
|
+
return result;
|
1618
|
+
},
|
1619
|
+
|
1620
|
+
unitArray() {
|
1621
|
+
const rgb = this.rgb().color;
|
1622
|
+
rgb[0] /= 255;
|
1623
|
+
rgb[1] /= 255;
|
1624
|
+
rgb[2] /= 255;
|
1625
|
+
|
1626
|
+
if (this.valpha !== 1) {
|
1627
|
+
rgb.push(this.valpha);
|
1628
|
+
}
|
1629
|
+
|
1630
|
+
return rgb;
|
1631
|
+
},
|
1632
|
+
|
1633
|
+
unitObject() {
|
1634
|
+
const rgb = this.rgb().object();
|
1635
|
+
rgb.r /= 255;
|
1636
|
+
rgb.g /= 255;
|
1637
|
+
rgb.b /= 255;
|
1638
|
+
|
1639
|
+
if (this.valpha !== 1) {
|
1640
|
+
rgb.alpha = this.valpha;
|
1641
|
+
}
|
1642
|
+
|
1643
|
+
return rgb;
|
1644
|
+
},
|
1645
|
+
|
1646
|
+
round(places) {
|
1647
|
+
places = Math.max(places || 0, 0);
|
1648
|
+
return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
|
1649
|
+
},
|
1650
|
+
|
1651
|
+
alpha(value) {
|
1652
|
+
if (value !== undefined) {
|
1653
|
+
return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
return this.valpha;
|
1657
|
+
},
|
1658
|
+
|
1659
|
+
// Rgb
|
1660
|
+
red: getset('rgb', 0, maxfn(255)),
|
1661
|
+
green: getset('rgb', 1, maxfn(255)),
|
1662
|
+
blue: getset('rgb', 2, maxfn(255)),
|
1663
|
+
|
1664
|
+
hue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, value => ((value % 360) + 360) % 360),
|
1665
|
+
|
1666
|
+
saturationl: getset('hsl', 1, maxfn(100)),
|
1667
|
+
lightness: getset('hsl', 2, maxfn(100)),
|
1668
|
+
|
1669
|
+
saturationv: getset('hsv', 1, maxfn(100)),
|
1670
|
+
value: getset('hsv', 2, maxfn(100)),
|
1671
|
+
|
1672
|
+
chroma: getset('hcg', 1, maxfn(100)),
|
1673
|
+
gray: getset('hcg', 2, maxfn(100)),
|
1674
|
+
|
1675
|
+
white: getset('hwb', 1, maxfn(100)),
|
1676
|
+
wblack: getset('hwb', 2, maxfn(100)),
|
1677
|
+
|
1678
|
+
cyan: getset('cmyk', 0, maxfn(100)),
|
1679
|
+
magenta: getset('cmyk', 1, maxfn(100)),
|
1680
|
+
yellow: getset('cmyk', 2, maxfn(100)),
|
1681
|
+
black: getset('cmyk', 3, maxfn(100)),
|
1682
|
+
|
1683
|
+
x: getset('xyz', 0, maxfn(95.047)),
|
1684
|
+
y: getset('xyz', 1, maxfn(100)),
|
1685
|
+
z: getset('xyz', 2, maxfn(108.833)),
|
1686
|
+
|
1687
|
+
l: getset('lab', 0, maxfn(100)),
|
1688
|
+
a: getset('lab', 1),
|
1689
|
+
b: getset('lab', 2),
|
1690
|
+
|
1691
|
+
keyword(value) {
|
1692
|
+
if (value !== undefined) {
|
1693
|
+
return new Color(value);
|
1694
|
+
}
|
1695
|
+
|
1696
|
+
return convert[this.model].keyword(this.color);
|
1697
|
+
},
|
1698
|
+
|
1699
|
+
hex(value) {
|
1700
|
+
if (value !== undefined) {
|
1701
|
+
return new Color(value);
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
return colorString.to.hex(this.rgb().round().color);
|
1705
|
+
},
|
1706
|
+
|
1707
|
+
hexa(value) {
|
1708
|
+
if (value !== undefined) {
|
1709
|
+
return new Color(value);
|
1710
|
+
}
|
1711
|
+
|
1712
|
+
const rgbArray = this.rgb().round().color;
|
1713
|
+
|
1714
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
1715
|
+
if (alphaHex.length === 1) {
|
1716
|
+
alphaHex = '0' + alphaHex;
|
1717
|
+
}
|
1718
|
+
|
1719
|
+
return colorString.to.hex(rgbArray) + alphaHex;
|
1720
|
+
},
|
1721
|
+
|
1722
|
+
rgbNumber() {
|
1723
|
+
const rgb = this.rgb().color;
|
1724
|
+
return ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);
|
1725
|
+
},
|
1726
|
+
|
1727
|
+
luminosity() {
|
1728
|
+
// http://www.w3.org/TR/WCAG20/#relativeluminancedef
|
1729
|
+
const rgb = this.rgb().color;
|
1730
|
+
|
1731
|
+
const lum = [];
|
1732
|
+
for (const [i, element] of rgb.entries()) {
|
1733
|
+
const chan = element / 255;
|
1734
|
+
lum[i] = (chan <= 0.04045) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
|
1735
|
+
}
|
1736
|
+
|
1737
|
+
return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
|
1738
|
+
},
|
1739
|
+
|
1740
|
+
contrast(color2) {
|
1741
|
+
// http://www.w3.org/TR/WCAG20/#contrast-ratiodef
|
1742
|
+
const lum1 = this.luminosity();
|
1743
|
+
const lum2 = color2.luminosity();
|
1744
|
+
|
1745
|
+
if (lum1 > lum2) {
|
1746
|
+
return (lum1 + 0.05) / (lum2 + 0.05);
|
1747
|
+
}
|
1748
|
+
|
1749
|
+
return (lum2 + 0.05) / (lum1 + 0.05);
|
1750
|
+
},
|
1751
|
+
|
1752
|
+
level(color2) {
|
1753
|
+
// https://www.w3.org/TR/WCAG/#contrast-enhanced
|
1754
|
+
const contrastRatio = this.contrast(color2);
|
1755
|
+
if (contrastRatio >= 7) {
|
1756
|
+
return 'AAA';
|
1757
|
+
}
|
1758
|
+
|
1759
|
+
return (contrastRatio >= 4.5) ? 'AA' : '';
|
1760
|
+
},
|
1761
|
+
|
1762
|
+
isDark() {
|
1763
|
+
// YIQ equation from http://24ways.org/2010/calculating-color-contrast
|
1764
|
+
const rgb = this.rgb().color;
|
1765
|
+
const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;
|
1766
|
+
return yiq < 128;
|
1767
|
+
},
|
1768
|
+
|
1769
|
+
isLight() {
|
1770
|
+
return !this.isDark();
|
1771
|
+
},
|
1772
|
+
|
1773
|
+
negate() {
|
1774
|
+
const rgb = this.rgb();
|
1775
|
+
for (let i = 0; i < 3; i++) {
|
1776
|
+
rgb.color[i] = 255 - rgb.color[i];
|
1777
|
+
}
|
1778
|
+
|
1779
|
+
return rgb;
|
1780
|
+
},
|
1781
|
+
|
1782
|
+
lighten(ratio) {
|
1783
|
+
const hsl = this.hsl();
|
1784
|
+
hsl.color[2] += hsl.color[2] * ratio;
|
1785
|
+
return hsl;
|
1786
|
+
},
|
1787
|
+
|
1788
|
+
darken(ratio) {
|
1789
|
+
const hsl = this.hsl();
|
1790
|
+
hsl.color[2] -= hsl.color[2] * ratio;
|
1791
|
+
return hsl;
|
1792
|
+
},
|
1793
|
+
|
1794
|
+
saturate(ratio) {
|
1795
|
+
const hsl = this.hsl();
|
1796
|
+
hsl.color[1] += hsl.color[1] * ratio;
|
1797
|
+
return hsl;
|
1798
|
+
},
|
1799
|
+
|
1800
|
+
desaturate(ratio) {
|
1801
|
+
const hsl = this.hsl();
|
1802
|
+
hsl.color[1] -= hsl.color[1] * ratio;
|
1803
|
+
return hsl;
|
1804
|
+
},
|
1805
|
+
|
1806
|
+
whiten(ratio) {
|
1807
|
+
const hwb = this.hwb();
|
1808
|
+
hwb.color[1] += hwb.color[1] * ratio;
|
1809
|
+
return hwb;
|
1810
|
+
},
|
1811
|
+
|
1812
|
+
blacken(ratio) {
|
1813
|
+
const hwb = this.hwb();
|
1814
|
+
hwb.color[2] += hwb.color[2] * ratio;
|
1815
|
+
return hwb;
|
1816
|
+
},
|
1817
|
+
|
1818
|
+
grayscale() {
|
1819
|
+
// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
|
1820
|
+
const rgb = this.rgb().color;
|
1821
|
+
const value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
|
1822
|
+
return Color.rgb(value, value, value);
|
1823
|
+
},
|
1824
|
+
|
1825
|
+
fade(ratio) {
|
1826
|
+
return this.alpha(this.valpha - (this.valpha * ratio));
|
1827
|
+
},
|
1828
|
+
|
1829
|
+
opaquer(ratio) {
|
1830
|
+
return this.alpha(this.valpha + (this.valpha * ratio));
|
1831
|
+
},
|
1832
|
+
|
1833
|
+
rotate(degrees) {
|
1834
|
+
const hsl = this.hsl();
|
1835
|
+
let hue = hsl.color[0];
|
1836
|
+
hue = (hue + degrees) % 360;
|
1837
|
+
hue = hue < 0 ? 360 + hue : hue;
|
1838
|
+
hsl.color[0] = hue;
|
1839
|
+
return hsl;
|
1840
|
+
},
|
1841
|
+
|
1842
|
+
mix(mixinColor, weight) {
|
1843
|
+
// Ported from sass implementation in C
|
1844
|
+
// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
|
1845
|
+
if (!mixinColor || !mixinColor.rgb) {
|
1846
|
+
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor);
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
const color1 = mixinColor.rgb();
|
1850
|
+
const color2 = this.rgb();
|
1851
|
+
const p = weight === undefined ? 0.5 : weight;
|
1852
|
+
|
1853
|
+
const w = 2 * p - 1;
|
1854
|
+
const a = color1.alpha() - color2.alpha();
|
1855
|
+
|
1856
|
+
const w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2;
|
1857
|
+
const w2 = 1 - w1;
|
1858
|
+
|
1859
|
+
return Color.rgb(
|
1860
|
+
w1 * color1.red() + w2 * color2.red(),
|
1861
|
+
w1 * color1.green() + w2 * color2.green(),
|
1862
|
+
w1 * color1.blue() + w2 * color2.blue(),
|
1863
|
+
color1.alpha() * p + color2.alpha() * (1 - p));
|
1864
|
+
},
|
1865
|
+
};
|
1866
|
+
|
1867
|
+
// Model conversion methods and static constructors
|
1868
|
+
for (const model of Object.keys(convert)) {
|
1869
|
+
if (skippedModels.includes(model)) {
|
1870
|
+
continue;
|
1871
|
+
}
|
1872
|
+
|
1873
|
+
const {channels} = convert[model];
|
1874
|
+
|
1875
|
+
// Conversion methods
|
1876
|
+
Color.prototype[model] = function (...args) {
|
1877
|
+
if (this.model === model) {
|
1878
|
+
return new Color(this);
|
1879
|
+
}
|
1880
|
+
|
1881
|
+
if (args.length > 0) {
|
1882
|
+
return new Color(args, model);
|
1883
|
+
}
|
1884
|
+
|
1885
|
+
return new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);
|
1886
|
+
};
|
1887
|
+
|
1888
|
+
// 'static' construction methods
|
1889
|
+
Color[model] = function (...args) {
|
1890
|
+
let color = args[0];
|
1891
|
+
if (typeof color === 'number') {
|
1892
|
+
color = zeroArray(args, channels);
|
1893
|
+
}
|
1894
|
+
|
1895
|
+
return new Color(color, model);
|
1896
|
+
};
|
1897
|
+
}
|
1898
|
+
|
1899
|
+
function roundTo(number, places) {
|
1900
|
+
return Number(number.toFixed(places));
|
1901
|
+
}
|
1902
|
+
|
1903
|
+
function roundToPlace(places) {
|
1904
|
+
return function (number) {
|
1905
|
+
return roundTo(number, places);
|
1906
|
+
};
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
function getset(model, channel, modifier) {
|
1910
|
+
model = Array.isArray(model) ? model : [model];
|
1911
|
+
|
1912
|
+
for (const m of model) {
|
1913
|
+
(limiters[m] || (limiters[m] = []))[channel] = modifier;
|
1914
|
+
}
|
1915
|
+
|
1916
|
+
model = model[0];
|
1917
|
+
|
1918
|
+
return function (value) {
|
1919
|
+
let result;
|
1920
|
+
|
1921
|
+
if (value !== undefined) {
|
1922
|
+
if (modifier) {
|
1923
|
+
value = modifier(value);
|
1924
|
+
}
|
1925
|
+
|
1926
|
+
result = this[model]();
|
1927
|
+
result.color[channel] = value;
|
1928
|
+
return result;
|
1929
|
+
}
|
1930
|
+
|
1931
|
+
result = this[model]().color[channel];
|
1932
|
+
if (modifier) {
|
1933
|
+
result = modifier(result);
|
1934
|
+
}
|
1935
|
+
|
1936
|
+
return result;
|
1937
|
+
};
|
1938
|
+
}
|
1939
|
+
|
1940
|
+
function maxfn(max) {
|
1941
|
+
return function (v) {
|
1942
|
+
return Math.max(0, Math.min(max, v));
|
1943
|
+
};
|
1944
|
+
}
|
1945
|
+
|
1946
|
+
function assertArray(value) {
|
1947
|
+
return Array.isArray(value) ? value : [value];
|
1948
|
+
}
|
1949
|
+
|
1950
|
+
function zeroArray(array, length) {
|
1951
|
+
for (let i = 0; i < length; i++) {
|
1952
|
+
if (typeof array[i] !== 'number') {
|
1953
|
+
array[i] = 0;
|
1954
|
+
}
|
1955
|
+
}
|
1956
|
+
|
1957
|
+
return array;
|
1958
|
+
}
|
1959
|
+
|
1960
|
+
var color = Color;
|
1961
|
+
|
1962
|
+
const Color$1 = color;
|
1963
|
+
|
1964
|
+
/*!
|
1965
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1966
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
1967
|
+
* v2.12.0
|
1968
|
+
*/
|
1969
|
+
const CSS = {
|
1970
|
+
channel: "channel",
|
1971
|
+
channels: "channels",
|
1972
|
+
colorField: "color-field",
|
1973
|
+
colorFieldScope: "scope--color-field",
|
1974
|
+
colorMode: "color-mode",
|
1975
|
+
colorModeContainer: "color-mode-container",
|
1976
|
+
container: "container",
|
1977
|
+
control: "control",
|
1978
|
+
controlAndScope: "control-and-scope",
|
1979
|
+
controlSection: "control-section",
|
1980
|
+
deleteColor: "delete-color",
|
1981
|
+
header: "header",
|
1982
|
+
hexAndChannelsGroup: "hex-and-channels-group",
|
1983
|
+
hexOptions: "color-hex-options",
|
1984
|
+
hueScope: "scope--hue",
|
1985
|
+
hueSlider: "hue-slider",
|
1986
|
+
opacityScope: "scope--opacity",
|
1987
|
+
opacitySlider: "opacity-slider",
|
1988
|
+
preview: "preview",
|
1989
|
+
previewAndSliders: "preview-and-sliders",
|
1990
|
+
saveColor: "save-color",
|
1991
|
+
savedColor: "saved-color",
|
1992
|
+
savedColors: "saved-colors",
|
1993
|
+
savedColorsButtons: "saved-colors-buttons",
|
1994
|
+
savedColorsSection: "saved-colors-section",
|
1995
|
+
scope: "scope",
|
1996
|
+
section: "section",
|
1997
|
+
slider: "slider",
|
1998
|
+
sliders: "sliders",
|
1999
|
+
splitSection: "section--split",
|
2000
|
+
};
|
2001
|
+
const DEFAULT_COLOR = Color$1("#007AC2");
|
2002
|
+
const DEFAULT_STORAGE_KEY_PREFIX = "calcite-color-";
|
2003
|
+
const RGB_LIMITS = {
|
2004
|
+
r: 255,
|
2005
|
+
g: 255,
|
2006
|
+
b: 255,
|
2007
|
+
};
|
2008
|
+
const HSV_LIMITS = {
|
2009
|
+
h: 360,
|
2010
|
+
s: 100,
|
2011
|
+
v: 100,
|
2012
|
+
};
|
2013
|
+
// 0 and 360 represent the same value, so we limit the hue to 359
|
2014
|
+
const HUE_LIMIT_CONSTRAINED = HSV_LIMITS.h - 1;
|
2015
|
+
const OPACITY_LIMITS = {
|
2016
|
+
min: 0,
|
2017
|
+
max: 100,
|
2018
|
+
};
|
2019
|
+
const DIMENSIONS = {
|
2020
|
+
s: {
|
2021
|
+
slider: {
|
2022
|
+
height: 12,
|
2023
|
+
width: 104,
|
2024
|
+
},
|
2025
|
+
colorField: {
|
2026
|
+
height: 80,
|
2027
|
+
width: 160,
|
2028
|
+
},
|
2029
|
+
thumb: {
|
2030
|
+
radius: 7,
|
2031
|
+
},
|
2032
|
+
preview: {
|
2033
|
+
size: 20,
|
2034
|
+
},
|
2035
|
+
},
|
2036
|
+
m: {
|
2037
|
+
slider: {
|
2038
|
+
height: 12,
|
2039
|
+
width: 204,
|
2040
|
+
},
|
2041
|
+
colorField: {
|
2042
|
+
height: 150,
|
2043
|
+
width: 272,
|
2044
|
+
},
|
2045
|
+
thumb: {
|
2046
|
+
radius: 7,
|
2047
|
+
},
|
2048
|
+
preview: {
|
2049
|
+
size: 24,
|
2050
|
+
},
|
2051
|
+
},
|
2052
|
+
l: {
|
2053
|
+
slider: {
|
2054
|
+
height: 12,
|
2055
|
+
width: 384,
|
2056
|
+
},
|
2057
|
+
colorField: {
|
2058
|
+
height: 200,
|
2059
|
+
width: 464,
|
2060
|
+
},
|
2061
|
+
thumb: {
|
2062
|
+
radius: 7,
|
2063
|
+
},
|
2064
|
+
preview: {
|
2065
|
+
size: 32,
|
2066
|
+
},
|
2067
|
+
},
|
2068
|
+
};
|
2069
|
+
const SCOPE_SIZE = 1;
|
2070
|
+
|
2071
|
+
/*!
|
2072
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2073
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2074
|
+
* v2.12.0
|
2075
|
+
*/
|
2076
|
+
const hexChar = /^[0-9A-F]$/i;
|
2077
|
+
const shorthandHex = /^#[0-9A-F]{3}$/i;
|
2078
|
+
const longhandHex = /^#[0-9A-F]{6}$/i;
|
2079
|
+
const shorthandHexWithAlpha = /^#[0-9A-F]{4}$/i;
|
2080
|
+
const longhandHexWithAlpha = /^#[0-9A-F]{8}$/i;
|
2081
|
+
const alphaToOpacity = (alpha) => Number((alpha * 100).toFixed());
|
2082
|
+
const opacityToAlpha = (opacity) => Number((opacity / 100).toFixed(2));
|
2083
|
+
function isValidHex(hex, hasAlpha = false) {
|
2084
|
+
return isShorthandHex(hex, hasAlpha) || isLonghandHex(hex, hasAlpha);
|
2085
|
+
}
|
2086
|
+
function evaluateHex(hex, length, pattern) {
|
2087
|
+
if (!hex) {
|
2088
|
+
return false;
|
2089
|
+
}
|
2090
|
+
return hex.length === length && pattern.test(hex);
|
2091
|
+
}
|
2092
|
+
function isShorthandHex(hex, hasAlpha = false) {
|
2093
|
+
const hexLength = hasAlpha ? 5 : 4;
|
2094
|
+
const hexPattern = hasAlpha ? shorthandHexWithAlpha : shorthandHex;
|
2095
|
+
return evaluateHex(hex, hexLength, hexPattern);
|
2096
|
+
}
|
2097
|
+
function isLonghandHex(hex, hasAlpha = false) {
|
2098
|
+
const hexLength = hasAlpha ? 9 : 7;
|
2099
|
+
const hexPattern = hasAlpha ? longhandHexWithAlpha : longhandHex;
|
2100
|
+
return evaluateHex(hex, hexLength, hexPattern);
|
2101
|
+
}
|
2102
|
+
function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
|
2103
|
+
hex = hex.toLowerCase();
|
2104
|
+
if (!hex.startsWith("#")) {
|
2105
|
+
hex = `#${hex}`;
|
2106
|
+
}
|
2107
|
+
if (isShorthandHex(hex, hasAlpha)) {
|
2108
|
+
return rgbToHex(hexToRGB(hex, hasAlpha));
|
2109
|
+
}
|
2110
|
+
if (hasAlpha && convertFromHexToHexa && isValidHex(hex, false /* we only care about RGB hex for conversion */)) {
|
2111
|
+
const isShorthand = isShorthandHex(hex, false);
|
2112
|
+
return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`, true));
|
2113
|
+
}
|
2114
|
+
return hex;
|
2115
|
+
}
|
2116
|
+
function hexify(color, hasAlpha = false) {
|
2117
|
+
return hasAlpha ? color.hexa() : color.hex();
|
2118
|
+
}
|
2119
|
+
function rgbToHex(color) {
|
2120
|
+
const { r, g, b } = color;
|
2121
|
+
const rChars = numToHex(r);
|
2122
|
+
const gChars = numToHex(g);
|
2123
|
+
const bChars = numToHex(b);
|
2124
|
+
const alphaChars = "a" in color ? numToHex(color.a * 255) : "";
|
2125
|
+
return `#${rChars}${gChars}${bChars}${alphaChars}`.toLowerCase();
|
2126
|
+
}
|
2127
|
+
function numToHex(num) {
|
2128
|
+
return num.toString(16).padStart(2, "0");
|
2129
|
+
}
|
2130
|
+
function normalizeAlpha(colorObject) {
|
2131
|
+
const normalized = { ...colorObject, a: colorObject.alpha ?? 1 /* Color() will omit alpha if 1 */ };
|
2132
|
+
delete normalized.alpha;
|
2133
|
+
return normalized;
|
2134
|
+
}
|
2135
|
+
function normalizeColor(alphaColorObject) {
|
2136
|
+
const normalized = { ...alphaColorObject, alpha: alphaColorObject.a ?? 1 };
|
2137
|
+
delete normalized.a;
|
2138
|
+
return normalized;
|
2139
|
+
}
|
2140
|
+
function hexToRGB(hex, hasAlpha = false) {
|
2141
|
+
if (!isValidHex(hex, hasAlpha)) {
|
2142
|
+
return null;
|
2143
|
+
}
|
2144
|
+
hex = hex.replace("#", "");
|
2145
|
+
let r;
|
2146
|
+
let g;
|
2147
|
+
let b;
|
2148
|
+
let a;
|
2149
|
+
const isShorthand = hex.length === 3 || hex.length === 4;
|
2150
|
+
if (isShorthand) {
|
2151
|
+
const [first, second, third, fourth] = hex.split("");
|
2152
|
+
r = parseInt(`${first}${first}`, 16);
|
2153
|
+
g = parseInt(`${second}${second}`, 16);
|
2154
|
+
b = parseInt(`${third}${third}`, 16);
|
2155
|
+
a = parseInt(`${fourth}${fourth}`, 16) / 255;
|
2156
|
+
}
|
2157
|
+
else {
|
2158
|
+
r = parseInt(hex.slice(0, 2), 16);
|
2159
|
+
g = parseInt(hex.slice(2, 4), 16);
|
2160
|
+
b = parseInt(hex.slice(4, 6), 16);
|
2161
|
+
a = parseInt(hex.slice(6, 8), 16) / 255;
|
2162
|
+
}
|
2163
|
+
return isNaN(a) ? { r, g, b } : { r, g, b, a };
|
2164
|
+
}
|
2165
|
+
// these utils allow users to pass enum values as strings without having to access the enum
|
2166
|
+
// based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,
|
2167
|
+
const enumify = (x) => x;
|
2168
|
+
const CSSColorMode = enumify({
|
2169
|
+
HEX: "hex",
|
2170
|
+
HEXA: "hexa",
|
2171
|
+
RGB_CSS: "rgb-css",
|
2172
|
+
RGBA_CSS: "rgba-css",
|
2173
|
+
HSL_CSS: "hsl-css",
|
2174
|
+
HSLA_CSS: "hsla-css",
|
2175
|
+
});
|
2176
|
+
const ObjectColorMode = enumify({
|
2177
|
+
RGB: "rgb",
|
2178
|
+
RGBA: "rgba",
|
2179
|
+
HSL: "hsl",
|
2180
|
+
HSLA: "hsla",
|
2181
|
+
HSV: "hsv",
|
2182
|
+
HSVA: "hsva",
|
2183
|
+
});
|
2184
|
+
function parseMode(colorValue) {
|
2185
|
+
if (typeof colorValue === "string") {
|
2186
|
+
if (colorValue.startsWith("#")) {
|
2187
|
+
const { length } = colorValue;
|
2188
|
+
if (length === 4 || length === 7) {
|
2189
|
+
return CSSColorMode.HEX;
|
2190
|
+
}
|
2191
|
+
if (length === 5 || length === 9) {
|
2192
|
+
return CSSColorMode.HEXA;
|
2193
|
+
}
|
2194
|
+
}
|
2195
|
+
if (colorValue.startsWith("rgba(")) {
|
2196
|
+
return CSSColorMode.RGBA_CSS;
|
2197
|
+
}
|
2198
|
+
if (colorValue.startsWith("rgb(")) {
|
2199
|
+
return CSSColorMode.RGB_CSS;
|
2200
|
+
}
|
2201
|
+
if (colorValue.startsWith("hsl(")) {
|
2202
|
+
return CSSColorMode.HSL_CSS;
|
2203
|
+
}
|
2204
|
+
if (colorValue.startsWith("hsla(")) {
|
2205
|
+
return CSSColorMode.HSLA_CSS;
|
2206
|
+
}
|
2207
|
+
}
|
2208
|
+
if (typeof colorValue === "object") {
|
2209
|
+
if (hasChannels(colorValue, "r", "g", "b")) {
|
2210
|
+
return hasChannels(colorValue, "a") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;
|
2211
|
+
}
|
2212
|
+
if (hasChannels(colorValue, "h", "s", "l")) {
|
2213
|
+
return hasChannels(colorValue, "a") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;
|
2214
|
+
}
|
2215
|
+
if (hasChannels(colorValue, "h", "s", "v")) {
|
2216
|
+
return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
|
2217
|
+
}
|
2218
|
+
}
|
2219
|
+
return null;
|
2220
|
+
}
|
2221
|
+
function hasChannels(colorObject, ...channels) {
|
2222
|
+
return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
|
2223
|
+
}
|
2224
|
+
function colorEqual(value1, value2) {
|
2225
|
+
return value1?.rgb().array().toString() === value2?.rgb().array().toString();
|
2226
|
+
}
|
2227
|
+
function alphaCompatible(mode) {
|
2228
|
+
return (mode === CSSColorMode.HEXA ||
|
2229
|
+
mode === CSSColorMode.RGBA_CSS ||
|
2230
|
+
mode === CSSColorMode.HSLA_CSS ||
|
2231
|
+
mode === ObjectColorMode.RGBA ||
|
2232
|
+
mode === ObjectColorMode.HSLA ||
|
2233
|
+
mode === ObjectColorMode.HSVA);
|
2234
|
+
}
|
2235
|
+
function toAlphaMode(mode) {
|
2236
|
+
const alphaMode = mode === CSSColorMode.HEX
|
2237
|
+
? CSSColorMode.HEXA
|
2238
|
+
: mode === CSSColorMode.RGB_CSS
|
2239
|
+
? CSSColorMode.RGBA_CSS
|
2240
|
+
: mode === CSSColorMode.HSL_CSS
|
2241
|
+
? CSSColorMode.HSLA_CSS
|
2242
|
+
: mode === ObjectColorMode.RGB
|
2243
|
+
? ObjectColorMode.RGBA
|
2244
|
+
: mode === ObjectColorMode.HSL
|
2245
|
+
? ObjectColorMode.HSLA
|
2246
|
+
: mode === ObjectColorMode.HSV
|
2247
|
+
? ObjectColorMode.HSVA
|
2248
|
+
: mode;
|
2249
|
+
return alphaMode;
|
2250
|
+
}
|
2251
|
+
function toNonAlphaMode(mode) {
|
2252
|
+
const nonAlphaMode = mode === CSSColorMode.HEXA
|
2253
|
+
? CSSColorMode.HEX
|
2254
|
+
: mode === CSSColorMode.RGBA_CSS
|
2255
|
+
? CSSColorMode.RGB_CSS
|
2256
|
+
: mode === CSSColorMode.HSLA_CSS
|
2257
|
+
? CSSColorMode.HSL_CSS
|
2258
|
+
: mode === ObjectColorMode.RGBA
|
2259
|
+
? ObjectColorMode.RGB
|
2260
|
+
: mode === ObjectColorMode.HSLA
|
2261
|
+
? ObjectColorMode.HSL
|
2262
|
+
: mode === ObjectColorMode.HSVA
|
2263
|
+
? ObjectColorMode.HSV
|
2264
|
+
: mode;
|
2265
|
+
return nonAlphaMode;
|
2266
|
+
}
|
2267
|
+
function getSliderWidth(activeDimensions, hasAlpha) {
|
2268
|
+
const { slider: { width }, preview, } = activeDimensions;
|
2269
|
+
if (hasAlpha) {
|
2270
|
+
return width;
|
2271
|
+
}
|
2272
|
+
const previewWidthOffset = DIMENSIONS["l"].preview.size - preview.size;
|
2273
|
+
return width + previewWidthOffset;
|
2274
|
+
}
|
2275
|
+
|
2276
|
+
exports.CSS = CSS;
|
2277
|
+
exports.CSSColorMode = CSSColorMode;
|
2278
|
+
exports.Color = Color$1;
|
2279
|
+
exports.DEFAULT_COLOR = DEFAULT_COLOR;
|
2280
|
+
exports.DEFAULT_STORAGE_KEY_PREFIX = DEFAULT_STORAGE_KEY_PREFIX;
|
2281
|
+
exports.DIMENSIONS = DIMENSIONS;
|
2282
|
+
exports.HSV_LIMITS = HSV_LIMITS;
|
2283
|
+
exports.HUE_LIMIT_CONSTRAINED = HUE_LIMIT_CONSTRAINED;
|
2284
|
+
exports.OPACITY_LIMITS = OPACITY_LIMITS;
|
2285
|
+
exports.RGB_LIMITS = RGB_LIMITS;
|
2286
|
+
exports.SCOPE_SIZE = SCOPE_SIZE;
|
2287
|
+
exports.alphaCompatible = alphaCompatible;
|
2288
|
+
exports.alphaToOpacity = alphaToOpacity;
|
2289
|
+
exports.colorEqual = colorEqual;
|
2290
|
+
exports.getSliderWidth = getSliderWidth;
|
2291
|
+
exports.hexChar = hexChar;
|
2292
|
+
exports.hexToRGB = hexToRGB;
|
2293
|
+
exports.hexify = hexify;
|
2294
|
+
exports.isLonghandHex = isLonghandHex;
|
2295
|
+
exports.isShorthandHex = isShorthandHex;
|
2296
|
+
exports.isValidHex = isValidHex;
|
2297
|
+
exports.normalizeAlpha = normalizeAlpha;
|
2298
|
+
exports.normalizeColor = normalizeColor;
|
2299
|
+
exports.normalizeHex = normalizeHex;
|
2300
|
+
exports.opacityToAlpha = opacityToAlpha;
|
2301
|
+
exports.parseMode = parseMode;
|
2302
|
+
exports.rgbToHex = rgbToHex;
|
2303
|
+
exports.toAlphaMode = toAlphaMode;
|
2304
|
+
exports.toNonAlphaMode = toNonAlphaMode;
|