@esri/solutions-components 0.10.27 → 0.10.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-2cdd9a8e.js +115 -0
- package/dist/cjs/FloatingArrow-91a71a80.js +48 -0
- package/dist/cjs/Heading-a3e36113.js +25 -0
- package/dist/cjs/Validation-55fc2417.js +20 -0
- package/dist/cjs/app-globals-3ff4b752.js +67 -0
- package/dist/cjs/ar-76c21e64.js +106 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/array-286e5a3b.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/bg-14c9b066.js +84 -0
- package/dist/cjs/browser-333a21c5.js +35 -0
- package/dist/cjs/bs-af03a828.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +9 -9
- package/dist/cjs/ca-ae8e24ac.js +73 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-action-bar.cjs.entry.js +17 -20
- package/dist/cjs/calcite-action-group.cjs.entry.js +18 -16
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +27 -24
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +20 -21
- package/dist/cjs/calcite-action_2.cjs.entry.js +32 -30
- package/dist/cjs/calcite-alert_5.cjs.entry.js +25 -27
- package/dist/cjs/calcite-avatar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block-section.cjs.entry.js +12 -12
- package/dist/cjs/calcite-block_5.cjs.entry.js +45 -47
- package/dist/cjs/calcite-button.cjs.entry.js +24 -22
- package/dist/cjs/calcite-card-group.cjs.entry.js +9 -15
- package/dist/cjs/calcite-card.cjs.entry.js +50 -31
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +92 -37
- package/dist/cjs/calcite-checkbox.cjs.entry.js +15 -17
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -12
- package/dist/cjs/calcite-chip_2.cjs.entry.js +22 -26
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +37 -20
- package/dist/cjs/calcite-color-picker.cjs.entry.js +15 -17
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +36 -42
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +16 -22
- package/dist/cjs/calcite-dialog.cjs.entry.js +20 -23
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +50 -51
- package/dist/cjs/calcite-fab.cjs.entry.js +9 -15
- package/dist/cjs/calcite-filter_5.cjs.entry.js +58 -61
- package/dist/cjs/calcite-flow_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-graph_2.cjs.entry.js +23 -25
- package/dist/cjs/calcite-icon_2.cjs.entry.js +24 -23
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -19
- package/dist/cjs/calcite-input-number.cjs.entry.js +31 -33
- package/dist/cjs/calcite-input-text.cjs.entry.js +25 -27
- package/dist/cjs/calcite-input-time-picker-74396a94.js +1870 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +21 -21
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +100 -66
- package/dist/cjs/calcite-input_2.cjs.entry.js +33 -35
- package/dist/cjs/calcite-label.cjs.entry.js +8 -8
- package/dist/cjs/calcite-link.cjs.entry.js +15 -17
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -12
- package/dist/cjs/calcite-menu-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-menu.cjs.entry.js +12 -12
- package/dist/cjs/calcite-meter.cjs.entry.js +12 -12
- package/dist/cjs/calcite-modal_3.cjs.entry.js +25 -25
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +6 -6
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +5 -5
- package/dist/cjs/calcite-navigation.cjs.entry.js +9 -9
- package/dist/cjs/calcite-notice.cjs.entry.js +17 -17
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_2.cjs.entry.js +15 -17
- package/dist/cjs/calcite-pagination.cjs.entry.js +20 -52
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +17 -19
- package/dist/cjs/calcite-pick-list.cjs.entry.js +15 -17
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -15
- package/dist/cjs/calcite-rating.cjs.entry.js +18 -22
- package/dist/cjs/calcite-scrim.cjs.entry.js +11 -11
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +43 -47
- package/dist/cjs/calcite-sheet.cjs.entry.js +14 -14
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +47 -54
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +11 -13
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -12
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +14 -16
- package/dist/cjs/calcite-stepper.cjs.entry.js +12 -12
- package/dist/cjs/calcite-switch.cjs.entry.js +14 -16
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +18 -20
- package/dist/cjs/calcite-table-row.cjs.entry.js +9 -16
- package/dist/cjs/calcite-table.cjs.entry.js +18 -18
- package/dist/cjs/calcite-text-area.cjs.entry.js +26 -28
- package/dist/cjs/calcite-tile-group.cjs.entry.js +9 -11
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -12
- package/dist/cjs/calcite-tile-select.cjs.entry.js +10 -12
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -15
- package/dist/cjs/calcite-time-picker.cjs.entry.js +32 -38
- 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 +20 -15
- package/dist/cjs/calcite-tree_2.cjs.entry.js +18 -20
- package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
- package/dist/cjs/component-5d190962.js +33 -0
- package/dist/cjs/conditionalSlot-37ff4832.js +54 -0
- package/dist/cjs/config-e76d9931.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
- package/dist/cjs/cs-5c693156.js +149 -0
- package/dist/cjs/da-1a406d67.js +69 -0
- package/dist/cjs/date-bb8f971c.js +264 -0
- package/dist/cjs/de-11376da8.js +93 -0
- package/dist/cjs/de-at-a7437de2.js +92 -0
- package/dist/cjs/de-ch-862dfe8d.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/dom-795d4a33.js +1200 -0
- package/dist/cjs/downloadUtils-20637f89.js +3239 -0
- package/dist/cjs/el-69fd471f.js +68 -0
- package/dist/cjs/en-au-4af4c244.js +68 -0
- package/dist/cjs/en-ca-dd0f74b8.js +67 -0
- package/dist/cjs/en-gb-d9916a0a.js +71 -0
- package/dist/cjs/es-b96f4aa7.js +68 -0
- package/dist/cjs/es-mx-7ce9a959.js +67 -0
- package/dist/cjs/et-ed1f6381.js +94 -0
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-16433386.js +117 -0
- package/dist/cjs/filter-e600c2fe.js +778 -0
- package/dist/cjs/floating-ui-0f85d59c.js +2413 -0
- package/dist/cjs/focusTrapComponent-b19fd5d5.js +1013 -0
- package/dist/cjs/form-6dd8050a.js +381 -0
- package/dist/cjs/fr-32b252ad.js +70 -0
- package/dist/cjs/fr-ch-368648e3.js +68 -0
- package/dist/cjs/guid-e84a8375.js +26 -0
- package/dist/cjs/he-d139901b.js +107 -0
- package/dist/cjs/helpers-415179ad.js +940 -0
- package/dist/cjs/hi-ba5e377e.js +67 -0
- package/dist/cjs/hr-87b5a9d8.js +82 -0
- package/dist/cjs/hu-3b80d082.js +90 -0
- package/dist/cjs/id-09dfbe6e.js +68 -0
- package/dist/cjs/index-0fb00064.js +15 -0
- package/dist/cjs/index-2b13a4d5.js +201 -0
- package/dist/cjs/index-4b68e4b4.js +1770 -0
- package/dist/cjs/index-89a62dc9.js +58 -0
- package/dist/cjs/index-c134f2f6.js +128 -0
- package/dist/cjs/index-p4VH55K1-8a6a97cb.js +4111 -0
- package/dist/cjs/index.es-a242cb45.js +11307 -0
- package/dist/cjs/input-8c28213d.js +60 -0
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +9 -9
- package/dist/cjs/interactive-a128ac30.js +85 -0
- package/dist/cjs/it-ch-00a4c4b4.js +68 -0
- package/dist/cjs/it-da71aa25.js +68 -0
- package/dist/cjs/ja-c3519ced.js +74 -0
- package/dist/cjs/key-47c9469a.js +19 -0
- package/dist/cjs/ko-ea8cd08b.js +74 -0
- package/dist/cjs/label-726fc287.js +186 -0
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loadable-1c888c87.js +98 -0
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/locale-339b55f0.js +160 -0
- package/dist/cjs/locale-4a18a858.js +120 -0
- package/dist/cjs/locale-da840314.js +605 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/logger-f177776b.js +61 -0
- package/dist/cjs/lt-4e8161c8.js +99 -0
- package/dist/cjs/lv-b976ad37.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
- package/dist/cjs/math-089392ef.js +60 -0
- package/dist/cjs/mk-e2ea18b4.js +68 -0
- package/dist/cjs/nb-d81f921b.js +69 -0
- package/dist/cjs/nl-7249cded.js +69 -0
- package/dist/cjs/observers-18d87cb5.js +58 -0
- package/dist/cjs/openCloseComponent-3c540d25.js +65 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pl-d93521bd.js +116 -0
- package/dist/cjs/popupUtils-d477705b.js +121 -0
- package/dist/cjs/pt-bf297919.js +69 -0
- package/dist/cjs/pt-br-2c9c4ba2.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +5 -5
- package/dist/cjs/publicNotificationStore-570204c1.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/region-26804632.js +36 -0
- package/dist/cjs/resources-18f799c7.js +39 -0
- package/dist/cjs/resources-388efec5.js +27 -0
- package/dist/cjs/resources-535f936c.js +68 -0
- package/dist/cjs/resources-7aaf489b.js +39 -0
- package/dist/cjs/resources-9c07e2ea.js +26 -0
- package/dist/cjs/resources-b3dc59f7.js +29 -0
- package/dist/cjs/resources-cf1791da.js +69 -0
- package/dist/cjs/resources-eeda5acf.js +23 -0
- package/dist/cjs/resources-f895ff54.js +23 -0
- package/dist/cjs/resources-f9ab74c4.js +21 -0
- package/dist/cjs/responsive-a61585b1.js +39 -0
- package/dist/cjs/ro-b770ba3d.js +68 -0
- package/dist/cjs/ru-f70d0afe.js +128 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-546c7296.js +361 -0
- package/dist/cjs/sk-67e2fd96.js +150 -0
- package/dist/cjs/sl-cf79e6c6.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +4 -4
- package/dist/cjs/solution-contents_3.cjs.entry.js +4 -4
- package/dist/cjs/solution-item-accordion.cjs.entry.js +64 -27
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solution-store-4de89072.js +1354 -0
- package/dist/cjs/solutions-components.cjs.js +6 -6
- package/dist/cjs/sortableComponent-5dfc7ff8.js +2746 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/sr-02a5153e.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +3 -3
- package/dist/cjs/sv-1c32f9ba.js +73 -0
- package/dist/cjs/t9n-ed5c03a7.js +108 -0
- package/dist/cjs/th-ddd7073f.js +67 -0
- package/dist/cjs/time-a92ca33f.js +301 -0
- package/dist/cjs/time-zones-a7e83971.js +52 -0
- package/dist/cjs/tr-31fcd3f7.js +68 -0
- package/dist/cjs/uk-a0f9e2bc.js +106 -0
- package/dist/cjs/utils-51a793a5.js +2304 -0
- package/dist/cjs/utils-7e5609ab.js +78 -0
- package/dist/cjs/utils-fa7ad44b.js +153 -0
- package/dist/cjs/vi-d484e1b9.js +72 -0
- package/dist/cjs/zh-cn-3d843268.js +96 -0
- package/dist/cjs/zh-hk-4aacd6d2.js +94 -0
- package/dist/cjs/zh-tw-cbd770ad.js +94 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +4 -0
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +61 -24
- package/dist/collection/demos/browse-solutions.html +1 -1
- package/dist/collection/demos/buffer-tools.html +3 -3
- package/dist/collection/demos/card-manager.html +1 -1
- package/dist/collection/demos/create-feature.html +3 -3
- package/dist/collection/demos/crowdsource-manager.html +4 -42
- package/dist/collection/demos/crowdsource-reporter.html +1 -1
- package/dist/collection/demos/deduct-calculator.html +1 -1
- package/dist/collection/demos/demo-map.html +3 -3
- package/dist/collection/demos/edit-card.html +1 -1
- package/dist/collection/demos/feature-list.html +3 -3
- package/dist/collection/demos/index.html +1 -2
- package/dist/collection/demos/info-card.html +1 -1
- package/dist/collection/demos/json-editor-2.html +1 -1
- package/dist/collection/demos/json-editor.html +1 -1
- package/dist/collection/demos/layer-list.html +3 -3
- package/dist/collection/demos/layer-table.html +3 -3
- package/dist/collection/demos/list-item.html +3 -3
- package/dist/collection/demos/map-card.html +3 -3
- package/dist/collection/demos/map-draw-tools.html +3 -3
- package/dist/collection/demos/map-layer-picker.html +3 -3
- package/dist/collection/demos/map-select-tools.html +3 -3
- package/dist/collection/demos/new-public-notification.html +3 -3
- package/dist/collection/demos/new-solution-configuration.html +1 -1
- package/dist/collection/demos/pci-calculator.html +1 -1
- package/dist/collection/demos/pdf-download.html +1 -2
- package/dist/collection/demos/solution-configuration.html +1 -1
- package/dist/collection/demos/solution-contents.html +1 -1
- package/dist/collection/demos/solution-group-details.html +1 -1
- package/dist/collection/demos/solution-item-accordion.html +426 -294
- package/dist/collection/demos/solution-item-details.html +1 -1
- package/dist/collection/demos/solution-item-icon.html +1 -2
- package/dist/collection/demos/solution-item-sharing.html +1 -1
- package/dist/collection/demos/solution-item.html +1 -1
- package/dist/collection/demos/solution-organization-variables.html +1 -1
- package/dist/collection/demos/solution-resource-item.html +1 -1
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/demos/solution-template-data.html +1 -1
- package/dist/collection/demos/solution-variables.html +1 -1
- package/dist/collection/demos/spatial-ref.html +1 -1
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +2 -2
- package/dist/components/Validation.js +1 -1
- package/dist/components/accordion-item.js +8 -8
- package/dist/components/accordion.js +3 -3
- package/dist/components/action-bar.js +3 -6
- package/dist/components/action-group.js +8 -4
- package/dist/components/action-menu.js +2 -2
- package/dist/components/action-pad.js +6 -7
- package/dist/components/action.js +4 -6
- package/dist/components/alert.js +5 -5
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +5 -5
- package/dist/components/block.js +12 -9
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +12 -10
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-card-group.js +4 -10
- package/dist/components/calcite-card.js +48 -22
- package/dist/components/calcite-chip-group.js +3 -7
- package/dist/components/calcite-color-picker.js +3 -5
- package/dist/components/calcite-dialog.js +5 -8
- package/dist/components/calcite-fab.js +3 -9
- package/dist/components/calcite-inline-editable.js +5 -7
- package/dist/components/calcite-input-time-picker.js +26 -16
- package/dist/components/calcite-input-time-zone.js +82 -48
- package/dist/components/calcite-list-item-group.js +3 -9
- package/dist/components/calcite-menu-item.js +4 -4
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-navigation-logo.js +2 -2
- 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-pick-list.js +4 -5
- package/dist/components/calcite-radio-button-group.js +2 -2
- package/dist/components/calcite-rating.js +5 -9
- package/dist/components/calcite-sheet.js +4 -4
- package/dist/components/calcite-shell-center-row.js +3 -3
- package/dist/components/calcite-sortable-list.js +4 -6
- package/dist/components/calcite-split-button.js +3 -9
- package/dist/components/calcite-stepper-item.js +4 -6
- package/dist/components/calcite-stepper.js +3 -3
- package/dist/components/calcite-table-row.js +4 -10
- package/dist/components/calcite-table.js +8 -8
- package/dist/components/calcite-text-area.js +11 -13
- package/dist/components/calcite-tile-group.js +3 -5
- package/dist/components/calcite-tile-select-group.js +2 -8
- package/dist/components/calcite-tile-select.js +4 -6
- package/dist/components/calcite-tile.js +3 -9
- 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/carousel-item.js +2 -2
- package/dist/components/carousel.js +81 -24
- package/dist/components/checkbox.js +5 -7
- package/dist/components/chip.js +6 -8
- package/dist/components/color-picker-hex-input.js +2 -2
- package/dist/components/color-picker-swatch.js +28 -11
- package/dist/components/combobox-item-group.js +2 -2
- package/dist/components/combobox-item.js +4 -6
- package/dist/components/combobox.js +13 -19
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +1 -1
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/date-picker-day.js +2 -8
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker.js +3 -3
- package/dist/components/date.js +1 -1
- package/dist/components/dom.js +24 -39
- package/dist/components/dropdown-group.js +2 -2
- package/dist/components/dropdown-item.js +4 -4
- package/dist/components/dropdown.js +36 -37
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +5 -10
- package/dist/components/floating-ui.js +54 -15
- package/dist/components/flow-item.js +3 -5
- package/dist/components/flow.js +2 -2
- package/dist/components/focusTrapComponent.js +43 -48
- 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 +5 -9
- package/dist/components/icon.js +3 -3
- package/dist/components/index-p4VH55K1.js +4107 -0
- package/dist/components/index.js +2 -2
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +5 -10
- package/dist/components/index6.js +5 -5
- package/dist/components/input-date-picker.js +12 -14
- package/dist/components/input-message.js +2 -2
- package/dist/components/input-number.js +16 -18
- package/dist/components/input-text.js +10 -12
- package/dist/components/input.js +16 -18
- package/dist/components/input2.js +1 -1
- package/dist/components/instant-apps-time-filter.js +6 -6
- package/dist/components/interactive.js +3 -83
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- package/dist/components/link.js +9 -11
- package/dist/components/list-item.js +7 -6
- package/dist/components/list.js +26 -22
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +15 -12
- package/dist/components/locale2.js +2 -2
- package/dist/components/logger.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/modal.js +5 -5
- package/dist/components/navigation-user.js +2 -2
- package/dist/components/notice.js +3 -3
- 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 +5 -37
- package/dist/components/panel.js +14 -10
- package/dist/components/pick-list-item.js +3 -5
- package/dist/components/popover.js +11 -7
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-button.js +3 -5
- package/dist/components/region.js +32 -0
- 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 +2 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/responsive.js +37 -0
- package/dist/components/scrim.js +2 -2
- package/dist/components/segmented-control-item.js +2 -2
- package/dist/components/segmented-control.js +32 -36
- package/dist/components/select.js +3 -5
- package/dist/components/shared-list-render.js +6 -6
- package/dist/components/shell-panel.js +4 -4
- package/dist/components/shell.js +3 -3
- package/dist/components/slider.js +9 -11
- package/dist/components/solution-item-accordion.js +62 -25
- package/dist/components/sortableComponent.js +27 -29
- package/dist/components/stack.js +2 -2
- package/dist/components/switch.js +4 -6
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +6 -9
- package/dist/components/tab.js +2 -2
- package/dist/components/table-cell.js +4 -6
- package/dist/components/table-header.js +3 -3
- package/dist/components/tabs.js +2 -2
- package/dist/components/time-picker.js +21 -27
- package/dist/components/time-zones.js +41 -357
- package/dist/components/tooltip.js +12 -7
- package/dist/components/tree-item.js +7 -9
- package/dist/components/tree.js +4 -4
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +2 -2
- package/dist/components/utils3.js +5 -3
- package/dist/components/value-list-item.js +3 -5
- package/dist/components/value-list.js +6 -8
- package/dist/esm/ExpandToggle-4d440eb0.js +108 -0
- package/dist/esm/FloatingArrow-4f645ccd.js +46 -0
- package/dist/esm/Heading-80b3be96.js +22 -0
- package/dist/esm/Validation-cf136c56.js +18 -0
- package/dist/esm/app-globals-4aab2132.js +65 -0
- package/dist/esm/ar-d4e9c6ca.js +104 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/array-0e780f6f.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/bg-e7db3070.js +82 -0
- package/dist/esm/browser-b67d8df6.js +32 -0
- package/dist/esm/bs-154d0540.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +9 -9
- package/dist/esm/ca-403d9586.js +71 -0
- package/dist/esm/calcite-accordion_2.entry.js +20 -20
- package/dist/esm/calcite-action-bar.entry.js +17 -20
- package/dist/esm/calcite-action-group.entry.js +18 -16
- package/dist/esm/calcite-action-menu_2.entry.js +27 -24
- package/dist/esm/calcite-action-pad_2.entry.js +20 -21
- package/dist/esm/calcite-action_2.entry.js +32 -30
- package/dist/esm/calcite-alert_5.entry.js +25 -27
- package/dist/esm/calcite-avatar.entry.js +10 -10
- package/dist/esm/calcite-block-section.entry.js +12 -12
- package/dist/esm/calcite-block_5.entry.js +45 -47
- package/dist/esm/calcite-button.entry.js +24 -22
- package/dist/esm/calcite-card-group.entry.js +9 -15
- package/dist/esm/calcite-card.entry.js +50 -31
- package/dist/esm/calcite-carousel_2.entry.js +92 -37
- package/dist/esm/calcite-checkbox.entry.js +15 -17
- package/dist/esm/calcite-chip-group.entry.js +8 -12
- package/dist/esm/calcite-chip_2.entry.js +22 -26
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +37 -20
- package/dist/esm/calcite-color-picker.entry.js +15 -17
- package/dist/esm/calcite-combobox-item-group.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +36 -42
- package/dist/esm/calcite-date-picker-day_3.entry.js +16 -22
- package/dist/esm/calcite-dialog.entry.js +20 -23
- package/dist/esm/calcite-dropdown_2.entry.js +50 -51
- package/dist/esm/calcite-fab.entry.js +9 -15
- package/dist/esm/calcite-filter_5.entry.js +58 -61
- package/dist/esm/calcite-flow_4.entry.js +7 -7
- package/dist/esm/calcite-graph_2.entry.js +23 -25
- package/dist/esm/calcite-icon_2.entry.js +24 -23
- package/dist/esm/calcite-inline-editable.entry.js +17 -19
- package/dist/esm/calcite-input-number.entry.js +31 -33
- package/dist/esm/calcite-input-text.entry.js +25 -27
- package/dist/esm/calcite-input-time-picker-cc675f33.js +1867 -0
- package/dist/esm/calcite-input-time-picker.entry.js +21 -21
- package/dist/esm/calcite-input-time-zone.entry.js +100 -66
- package/dist/esm/calcite-input_2.entry.js +33 -35
- package/dist/esm/calcite-label.entry.js +8 -8
- package/dist/esm/calcite-link.entry.js +15 -17
- package/dist/esm/calcite-list-item-group.entry.js +5 -12
- package/dist/esm/calcite-menu-item.entry.js +13 -13
- package/dist/esm/calcite-menu.entry.js +12 -12
- package/dist/esm/calcite-meter.entry.js +12 -12
- package/dist/esm/calcite-modal_3.entry.js +25 -25
- package/dist/esm/calcite-navigation-logo.entry.js +6 -6
- package/dist/esm/calcite-navigation-user.entry.js +5 -5
- package/dist/esm/calcite-navigation.entry.js +9 -9
- package/dist/esm/calcite-notice.entry.js +17 -17
- package/dist/esm/calcite-option-group.entry.js +2 -2
- package/dist/esm/calcite-option_2.entry.js +15 -17
- package/dist/esm/calcite-pagination.entry.js +15 -47
- package/dist/esm/calcite-pick-list-group.entry.js +12 -12
- package/dist/esm/calcite-pick-list-item.entry.js +17 -19
- package/dist/esm/calcite-pick-list.entry.js +15 -17
- package/dist/esm/calcite-radio-button-group.entry.js +10 -10
- package/dist/esm/calcite-radio-button.entry.js +13 -15
- package/dist/esm/calcite-rating.entry.js +18 -22
- package/dist/esm/calcite-scrim.entry.js +11 -11
- package/dist/esm/calcite-segmented-control_2.entry.js +43 -47
- package/dist/esm/calcite-sheet.entry.js +14 -14
- package/dist/esm/calcite-shell-center-row.entry.js +10 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +47 -54
- package/dist/esm/calcite-sortable-list.entry.js +11 -13
- package/dist/esm/calcite-split-button.entry.js +6 -12
- package/dist/esm/calcite-stepper-item.entry.js +14 -16
- package/dist/esm/calcite-stepper.entry.js +12 -12
- package/dist/esm/calcite-switch.entry.js +14 -16
- package/dist/esm/calcite-table-cell_2.entry.js +18 -20
- package/dist/esm/calcite-table-row.entry.js +9 -16
- package/dist/esm/calcite-table.entry.js +18 -18
- package/dist/esm/calcite-text-area.entry.js +26 -28
- package/dist/esm/calcite-tile-group.entry.js +9 -11
- package/dist/esm/calcite-tile-select-group.entry.js +5 -12
- package/dist/esm/calcite-tile-select.entry.js +10 -12
- package/dist/esm/calcite-tile.entry.js +9 -15
- package/dist/esm/calcite-time-picker.entry.js +32 -38
- 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 +20 -15
- package/dist/esm/calcite-tree_2.entry.js +18 -20
- package/dist/esm/card-manager_3.entry.js +3 -3
- package/dist/esm/component-83541c88.js +30 -0
- package/dist/esm/conditionalSlot-8a0b08ef.js +51 -0
- package/dist/esm/config-16813c92.js +36 -0
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +3 -3
- package/dist/esm/crowdsource-reporter.entry.js +2 -2
- package/dist/esm/cs-4687cf9f.js +147 -0
- package/dist/esm/da-27cb521d.js +67 -0
- package/dist/esm/date-4fc03f44.js +248 -0
- package/dist/esm/de-1fcb8b55.js +91 -0
- package/dist/esm/de-at-621e3161.js +90 -0
- package/dist/esm/de-ch-dbe106ba.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/dom-75c641a7.js +1165 -0
- package/dist/esm/downloadUtils-e266e98d.js +3232 -0
- package/dist/esm/el-60cb7e8e.js +66 -0
- package/dist/esm/en-au-6b31eadf.js +66 -0
- package/dist/esm/en-ca-c62e2c29.js +65 -0
- package/dist/esm/en-gb-7b86a861.js +69 -0
- package/dist/esm/es-b048cf9a.js +66 -0
- package/dist/esm/es-mx-a469d043.js +65 -0
- package/dist/esm/et-09e59731.js +92 -0
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-98448a04.js +115 -0
- package/dist/esm/filter-c0066fe2.js +775 -0
- package/dist/esm/floating-ui-93b345b1.js +2404 -0
- package/dist/esm/focusTrapComponent-35b3348c.js +1008 -0
- package/dist/esm/form-d45062d8.js +372 -0
- package/dist/esm/fr-3a6bc75f.js +68 -0
- package/dist/esm/fr-ch-dd9aa577.js +66 -0
- package/dist/esm/guid-b0fb1de3.js +24 -0
- package/dist/esm/he-510944f3.js +105 -0
- package/dist/esm/helpers-f9bf9c0b.js +913 -0
- package/dist/esm/hi-b7f35ddc.js +65 -0
- package/dist/esm/hr-91d6e89b.js +80 -0
- package/dist/esm/hu-ab576bec.js +88 -0
- package/dist/esm/id-5ebe99df.js +66 -0
- package/dist/esm/index-19dc829d.js +126 -0
- package/dist/esm/index-39bc2e6d.js +199 -0
- package/dist/esm/index-3aaf8d41.js +13 -0
- package/dist/esm/index-46fa2a72.js +56 -0
- package/dist/esm/index-904bc599.js +1736 -0
- package/dist/esm/index-p4VH55K1-881b80d8.js +4107 -0
- package/dist/esm/index.es-c5f258e2.js +11220 -0
- package/dist/esm/input-e01adc49.js +58 -0
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +4 -4
- package/dist/esm/instant-apps-language-translator.entry.js +4 -4
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +2 -2
- package/dist/esm/instant-apps-time-filter.entry.js +9 -9
- package/dist/esm/interactive-98ed6b6f.js +82 -0
- package/dist/esm/it-62f24385.js +66 -0
- package/dist/esm/it-ch-11bc01ef.js +66 -0
- package/dist/esm/ja-4073b97b.js +72 -0
- package/dist/esm/key-e6b442de.js +16 -0
- package/dist/esm/ko-c1f9c746.js +72 -0
- package/dist/esm/label-272c5973.js +179 -0
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loadable-7cb2fc6f.js +93 -0
- package/dist/esm/loader.js +7 -7
- package/dist/esm/locale-0d06fca0.js +155 -0
- package/dist/esm/locale-24516fec.js +591 -0
- package/dist/esm/locale-ce177eb8.js +115 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/logger-f75712ce.js +59 -0
- package/dist/esm/lt-f293ef90.js +97 -0
- package/dist/esm/lv-cc60dc4f.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +5 -5
- package/dist/esm/math-d7c8823c.js +54 -0
- package/dist/esm/mk-90d4457e.js +66 -0
- package/dist/esm/nb-3d8eb4cc.js +67 -0
- package/dist/esm/nl-a2e0732f.js +67 -0
- package/dist/esm/observers-c83631e8.js +56 -0
- package/dist/esm/openCloseComponent-f642bffd.js +63 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pl-1e1abb9b.js +114 -0
- package/dist/esm/popupUtils-4570096e.js +119 -0
- package/dist/esm/pt-1bc85b37.js +67 -0
- package/dist/esm/pt-br-bd78f1f2.js +65 -0
- package/dist/esm/public-notification.entry.js +5 -5
- package/dist/esm/publicNotificationStore-8f6b0f93.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/region-a37e45f7.js +32 -0
- package/dist/esm/resources-14a1713f.js +20 -0
- package/dist/esm/resources-29590c8b.js +24 -0
- package/dist/esm/resources-35208c6c.js +63 -0
- package/dist/esm/resources-5956d3f9.js +35 -0
- package/dist/esm/resources-8e2ed936.js +34 -0
- package/dist/esm/resources-aa7bb7b6.js +22 -0
- package/dist/esm/resources-bc1429eb.js +63 -0
- package/dist/esm/resources-be1618c8.js +19 -0
- package/dist/esm/resources-c1a8d628.js +21 -0
- package/dist/esm/resources-de1ba6bb.js +23 -0
- package/dist/esm/responsive-b2be423e.js +37 -0
- package/dist/esm/ro-c1cb4571.js +66 -0
- package/dist/esm/ru-deb7b95b.js +126 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-0d3e719c.js +339 -0
- package/dist/esm/sk-e86a1a74.js +148 -0
- package/dist/esm/sl-4f70ce5c.js +168 -0
- package/dist/esm/solution-configuration.entry.js +4 -4
- package/dist/esm/solution-contents_3.entry.js +4 -4
- package/dist/esm/solution-item-accordion.entry.js +64 -27
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solution-store-ff13861b.js +1352 -0
- package/dist/esm/solutions-components.js +7 -7
- package/dist/esm/sortableComponent-7f184466.js +2743 -0
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/sr-bcde0bb0.js +101 -0
- package/dist/esm/store-manager.entry.js +3 -3
- package/dist/esm/sv-e585fbb5.js +71 -0
- package/dist/esm/t9n-9a5d28cf.js +103 -0
- package/dist/esm/th-f1746070.js +65 -0
- package/dist/esm/time-fbe17659.js +286 -0
- package/dist/esm/time-zones-044d518b.js +49 -0
- package/dist/esm/tr-065767bb.js +66 -0
- package/dist/esm/uk-96e72322.js +104 -0
- package/dist/esm/utils-3fc29543.js +142 -0
- package/dist/esm/utils-b5a6dbcd.js +65 -0
- package/dist/esm/utils-dadbd166.js +2274 -0
- package/dist/esm/vi-667fe4b6.js +70 -0
- package/dist/esm/zh-cn-fbbbe429.js +94 -0
- package/dist/esm/zh-hk-d11430a1.js +92 -0
- package/dist/esm/zh-tw-4a1b522b.js +92 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +35 -22
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +20 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +9 -9
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +8 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +63 -52
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +42 -32
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +46 -51
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +16 -16
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +25 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +23 -19
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +273 -334
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +7 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +24 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +7 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +15 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +15 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +15 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +10 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +8 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +28 -22
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +17 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +5 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +8 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +7 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +130 -105
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/solutions-components/assets/action/t9n/index.d.ts +1 -0
- package/dist/solutions-components/assets/action/t9n/messages.json +2 -1
- package/dist/solutions-components/assets/action/t9n/messages_en.json +2 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ar.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_bg.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_bs.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ca.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_cs.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_da.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_de.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_el.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_es.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_et.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_fi.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_fr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_he.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_hr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_hu.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_id.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_it.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ja.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ko.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_lt.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_lv.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_nl.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_no.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_pl.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_pt-BR.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_pt-PT.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ro.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_ru.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sk.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sl.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_sv.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_th.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_tr.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_uk.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_vi.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_zh-CN.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_zh-HK.json +3 -1
- package/dist/solutions-components/assets/dialog/t9n/messages_zh-TW.json +3 -1
- package/dist/solutions-components/assets/icon/connectionEndLeft16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndLeft24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndLeft32.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndRight16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndRight24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionEndRight32.json +1 -0
- package/dist/solutions-components/assets/icon/connectionMiddle16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionMiddle24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionMiddle32.json +1 -0
- package/dist/solutions-components/assets/icon/connectionToConnection16.json +1 -0
- package/dist/solutions-components/assets/icon/connectionToConnection24.json +1 -0
- package/dist/solutions-components/assets/icon/connectionToConnection32.json +1 -0
- package/dist/solutions-components/assets/icon/contentInlineRight16.json +1 -0
- package/dist/solutions-components/assets/icon/contentInlineRight24.json +1 -0
- package/dist/solutions-components/assets/icon/contentInlineRight32.json +1 -0
- package/dist/solutions-components/assets/icon/dashboardGraph16.json +1 -0
- package/dist/solutions-components/assets/icon/dashboardGraph24.json +1 -0
- package/dist/solutions-components/assets/icon/dashboardGraph32.json +1 -0
- package/dist/solutions-components/assets/icon/divide16.json +1 -0
- package/dist/solutions-components/assets/icon/divide24.json +1 -0
- package/dist/solutions-components/assets/icon/divide32.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuilding16.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuilding24.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuilding32.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuildingParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuildingParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/i3DBuildingParameter32.json +1 -0
- package/dist/solutions-components/assets/icon/justify16.json +1 -0
- package/dist/solutions-components/assets/icon/justify24.json +1 -0
- package/dist/solutions-components/assets/icon/justify32.json +1 -0
- package/dist/solutions-components/assets/icon/layers16F.json +1 -0
- package/dist/solutions-components/assets/icon/layers24F.json +1 -0
- package/dist/solutions-components/assets/icon/layers32F.json +1 -0
- package/dist/solutions-components/assets/icon/modelHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/modelHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/modelHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/nVariable16.json +1 -0
- package/dist/solutions-components/assets/icon/nVariable24.json +1 -0
- package/dist/solutions-components/assets/icon/nVariable32.json +1 -0
- package/dist/solutions-components/assets/icon/parcel16.json +1 -0
- package/dist/solutions-components/assets/icon/parcel24.json +1 -0
- package/dist/solutions-components/assets/icon/parcel32.json +1 -0
- package/dist/solutions-components/assets/icon/parcelParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/parcelParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/parcelParameter32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplateHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplateHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplateHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterToolHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterToolHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterToolHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/refresh16F.json +1 -0
- package/dist/solutions-components/assets/icon/refresh24F.json +1 -0
- package/dist/solutions-components/assets/icon/refresh32F.json +1 -0
- package/dist/solutions-components/assets/icon/rss16F.json +1 -0
- package/dist/solutions-components/assets/icon/rss24F.json +1 -0
- package/dist/solutions-components/assets/icon/rss32F.json +1 -0
- package/dist/solutions-components/assets/icon/spaces16.json +1 -0
- package/dist/solutions-components/assets/icon/spaces24.json +1 -0
- package/dist/solutions-components/assets/icon/spaces32.json +1 -0
- package/dist/solutions-components/assets/icon/spacesParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/spacesParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/spacesParameter32.json +1 -0
- package/dist/solutions-components/assets/icon/squareBracketsX16.json +1 -0
- package/dist/solutions-components/assets/icon/squareBracketsX24.json +1 -0
- package/dist/solutions-components/assets/icon/squareBracketsX32.json +1 -0
- package/dist/solutions-components/assets/icon/toolHistory16.json +1 -0
- package/dist/solutions-components/assets/icon/toolHistory24.json +1 -0
- package/dist/solutions-components/assets/icon/toolHistory32.json +1 -0
- package/dist/solutions-components/assets/icon/tracePath16.json +1 -0
- package/dist/solutions-components/assets/icon/tracePath24.json +1 -0
- package/dist/solutions-components/assets/icon/tracePath32.json +1 -0
- package/dist/solutions-components/assets/icon/tracePathComplete16.json +1 -0
- package/dist/solutions-components/assets/icon/tracePathComplete24.json +1 -0
- package/dist/solutions-components/assets/icon/tracePathComplete32.json +1 -0
- package/dist/solutions-components/assets/icon/validate16.json +1 -0
- package/dist/solutions-components/assets/icon/validate24.json +1 -0
- package/dist/solutions-components/assets/icon/validate32.json +1 -0
- package/dist/solutions-components/assets/icon/webAdaptor16.json +1 -0
- package/dist/solutions-components/assets/icon/webAdaptor24.json +1 -0
- package/dist/solutions-components/assets/icon/webAdaptor32.json +1 -0
- package/dist/solutions-components/assets/icon/zoningParameter16.json +1 -0
- package/dist/solutions-components/assets/icon/zoningParameter24.json +1 -0
- package/dist/solutions-components/assets/icon/zoningParameter32.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/index.d.ts +45 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages.json +46 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ar.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_bg.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_bs.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ca.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_cs.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_da.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_de.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_el.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_en.json +46 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_es.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_et.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_fi.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_fr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_he.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_hr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_hu.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_id.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_it.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ja.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ko.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_lt.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_lv.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_nl.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_no.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_pl.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_pt-BR.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_pt-PT.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ro.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_ru.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sk.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sl.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_sv.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_th.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_tr.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_uk.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_vi.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_zh-CN.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_zh-HK.json +262 -1
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_zh-TW.json +262 -1
- package/dist/solutions-components/demos/browse-solutions.html +1 -1
- package/dist/solutions-components/demos/buffer-tools.html +3 -3
- package/dist/solutions-components/demos/card-manager.html +1 -1
- package/dist/solutions-components/demos/create-feature.html +3 -3
- package/dist/solutions-components/demos/crowdsource-manager.html +4 -42
- package/dist/solutions-components/demos/crowdsource-reporter.html +1 -1
- package/dist/solutions-components/demos/deduct-calculator.html +1 -1
- package/dist/solutions-components/demos/demo-map.html +3 -3
- package/dist/solutions-components/demos/edit-card.html +1 -1
- package/dist/solutions-components/demos/feature-list.html +3 -3
- package/dist/solutions-components/demos/index.html +1 -2
- package/dist/solutions-components/demos/info-card.html +1 -1
- package/dist/solutions-components/demos/json-editor-2.html +1 -1
- package/dist/solutions-components/demos/json-editor.html +1 -1
- package/dist/solutions-components/demos/layer-list.html +3 -3
- package/dist/solutions-components/demos/layer-table.html +3 -3
- package/dist/solutions-components/demos/list-item.html +3 -3
- package/dist/solutions-components/demos/map-card.html +3 -3
- package/dist/solutions-components/demos/map-draw-tools.html +3 -3
- package/dist/solutions-components/demos/map-layer-picker.html +3 -3
- package/dist/solutions-components/demos/map-select-tools.html +3 -3
- package/dist/solutions-components/demos/new-public-notification.html +3 -3
- package/dist/solutions-components/demos/new-solution-configuration.html +1 -1
- package/dist/solutions-components/demos/pci-calculator.html +1 -1
- package/dist/solutions-components/demos/pdf-download.html +1 -2
- package/dist/solutions-components/demos/solution-configuration.html +1 -1
- package/dist/solutions-components/demos/solution-contents.html +1 -1
- package/dist/solutions-components/demos/solution-group-details.html +1 -1
- package/dist/solutions-components/demos/solution-item-accordion.html +426 -294
- package/dist/solutions-components/demos/solution-item-details.html +1 -1
- package/dist/solutions-components/demos/solution-item-icon.html +1 -2
- package/dist/solutions-components/demos/solution-item-sharing.html +1 -1
- package/dist/solutions-components/demos/solution-item.html +1 -1
- package/dist/solutions-components/demos/solution-organization-variables.html +1 -1
- package/dist/solutions-components/demos/solution-resource-item.html +1 -1
- package/dist/solutions-components/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions-components/demos/solution-template-data.html +1 -1
- package/dist/solutions-components/demos/solution-variables.html +1 -1
- package/dist/solutions-components/demos/spatial-ref.html +1 -1
- package/dist/solutions-components/p-017f63c5.js +6 -0
- package/dist/solutions-components/p-020143eb.entry.js +11 -0
- package/dist/solutions-components/p-0374291c.js +6 -0
- package/dist/solutions-components/p-05ae2b11.entry.js +6 -0
- package/dist/solutions-components/p-065e678f.js +6 -0
- package/dist/solutions-components/p-07a194e6.entry.js +6 -0
- package/dist/solutions-components/p-086f8bbb.js +6 -0
- package/dist/solutions-components/p-08e9cb30.entry.js +11 -0
- package/dist/solutions-components/p-097bf845.entry.js +11 -0
- package/dist/solutions-components/p-0bfef9c6.entry.js +11 -0
- package/dist/solutions-components/p-13d2e3cb.js +6 -0
- package/dist/solutions-components/p-143f9e99.entry.js +17 -0
- package/dist/solutions-components/p-144b7a4d.js +6 -0
- package/dist/solutions-components/p-146acd9a.entry.js +6 -0
- package/dist/solutions-components/p-14d78748.entry.js +6 -0
- package/dist/solutions-components/p-15410144.js +11 -0
- package/dist/solutions-components/p-1588fad8.entry.js +6 -0
- package/dist/solutions-components/p-16f52a67.js +6 -0
- package/dist/solutions-components/p-1726f46c.js +6 -0
- package/dist/solutions-components/p-181ac808.entry.js +11 -0
- package/dist/solutions-components/p-1862084a.entry.js +11 -0
- package/dist/solutions-components/p-1c2d0e90.entry.js +6 -0
- package/dist/solutions-components/p-1c9db4df.entry.js +6 -0
- package/dist/solutions-components/p-1effd2f3.entry.js +11 -0
- package/dist/solutions-components/p-1fc9919b.entry.js +17 -0
- package/dist/solutions-components/p-2105e658.entry.js +6 -0
- package/dist/solutions-components/p-2154a0f9.entry.js +6 -0
- package/dist/solutions-components/p-22bb693d.entry.js +6 -0
- package/dist/solutions-components/p-233f219c.js +11 -0
- package/dist/solutions-components/p-2360802a.js +21 -0
- package/dist/solutions-components/p-24ab8211.entry.js +11 -0
- package/dist/solutions-components/p-24ae549d.entry.js +6 -0
- package/dist/solutions-components/p-24e3f09f.entry.js +6 -0
- package/dist/solutions-components/p-2506309d.entry.js +11 -0
- package/dist/solutions-components/p-2714a658.entry.js +6 -0
- package/dist/solutions-components/p-27a4a537.js +11 -0
- package/dist/solutions-components/p-27bcce86.entry.js +11 -0
- package/dist/solutions-components/p-29047e77.entry.js +29 -0
- package/dist/solutions-components/p-296bd1c0.js +6 -0
- package/dist/solutions-components/p-2bb1b8a8.entry.js +6 -0
- package/dist/solutions-components/p-2daeb1fe.js +11 -0
- package/dist/solutions-components/p-2ebd8a9b.entry.js +11 -0
- package/dist/solutions-components/p-319f79c2.js +6 -0
- package/dist/solutions-components/p-33d732d7.entry.js +11 -0
- package/dist/solutions-components/p-347f341e.js +11 -0
- package/dist/solutions-components/p-347fa724.js +6 -0
- package/dist/solutions-components/p-3517faab.entry.js +11 -0
- package/dist/solutions-components/p-353312fc.entry.js +23 -0
- package/dist/solutions-components/p-3776809a.js +11 -0
- package/dist/solutions-components/p-39678a7e.js +6 -0
- package/dist/solutions-components/p-399dc933.entry.js +17 -0
- package/dist/solutions-components/p-3a33ef72.entry.js +6 -0
- package/dist/solutions-components/p-3bcdf332.entry.js +6 -0
- package/dist/solutions-components/p-3c775d00.js +6 -0
- package/dist/solutions-components/p-3cadb18d.js +11 -0
- package/dist/solutions-components/p-3cfc1e2e.js +11 -0
- package/dist/solutions-components/p-3d7643a5.entry.js +6 -0
- package/dist/solutions-components/p-3df0c310.entry.js +11 -0
- package/dist/solutions-components/p-3ec0ab00.entry.js +11 -0
- package/dist/solutions-components/p-402301cb.js +6 -0
- package/dist/solutions-components/p-40bfb158.entry.js +11 -0
- package/dist/solutions-components/p-41a6f03d.entry.js +6 -0
- package/dist/solutions-components/p-4253e9f1.js +16 -0
- package/dist/solutions-components/p-43165ebd.entry.js +6 -0
- package/dist/solutions-components/p-44d04914.entry.js +11 -0
- package/dist/solutions-components/p-46c8015c.js +488 -0
- package/dist/solutions-components/p-471c6630.js +6 -0
- package/dist/solutions-components/p-47f85755.entry.js +16 -0
- package/dist/solutions-components/p-49fbb67d.js +6 -0
- package/dist/solutions-components/p-4a02fd45.entry.js +6 -0
- package/dist/solutions-components/p-4a291f79.js +11 -0
- package/dist/solutions-components/p-4af0e4bd.entry.js +47 -0
- package/dist/solutions-components/p-4bb08a47.entry.js +11 -0
- package/dist/solutions-components/p-4db86c5e.entry.js +6 -0
- package/dist/solutions-components/p-4e0045d5.entry.js +6 -0
- package/dist/solutions-components/p-4e6eb06e.js +7 -0
- package/dist/solutions-components/p-4f82eb55.js +11 -0
- package/dist/solutions-components/p-50fb7f47.js +6 -0
- package/dist/solutions-components/p-51c6e6fe.js +21 -0
- package/dist/solutions-components/p-52094fca.entry.js +6 -0
- package/dist/solutions-components/p-52280e10.entry.js +17 -0
- package/dist/solutions-components/p-5230c9ff.entry.js +11 -0
- package/dist/solutions-components/p-549cdc87.entry.js +11 -0
- package/dist/solutions-components/p-54a3d9b8.js +6 -0
- package/dist/solutions-components/p-54e5a55d.js +11 -0
- package/dist/solutions-components/p-57ccfe47.entry.js +12 -0
- package/dist/solutions-components/p-58338ff8.entry.js +11 -0
- package/dist/solutions-components/p-5949dd38.js +6 -0
- package/dist/solutions-components/p-5b0e8838.entry.js +6 -0
- package/dist/solutions-components/p-5d2cd0a4.js +11 -0
- package/dist/solutions-components/p-5d8592e0.js +6 -0
- package/dist/solutions-components/p-5e25a0b8.js +11 -0
- package/dist/solutions-components/p-5e406ad0.entry.js +12 -0
- package/dist/solutions-components/p-5f63be31.entry.js +17 -0
- package/dist/solutions-components/p-5f6d9950.js +6 -0
- package/dist/solutions-components/p-5ff711ee.js +6 -0
- package/dist/solutions-components/p-60412359.js +6 -0
- package/dist/solutions-components/p-61aebbb5.js +11 -0
- package/dist/solutions-components/p-621ad249.js +17 -0
- package/dist/solutions-components/p-634f86e5.entry.js +11 -0
- package/dist/solutions-components/p-662aa94e.entry.js +6 -0
- package/dist/solutions-components/p-67ca4a64.entry.js +6 -0
- package/dist/solutions-components/p-67e7f047.entry.js +29 -0
- package/dist/solutions-components/p-685091db.js +6 -0
- package/dist/solutions-components/p-6aab07ba.entry.js +6 -0
- package/dist/solutions-components/p-6adaac20.js +11 -0
- package/dist/solutions-components/p-6e1685bd.entry.js +6 -0
- package/dist/solutions-components/p-6e93a997.entry.js +6 -0
- package/dist/solutions-components/p-706cddd1.entry.js +22 -0
- package/dist/solutions-components/p-70ecc979.entry.js +6 -0
- package/dist/solutions-components/p-710bd9ec.entry.js +6 -0
- package/dist/solutions-components/p-713949f2.js +6 -0
- package/dist/solutions-components/p-72522a67.js +11 -0
- package/dist/solutions-components/p-72ab74b8.entry.js +11 -0
- package/dist/solutions-components/p-739ce6f3.entry.js +6 -0
- package/dist/solutions-components/p-745efeab.js +11 -0
- package/dist/solutions-components/p-750f234e.entry.js +6 -0
- package/dist/solutions-components/p-759d0beb.entry.js +6 -0
- package/dist/solutions-components/p-790af200.entry.js +6 -0
- package/dist/solutions-components/p-794d1b98.js +6 -0
- package/dist/solutions-components/p-7b862835.js +6 -0
- package/dist/solutions-components/p-7b8d7eef.entry.js +11 -0
- package/dist/solutions-components/p-7cc351f6.js +6 -0
- package/dist/solutions-components/p-7d542581.js +11 -0
- package/dist/solutions-components/p-7d974838.js +11 -0
- package/dist/solutions-components/p-7e6a8c06.entry.js +6 -0
- package/dist/solutions-components/p-7e97d4d6.entry.js +6 -0
- package/dist/solutions-components/p-7fdb374f.js +6 -0
- package/dist/solutions-components/p-7ffa7eae.entry.js +11 -0
- package/dist/solutions-components/p-81681ba0.entry.js +11 -0
- package/dist/solutions-components/p-866cc732.js +6 -0
- package/dist/solutions-components/p-876c3f5f.js +11 -0
- package/dist/solutions-components/p-89334c32.js +6 -0
- package/dist/solutions-components/p-895e7b9c.js +16 -0
- package/dist/solutions-components/p-89a4ce79.entry.js +11 -0
- package/dist/solutions-components/p-89b27ae3.entry.js +20 -0
- package/dist/solutions-components/p-89f86585.js +18 -0
- package/dist/solutions-components/p-8ac08cc3.entry.js +17 -0
- package/dist/solutions-components/p-8cdeed09.entry.js +11 -0
- package/dist/solutions-components/p-8d0d5a69.js +6 -0
- package/dist/solutions-components/p-8d48a13f.js +6 -0
- package/dist/solutions-components/p-8d59545b.js +6 -0
- package/dist/solutions-components/p-8e0a95ff.js +16 -0
- package/dist/solutions-components/p-8e6081e0.entry.js +6 -0
- package/dist/solutions-components/p-8f556cfc.entry.js +6 -0
- package/dist/solutions-components/p-904a670f.js +6 -0
- package/dist/solutions-components/p-90d2aadc.entry.js +6 -0
- package/dist/solutions-components/p-91371f97.js +11 -0
- package/dist/solutions-components/p-91e05c99.js +11 -0
- package/dist/solutions-components/p-91f0f556.entry.js +17 -0
- package/dist/solutions-components/p-93b87dd4.entry.js +11 -0
- package/dist/solutions-components/p-94a5d59f.entry.js +6 -0
- package/dist/solutions-components/p-96385535.entry.js +17 -0
- package/dist/solutions-components/p-96a983ab.entry.js +6 -0
- package/dist/solutions-components/p-971b67d7.entry.js +6 -0
- package/dist/solutions-components/p-986dd5b2.js +17 -0
- package/dist/solutions-components/p-988c0d5e.entry.js +6 -0
- package/dist/solutions-components/p-9e862c85.js +6 -0
- package/dist/solutions-components/p-9f98f213.js +6 -0
- package/dist/solutions-components/p-9ff02b5e.js +6 -0
- package/dist/solutions-components/p-a02e2069.js +11 -0
- package/dist/solutions-components/p-a25c73c8.entry.js +6 -0
- package/dist/solutions-components/p-a568af9f.js +61 -0
- package/dist/solutions-components/p-a584543f.js +6 -0
- package/dist/solutions-components/p-a922f993.entry.js +11 -0
- package/dist/solutions-components/p-a9742ffc.entry.js +11 -0
- package/dist/solutions-components/p-ad9d1221.js +11 -0
- package/dist/solutions-components/p-adabe68e.entry.js +6 -0
- package/dist/solutions-components/p-af0e57e2.js +11 -0
- package/dist/solutions-components/p-b034e287.entry.js +17 -0
- package/dist/solutions-components/p-b0b1c672.entry.js +17 -0
- package/dist/solutions-components/p-b10d9165.entry.js +22 -0
- package/dist/solutions-components/p-b13aca6a.js +11 -0
- package/dist/solutions-components/p-b3e498bd.js +6 -0
- package/dist/solutions-components/p-b5ddeee9.js +6 -0
- package/dist/solutions-components/p-b658f264.js +6 -0
- package/dist/solutions-components/p-b739f26d.entry.js +6 -0
- package/dist/solutions-components/p-b78a4ce7.entry.js +6 -0
- package/dist/solutions-components/p-b79f296d.entry.js +11 -0
- package/dist/solutions-components/p-b90ed430.entry.js +11 -0
- package/dist/solutions-components/p-bb1de7a0.entry.js +11 -0
- package/dist/solutions-components/p-bb630f8c.entry.js +6 -0
- package/dist/solutions-components/p-be2c7d0c.entry.js +6 -0
- package/dist/solutions-components/p-be9a6a87.entry.js +17 -0
- package/dist/solutions-components/p-bf187297.js +6 -0
- package/dist/solutions-components/p-c0c6f4b2.js +6 -0
- package/dist/solutions-components/p-c350eacb.js +143 -0
- package/dist/solutions-components/p-c551ffc5.entry.js +6 -0
- package/dist/solutions-components/p-c64d61d9.entry.js +6 -0
- package/dist/solutions-components/p-c6dac8d2.js +16 -0
- package/dist/solutions-components/p-c7f8b7f0.js +11 -0
- package/dist/solutions-components/p-c97472e4.js +6 -0
- package/dist/solutions-components/p-c9f94a25.js +6 -0
- package/dist/solutions-components/p-cbb86cf2.entry.js +6 -0
- package/dist/solutions-components/p-cd8e711f.entry.js +6 -0
- package/dist/solutions-components/p-cf4273a0.js +6 -0
- package/dist/solutions-components/p-d0f16cd3.entry.js +11 -0
- package/dist/solutions-components/p-d25fc2c2.js +11 -0
- package/dist/solutions-components/p-d3338131.entry.js +11 -0
- package/dist/solutions-components/p-d4e07230.entry.js +11 -0
- package/dist/solutions-components/p-d4f16e41.js +6 -0
- package/dist/solutions-components/p-d6902512.js +11 -0
- package/dist/solutions-components/p-d751e255.entry.js +11 -0
- package/dist/solutions-components/p-da2fd30a.js +6 -0
- package/dist/solutions-components/p-dac93fa8.js +6 -0
- package/dist/solutions-components/p-daff208e.js +6 -0
- package/dist/solutions-components/p-dc9d4be3.js +6 -0
- package/dist/solutions-components/p-e01d27aa.entry.js +6 -0
- package/dist/solutions-components/p-e070ef82.entry.js +11 -0
- package/dist/solutions-components/p-e72e2dcc.entry.js +21 -0
- package/dist/solutions-components/p-e799935e.js +6 -0
- package/dist/solutions-components/p-e7acd771.entry.js +11 -0
- package/dist/solutions-components/p-e93184af.entry.js +6 -0
- package/dist/solutions-components/p-ea822f6e.js +6 -0
- package/dist/solutions-components/p-ec56afaa.js +6 -0
- package/dist/solutions-components/p-ed844e16.entry.js +11 -0
- package/dist/solutions-components/p-efaa77a0.js +11 -0
- package/dist/solutions-components/p-efdd44e3.js +6 -0
- package/dist/solutions-components/p-efe845d9.js +6 -0
- package/dist/solutions-components/p-f0c96a6a.js +11 -0
- package/dist/solutions-components/p-f4aadb3b.js +36 -0
- package/dist/solutions-components/p-f61fdfc6.entry.js +12 -0
- package/dist/solutions-components/p-f62b8031.js +6 -0
- package/dist/solutions-components/p-f746ec20.js +11 -0
- package/dist/solutions-components/p-f76d3cfe.js +6 -0
- package/dist/solutions-components/p-f7e7b830.entry.js +6 -0
- package/dist/solutions-components/p-f898b163.js +11 -0
- package/dist/solutions-components/p-f8ee16f3.entry.js +6 -0
- package/dist/solutions-components/p-f966fadb.entry.js +11 -0
- package/dist/solutions-components/p-fa80bc7e.js +11 -0
- package/dist/solutions-components/p-fae4708b.js +11 -0
- package/dist/solutions-components/p-faf3343c.entry.js +11 -0
- package/dist/solutions-components/p-fb4f7ace.js +6 -0
- package/dist/solutions-components/p-fc243a76.entry.js +11 -0
- package/dist/solutions-components/p-fca48d30.entry.js +6 -0
- package/dist/solutions-components/p-fdbb52ca.js +6 -0
- package/dist/solutions-components/p-fe3aea1a.entry.js +6 -0
- package/dist/solutions-components/p-fe58f3f0.entry.js +11 -0
- package/dist/solutions-components/p-ff336351.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +25 -3
- package/dist/types/preact.d.ts +1 -3
- package/package.json +5 -5
- package/dist/cjs/ExpandToggle-54ca6b91.js +0 -115
- package/dist/cjs/FloatingArrow-28f6bb91.js +0 -48
- package/dist/cjs/Heading-63b5c82c.js +0 -25
- package/dist/cjs/Validation-9bab9a69.js +0 -20
- package/dist/cjs/app-globals-d2085e28.js +0 -67
- package/dist/cjs/ar-ce94723b.js +0 -106
- package/dist/cjs/array-708fd433.js +0 -17
- package/dist/cjs/bg-8ab5661c.js +0 -84
- package/dist/cjs/browser-2893460e.js +0 -35
- package/dist/cjs/bs-f15b7a3d.js +0 -53
- package/dist/cjs/ca-321e7e4f.js +0 -73
- package/dist/cjs/calcite-input-time-picker-d63d914b.js +0 -1861
- package/dist/cjs/component-7f2bd646.js +0 -33
- package/dist/cjs/conditionalSlot-2d2541f4.js +0 -54
- package/dist/cjs/config-7c16c710.js +0 -40
- package/dist/cjs/continent-cdee1112.js +0 -34
- package/dist/cjs/country-a8539532.js +0 -446
- package/dist/cjs/cs-66742e3a.js +0 -149
- package/dist/cjs/da-933e7031.js +0 -69
- package/dist/cjs/date-e01a99aa.js +0 -264
- package/dist/cjs/de-87706bda.js +0 -93
- package/dist/cjs/de-at-752f7be1.js +0 -92
- package/dist/cjs/de-ch-41dc3fef.js +0 -92
- package/dist/cjs/dom-3d3a8f25.js +0 -1215
- package/dist/cjs/downloadUtils-17f08e5e.js +0 -3239
- package/dist/cjs/el-23b7e02b.js +0 -68
- package/dist/cjs/en-au-4f9fe083.js +0 -68
- package/dist/cjs/en-ca-afba9508.js +0 -67
- package/dist/cjs/en-gb-78a49c6a.js +0 -71
- package/dist/cjs/es-ea5faae0.js +0 -68
- package/dist/cjs/es-mx-47a5667a.js +0 -67
- package/dist/cjs/et-72505ea1.js +0 -94
- package/dist/cjs/fi-7b4ac88c.js +0 -117
- package/dist/cjs/filter-a9429bde.js +0 -778
- package/dist/cjs/floating-ui-9ff03df8.js +0 -2373
- package/dist/cjs/focusTrapComponent-86ebd41d.js +0 -1018
- package/dist/cjs/form-8132060d.js +0 -381
- package/dist/cjs/fr-8077e2e8.js +0 -70
- package/dist/cjs/fr-ch-04f427a0.js +0 -68
- package/dist/cjs/guid-42cda8c9.js +0 -26
- package/dist/cjs/he-93b37a58.js +0 -107
- package/dist/cjs/helpers-3cfcbb0d.js +0 -940
- package/dist/cjs/hi-cb320ba3.js +0 -67
- package/dist/cjs/hr-15e455d9.js +0 -82
- package/dist/cjs/hu-10c42dd5.js +0 -90
- package/dist/cjs/id-813844ef.js +0 -68
- package/dist/cjs/index-5a0af791.js +0 -1782
- package/dist/cjs/index-6189d0bb.js +0 -62
- package/dist/cjs/index-866b8a4c.js +0 -127
- package/dist/cjs/index-d21e03cd.js +0 -14
- package/dist/cjs/index-da709a10.js +0 -201
- package/dist/cjs/index.es-2518dd41.js +0 -11307
- package/dist/cjs/input-3efc5a5e.js +0 -60
- package/dist/cjs/interactive-3b85d8df.js +0 -167
- package/dist/cjs/it-090375c5.js +0 -68
- package/dist/cjs/it-ch-6cc91215.js +0 -68
- package/dist/cjs/ja-e6697420.js +0 -74
- package/dist/cjs/key-82084ef6.js +0 -19
- package/dist/cjs/ko-522250be.js +0 -74
- package/dist/cjs/label-e7d3c371.js +0 -186
- package/dist/cjs/loadable-0e357195.js +0 -98
- package/dist/cjs/locale-351282c5.js +0 -605
- package/dist/cjs/locale-a09603ee.js +0 -160
- package/dist/cjs/locale-a965a573.js +0 -120
- package/dist/cjs/logger-309df5d9.js +0 -61
- package/dist/cjs/lt-c2f9fd21.js +0 -99
- package/dist/cjs/lv-a1930986.js +0 -68
- package/dist/cjs/math-14740338.js +0 -60
- package/dist/cjs/mk-deb11706.js +0 -68
- package/dist/cjs/nb-3859b631.js +0 -69
- package/dist/cjs/nl-6c2c838d.js +0 -69
- package/dist/cjs/observers-5f9f67ee.js +0 -58
- package/dist/cjs/openCloseComponent-b66f10f5.js +0 -65
- package/dist/cjs/pl-fcb7899e.js +0 -116
- package/dist/cjs/popupUtils-24306e6b.js +0 -121
- package/dist/cjs/pt-416d2cf8.js +0 -69
- package/dist/cjs/pt-br-bae3d576.js +0 -67
- package/dist/cjs/publicNotificationStore-f229e839.js +0 -47
- package/dist/cjs/resources-4446499e.js +0 -39
- package/dist/cjs/resources-4c3e1c50.js +0 -68
- package/dist/cjs/resources-6f65a67f.js +0 -29
- package/dist/cjs/resources-87ed79dd.js +0 -23
- package/dist/cjs/resources-9b04cd8c.js +0 -23
- package/dist/cjs/resources-a1ca0958.js +0 -27
- package/dist/cjs/resources-c5f09989.js +0 -68
- package/dist/cjs/resources-dbc687b5.js +0 -26
- package/dist/cjs/resources-f11e9bd6.js +0 -39
- package/dist/cjs/resources-f8785f51.js +0 -21
- package/dist/cjs/ro-bda94f37.js +0 -68
- package/dist/cjs/ru-7258ce51.js +0 -128
- package/dist/cjs/shared-list-render-d4b7311f.js +0 -361
- package/dist/cjs/sk-3a398547.js +0 -150
- package/dist/cjs/sl-bfb5a728.js +0 -170
- package/dist/cjs/solution-store-2cd6a8c3.js +0 -1354
- package/dist/cjs/sortableComponent-8684e273.js +0 -2748
- package/dist/cjs/sr-58554054.js +0 -103
- package/dist/cjs/sv-335a4402.js +0 -73
- package/dist/cjs/t9n-e41672d2.js +0 -108
- package/dist/cjs/th-14ebad2e.js +0 -67
- package/dist/cjs/time-9a5e2f2d.js +0 -301
- package/dist/cjs/time-zones-cd027b1e.js +0 -367
- package/dist/cjs/tr-36bcc20f.js +0 -68
- package/dist/cjs/uk-dcff92bd.js +0 -106
- package/dist/cjs/utils-29c97686.js +0 -2304
- package/dist/cjs/utils-62072741.js +0 -153
- package/dist/cjs/utils-edb4e372.js +0 -78
- package/dist/cjs/vi-284fec96.js +0 -72
- package/dist/cjs/zh-cn-1f4ab46b.js +0 -96
- package/dist/cjs/zh-hk-39cf1fdd.js +0 -94
- package/dist/cjs/zh-tw-e0b3117d.js +0 -94
- package/dist/components/continent.js +0 -31
- package/dist/components/country.js +0 -444
- package/dist/esm/ExpandToggle-076b4360.js +0 -108
- package/dist/esm/FloatingArrow-9a505e89.js +0 -46
- package/dist/esm/Heading-cae0b34c.js +0 -22
- package/dist/esm/Validation-bd0a53ec.js +0 -18
- package/dist/esm/app-globals-530c75ff.js +0 -65
- package/dist/esm/ar-3e3c0d14.js +0 -104
- package/dist/esm/array-ddb2593b.js +0 -15
- package/dist/esm/bg-a872736b.js +0 -82
- package/dist/esm/browser-a791205e.js +0 -32
- package/dist/esm/bs-fe545c28.js +0 -51
- package/dist/esm/ca-8a2abdaa.js +0 -71
- package/dist/esm/calcite-input-time-picker-2fbabd28.js +0 -1858
- package/dist/esm/component-d35983a4.js +0 -30
- package/dist/esm/conditionalSlot-0cbc7172.js +0 -51
- package/dist/esm/config-8d1c3431.js +0 -36
- package/dist/esm/continent-125eb777.js +0 -31
- package/dist/esm/country-2d5661ee.js +0 -444
- package/dist/esm/cs-f9bfb6dd.js +0 -147
- package/dist/esm/da-0528de8d.js +0 -67
- package/dist/esm/date-f0c83d13.js +0 -248
- package/dist/esm/de-at-c7c45014.js +0 -90
- package/dist/esm/de-ch-e9338f1b.js +0 -90
- package/dist/esm/de-d149b983.js +0 -91
- package/dist/esm/dom-42a638f6.js +0 -1180
- package/dist/esm/downloadUtils-4a34c86a.js +0 -3232
- package/dist/esm/el-d86fff8e.js +0 -66
- package/dist/esm/en-au-e722c119.js +0 -66
- package/dist/esm/en-ca-8f38a3b8.js +0 -65
- package/dist/esm/en-gb-24dd064c.js +0 -69
- package/dist/esm/es-39a9e113.js +0 -66
- package/dist/esm/es-mx-fa0cbd42.js +0 -65
- package/dist/esm/et-51eabe80.js +0 -92
- package/dist/esm/fi-64ca8666.js +0 -115
- package/dist/esm/filter-6ee02739.js +0 -775
- package/dist/esm/floating-ui-a14930d0.js +0 -2365
- package/dist/esm/focusTrapComponent-c1def619.js +0 -1013
- package/dist/esm/form-46367137.js +0 -372
- package/dist/esm/fr-ch-6fe6a6e6.js +0 -66
- package/dist/esm/fr-e20306bf.js +0 -68
- package/dist/esm/guid-42656051.js +0 -24
- package/dist/esm/he-32ec6cce.js +0 -105
- package/dist/esm/helpers-22ae4484.js +0 -913
- package/dist/esm/hi-da2b085c.js +0 -65
- package/dist/esm/hr-5a52222a.js +0 -80
- package/dist/esm/hu-d3bbacef.js +0 -88
- package/dist/esm/id-dcdac250.js +0 -66
- package/dist/esm/index-2c724afd.js +0 -199
- package/dist/esm/index-ad182a71.js +0 -125
- package/dist/esm/index-b793d9aa.js +0 -1748
- package/dist/esm/index-f5d562b1.js +0 -60
- package/dist/esm/index-f8c935d6.js +0 -12
- package/dist/esm/index.es-5f44061b.js +0 -11220
- package/dist/esm/input-7f3fc18b.js +0 -58
- package/dist/esm/interactive-b2a41b8b.js +0 -162
- package/dist/esm/it-360f430f.js +0 -66
- package/dist/esm/it-ch-0ec68776.js +0 -66
- package/dist/esm/ja-a95cae4c.js +0 -72
- package/dist/esm/key-d6dfb50e.js +0 -16
- package/dist/esm/ko-f0edd78f.js +0 -72
- package/dist/esm/label-f2ec1100.js +0 -179
- package/dist/esm/loadable-1a9b14b8.js +0 -93
- package/dist/esm/locale-a34f9f04.js +0 -115
- package/dist/esm/locale-a53a7bc6.js +0 -591
- package/dist/esm/locale-b1d53fb1.js +0 -155
- package/dist/esm/logger-3188b9c3.js +0 -59
- package/dist/esm/lt-bff432da.js +0 -97
- package/dist/esm/lv-0c7edf32.js +0 -66
- package/dist/esm/math-9afe1f6d.js +0 -54
- package/dist/esm/mk-876446b8.js +0 -66
- package/dist/esm/nb-25537e87.js +0 -67
- package/dist/esm/nl-8be84da3.js +0 -67
- package/dist/esm/observers-6cac5525.js +0 -56
- package/dist/esm/openCloseComponent-9d44719e.js +0 -63
- package/dist/esm/pl-8d4fe5a7.js +0 -114
- package/dist/esm/popupUtils-3ccb86bd.js +0 -119
- package/dist/esm/pt-br-3015e62b.js +0 -65
- package/dist/esm/pt-dcc887b4.js +0 -67
- package/dist/esm/publicNotificationStore-7b0b97b6.js +0 -45
- package/dist/esm/resources-119ae117.js +0 -23
- package/dist/esm/resources-244d70ca.js +0 -22
- package/dist/esm/resources-3f56d4e7.js +0 -19
- package/dist/esm/resources-57625076.js +0 -63
- package/dist/esm/resources-5b213c89.js +0 -35
- package/dist/esm/resources-61eab899.js +0 -20
- package/dist/esm/resources-745dec87.js +0 -34
- package/dist/esm/resources-9494c015.js +0 -21
- package/dist/esm/resources-d6566b8a.js +0 -62
- package/dist/esm/resources-d7e0fbbf.js +0 -24
- package/dist/esm/ro-b973c654.js +0 -66
- package/dist/esm/ru-59a7f10b.js +0 -126
- package/dist/esm/shared-list-render-097ee366.js +0 -339
- package/dist/esm/sk-a00e5b97.js +0 -148
- package/dist/esm/sl-55c8a748.js +0 -168
- package/dist/esm/solution-store-ca4d55de.js +0 -1352
- package/dist/esm/sortableComponent-52b99f0f.js +0 -2745
- package/dist/esm/sr-e4fc3293.js +0 -101
- package/dist/esm/sv-f0782d2a.js +0 -71
- package/dist/esm/t9n-b33c486a.js +0 -103
- package/dist/esm/th-d2abb499.js +0 -65
- package/dist/esm/time-f99aceff.js +0 -286
- package/dist/esm/time-zones-211c88e3.js +0 -365
- package/dist/esm/tr-512413e1.js +0 -66
- package/dist/esm/uk-79fe44f1.js +0 -104
- package/dist/esm/utils-6f13e31e.js +0 -142
- package/dist/esm/utils-d2524a35.js +0 -2274
- package/dist/esm/utils-d67a6d71.js +0 -65
- package/dist/esm/vi-53b51e7a.js +0 -70
- package/dist/esm/zh-cn-7d19a53a.js +0 -94
- package/dist/esm/zh-hk-4fb6c3eb.js +0 -92
- package/dist/esm/zh-tw-6a5d2c2b.js +0 -92
- package/dist/solutions-components/p-022d51db.js +0 -6
- package/dist/solutions-components/p-03f3cf77.js +0 -6
- package/dist/solutions-components/p-03ffbb1b.js +0 -6
- package/dist/solutions-components/p-07d30a6b.entry.js +0 -11
- package/dist/solutions-components/p-0a165419.js +0 -18
- package/dist/solutions-components/p-0a1a9ff1.js +0 -6
- package/dist/solutions-components/p-0a311862.entry.js +0 -6
- package/dist/solutions-components/p-0a64be62.js +0 -6
- package/dist/solutions-components/p-0ded20f0.js +0 -6
- package/dist/solutions-components/p-0ef9d36b.js +0 -11
- package/dist/solutions-components/p-100bf9eb.entry.js +0 -6
- package/dist/solutions-components/p-12be6545.js +0 -11
- package/dist/solutions-components/p-14f027b5.js +0 -11
- package/dist/solutions-components/p-150394be.js +0 -11
- package/dist/solutions-components/p-1692858b.entry.js +0 -11
- package/dist/solutions-components/p-16b24981.entry.js +0 -11
- package/dist/solutions-components/p-174aa4da.js +0 -16
- package/dist/solutions-components/p-1826154b.entry.js +0 -11
- package/dist/solutions-components/p-1a047db6.js +0 -6
- package/dist/solutions-components/p-1b229454.js +0 -11
- package/dist/solutions-components/p-1c249530.js +0 -11
- package/dist/solutions-components/p-1ce2608d.js +0 -12
- package/dist/solutions-components/p-1df2d94d.js +0 -6
- package/dist/solutions-components/p-1e4aca17.js +0 -6
- package/dist/solutions-components/p-2058b5d9.js +0 -36
- package/dist/solutions-components/p-216ae423.entry.js +0 -11
- package/dist/solutions-components/p-219f0273.entry.js +0 -6
- package/dist/solutions-components/p-2230d4cc.js +0 -11
- package/dist/solutions-components/p-27d462c0.js +0 -11
- package/dist/solutions-components/p-283e344a.entry.js +0 -6
- package/dist/solutions-components/p-2868a42b.js +0 -11
- package/dist/solutions-components/p-290dee0b.js +0 -21
- package/dist/solutions-components/p-2a059548.entry.js +0 -11
- package/dist/solutions-components/p-2bb9b365.entry.js +0 -11
- package/dist/solutions-components/p-2c423f9c.js +0 -6
- package/dist/solutions-components/p-2caf1f94.js +0 -11
- package/dist/solutions-components/p-2cb47eff.entry.js +0 -11
- package/dist/solutions-components/p-2cc624c3.entry.js +0 -21
- package/dist/solutions-components/p-2d2b06db.entry.js +0 -6
- package/dist/solutions-components/p-2d2dcf8a.js +0 -6
- package/dist/solutions-components/p-2d5e428d.js +0 -6
- package/dist/solutions-components/p-2e7d005f.js +0 -6
- package/dist/solutions-components/p-3016bf77.entry.js +0 -11
- package/dist/solutions-components/p-313fcf40.entry.js +0 -6
- package/dist/solutions-components/p-31524836.entry.js +0 -6
- package/dist/solutions-components/p-3244e59a.js +0 -11
- package/dist/solutions-components/p-3305a61f.entry.js +0 -6
- package/dist/solutions-components/p-365169c2.js +0 -11
- package/dist/solutions-components/p-36e59391.js +0 -143
- package/dist/solutions-components/p-372e4640.js +0 -6
- package/dist/solutions-components/p-3792492a.js +0 -11
- package/dist/solutions-components/p-38a87c63.js +0 -11
- package/dist/solutions-components/p-3a4fbcf6.entry.js +0 -6
- package/dist/solutions-components/p-3d0e9be4.js +0 -6
- package/dist/solutions-components/p-3d6f8c9e.entry.js +0 -29
- package/dist/solutions-components/p-3de85f54.entry.js +0 -6
- package/dist/solutions-components/p-3e3b7172.entry.js +0 -6
- package/dist/solutions-components/p-3e828614.js +0 -11
- package/dist/solutions-components/p-42710186.entry.js +0 -11
- package/dist/solutions-components/p-44270ade.entry.js +0 -6
- package/dist/solutions-components/p-47398e76.entry.js +0 -11
- package/dist/solutions-components/p-47a0be20.js +0 -11
- package/dist/solutions-components/p-4881885b.entry.js +0 -23
- package/dist/solutions-components/p-4920ee12.js +0 -11
- package/dist/solutions-components/p-496b7a1f.entry.js +0 -6
- package/dist/solutions-components/p-4aafcac7.entry.js +0 -6
- package/dist/solutions-components/p-4b9b7778.js +0 -11
- package/dist/solutions-components/p-4cfe3d80.entry.js +0 -11
- package/dist/solutions-components/p-4feaf7db.entry.js +0 -11
- package/dist/solutions-components/p-50323300.entry.js +0 -6
- package/dist/solutions-components/p-50ab7903.js +0 -6
- package/dist/solutions-components/p-50c2d3e5.entry.js +0 -6
- package/dist/solutions-components/p-50e2a33b.js +0 -6
- package/dist/solutions-components/p-51abfcb7.js +0 -6
- package/dist/solutions-components/p-524a996f.js +0 -6
- package/dist/solutions-components/p-52dad11d.entry.js +0 -6
- package/dist/solutions-components/p-54879c84.entry.js +0 -11
- package/dist/solutions-components/p-5550f101.entry.js +0 -17
- package/dist/solutions-components/p-565bc712.entry.js +0 -12
- package/dist/solutions-components/p-5714f5ca.entry.js +0 -6
- package/dist/solutions-components/p-57be85fb.entry.js +0 -11
- package/dist/solutions-components/p-58d8ee47.js +0 -6
- package/dist/solutions-components/p-5959580d.js +0 -6
- package/dist/solutions-components/p-59695ccc.js +0 -6
- package/dist/solutions-components/p-59b3e946.entry.js +0 -17
- package/dist/solutions-components/p-5ba9df82.js +0 -17
- package/dist/solutions-components/p-5d398871.entry.js +0 -6
- package/dist/solutions-components/p-5dcec135.js +0 -21
- package/dist/solutions-components/p-5de67b86.js +0 -11
- package/dist/solutions-components/p-5ee4ba5c.js +0 -6
- package/dist/solutions-components/p-6147cfb4.entry.js +0 -6
- package/dist/solutions-components/p-62dadb51.js +0 -6
- package/dist/solutions-components/p-62ed6a7a.entry.js +0 -6
- package/dist/solutions-components/p-63f9004a.js +0 -6
- package/dist/solutions-components/p-64906bb5.entry.js +0 -11
- package/dist/solutions-components/p-64a34d92.js +0 -11
- package/dist/solutions-components/p-65fe42ef.js +0 -6
- package/dist/solutions-components/p-66cee72b.js +0 -17
- package/dist/solutions-components/p-6b21efce.js +0 -6
- package/dist/solutions-components/p-6cf1225a.entry.js +0 -11
- package/dist/solutions-components/p-6d4db88b.entry.js +0 -17
- package/dist/solutions-components/p-6d894d47.entry.js +0 -11
- package/dist/solutions-components/p-6e0439fa.entry.js +0 -6
- package/dist/solutions-components/p-6e118057.js +0 -11
- package/dist/solutions-components/p-6eb37ed2.js +0 -7
- package/dist/solutions-components/p-6f594492.entry.js +0 -11
- package/dist/solutions-components/p-6fdbdfdd.entry.js +0 -6
- package/dist/solutions-components/p-70b46ea4.js +0 -6
- package/dist/solutions-components/p-70f2898c.entry.js +0 -6
- package/dist/solutions-components/p-720a12c0.js +0 -6
- package/dist/solutions-components/p-72bce122.entry.js +0 -6
- package/dist/solutions-components/p-72ee63b0.entry.js +0 -16
- package/dist/solutions-components/p-744d9575.js +0 -11
- package/dist/solutions-components/p-754a5334.js +0 -6
- package/dist/solutions-components/p-76efd680.entry.js +0 -11
- package/dist/solutions-components/p-77052872.entry.js +0 -6
- package/dist/solutions-components/p-7758a533.entry.js +0 -17
- package/dist/solutions-components/p-776995b1.entry.js +0 -6
- package/dist/solutions-components/p-7987d73b.entry.js +0 -6
- package/dist/solutions-components/p-7a641e36.entry.js +0 -6
- package/dist/solutions-components/p-7a820f38.js +0 -6
- package/dist/solutions-components/p-7b122a6e.entry.js +0 -6
- package/dist/solutions-components/p-7e762fa7.js +0 -6
- package/dist/solutions-components/p-7f147e8b.entry.js +0 -6
- package/dist/solutions-components/p-8208ba6c.entry.js +0 -6
- package/dist/solutions-components/p-82185ebf.entry.js +0 -12
- package/dist/solutions-components/p-8267d344.entry.js +0 -11
- package/dist/solutions-components/p-827037ce.entry.js +0 -16
- package/dist/solutions-components/p-88c6ece3.entry.js +0 -11
- package/dist/solutions-components/p-8a683cdc.js +0 -6
- package/dist/solutions-components/p-8bce991a.js +0 -11
- package/dist/solutions-components/p-8be24ce9.entry.js +0 -6
- package/dist/solutions-components/p-8bfa18b7.js +0 -11
- package/dist/solutions-components/p-8d0f6824.entry.js +0 -6
- package/dist/solutions-components/p-8d453a3a.js +0 -16
- package/dist/solutions-components/p-8ef003ec.entry.js +0 -6
- package/dist/solutions-components/p-8fb651e5.entry.js +0 -6
- package/dist/solutions-components/p-92008b90.js +0 -6
- package/dist/solutions-components/p-926664d9.js +0 -61
- package/dist/solutions-components/p-94397114.js +0 -6
- package/dist/solutions-components/p-94805d7f.entry.js +0 -11
- package/dist/solutions-components/p-94c518ff.entry.js +0 -6
- package/dist/solutions-components/p-97aa6766.js +0 -6
- package/dist/solutions-components/p-984ce9da.js +0 -11
- package/dist/solutions-components/p-9850998d.entry.js +0 -6
- package/dist/solutions-components/p-99e6cb74.js +0 -6
- package/dist/solutions-components/p-9d12b3f1.entry.js +0 -17
- package/dist/solutions-components/p-9ee72dba.entry.js +0 -22
- package/dist/solutions-components/p-9f3aebd0.entry.js +0 -11
- package/dist/solutions-components/p-a095dadb.entry.js +0 -17
- package/dist/solutions-components/p-a0a77f45.entry.js +0 -20
- package/dist/solutions-components/p-a1093fee.entry.js +0 -6
- package/dist/solutions-components/p-a2a2c6a2.entry.js +0 -11
- package/dist/solutions-components/p-a2dbc38b.entry.js +0 -11
- package/dist/solutions-components/p-a4255b97.js +0 -6
- package/dist/solutions-components/p-a471ceb6.js +0 -11
- package/dist/solutions-components/p-a4e73041.js +0 -6
- package/dist/solutions-components/p-a5fc6ab7.js +0 -11
- package/dist/solutions-components/p-a60a2c8b.entry.js +0 -11
- package/dist/solutions-components/p-a6a0df5c.entry.js +0 -6
- package/dist/solutions-components/p-a7395caf.js +0 -6
- package/dist/solutions-components/p-a7761371.js +0 -6
- package/dist/solutions-components/p-a8b70e9a.js +0 -6
- package/dist/solutions-components/p-a8d83bc3.entry.js +0 -11
- package/dist/solutions-components/p-aa36f70e.entry.js +0 -6
- package/dist/solutions-components/p-aaa56cbf.js +0 -11
- package/dist/solutions-components/p-abd68931.entry.js +0 -6
- package/dist/solutions-components/p-ac92679c.js +0 -6
- package/dist/solutions-components/p-ad1c27ef.entry.js +0 -6
- package/dist/solutions-components/p-ad441ffa.entry.js +0 -11
- package/dist/solutions-components/p-add869b6.entry.js +0 -11
- package/dist/solutions-components/p-b310402f.entry.js +0 -11
- package/dist/solutions-components/p-b4d708cd.entry.js +0 -6
- package/dist/solutions-components/p-b5575639.js +0 -11
- package/dist/solutions-components/p-b5b66530.js +0 -11
- package/dist/solutions-components/p-b7e63ac2.js +0 -6
- package/dist/solutions-components/p-b8eee32e.js +0 -6
- package/dist/solutions-components/p-b9b2f7a9.entry.js +0 -6
- package/dist/solutions-components/p-bb040eab.entry.js +0 -29
- package/dist/solutions-components/p-bcc2d4ff.js +0 -6
- package/dist/solutions-components/p-bcce9d28.entry.js +0 -17
- package/dist/solutions-components/p-c151da98.entry.js +0 -11
- package/dist/solutions-components/p-c1fa5dae.entry.js +0 -11
- package/dist/solutions-components/p-c346ca43.entry.js +0 -6
- package/dist/solutions-components/p-c60c5991.entry.js +0 -11
- package/dist/solutions-components/p-c6255e3c.entry.js +0 -6
- package/dist/solutions-components/p-c66faddf.entry.js +0 -6
- package/dist/solutions-components/p-c6ef8cca.js +0 -6
- package/dist/solutions-components/p-c718930a.entry.js +0 -6
- package/dist/solutions-components/p-c7bfe120.entry.js +0 -6
- package/dist/solutions-components/p-c94b0e1a.js +0 -16
- package/dist/solutions-components/p-c976ac3b.entry.js +0 -47
- package/dist/solutions-components/p-cadbe907.entry.js +0 -11
- package/dist/solutions-components/p-cba6953c.js +0 -6
- package/dist/solutions-components/p-d00ca970.entry.js +0 -6
- package/dist/solutions-components/p-d2033cfa.entry.js +0 -6
- package/dist/solutions-components/p-d2ee8b82.js +0 -6
- package/dist/solutions-components/p-d301b8fd.js +0 -6
- package/dist/solutions-components/p-d4ab82e3.entry.js +0 -17
- package/dist/solutions-components/p-d7711a84.entry.js +0 -11
- package/dist/solutions-components/p-d7871f0d.entry.js +0 -11
- package/dist/solutions-components/p-d9b8b4e2.entry.js +0 -6
- package/dist/solutions-components/p-d9e930c8.js +0 -11
- package/dist/solutions-components/p-dc264663.entry.js +0 -17
- package/dist/solutions-components/p-dcaae1e9.entry.js +0 -11
- package/dist/solutions-components/p-dcebc541.js +0 -6
- package/dist/solutions-components/p-de3719f2.entry.js +0 -22
- package/dist/solutions-components/p-dec62e5d.js +0 -488
- package/dist/solutions-components/p-e068dfb9.entry.js +0 -11
- package/dist/solutions-components/p-e0b65115.js +0 -11
- package/dist/solutions-components/p-e0f10596.entry.js +0 -6
- package/dist/solutions-components/p-e0fd4006.js +0 -6
- package/dist/solutions-components/p-e26cf5f5.entry.js +0 -11
- package/dist/solutions-components/p-e378184f.entry.js +0 -6
- package/dist/solutions-components/p-e6798e38.js +0 -6
- package/dist/solutions-components/p-ea8d2558.js +0 -6
- package/dist/solutions-components/p-ef187f1d.js +0 -6
- package/dist/solutions-components/p-ef67c743.js +0 -11
- package/dist/solutions-components/p-efca5cea.entry.js +0 -6
- package/dist/solutions-components/p-f359c162.entry.js +0 -11
- package/dist/solutions-components/p-f3e3a4d5.entry.js +0 -6
- package/dist/solutions-components/p-f4360468.entry.js +0 -11
- package/dist/solutions-components/p-f4d7f757.js +0 -6
- package/dist/solutions-components/p-f550ebc1.entry.js +0 -6
- package/dist/solutions-components/p-f69ca69c.js +0 -6
- package/dist/solutions-components/p-f6c3501c.js +0 -16
- package/dist/solutions-components/p-f6eeac1b.entry.js +0 -17
- package/dist/solutions-components/p-f72fa647.entry.js +0 -12
- package/dist/solutions-components/p-f7e45464.js +0 -6
- package/dist/solutions-components/p-f7ffcd95.js +0 -6
- package/dist/solutions-components/p-f8d23498.js +0 -11
- package/dist/solutions-components/p-fa56b7c2.js +0 -11
- package/dist/solutions-components/p-fa7c50f8.entry.js +0 -6
- package/dist/solutions-components/p-fd9fb1ba.entry.js +0 -11
- package/dist/solutions-components/p-fdb201ff.entry.js +0 -17
- package/dist/solutions-components/p-fe0add26.js +0 -6
- package/dist/solutions-components/p-ff105078.entry.js +0 -11
- package/dist/solutions-components/p-ff639390.entry.js +0 -6
- /package/dist/cjs/{index-04255c05.js → index-c44fa2e4.js} +0 -0
- /package/dist/esm/{index-87ec7c0a.js → index-8fda18f5.js} +0 -0
- /package/dist/solutions-components/{p-fc17754b.js → p-33ff2b9e.js} +0 -0
@@ -0,0 +1,2274 @@
|
|
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
|
+
var colorString$1 = {exports: {}};
|
7
|
+
|
8
|
+
var colorName = {
|
9
|
+
"aliceblue": [240, 248, 255],
|
10
|
+
"antiquewhite": [250, 235, 215],
|
11
|
+
"aqua": [0, 255, 255],
|
12
|
+
"aquamarine": [127, 255, 212],
|
13
|
+
"azure": [240, 255, 255],
|
14
|
+
"beige": [245, 245, 220],
|
15
|
+
"bisque": [255, 228, 196],
|
16
|
+
"black": [0, 0, 0],
|
17
|
+
"blanchedalmond": [255, 235, 205],
|
18
|
+
"blue": [0, 0, 255],
|
19
|
+
"blueviolet": [138, 43, 226],
|
20
|
+
"brown": [165, 42, 42],
|
21
|
+
"burlywood": [222, 184, 135],
|
22
|
+
"cadetblue": [95, 158, 160],
|
23
|
+
"chartreuse": [127, 255, 0],
|
24
|
+
"chocolate": [210, 105, 30],
|
25
|
+
"coral": [255, 127, 80],
|
26
|
+
"cornflowerblue": [100, 149, 237],
|
27
|
+
"cornsilk": [255, 248, 220],
|
28
|
+
"crimson": [220, 20, 60],
|
29
|
+
"cyan": [0, 255, 255],
|
30
|
+
"darkblue": [0, 0, 139],
|
31
|
+
"darkcyan": [0, 139, 139],
|
32
|
+
"darkgoldenrod": [184, 134, 11],
|
33
|
+
"darkgray": [169, 169, 169],
|
34
|
+
"darkgreen": [0, 100, 0],
|
35
|
+
"darkgrey": [169, 169, 169],
|
36
|
+
"darkkhaki": [189, 183, 107],
|
37
|
+
"darkmagenta": [139, 0, 139],
|
38
|
+
"darkolivegreen": [85, 107, 47],
|
39
|
+
"darkorange": [255, 140, 0],
|
40
|
+
"darkorchid": [153, 50, 204],
|
41
|
+
"darkred": [139, 0, 0],
|
42
|
+
"darksalmon": [233, 150, 122],
|
43
|
+
"darkseagreen": [143, 188, 143],
|
44
|
+
"darkslateblue": [72, 61, 139],
|
45
|
+
"darkslategray": [47, 79, 79],
|
46
|
+
"darkslategrey": [47, 79, 79],
|
47
|
+
"darkturquoise": [0, 206, 209],
|
48
|
+
"darkviolet": [148, 0, 211],
|
49
|
+
"deeppink": [255, 20, 147],
|
50
|
+
"deepskyblue": [0, 191, 255],
|
51
|
+
"dimgray": [105, 105, 105],
|
52
|
+
"dimgrey": [105, 105, 105],
|
53
|
+
"dodgerblue": [30, 144, 255],
|
54
|
+
"firebrick": [178, 34, 34],
|
55
|
+
"floralwhite": [255, 250, 240],
|
56
|
+
"forestgreen": [34, 139, 34],
|
57
|
+
"fuchsia": [255, 0, 255],
|
58
|
+
"gainsboro": [220, 220, 220],
|
59
|
+
"ghostwhite": [248, 248, 255],
|
60
|
+
"gold": [255, 215, 0],
|
61
|
+
"goldenrod": [218, 165, 32],
|
62
|
+
"gray": [128, 128, 128],
|
63
|
+
"green": [0, 128, 0],
|
64
|
+
"greenyellow": [173, 255, 47],
|
65
|
+
"grey": [128, 128, 128],
|
66
|
+
"honeydew": [240, 255, 240],
|
67
|
+
"hotpink": [255, 105, 180],
|
68
|
+
"indianred": [205, 92, 92],
|
69
|
+
"indigo": [75, 0, 130],
|
70
|
+
"ivory": [255, 255, 240],
|
71
|
+
"khaki": [240, 230, 140],
|
72
|
+
"lavender": [230, 230, 250],
|
73
|
+
"lavenderblush": [255, 240, 245],
|
74
|
+
"lawngreen": [124, 252, 0],
|
75
|
+
"lemonchiffon": [255, 250, 205],
|
76
|
+
"lightblue": [173, 216, 230],
|
77
|
+
"lightcoral": [240, 128, 128],
|
78
|
+
"lightcyan": [224, 255, 255],
|
79
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
80
|
+
"lightgray": [211, 211, 211],
|
81
|
+
"lightgreen": [144, 238, 144],
|
82
|
+
"lightgrey": [211, 211, 211],
|
83
|
+
"lightpink": [255, 182, 193],
|
84
|
+
"lightsalmon": [255, 160, 122],
|
85
|
+
"lightseagreen": [32, 178, 170],
|
86
|
+
"lightskyblue": [135, 206, 250],
|
87
|
+
"lightslategray": [119, 136, 153],
|
88
|
+
"lightslategrey": [119, 136, 153],
|
89
|
+
"lightsteelblue": [176, 196, 222],
|
90
|
+
"lightyellow": [255, 255, 224],
|
91
|
+
"lime": [0, 255, 0],
|
92
|
+
"limegreen": [50, 205, 50],
|
93
|
+
"linen": [250, 240, 230],
|
94
|
+
"magenta": [255, 0, 255],
|
95
|
+
"maroon": [128, 0, 0],
|
96
|
+
"mediumaquamarine": [102, 205, 170],
|
97
|
+
"mediumblue": [0, 0, 205],
|
98
|
+
"mediumorchid": [186, 85, 211],
|
99
|
+
"mediumpurple": [147, 112, 219],
|
100
|
+
"mediumseagreen": [60, 179, 113],
|
101
|
+
"mediumslateblue": [123, 104, 238],
|
102
|
+
"mediumspringgreen": [0, 250, 154],
|
103
|
+
"mediumturquoise": [72, 209, 204],
|
104
|
+
"mediumvioletred": [199, 21, 133],
|
105
|
+
"midnightblue": [25, 25, 112],
|
106
|
+
"mintcream": [245, 255, 250],
|
107
|
+
"mistyrose": [255, 228, 225],
|
108
|
+
"moccasin": [255, 228, 181],
|
109
|
+
"navajowhite": [255, 222, 173],
|
110
|
+
"navy": [0, 0, 128],
|
111
|
+
"oldlace": [253, 245, 230],
|
112
|
+
"olive": [128, 128, 0],
|
113
|
+
"olivedrab": [107, 142, 35],
|
114
|
+
"orange": [255, 165, 0],
|
115
|
+
"orangered": [255, 69, 0],
|
116
|
+
"orchid": [218, 112, 214],
|
117
|
+
"palegoldenrod": [238, 232, 170],
|
118
|
+
"palegreen": [152, 251, 152],
|
119
|
+
"paleturquoise": [175, 238, 238],
|
120
|
+
"palevioletred": [219, 112, 147],
|
121
|
+
"papayawhip": [255, 239, 213],
|
122
|
+
"peachpuff": [255, 218, 185],
|
123
|
+
"peru": [205, 133, 63],
|
124
|
+
"pink": [255, 192, 203],
|
125
|
+
"plum": [221, 160, 221],
|
126
|
+
"powderblue": [176, 224, 230],
|
127
|
+
"purple": [128, 0, 128],
|
128
|
+
"rebeccapurple": [102, 51, 153],
|
129
|
+
"red": [255, 0, 0],
|
130
|
+
"rosybrown": [188, 143, 143],
|
131
|
+
"royalblue": [65, 105, 225],
|
132
|
+
"saddlebrown": [139, 69, 19],
|
133
|
+
"salmon": [250, 128, 114],
|
134
|
+
"sandybrown": [244, 164, 96],
|
135
|
+
"seagreen": [46, 139, 87],
|
136
|
+
"seashell": [255, 245, 238],
|
137
|
+
"sienna": [160, 82, 45],
|
138
|
+
"silver": [192, 192, 192],
|
139
|
+
"skyblue": [135, 206, 235],
|
140
|
+
"slateblue": [106, 90, 205],
|
141
|
+
"slategray": [112, 128, 144],
|
142
|
+
"slategrey": [112, 128, 144],
|
143
|
+
"snow": [255, 250, 250],
|
144
|
+
"springgreen": [0, 255, 127],
|
145
|
+
"steelblue": [70, 130, 180],
|
146
|
+
"tan": [210, 180, 140],
|
147
|
+
"teal": [0, 128, 128],
|
148
|
+
"thistle": [216, 191, 216],
|
149
|
+
"tomato": [255, 99, 71],
|
150
|
+
"turquoise": [64, 224, 208],
|
151
|
+
"violet": [238, 130, 238],
|
152
|
+
"wheat": [245, 222, 179],
|
153
|
+
"white": [255, 255, 255],
|
154
|
+
"whitesmoke": [245, 245, 245],
|
155
|
+
"yellow": [255, 255, 0],
|
156
|
+
"yellowgreen": [154, 205, 50]
|
157
|
+
};
|
158
|
+
|
159
|
+
var simpleSwizzle = {exports: {}};
|
160
|
+
|
161
|
+
var isArrayish$1 = function isArrayish(obj) {
|
162
|
+
if (!obj || typeof obj === 'string') {
|
163
|
+
return false;
|
164
|
+
}
|
165
|
+
|
166
|
+
return obj instanceof Array || Array.isArray(obj) ||
|
167
|
+
(obj.length >= 0 && (obj.splice instanceof Function ||
|
168
|
+
(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
|
169
|
+
};
|
170
|
+
|
171
|
+
var isArrayish = isArrayish$1;
|
172
|
+
|
173
|
+
var concat = Array.prototype.concat;
|
174
|
+
var slice = Array.prototype.slice;
|
175
|
+
|
176
|
+
var swizzle$1 = simpleSwizzle.exports = function swizzle(args) {
|
177
|
+
var results = [];
|
178
|
+
|
179
|
+
for (var i = 0, len = args.length; i < len; i++) {
|
180
|
+
var arg = args[i];
|
181
|
+
|
182
|
+
if (isArrayish(arg)) {
|
183
|
+
// http://jsperf.com/javascript-array-concat-vs-push/98
|
184
|
+
results = concat.call(results, slice.call(arg));
|
185
|
+
} else {
|
186
|
+
results.push(arg);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
return results;
|
191
|
+
};
|
192
|
+
|
193
|
+
swizzle$1.wrap = function (fn) {
|
194
|
+
return function () {
|
195
|
+
return fn(swizzle$1(arguments));
|
196
|
+
};
|
197
|
+
};
|
198
|
+
|
199
|
+
/* MIT license */
|
200
|
+
|
201
|
+
var colorNames = colorName;
|
202
|
+
var swizzle = simpleSwizzle.exports;
|
203
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
204
|
+
|
205
|
+
var reverseNames = Object.create(null);
|
206
|
+
|
207
|
+
// create a list of reverse color names
|
208
|
+
for (var name in colorNames) {
|
209
|
+
if (hasOwnProperty.call(colorNames, name)) {
|
210
|
+
reverseNames[colorNames[name]] = name;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
var cs = colorString$1.exports = {
|
215
|
+
to: {},
|
216
|
+
get: {}
|
217
|
+
};
|
218
|
+
|
219
|
+
cs.get = function (string) {
|
220
|
+
var prefix = string.substring(0, 3).toLowerCase();
|
221
|
+
var val;
|
222
|
+
var model;
|
223
|
+
switch (prefix) {
|
224
|
+
case 'hsl':
|
225
|
+
val = cs.get.hsl(string);
|
226
|
+
model = 'hsl';
|
227
|
+
break;
|
228
|
+
case 'hwb':
|
229
|
+
val = cs.get.hwb(string);
|
230
|
+
model = 'hwb';
|
231
|
+
break;
|
232
|
+
default:
|
233
|
+
val = cs.get.rgb(string);
|
234
|
+
model = 'rgb';
|
235
|
+
break;
|
236
|
+
}
|
237
|
+
|
238
|
+
if (!val) {
|
239
|
+
return null;
|
240
|
+
}
|
241
|
+
|
242
|
+
return {model: model, value: val};
|
243
|
+
};
|
244
|
+
|
245
|
+
cs.get.rgb = function (string) {
|
246
|
+
if (!string) {
|
247
|
+
return null;
|
248
|
+
}
|
249
|
+
|
250
|
+
var abbr = /^#([a-f0-9]{3,4})$/i;
|
251
|
+
var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
|
252
|
+
var rgba = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
253
|
+
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
254
|
+
var keyword = /^(\w+)$/;
|
255
|
+
|
256
|
+
var rgb = [0, 0, 0, 1];
|
257
|
+
var match;
|
258
|
+
var i;
|
259
|
+
var hexAlpha;
|
260
|
+
|
261
|
+
if (match = string.match(hex)) {
|
262
|
+
hexAlpha = match[2];
|
263
|
+
match = match[1];
|
264
|
+
|
265
|
+
for (i = 0; i < 3; i++) {
|
266
|
+
// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
|
267
|
+
var i2 = i * 2;
|
268
|
+
rgb[i] = parseInt(match.slice(i2, i2 + 2), 16);
|
269
|
+
}
|
270
|
+
|
271
|
+
if (hexAlpha) {
|
272
|
+
rgb[3] = parseInt(hexAlpha, 16) / 255;
|
273
|
+
}
|
274
|
+
} else if (match = string.match(abbr)) {
|
275
|
+
match = match[1];
|
276
|
+
hexAlpha = match[3];
|
277
|
+
|
278
|
+
for (i = 0; i < 3; i++) {
|
279
|
+
rgb[i] = parseInt(match[i] + match[i], 16);
|
280
|
+
}
|
281
|
+
|
282
|
+
if (hexAlpha) {
|
283
|
+
rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;
|
284
|
+
}
|
285
|
+
} else if (match = string.match(rgba)) {
|
286
|
+
for (i = 0; i < 3; i++) {
|
287
|
+
rgb[i] = parseInt(match[i + 1], 0);
|
288
|
+
}
|
289
|
+
|
290
|
+
if (match[4]) {
|
291
|
+
if (match[5]) {
|
292
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
293
|
+
} else {
|
294
|
+
rgb[3] = parseFloat(match[4]);
|
295
|
+
}
|
296
|
+
}
|
297
|
+
} else if (match = string.match(per)) {
|
298
|
+
for (i = 0; i < 3; i++) {
|
299
|
+
rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
|
300
|
+
}
|
301
|
+
|
302
|
+
if (match[4]) {
|
303
|
+
if (match[5]) {
|
304
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
305
|
+
} else {
|
306
|
+
rgb[3] = parseFloat(match[4]);
|
307
|
+
}
|
308
|
+
}
|
309
|
+
} else if (match = string.match(keyword)) {
|
310
|
+
if (match[1] === 'transparent') {
|
311
|
+
return [0, 0, 0, 0];
|
312
|
+
}
|
313
|
+
|
314
|
+
if (!hasOwnProperty.call(colorNames, match[1])) {
|
315
|
+
return null;
|
316
|
+
}
|
317
|
+
|
318
|
+
rgb = colorNames[match[1]];
|
319
|
+
rgb[3] = 1;
|
320
|
+
|
321
|
+
return rgb;
|
322
|
+
} else {
|
323
|
+
return null;
|
324
|
+
}
|
325
|
+
|
326
|
+
for (i = 0; i < 3; i++) {
|
327
|
+
rgb[i] = clamp(rgb[i], 0, 255);
|
328
|
+
}
|
329
|
+
rgb[3] = clamp(rgb[3], 0, 1);
|
330
|
+
|
331
|
+
return rgb;
|
332
|
+
};
|
333
|
+
|
334
|
+
cs.get.hsl = function (string) {
|
335
|
+
if (!string) {
|
336
|
+
return null;
|
337
|
+
}
|
338
|
+
|
339
|
+
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*)?\)$/;
|
340
|
+
var match = string.match(hsl);
|
341
|
+
|
342
|
+
if (match) {
|
343
|
+
var alpha = parseFloat(match[4]);
|
344
|
+
var h = ((parseFloat(match[1]) % 360) + 360) % 360;
|
345
|
+
var s = clamp(parseFloat(match[2]), 0, 100);
|
346
|
+
var l = clamp(parseFloat(match[3]), 0, 100);
|
347
|
+
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
348
|
+
|
349
|
+
return [h, s, l, a];
|
350
|
+
}
|
351
|
+
|
352
|
+
return null;
|
353
|
+
};
|
354
|
+
|
355
|
+
cs.get.hwb = function (string) {
|
356
|
+
if (!string) {
|
357
|
+
return null;
|
358
|
+
}
|
359
|
+
|
360
|
+
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*)?\)$/;
|
361
|
+
var match = string.match(hwb);
|
362
|
+
|
363
|
+
if (match) {
|
364
|
+
var alpha = parseFloat(match[4]);
|
365
|
+
var h = ((parseFloat(match[1]) % 360) + 360) % 360;
|
366
|
+
var w = clamp(parseFloat(match[2]), 0, 100);
|
367
|
+
var b = clamp(parseFloat(match[3]), 0, 100);
|
368
|
+
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
369
|
+
return [h, w, b, a];
|
370
|
+
}
|
371
|
+
|
372
|
+
return null;
|
373
|
+
};
|
374
|
+
|
375
|
+
cs.to.hex = function () {
|
376
|
+
var rgba = swizzle(arguments);
|
377
|
+
|
378
|
+
return (
|
379
|
+
'#' +
|
380
|
+
hexDouble(rgba[0]) +
|
381
|
+
hexDouble(rgba[1]) +
|
382
|
+
hexDouble(rgba[2]) +
|
383
|
+
(rgba[3] < 1
|
384
|
+
? (hexDouble(Math.round(rgba[3] * 255)))
|
385
|
+
: '')
|
386
|
+
);
|
387
|
+
};
|
388
|
+
|
389
|
+
cs.to.rgb = function () {
|
390
|
+
var rgba = swizzle(arguments);
|
391
|
+
|
392
|
+
return rgba.length < 4 || rgba[3] === 1
|
393
|
+
? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'
|
394
|
+
: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';
|
395
|
+
};
|
396
|
+
|
397
|
+
cs.to.rgb.percent = function () {
|
398
|
+
var rgba = swizzle(arguments);
|
399
|
+
|
400
|
+
var r = Math.round(rgba[0] / 255 * 100);
|
401
|
+
var g = Math.round(rgba[1] / 255 * 100);
|
402
|
+
var b = Math.round(rgba[2] / 255 * 100);
|
403
|
+
|
404
|
+
return rgba.length < 4 || rgba[3] === 1
|
405
|
+
? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'
|
406
|
+
: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';
|
407
|
+
};
|
408
|
+
|
409
|
+
cs.to.hsl = function () {
|
410
|
+
var hsla = swizzle(arguments);
|
411
|
+
return hsla.length < 4 || hsla[3] === 1
|
412
|
+
? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'
|
413
|
+
: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';
|
414
|
+
};
|
415
|
+
|
416
|
+
// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
|
417
|
+
// (hwb have alpha optional & 1 is default value)
|
418
|
+
cs.to.hwb = function () {
|
419
|
+
var hwba = swizzle(arguments);
|
420
|
+
|
421
|
+
var a = '';
|
422
|
+
if (hwba.length >= 4 && hwba[3] !== 1) {
|
423
|
+
a = ', ' + hwba[3];
|
424
|
+
}
|
425
|
+
|
426
|
+
return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';
|
427
|
+
};
|
428
|
+
|
429
|
+
cs.to.keyword = function (rgb) {
|
430
|
+
return reverseNames[rgb.slice(0, 3)];
|
431
|
+
};
|
432
|
+
|
433
|
+
// helpers
|
434
|
+
function clamp(num, min, max) {
|
435
|
+
return Math.min(Math.max(min, num), max);
|
436
|
+
}
|
437
|
+
|
438
|
+
function hexDouble(num) {
|
439
|
+
var str = Math.round(num).toString(16).toUpperCase();
|
440
|
+
return (str.length < 2) ? '0' + str : str;
|
441
|
+
}
|
442
|
+
|
443
|
+
/* MIT license */
|
444
|
+
|
445
|
+
/* eslint-disable no-mixed-operators */
|
446
|
+
const cssKeywords = colorName;
|
447
|
+
|
448
|
+
// NOTE: conversions should only return primitive values (i.e. arrays, or
|
449
|
+
// values that give correct `typeof` results).
|
450
|
+
// do not use box values types (i.e. Number(), String(), etc.)
|
451
|
+
|
452
|
+
const reverseKeywords = {};
|
453
|
+
for (const key of Object.keys(cssKeywords)) {
|
454
|
+
reverseKeywords[cssKeywords[key]] = key;
|
455
|
+
}
|
456
|
+
|
457
|
+
const convert$2 = {
|
458
|
+
rgb: {channels: 3, labels: 'rgb'},
|
459
|
+
hsl: {channels: 3, labels: 'hsl'},
|
460
|
+
hsv: {channels: 3, labels: 'hsv'},
|
461
|
+
hwb: {channels: 3, labels: 'hwb'},
|
462
|
+
cmyk: {channels: 4, labels: 'cmyk'},
|
463
|
+
xyz: {channels: 3, labels: 'xyz'},
|
464
|
+
lab: {channels: 3, labels: 'lab'},
|
465
|
+
lch: {channels: 3, labels: 'lch'},
|
466
|
+
hex: {channels: 1, labels: ['hex']},
|
467
|
+
keyword: {channels: 1, labels: ['keyword']},
|
468
|
+
ansi16: {channels: 1, labels: ['ansi16']},
|
469
|
+
ansi256: {channels: 1, labels: ['ansi256']},
|
470
|
+
hcg: {channels: 3, labels: ['h', 'c', 'g']},
|
471
|
+
apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
|
472
|
+
gray: {channels: 1, labels: ['gray']}
|
473
|
+
};
|
474
|
+
|
475
|
+
var conversions$2 = convert$2;
|
476
|
+
|
477
|
+
// Hide .channels and .labels properties
|
478
|
+
for (const model of Object.keys(convert$2)) {
|
479
|
+
if (!('channels' in convert$2[model])) {
|
480
|
+
throw new Error('missing channels property: ' + model);
|
481
|
+
}
|
482
|
+
|
483
|
+
if (!('labels' in convert$2[model])) {
|
484
|
+
throw new Error('missing channel labels property: ' + model);
|
485
|
+
}
|
486
|
+
|
487
|
+
if (convert$2[model].labels.length !== convert$2[model].channels) {
|
488
|
+
throw new Error('channel and label counts mismatch: ' + model);
|
489
|
+
}
|
490
|
+
|
491
|
+
const {channels, labels} = convert$2[model];
|
492
|
+
delete convert$2[model].channels;
|
493
|
+
delete convert$2[model].labels;
|
494
|
+
Object.defineProperty(convert$2[model], 'channels', {value: channels});
|
495
|
+
Object.defineProperty(convert$2[model], 'labels', {value: labels});
|
496
|
+
}
|
497
|
+
|
498
|
+
convert$2.rgb.hsl = function (rgb) {
|
499
|
+
const r = rgb[0] / 255;
|
500
|
+
const g = rgb[1] / 255;
|
501
|
+
const b = rgb[2] / 255;
|
502
|
+
const min = Math.min(r, g, b);
|
503
|
+
const max = Math.max(r, g, b);
|
504
|
+
const delta = max - min;
|
505
|
+
let h;
|
506
|
+
let s;
|
507
|
+
|
508
|
+
if (max === min) {
|
509
|
+
h = 0;
|
510
|
+
} else if (r === max) {
|
511
|
+
h = (g - b) / delta;
|
512
|
+
} else if (g === max) {
|
513
|
+
h = 2 + (b - r) / delta;
|
514
|
+
} else if (b === max) {
|
515
|
+
h = 4 + (r - g) / delta;
|
516
|
+
}
|
517
|
+
|
518
|
+
h = Math.min(h * 60, 360);
|
519
|
+
|
520
|
+
if (h < 0) {
|
521
|
+
h += 360;
|
522
|
+
}
|
523
|
+
|
524
|
+
const l = (min + max) / 2;
|
525
|
+
|
526
|
+
if (max === min) {
|
527
|
+
s = 0;
|
528
|
+
} else if (l <= 0.5) {
|
529
|
+
s = delta / (max + min);
|
530
|
+
} else {
|
531
|
+
s = delta / (2 - max - min);
|
532
|
+
}
|
533
|
+
|
534
|
+
return [h, s * 100, l * 100];
|
535
|
+
};
|
536
|
+
|
537
|
+
convert$2.rgb.hsv = function (rgb) {
|
538
|
+
let rdif;
|
539
|
+
let gdif;
|
540
|
+
let bdif;
|
541
|
+
let h;
|
542
|
+
let s;
|
543
|
+
|
544
|
+
const r = rgb[0] / 255;
|
545
|
+
const g = rgb[1] / 255;
|
546
|
+
const b = rgb[2] / 255;
|
547
|
+
const v = Math.max(r, g, b);
|
548
|
+
const diff = v - Math.min(r, g, b);
|
549
|
+
const diffc = function (c) {
|
550
|
+
return (v - c) / 6 / diff + 1 / 2;
|
551
|
+
};
|
552
|
+
|
553
|
+
if (diff === 0) {
|
554
|
+
h = 0;
|
555
|
+
s = 0;
|
556
|
+
} else {
|
557
|
+
s = diff / v;
|
558
|
+
rdif = diffc(r);
|
559
|
+
gdif = diffc(g);
|
560
|
+
bdif = diffc(b);
|
561
|
+
|
562
|
+
if (r === v) {
|
563
|
+
h = bdif - gdif;
|
564
|
+
} else if (g === v) {
|
565
|
+
h = (1 / 3) + rdif - bdif;
|
566
|
+
} else if (b === v) {
|
567
|
+
h = (2 / 3) + gdif - rdif;
|
568
|
+
}
|
569
|
+
|
570
|
+
if (h < 0) {
|
571
|
+
h += 1;
|
572
|
+
} else if (h > 1) {
|
573
|
+
h -= 1;
|
574
|
+
}
|
575
|
+
}
|
576
|
+
|
577
|
+
return [
|
578
|
+
h * 360,
|
579
|
+
s * 100,
|
580
|
+
v * 100
|
581
|
+
];
|
582
|
+
};
|
583
|
+
|
584
|
+
convert$2.rgb.hwb = function (rgb) {
|
585
|
+
const r = rgb[0];
|
586
|
+
const g = rgb[1];
|
587
|
+
let b = rgb[2];
|
588
|
+
const h = convert$2.rgb.hsl(rgb)[0];
|
589
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
590
|
+
|
591
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
592
|
+
|
593
|
+
return [h, w * 100, b * 100];
|
594
|
+
};
|
595
|
+
|
596
|
+
convert$2.rgb.cmyk = function (rgb) {
|
597
|
+
const r = rgb[0] / 255;
|
598
|
+
const g = rgb[1] / 255;
|
599
|
+
const b = rgb[2] / 255;
|
600
|
+
|
601
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
602
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
603
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
604
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
605
|
+
|
606
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
607
|
+
};
|
608
|
+
|
609
|
+
function comparativeDistance(x, y) {
|
610
|
+
/*
|
611
|
+
See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
|
612
|
+
*/
|
613
|
+
return (
|
614
|
+
((x[0] - y[0]) ** 2) +
|
615
|
+
((x[1] - y[1]) ** 2) +
|
616
|
+
((x[2] - y[2]) ** 2)
|
617
|
+
);
|
618
|
+
}
|
619
|
+
|
620
|
+
convert$2.rgb.keyword = function (rgb) {
|
621
|
+
const reversed = reverseKeywords[rgb];
|
622
|
+
if (reversed) {
|
623
|
+
return reversed;
|
624
|
+
}
|
625
|
+
|
626
|
+
let currentClosestDistance = Infinity;
|
627
|
+
let currentClosestKeyword;
|
628
|
+
|
629
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
630
|
+
const value = cssKeywords[keyword];
|
631
|
+
|
632
|
+
// Compute comparative distance
|
633
|
+
const distance = comparativeDistance(rgb, value);
|
634
|
+
|
635
|
+
// Check if its less, if so set as closest
|
636
|
+
if (distance < currentClosestDistance) {
|
637
|
+
currentClosestDistance = distance;
|
638
|
+
currentClosestKeyword = keyword;
|
639
|
+
}
|
640
|
+
}
|
641
|
+
|
642
|
+
return currentClosestKeyword;
|
643
|
+
};
|
644
|
+
|
645
|
+
convert$2.keyword.rgb = function (keyword) {
|
646
|
+
return cssKeywords[keyword];
|
647
|
+
};
|
648
|
+
|
649
|
+
convert$2.rgb.xyz = function (rgb) {
|
650
|
+
let r = rgb[0] / 255;
|
651
|
+
let g = rgb[1] / 255;
|
652
|
+
let b = rgb[2] / 255;
|
653
|
+
|
654
|
+
// Assume sRGB
|
655
|
+
r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
|
656
|
+
g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
|
657
|
+
b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
|
658
|
+
|
659
|
+
const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
|
660
|
+
const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
|
661
|
+
const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
|
662
|
+
|
663
|
+
return [x * 100, y * 100, z * 100];
|
664
|
+
};
|
665
|
+
|
666
|
+
convert$2.rgb.lab = function (rgb) {
|
667
|
+
const xyz = convert$2.rgb.xyz(rgb);
|
668
|
+
let x = xyz[0];
|
669
|
+
let y = xyz[1];
|
670
|
+
let z = xyz[2];
|
671
|
+
|
672
|
+
x /= 95.047;
|
673
|
+
y /= 100;
|
674
|
+
z /= 108.883;
|
675
|
+
|
676
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
677
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
678
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
679
|
+
|
680
|
+
const l = (116 * y) - 16;
|
681
|
+
const a = 500 * (x - y);
|
682
|
+
const b = 200 * (y - z);
|
683
|
+
|
684
|
+
return [l, a, b];
|
685
|
+
};
|
686
|
+
|
687
|
+
convert$2.hsl.rgb = function (hsl) {
|
688
|
+
const h = hsl[0] / 360;
|
689
|
+
const s = hsl[1] / 100;
|
690
|
+
const l = hsl[2] / 100;
|
691
|
+
let t2;
|
692
|
+
let t3;
|
693
|
+
let val;
|
694
|
+
|
695
|
+
if (s === 0) {
|
696
|
+
val = l * 255;
|
697
|
+
return [val, val, val];
|
698
|
+
}
|
699
|
+
|
700
|
+
if (l < 0.5) {
|
701
|
+
t2 = l * (1 + s);
|
702
|
+
} else {
|
703
|
+
t2 = l + s - l * s;
|
704
|
+
}
|
705
|
+
|
706
|
+
const t1 = 2 * l - t2;
|
707
|
+
|
708
|
+
const rgb = [0, 0, 0];
|
709
|
+
for (let i = 0; i < 3; i++) {
|
710
|
+
t3 = h + 1 / 3 * -(i - 1);
|
711
|
+
if (t3 < 0) {
|
712
|
+
t3++;
|
713
|
+
}
|
714
|
+
|
715
|
+
if (t3 > 1) {
|
716
|
+
t3--;
|
717
|
+
}
|
718
|
+
|
719
|
+
if (6 * t3 < 1) {
|
720
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
721
|
+
} else if (2 * t3 < 1) {
|
722
|
+
val = t2;
|
723
|
+
} else if (3 * t3 < 2) {
|
724
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
725
|
+
} else {
|
726
|
+
val = t1;
|
727
|
+
}
|
728
|
+
|
729
|
+
rgb[i] = val * 255;
|
730
|
+
}
|
731
|
+
|
732
|
+
return rgb;
|
733
|
+
};
|
734
|
+
|
735
|
+
convert$2.hsl.hsv = function (hsl) {
|
736
|
+
const h = hsl[0];
|
737
|
+
let s = hsl[1] / 100;
|
738
|
+
let l = hsl[2] / 100;
|
739
|
+
let smin = s;
|
740
|
+
const lmin = Math.max(l, 0.01);
|
741
|
+
|
742
|
+
l *= 2;
|
743
|
+
s *= (l <= 1) ? l : 2 - l;
|
744
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
745
|
+
const v = (l + s) / 2;
|
746
|
+
const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
|
747
|
+
|
748
|
+
return [h, sv * 100, v * 100];
|
749
|
+
};
|
750
|
+
|
751
|
+
convert$2.hsv.rgb = function (hsv) {
|
752
|
+
const h = hsv[0] / 60;
|
753
|
+
const s = hsv[1] / 100;
|
754
|
+
let v = hsv[2] / 100;
|
755
|
+
const hi = Math.floor(h) % 6;
|
756
|
+
|
757
|
+
const f = h - Math.floor(h);
|
758
|
+
const p = 255 * v * (1 - s);
|
759
|
+
const q = 255 * v * (1 - (s * f));
|
760
|
+
const t = 255 * v * (1 - (s * (1 - f)));
|
761
|
+
v *= 255;
|
762
|
+
|
763
|
+
switch (hi) {
|
764
|
+
case 0:
|
765
|
+
return [v, t, p];
|
766
|
+
case 1:
|
767
|
+
return [q, v, p];
|
768
|
+
case 2:
|
769
|
+
return [p, v, t];
|
770
|
+
case 3:
|
771
|
+
return [p, q, v];
|
772
|
+
case 4:
|
773
|
+
return [t, p, v];
|
774
|
+
case 5:
|
775
|
+
return [v, p, q];
|
776
|
+
}
|
777
|
+
};
|
778
|
+
|
779
|
+
convert$2.hsv.hsl = function (hsv) {
|
780
|
+
const h = hsv[0];
|
781
|
+
const s = hsv[1] / 100;
|
782
|
+
const v = hsv[2] / 100;
|
783
|
+
const vmin = Math.max(v, 0.01);
|
784
|
+
let sl;
|
785
|
+
let l;
|
786
|
+
|
787
|
+
l = (2 - s) * v;
|
788
|
+
const lmin = (2 - s) * vmin;
|
789
|
+
sl = s * vmin;
|
790
|
+
sl /= (lmin <= 1) ? lmin : 2 - lmin;
|
791
|
+
sl = sl || 0;
|
792
|
+
l /= 2;
|
793
|
+
|
794
|
+
return [h, sl * 100, l * 100];
|
795
|
+
};
|
796
|
+
|
797
|
+
// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
|
798
|
+
convert$2.hwb.rgb = function (hwb) {
|
799
|
+
const h = hwb[0] / 360;
|
800
|
+
let wh = hwb[1] / 100;
|
801
|
+
let bl = hwb[2] / 100;
|
802
|
+
const ratio = wh + bl;
|
803
|
+
let f;
|
804
|
+
|
805
|
+
// Wh + bl cant be > 1
|
806
|
+
if (ratio > 1) {
|
807
|
+
wh /= ratio;
|
808
|
+
bl /= ratio;
|
809
|
+
}
|
810
|
+
|
811
|
+
const i = Math.floor(6 * h);
|
812
|
+
const v = 1 - bl;
|
813
|
+
f = 6 * h - i;
|
814
|
+
|
815
|
+
if ((i & 0x01) !== 0) {
|
816
|
+
f = 1 - f;
|
817
|
+
}
|
818
|
+
|
819
|
+
const n = wh + f * (v - wh); // Linear interpolation
|
820
|
+
|
821
|
+
let r;
|
822
|
+
let g;
|
823
|
+
let b;
|
824
|
+
/* eslint-disable max-statements-per-line,no-multi-spaces */
|
825
|
+
switch (i) {
|
826
|
+
default:
|
827
|
+
case 6:
|
828
|
+
case 0: r = v; g = n; b = wh; break;
|
829
|
+
case 1: r = n; g = v; b = wh; break;
|
830
|
+
case 2: r = wh; g = v; b = n; break;
|
831
|
+
case 3: r = wh; g = n; b = v; break;
|
832
|
+
case 4: r = n; g = wh; b = v; break;
|
833
|
+
case 5: r = v; g = wh; b = n; break;
|
834
|
+
}
|
835
|
+
/* eslint-enable max-statements-per-line,no-multi-spaces */
|
836
|
+
|
837
|
+
return [r * 255, g * 255, b * 255];
|
838
|
+
};
|
839
|
+
|
840
|
+
convert$2.cmyk.rgb = function (cmyk) {
|
841
|
+
const c = cmyk[0] / 100;
|
842
|
+
const m = cmyk[1] / 100;
|
843
|
+
const y = cmyk[2] / 100;
|
844
|
+
const k = cmyk[3] / 100;
|
845
|
+
|
846
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
847
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
848
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
849
|
+
|
850
|
+
return [r * 255, g * 255, b * 255];
|
851
|
+
};
|
852
|
+
|
853
|
+
convert$2.xyz.rgb = function (xyz) {
|
854
|
+
const x = xyz[0] / 100;
|
855
|
+
const y = xyz[1] / 100;
|
856
|
+
const z = xyz[2] / 100;
|
857
|
+
let r;
|
858
|
+
let g;
|
859
|
+
let b;
|
860
|
+
|
861
|
+
r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
|
862
|
+
g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
|
863
|
+
b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
|
864
|
+
|
865
|
+
// Assume sRGB
|
866
|
+
r = r > 0.0031308
|
867
|
+
? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
|
868
|
+
: r * 12.92;
|
869
|
+
|
870
|
+
g = g > 0.0031308
|
871
|
+
? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
|
872
|
+
: g * 12.92;
|
873
|
+
|
874
|
+
b = b > 0.0031308
|
875
|
+
? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
|
876
|
+
: b * 12.92;
|
877
|
+
|
878
|
+
r = Math.min(Math.max(0, r), 1);
|
879
|
+
g = Math.min(Math.max(0, g), 1);
|
880
|
+
b = Math.min(Math.max(0, b), 1);
|
881
|
+
|
882
|
+
return [r * 255, g * 255, b * 255];
|
883
|
+
};
|
884
|
+
|
885
|
+
convert$2.xyz.lab = function (xyz) {
|
886
|
+
let x = xyz[0];
|
887
|
+
let y = xyz[1];
|
888
|
+
let z = xyz[2];
|
889
|
+
|
890
|
+
x /= 95.047;
|
891
|
+
y /= 100;
|
892
|
+
z /= 108.883;
|
893
|
+
|
894
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
895
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
896
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
897
|
+
|
898
|
+
const l = (116 * y) - 16;
|
899
|
+
const a = 500 * (x - y);
|
900
|
+
const b = 200 * (y - z);
|
901
|
+
|
902
|
+
return [l, a, b];
|
903
|
+
};
|
904
|
+
|
905
|
+
convert$2.lab.xyz = function (lab) {
|
906
|
+
const l = lab[0];
|
907
|
+
const a = lab[1];
|
908
|
+
const b = lab[2];
|
909
|
+
let x;
|
910
|
+
let y;
|
911
|
+
let z;
|
912
|
+
|
913
|
+
y = (l + 16) / 116;
|
914
|
+
x = a / 500 + y;
|
915
|
+
z = y - b / 200;
|
916
|
+
|
917
|
+
const y2 = y ** 3;
|
918
|
+
const x2 = x ** 3;
|
919
|
+
const z2 = z ** 3;
|
920
|
+
y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
921
|
+
x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
922
|
+
z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
923
|
+
|
924
|
+
x *= 95.047;
|
925
|
+
y *= 100;
|
926
|
+
z *= 108.883;
|
927
|
+
|
928
|
+
return [x, y, z];
|
929
|
+
};
|
930
|
+
|
931
|
+
convert$2.lab.lch = function (lab) {
|
932
|
+
const l = lab[0];
|
933
|
+
const a = lab[1];
|
934
|
+
const b = lab[2];
|
935
|
+
let h;
|
936
|
+
|
937
|
+
const hr = Math.atan2(b, a);
|
938
|
+
h = hr * 360 / 2 / Math.PI;
|
939
|
+
|
940
|
+
if (h < 0) {
|
941
|
+
h += 360;
|
942
|
+
}
|
943
|
+
|
944
|
+
const c = Math.sqrt(a * a + b * b);
|
945
|
+
|
946
|
+
return [l, c, h];
|
947
|
+
};
|
948
|
+
|
949
|
+
convert$2.lch.lab = function (lch) {
|
950
|
+
const l = lch[0];
|
951
|
+
const c = lch[1];
|
952
|
+
const h = lch[2];
|
953
|
+
|
954
|
+
const hr = h / 360 * 2 * Math.PI;
|
955
|
+
const a = c * Math.cos(hr);
|
956
|
+
const b = c * Math.sin(hr);
|
957
|
+
|
958
|
+
return [l, a, b];
|
959
|
+
};
|
960
|
+
|
961
|
+
convert$2.rgb.ansi16 = function (args, saturation = null) {
|
962
|
+
const [r, g, b] = args;
|
963
|
+
let value = saturation === null ? convert$2.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
|
964
|
+
|
965
|
+
value = Math.round(value / 50);
|
966
|
+
|
967
|
+
if (value === 0) {
|
968
|
+
return 30;
|
969
|
+
}
|
970
|
+
|
971
|
+
let ansi = 30
|
972
|
+
+ ((Math.round(b / 255) << 2)
|
973
|
+
| (Math.round(g / 255) << 1)
|
974
|
+
| Math.round(r / 255));
|
975
|
+
|
976
|
+
if (value === 2) {
|
977
|
+
ansi += 60;
|
978
|
+
}
|
979
|
+
|
980
|
+
return ansi;
|
981
|
+
};
|
982
|
+
|
983
|
+
convert$2.hsv.ansi16 = function (args) {
|
984
|
+
// Optimization here; we already know the value and don't need to get
|
985
|
+
// it converted for us.
|
986
|
+
return convert$2.rgb.ansi16(convert$2.hsv.rgb(args), args[2]);
|
987
|
+
};
|
988
|
+
|
989
|
+
convert$2.rgb.ansi256 = function (args) {
|
990
|
+
const r = args[0];
|
991
|
+
const g = args[1];
|
992
|
+
const b = args[2];
|
993
|
+
|
994
|
+
// We use the extended greyscale palette here, with the exception of
|
995
|
+
// black and white. normal palette only has 4 greyscale shades.
|
996
|
+
if (r === g && g === b) {
|
997
|
+
if (r < 8) {
|
998
|
+
return 16;
|
999
|
+
}
|
1000
|
+
|
1001
|
+
if (r > 248) {
|
1002
|
+
return 231;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
return Math.round(((r - 8) / 247) * 24) + 232;
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
const ansi = 16
|
1009
|
+
+ (36 * Math.round(r / 255 * 5))
|
1010
|
+
+ (6 * Math.round(g / 255 * 5))
|
1011
|
+
+ Math.round(b / 255 * 5);
|
1012
|
+
|
1013
|
+
return ansi;
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
convert$2.ansi16.rgb = function (args) {
|
1017
|
+
let color = args % 10;
|
1018
|
+
|
1019
|
+
// Handle greyscale
|
1020
|
+
if (color === 0 || color === 7) {
|
1021
|
+
if (args > 50) {
|
1022
|
+
color += 3.5;
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
color = color / 10.5 * 255;
|
1026
|
+
|
1027
|
+
return [color, color, color];
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
1031
|
+
const r = ((color & 1) * mult) * 255;
|
1032
|
+
const g = (((color >> 1) & 1) * mult) * 255;
|
1033
|
+
const b = (((color >> 2) & 1) * mult) * 255;
|
1034
|
+
|
1035
|
+
return [r, g, b];
|
1036
|
+
};
|
1037
|
+
|
1038
|
+
convert$2.ansi256.rgb = function (args) {
|
1039
|
+
// Handle greyscale
|
1040
|
+
if (args >= 232) {
|
1041
|
+
const c = (args - 232) * 10 + 8;
|
1042
|
+
return [c, c, c];
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
args -= 16;
|
1046
|
+
|
1047
|
+
let rem;
|
1048
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
1049
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
1050
|
+
const b = (rem % 6) / 5 * 255;
|
1051
|
+
|
1052
|
+
return [r, g, b];
|
1053
|
+
};
|
1054
|
+
|
1055
|
+
convert$2.rgb.hex = function (args) {
|
1056
|
+
const integer = ((Math.round(args[0]) & 0xFF) << 16)
|
1057
|
+
+ ((Math.round(args[1]) & 0xFF) << 8)
|
1058
|
+
+ (Math.round(args[2]) & 0xFF);
|
1059
|
+
|
1060
|
+
const string = integer.toString(16).toUpperCase();
|
1061
|
+
return '000000'.substring(string.length) + string;
|
1062
|
+
};
|
1063
|
+
|
1064
|
+
convert$2.hex.rgb = function (args) {
|
1065
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
1066
|
+
if (!match) {
|
1067
|
+
return [0, 0, 0];
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
let colorString = match[0];
|
1071
|
+
|
1072
|
+
if (match[0].length === 3) {
|
1073
|
+
colorString = colorString.split('').map(char => {
|
1074
|
+
return char + char;
|
1075
|
+
}).join('');
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
const integer = parseInt(colorString, 16);
|
1079
|
+
const r = (integer >> 16) & 0xFF;
|
1080
|
+
const g = (integer >> 8) & 0xFF;
|
1081
|
+
const b = integer & 0xFF;
|
1082
|
+
|
1083
|
+
return [r, g, b];
|
1084
|
+
};
|
1085
|
+
|
1086
|
+
convert$2.rgb.hcg = function (rgb) {
|
1087
|
+
const r = rgb[0] / 255;
|
1088
|
+
const g = rgb[1] / 255;
|
1089
|
+
const b = rgb[2] / 255;
|
1090
|
+
const max = Math.max(Math.max(r, g), b);
|
1091
|
+
const min = Math.min(Math.min(r, g), b);
|
1092
|
+
const chroma = (max - min);
|
1093
|
+
let grayscale;
|
1094
|
+
let hue;
|
1095
|
+
|
1096
|
+
if (chroma < 1) {
|
1097
|
+
grayscale = min / (1 - chroma);
|
1098
|
+
} else {
|
1099
|
+
grayscale = 0;
|
1100
|
+
}
|
1101
|
+
|
1102
|
+
if (chroma <= 0) {
|
1103
|
+
hue = 0;
|
1104
|
+
} else
|
1105
|
+
if (max === r) {
|
1106
|
+
hue = ((g - b) / chroma) % 6;
|
1107
|
+
} else
|
1108
|
+
if (max === g) {
|
1109
|
+
hue = 2 + (b - r) / chroma;
|
1110
|
+
} else {
|
1111
|
+
hue = 4 + (r - g) / chroma;
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
hue /= 6;
|
1115
|
+
hue %= 1;
|
1116
|
+
|
1117
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
1118
|
+
};
|
1119
|
+
|
1120
|
+
convert$2.hsl.hcg = function (hsl) {
|
1121
|
+
const s = hsl[1] / 100;
|
1122
|
+
const l = hsl[2] / 100;
|
1123
|
+
|
1124
|
+
const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
|
1125
|
+
|
1126
|
+
let f = 0;
|
1127
|
+
if (c < 1.0) {
|
1128
|
+
f = (l - 0.5 * c) / (1.0 - c);
|
1129
|
+
}
|
1130
|
+
|
1131
|
+
return [hsl[0], c * 100, f * 100];
|
1132
|
+
};
|
1133
|
+
|
1134
|
+
convert$2.hsv.hcg = function (hsv) {
|
1135
|
+
const s = hsv[1] / 100;
|
1136
|
+
const v = hsv[2] / 100;
|
1137
|
+
|
1138
|
+
const c = s * v;
|
1139
|
+
let f = 0;
|
1140
|
+
|
1141
|
+
if (c < 1.0) {
|
1142
|
+
f = (v - c) / (1 - c);
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
return [hsv[0], c * 100, f * 100];
|
1146
|
+
};
|
1147
|
+
|
1148
|
+
convert$2.hcg.rgb = function (hcg) {
|
1149
|
+
const h = hcg[0] / 360;
|
1150
|
+
const c = hcg[1] / 100;
|
1151
|
+
const g = hcg[2] / 100;
|
1152
|
+
|
1153
|
+
if (c === 0.0) {
|
1154
|
+
return [g * 255, g * 255, g * 255];
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
const pure = [0, 0, 0];
|
1158
|
+
const hi = (h % 1) * 6;
|
1159
|
+
const v = hi % 1;
|
1160
|
+
const w = 1 - v;
|
1161
|
+
let mg = 0;
|
1162
|
+
|
1163
|
+
/* eslint-disable max-statements-per-line */
|
1164
|
+
switch (Math.floor(hi)) {
|
1165
|
+
case 0:
|
1166
|
+
pure[0] = 1; pure[1] = v; pure[2] = 0; break;
|
1167
|
+
case 1:
|
1168
|
+
pure[0] = w; pure[1] = 1; pure[2] = 0; break;
|
1169
|
+
case 2:
|
1170
|
+
pure[0] = 0; pure[1] = 1; pure[2] = v; break;
|
1171
|
+
case 3:
|
1172
|
+
pure[0] = 0; pure[1] = w; pure[2] = 1; break;
|
1173
|
+
case 4:
|
1174
|
+
pure[0] = v; pure[1] = 0; pure[2] = 1; break;
|
1175
|
+
default:
|
1176
|
+
pure[0] = 1; pure[1] = 0; pure[2] = w;
|
1177
|
+
}
|
1178
|
+
/* eslint-enable max-statements-per-line */
|
1179
|
+
|
1180
|
+
mg = (1.0 - c) * g;
|
1181
|
+
|
1182
|
+
return [
|
1183
|
+
(c * pure[0] + mg) * 255,
|
1184
|
+
(c * pure[1] + mg) * 255,
|
1185
|
+
(c * pure[2] + mg) * 255
|
1186
|
+
];
|
1187
|
+
};
|
1188
|
+
|
1189
|
+
convert$2.hcg.hsv = function (hcg) {
|
1190
|
+
const c = hcg[1] / 100;
|
1191
|
+
const g = hcg[2] / 100;
|
1192
|
+
|
1193
|
+
const v = c + g * (1.0 - c);
|
1194
|
+
let f = 0;
|
1195
|
+
|
1196
|
+
if (v > 0.0) {
|
1197
|
+
f = c / v;
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
return [hcg[0], f * 100, v * 100];
|
1201
|
+
};
|
1202
|
+
|
1203
|
+
convert$2.hcg.hsl = function (hcg) {
|
1204
|
+
const c = hcg[1] / 100;
|
1205
|
+
const g = hcg[2] / 100;
|
1206
|
+
|
1207
|
+
const l = g * (1.0 - c) + 0.5 * c;
|
1208
|
+
let s = 0;
|
1209
|
+
|
1210
|
+
if (l > 0.0 && l < 0.5) {
|
1211
|
+
s = c / (2 * l);
|
1212
|
+
} else
|
1213
|
+
if (l >= 0.5 && l < 1.0) {
|
1214
|
+
s = c / (2 * (1 - l));
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
return [hcg[0], s * 100, l * 100];
|
1218
|
+
};
|
1219
|
+
|
1220
|
+
convert$2.hcg.hwb = function (hcg) {
|
1221
|
+
const c = hcg[1] / 100;
|
1222
|
+
const g = hcg[2] / 100;
|
1223
|
+
const v = c + g * (1.0 - c);
|
1224
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
1225
|
+
};
|
1226
|
+
|
1227
|
+
convert$2.hwb.hcg = function (hwb) {
|
1228
|
+
const w = hwb[1] / 100;
|
1229
|
+
const b = hwb[2] / 100;
|
1230
|
+
const v = 1 - b;
|
1231
|
+
const c = v - w;
|
1232
|
+
let g = 0;
|
1233
|
+
|
1234
|
+
if (c < 1) {
|
1235
|
+
g = (v - c) / (1 - c);
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
return [hwb[0], c * 100, g * 100];
|
1239
|
+
};
|
1240
|
+
|
1241
|
+
convert$2.apple.rgb = function (apple) {
|
1242
|
+
return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
|
1243
|
+
};
|
1244
|
+
|
1245
|
+
convert$2.rgb.apple = function (rgb) {
|
1246
|
+
return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
|
1247
|
+
};
|
1248
|
+
|
1249
|
+
convert$2.gray.rgb = function (args) {
|
1250
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
1251
|
+
};
|
1252
|
+
|
1253
|
+
convert$2.gray.hsl = function (args) {
|
1254
|
+
return [0, 0, args[0]];
|
1255
|
+
};
|
1256
|
+
|
1257
|
+
convert$2.gray.hsv = convert$2.gray.hsl;
|
1258
|
+
|
1259
|
+
convert$2.gray.hwb = function (gray) {
|
1260
|
+
return [0, 100, gray[0]];
|
1261
|
+
};
|
1262
|
+
|
1263
|
+
convert$2.gray.cmyk = function (gray) {
|
1264
|
+
return [0, 0, 0, gray[0]];
|
1265
|
+
};
|
1266
|
+
|
1267
|
+
convert$2.gray.lab = function (gray) {
|
1268
|
+
return [gray[0], 0, 0];
|
1269
|
+
};
|
1270
|
+
|
1271
|
+
convert$2.gray.hex = function (gray) {
|
1272
|
+
const val = Math.round(gray[0] / 100 * 255) & 0xFF;
|
1273
|
+
const integer = (val << 16) + (val << 8) + val;
|
1274
|
+
|
1275
|
+
const string = integer.toString(16).toUpperCase();
|
1276
|
+
return '000000'.substring(string.length) + string;
|
1277
|
+
};
|
1278
|
+
|
1279
|
+
convert$2.rgb.gray = function (rgb) {
|
1280
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
1281
|
+
return [val / 255 * 100];
|
1282
|
+
};
|
1283
|
+
|
1284
|
+
const conversions$1 = conversions$2;
|
1285
|
+
|
1286
|
+
/*
|
1287
|
+
This function routes a model to all other models.
|
1288
|
+
|
1289
|
+
all functions that are routed have a property `.conversion` attached
|
1290
|
+
to the returned synthetic function. This property is an array
|
1291
|
+
of strings, each with the steps in between the 'from' and 'to'
|
1292
|
+
color models (inclusive).
|
1293
|
+
|
1294
|
+
conversions that are not possible simply are not included.
|
1295
|
+
*/
|
1296
|
+
|
1297
|
+
function buildGraph() {
|
1298
|
+
const graph = {};
|
1299
|
+
// https://jsperf.com/object-keys-vs-for-in-with-closure/3
|
1300
|
+
const models = Object.keys(conversions$1);
|
1301
|
+
|
1302
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
1303
|
+
graph[models[i]] = {
|
1304
|
+
// http://jsperf.com/1-vs-infinity
|
1305
|
+
// micro-opt, but this is simple.
|
1306
|
+
distance: -1,
|
1307
|
+
parent: null
|
1308
|
+
};
|
1309
|
+
}
|
1310
|
+
|
1311
|
+
return graph;
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
// https://en.wikipedia.org/wiki/Breadth-first_search
|
1315
|
+
function deriveBFS(fromModel) {
|
1316
|
+
const graph = buildGraph();
|
1317
|
+
const queue = [fromModel]; // Unshift -> queue -> pop
|
1318
|
+
|
1319
|
+
graph[fromModel].distance = 0;
|
1320
|
+
|
1321
|
+
while (queue.length) {
|
1322
|
+
const current = queue.pop();
|
1323
|
+
const adjacents = Object.keys(conversions$1[current]);
|
1324
|
+
|
1325
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
1326
|
+
const adjacent = adjacents[i];
|
1327
|
+
const node = graph[adjacent];
|
1328
|
+
|
1329
|
+
if (node.distance === -1) {
|
1330
|
+
node.distance = graph[current].distance + 1;
|
1331
|
+
node.parent = current;
|
1332
|
+
queue.unshift(adjacent);
|
1333
|
+
}
|
1334
|
+
}
|
1335
|
+
}
|
1336
|
+
|
1337
|
+
return graph;
|
1338
|
+
}
|
1339
|
+
|
1340
|
+
function link(from, to) {
|
1341
|
+
return function (args) {
|
1342
|
+
return to(from(args));
|
1343
|
+
};
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
function wrapConversion(toModel, graph) {
|
1347
|
+
const path = [graph[toModel].parent, toModel];
|
1348
|
+
let fn = conversions$1[graph[toModel].parent][toModel];
|
1349
|
+
|
1350
|
+
let cur = graph[toModel].parent;
|
1351
|
+
while (graph[cur].parent) {
|
1352
|
+
path.unshift(graph[cur].parent);
|
1353
|
+
fn = link(conversions$1[graph[cur].parent][cur], fn);
|
1354
|
+
cur = graph[cur].parent;
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
fn.conversion = path;
|
1358
|
+
return fn;
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
var route$1 = function (fromModel) {
|
1362
|
+
const graph = deriveBFS(fromModel);
|
1363
|
+
const conversion = {};
|
1364
|
+
|
1365
|
+
const models = Object.keys(graph);
|
1366
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
1367
|
+
const toModel = models[i];
|
1368
|
+
const node = graph[toModel];
|
1369
|
+
|
1370
|
+
if (node.parent === null) {
|
1371
|
+
// No possible conversion, or this node is the source model.
|
1372
|
+
continue;
|
1373
|
+
}
|
1374
|
+
|
1375
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
return conversion;
|
1379
|
+
};
|
1380
|
+
|
1381
|
+
const conversions = conversions$2;
|
1382
|
+
const route = route$1;
|
1383
|
+
|
1384
|
+
const convert$1 = {};
|
1385
|
+
|
1386
|
+
const models = Object.keys(conversions);
|
1387
|
+
|
1388
|
+
function wrapRaw(fn) {
|
1389
|
+
const wrappedFn = function (...args) {
|
1390
|
+
const arg0 = args[0];
|
1391
|
+
if (arg0 === undefined || arg0 === null) {
|
1392
|
+
return arg0;
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
if (arg0.length > 1) {
|
1396
|
+
args = arg0;
|
1397
|
+
}
|
1398
|
+
|
1399
|
+
return fn(args);
|
1400
|
+
};
|
1401
|
+
|
1402
|
+
// Preserve .conversion property if there is one
|
1403
|
+
if ('conversion' in fn) {
|
1404
|
+
wrappedFn.conversion = fn.conversion;
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
return wrappedFn;
|
1408
|
+
}
|
1409
|
+
|
1410
|
+
function wrapRounded(fn) {
|
1411
|
+
const wrappedFn = function (...args) {
|
1412
|
+
const arg0 = args[0];
|
1413
|
+
|
1414
|
+
if (arg0 === undefined || arg0 === null) {
|
1415
|
+
return arg0;
|
1416
|
+
}
|
1417
|
+
|
1418
|
+
if (arg0.length > 1) {
|
1419
|
+
args = arg0;
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
const result = fn(args);
|
1423
|
+
|
1424
|
+
// We're assuming the result is an array here.
|
1425
|
+
// see notice in conversions.js; don't use box types
|
1426
|
+
// in conversion functions.
|
1427
|
+
if (typeof result === 'object') {
|
1428
|
+
for (let len = result.length, i = 0; i < len; i++) {
|
1429
|
+
result[i] = Math.round(result[i]);
|
1430
|
+
}
|
1431
|
+
}
|
1432
|
+
|
1433
|
+
return result;
|
1434
|
+
};
|
1435
|
+
|
1436
|
+
// Preserve .conversion property if there is one
|
1437
|
+
if ('conversion' in fn) {
|
1438
|
+
wrappedFn.conversion = fn.conversion;
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
return wrappedFn;
|
1442
|
+
}
|
1443
|
+
|
1444
|
+
models.forEach(fromModel => {
|
1445
|
+
convert$1[fromModel] = {};
|
1446
|
+
|
1447
|
+
Object.defineProperty(convert$1[fromModel], 'channels', {value: conversions[fromModel].channels});
|
1448
|
+
Object.defineProperty(convert$1[fromModel], 'labels', {value: conversions[fromModel].labels});
|
1449
|
+
|
1450
|
+
const routes = route(fromModel);
|
1451
|
+
const routeModels = Object.keys(routes);
|
1452
|
+
|
1453
|
+
routeModels.forEach(toModel => {
|
1454
|
+
const fn = routes[toModel];
|
1455
|
+
|
1456
|
+
convert$1[fromModel][toModel] = wrapRounded(fn);
|
1457
|
+
convert$1[fromModel][toModel].raw = wrapRaw(fn);
|
1458
|
+
});
|
1459
|
+
});
|
1460
|
+
|
1461
|
+
var colorConvert = convert$1;
|
1462
|
+
|
1463
|
+
const colorString = colorString$1.exports;
|
1464
|
+
const convert = colorConvert;
|
1465
|
+
|
1466
|
+
const skippedModels = [
|
1467
|
+
// To be honest, I don't really feel like keyword belongs in color convert, but eh.
|
1468
|
+
'keyword',
|
1469
|
+
|
1470
|
+
// Gray conflicts with some method names, and has its own method defined.
|
1471
|
+
'gray',
|
1472
|
+
|
1473
|
+
// Shouldn't really be in color-convert either...
|
1474
|
+
'hex',
|
1475
|
+
];
|
1476
|
+
|
1477
|
+
const hashedModelKeys = {};
|
1478
|
+
for (const model of Object.keys(convert)) {
|
1479
|
+
hashedModelKeys[[...convert[model].labels].sort().join('')] = model;
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
const limiters = {};
|
1483
|
+
|
1484
|
+
function Color(object, model) {
|
1485
|
+
if (!(this instanceof Color)) {
|
1486
|
+
return new Color(object, model);
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
if (model && model in skippedModels) {
|
1490
|
+
model = null;
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
if (model && !(model in convert)) {
|
1494
|
+
throw new Error('Unknown model: ' + model);
|
1495
|
+
}
|
1496
|
+
|
1497
|
+
let i;
|
1498
|
+
let channels;
|
1499
|
+
|
1500
|
+
if (object == null) { // eslint-disable-line no-eq-null,eqeqeq
|
1501
|
+
this.model = 'rgb';
|
1502
|
+
this.color = [0, 0, 0];
|
1503
|
+
this.valpha = 1;
|
1504
|
+
} else if (object instanceof Color) {
|
1505
|
+
this.model = object.model;
|
1506
|
+
this.color = [...object.color];
|
1507
|
+
this.valpha = object.valpha;
|
1508
|
+
} else if (typeof object === 'string') {
|
1509
|
+
const result = colorString.get(object);
|
1510
|
+
if (result === null) {
|
1511
|
+
throw new Error('Unable to parse color from string: ' + object);
|
1512
|
+
}
|
1513
|
+
|
1514
|
+
this.model = result.model;
|
1515
|
+
channels = convert[this.model].channels;
|
1516
|
+
this.color = result.value.slice(0, channels);
|
1517
|
+
this.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;
|
1518
|
+
} else if (object.length > 0) {
|
1519
|
+
this.model = model || 'rgb';
|
1520
|
+
channels = convert[this.model].channels;
|
1521
|
+
const newArray = Array.prototype.slice.call(object, 0, channels);
|
1522
|
+
this.color = zeroArray(newArray, channels);
|
1523
|
+
this.valpha = typeof object[channels] === 'number' ? object[channels] : 1;
|
1524
|
+
} else if (typeof object === 'number') {
|
1525
|
+
// This is always RGB - can be converted later on.
|
1526
|
+
this.model = 'rgb';
|
1527
|
+
this.color = [
|
1528
|
+
(object >> 16) & 0xFF,
|
1529
|
+
(object >> 8) & 0xFF,
|
1530
|
+
object & 0xFF,
|
1531
|
+
];
|
1532
|
+
this.valpha = 1;
|
1533
|
+
} else {
|
1534
|
+
this.valpha = 1;
|
1535
|
+
|
1536
|
+
const keys = Object.keys(object);
|
1537
|
+
if ('alpha' in object) {
|
1538
|
+
keys.splice(keys.indexOf('alpha'), 1);
|
1539
|
+
this.valpha = typeof object.alpha === 'number' ? object.alpha : 0;
|
1540
|
+
}
|
1541
|
+
|
1542
|
+
const hashedKeys = keys.sort().join('');
|
1543
|
+
if (!(hashedKeys in hashedModelKeys)) {
|
1544
|
+
throw new Error('Unable to parse color from object: ' + JSON.stringify(object));
|
1545
|
+
}
|
1546
|
+
|
1547
|
+
this.model = hashedModelKeys[hashedKeys];
|
1548
|
+
|
1549
|
+
const {labels} = convert[this.model];
|
1550
|
+
const color = [];
|
1551
|
+
for (i = 0; i < labels.length; i++) {
|
1552
|
+
color.push(object[labels[i]]);
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
this.color = zeroArray(color);
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
// Perform limitations (clamping, etc.)
|
1559
|
+
if (limiters[this.model]) {
|
1560
|
+
channels = convert[this.model].channels;
|
1561
|
+
for (i = 0; i < channels; i++) {
|
1562
|
+
const limit = limiters[this.model][i];
|
1563
|
+
if (limit) {
|
1564
|
+
this.color[i] = limit(this.color[i]);
|
1565
|
+
}
|
1566
|
+
}
|
1567
|
+
}
|
1568
|
+
|
1569
|
+
this.valpha = Math.max(0, Math.min(1, this.valpha));
|
1570
|
+
|
1571
|
+
if (Object.freeze) {
|
1572
|
+
Object.freeze(this);
|
1573
|
+
}
|
1574
|
+
}
|
1575
|
+
|
1576
|
+
Color.prototype = {
|
1577
|
+
toString() {
|
1578
|
+
return this.string();
|
1579
|
+
},
|
1580
|
+
|
1581
|
+
toJSON() {
|
1582
|
+
return this[this.model]();
|
1583
|
+
},
|
1584
|
+
|
1585
|
+
string(places) {
|
1586
|
+
let self = this.model in colorString.to ? this : this.rgb();
|
1587
|
+
self = self.round(typeof places === 'number' ? places : 1);
|
1588
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
1589
|
+
return colorString.to[self.model](args);
|
1590
|
+
},
|
1591
|
+
|
1592
|
+
percentString(places) {
|
1593
|
+
const self = this.rgb().round(typeof places === 'number' ? places : 1);
|
1594
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
1595
|
+
return colorString.to.rgb.percent(args);
|
1596
|
+
},
|
1597
|
+
|
1598
|
+
array() {
|
1599
|
+
return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
|
1600
|
+
},
|
1601
|
+
|
1602
|
+
object() {
|
1603
|
+
const result = {};
|
1604
|
+
const {channels} = convert[this.model];
|
1605
|
+
const {labels} = convert[this.model];
|
1606
|
+
|
1607
|
+
for (let i = 0; i < channels; i++) {
|
1608
|
+
result[labels[i]] = this.color[i];
|
1609
|
+
}
|
1610
|
+
|
1611
|
+
if (this.valpha !== 1) {
|
1612
|
+
result.alpha = this.valpha;
|
1613
|
+
}
|
1614
|
+
|
1615
|
+
return result;
|
1616
|
+
},
|
1617
|
+
|
1618
|
+
unitArray() {
|
1619
|
+
const rgb = this.rgb().color;
|
1620
|
+
rgb[0] /= 255;
|
1621
|
+
rgb[1] /= 255;
|
1622
|
+
rgb[2] /= 255;
|
1623
|
+
|
1624
|
+
if (this.valpha !== 1) {
|
1625
|
+
rgb.push(this.valpha);
|
1626
|
+
}
|
1627
|
+
|
1628
|
+
return rgb;
|
1629
|
+
},
|
1630
|
+
|
1631
|
+
unitObject() {
|
1632
|
+
const rgb = this.rgb().object();
|
1633
|
+
rgb.r /= 255;
|
1634
|
+
rgb.g /= 255;
|
1635
|
+
rgb.b /= 255;
|
1636
|
+
|
1637
|
+
if (this.valpha !== 1) {
|
1638
|
+
rgb.alpha = this.valpha;
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
return rgb;
|
1642
|
+
},
|
1643
|
+
|
1644
|
+
round(places) {
|
1645
|
+
places = Math.max(places || 0, 0);
|
1646
|
+
return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
|
1647
|
+
},
|
1648
|
+
|
1649
|
+
alpha(value) {
|
1650
|
+
if (value !== undefined) {
|
1651
|
+
return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
|
1652
|
+
}
|
1653
|
+
|
1654
|
+
return this.valpha;
|
1655
|
+
},
|
1656
|
+
|
1657
|
+
// Rgb
|
1658
|
+
red: getset('rgb', 0, maxfn(255)),
|
1659
|
+
green: getset('rgb', 1, maxfn(255)),
|
1660
|
+
blue: getset('rgb', 2, maxfn(255)),
|
1661
|
+
|
1662
|
+
hue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, value => ((value % 360) + 360) % 360),
|
1663
|
+
|
1664
|
+
saturationl: getset('hsl', 1, maxfn(100)),
|
1665
|
+
lightness: getset('hsl', 2, maxfn(100)),
|
1666
|
+
|
1667
|
+
saturationv: getset('hsv', 1, maxfn(100)),
|
1668
|
+
value: getset('hsv', 2, maxfn(100)),
|
1669
|
+
|
1670
|
+
chroma: getset('hcg', 1, maxfn(100)),
|
1671
|
+
gray: getset('hcg', 2, maxfn(100)),
|
1672
|
+
|
1673
|
+
white: getset('hwb', 1, maxfn(100)),
|
1674
|
+
wblack: getset('hwb', 2, maxfn(100)),
|
1675
|
+
|
1676
|
+
cyan: getset('cmyk', 0, maxfn(100)),
|
1677
|
+
magenta: getset('cmyk', 1, maxfn(100)),
|
1678
|
+
yellow: getset('cmyk', 2, maxfn(100)),
|
1679
|
+
black: getset('cmyk', 3, maxfn(100)),
|
1680
|
+
|
1681
|
+
x: getset('xyz', 0, maxfn(95.047)),
|
1682
|
+
y: getset('xyz', 1, maxfn(100)),
|
1683
|
+
z: getset('xyz', 2, maxfn(108.833)),
|
1684
|
+
|
1685
|
+
l: getset('lab', 0, maxfn(100)),
|
1686
|
+
a: getset('lab', 1),
|
1687
|
+
b: getset('lab', 2),
|
1688
|
+
|
1689
|
+
keyword(value) {
|
1690
|
+
if (value !== undefined) {
|
1691
|
+
return new Color(value);
|
1692
|
+
}
|
1693
|
+
|
1694
|
+
return convert[this.model].keyword(this.color);
|
1695
|
+
},
|
1696
|
+
|
1697
|
+
hex(value) {
|
1698
|
+
if (value !== undefined) {
|
1699
|
+
return new Color(value);
|
1700
|
+
}
|
1701
|
+
|
1702
|
+
return colorString.to.hex(this.rgb().round().color);
|
1703
|
+
},
|
1704
|
+
|
1705
|
+
hexa(value) {
|
1706
|
+
if (value !== undefined) {
|
1707
|
+
return new Color(value);
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
const rgbArray = this.rgb().round().color;
|
1711
|
+
|
1712
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
1713
|
+
if (alphaHex.length === 1) {
|
1714
|
+
alphaHex = '0' + alphaHex;
|
1715
|
+
}
|
1716
|
+
|
1717
|
+
return colorString.to.hex(rgbArray) + alphaHex;
|
1718
|
+
},
|
1719
|
+
|
1720
|
+
rgbNumber() {
|
1721
|
+
const rgb = this.rgb().color;
|
1722
|
+
return ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);
|
1723
|
+
},
|
1724
|
+
|
1725
|
+
luminosity() {
|
1726
|
+
// http://www.w3.org/TR/WCAG20/#relativeluminancedef
|
1727
|
+
const rgb = this.rgb().color;
|
1728
|
+
|
1729
|
+
const lum = [];
|
1730
|
+
for (const [i, element] of rgb.entries()) {
|
1731
|
+
const chan = element / 255;
|
1732
|
+
lum[i] = (chan <= 0.04045) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
|
1733
|
+
}
|
1734
|
+
|
1735
|
+
return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
|
1736
|
+
},
|
1737
|
+
|
1738
|
+
contrast(color2) {
|
1739
|
+
// http://www.w3.org/TR/WCAG20/#contrast-ratiodef
|
1740
|
+
const lum1 = this.luminosity();
|
1741
|
+
const lum2 = color2.luminosity();
|
1742
|
+
|
1743
|
+
if (lum1 > lum2) {
|
1744
|
+
return (lum1 + 0.05) / (lum2 + 0.05);
|
1745
|
+
}
|
1746
|
+
|
1747
|
+
return (lum2 + 0.05) / (lum1 + 0.05);
|
1748
|
+
},
|
1749
|
+
|
1750
|
+
level(color2) {
|
1751
|
+
// https://www.w3.org/TR/WCAG/#contrast-enhanced
|
1752
|
+
const contrastRatio = this.contrast(color2);
|
1753
|
+
if (contrastRatio >= 7) {
|
1754
|
+
return 'AAA';
|
1755
|
+
}
|
1756
|
+
|
1757
|
+
return (contrastRatio >= 4.5) ? 'AA' : '';
|
1758
|
+
},
|
1759
|
+
|
1760
|
+
isDark() {
|
1761
|
+
// YIQ equation from http://24ways.org/2010/calculating-color-contrast
|
1762
|
+
const rgb = this.rgb().color;
|
1763
|
+
const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;
|
1764
|
+
return yiq < 128;
|
1765
|
+
},
|
1766
|
+
|
1767
|
+
isLight() {
|
1768
|
+
return !this.isDark();
|
1769
|
+
},
|
1770
|
+
|
1771
|
+
negate() {
|
1772
|
+
const rgb = this.rgb();
|
1773
|
+
for (let i = 0; i < 3; i++) {
|
1774
|
+
rgb.color[i] = 255 - rgb.color[i];
|
1775
|
+
}
|
1776
|
+
|
1777
|
+
return rgb;
|
1778
|
+
},
|
1779
|
+
|
1780
|
+
lighten(ratio) {
|
1781
|
+
const hsl = this.hsl();
|
1782
|
+
hsl.color[2] += hsl.color[2] * ratio;
|
1783
|
+
return hsl;
|
1784
|
+
},
|
1785
|
+
|
1786
|
+
darken(ratio) {
|
1787
|
+
const hsl = this.hsl();
|
1788
|
+
hsl.color[2] -= hsl.color[2] * ratio;
|
1789
|
+
return hsl;
|
1790
|
+
},
|
1791
|
+
|
1792
|
+
saturate(ratio) {
|
1793
|
+
const hsl = this.hsl();
|
1794
|
+
hsl.color[1] += hsl.color[1] * ratio;
|
1795
|
+
return hsl;
|
1796
|
+
},
|
1797
|
+
|
1798
|
+
desaturate(ratio) {
|
1799
|
+
const hsl = this.hsl();
|
1800
|
+
hsl.color[1] -= hsl.color[1] * ratio;
|
1801
|
+
return hsl;
|
1802
|
+
},
|
1803
|
+
|
1804
|
+
whiten(ratio) {
|
1805
|
+
const hwb = this.hwb();
|
1806
|
+
hwb.color[1] += hwb.color[1] * ratio;
|
1807
|
+
return hwb;
|
1808
|
+
},
|
1809
|
+
|
1810
|
+
blacken(ratio) {
|
1811
|
+
const hwb = this.hwb();
|
1812
|
+
hwb.color[2] += hwb.color[2] * ratio;
|
1813
|
+
return hwb;
|
1814
|
+
},
|
1815
|
+
|
1816
|
+
grayscale() {
|
1817
|
+
// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
|
1818
|
+
const rgb = this.rgb().color;
|
1819
|
+
const value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
|
1820
|
+
return Color.rgb(value, value, value);
|
1821
|
+
},
|
1822
|
+
|
1823
|
+
fade(ratio) {
|
1824
|
+
return this.alpha(this.valpha - (this.valpha * ratio));
|
1825
|
+
},
|
1826
|
+
|
1827
|
+
opaquer(ratio) {
|
1828
|
+
return this.alpha(this.valpha + (this.valpha * ratio));
|
1829
|
+
},
|
1830
|
+
|
1831
|
+
rotate(degrees) {
|
1832
|
+
const hsl = this.hsl();
|
1833
|
+
let hue = hsl.color[0];
|
1834
|
+
hue = (hue + degrees) % 360;
|
1835
|
+
hue = hue < 0 ? 360 + hue : hue;
|
1836
|
+
hsl.color[0] = hue;
|
1837
|
+
return hsl;
|
1838
|
+
},
|
1839
|
+
|
1840
|
+
mix(mixinColor, weight) {
|
1841
|
+
// Ported from sass implementation in C
|
1842
|
+
// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
|
1843
|
+
if (!mixinColor || !mixinColor.rgb) {
|
1844
|
+
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor);
|
1845
|
+
}
|
1846
|
+
|
1847
|
+
const color1 = mixinColor.rgb();
|
1848
|
+
const color2 = this.rgb();
|
1849
|
+
const p = weight === undefined ? 0.5 : weight;
|
1850
|
+
|
1851
|
+
const w = 2 * p - 1;
|
1852
|
+
const a = color1.alpha() - color2.alpha();
|
1853
|
+
|
1854
|
+
const w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2;
|
1855
|
+
const w2 = 1 - w1;
|
1856
|
+
|
1857
|
+
return Color.rgb(
|
1858
|
+
w1 * color1.red() + w2 * color2.red(),
|
1859
|
+
w1 * color1.green() + w2 * color2.green(),
|
1860
|
+
w1 * color1.blue() + w2 * color2.blue(),
|
1861
|
+
color1.alpha() * p + color2.alpha() * (1 - p));
|
1862
|
+
},
|
1863
|
+
};
|
1864
|
+
|
1865
|
+
// Model conversion methods and static constructors
|
1866
|
+
for (const model of Object.keys(convert)) {
|
1867
|
+
if (skippedModels.includes(model)) {
|
1868
|
+
continue;
|
1869
|
+
}
|
1870
|
+
|
1871
|
+
const {channels} = convert[model];
|
1872
|
+
|
1873
|
+
// Conversion methods
|
1874
|
+
Color.prototype[model] = function (...args) {
|
1875
|
+
if (this.model === model) {
|
1876
|
+
return new Color(this);
|
1877
|
+
}
|
1878
|
+
|
1879
|
+
if (args.length > 0) {
|
1880
|
+
return new Color(args, model);
|
1881
|
+
}
|
1882
|
+
|
1883
|
+
return new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);
|
1884
|
+
};
|
1885
|
+
|
1886
|
+
// 'static' construction methods
|
1887
|
+
Color[model] = function (...args) {
|
1888
|
+
let color = args[0];
|
1889
|
+
if (typeof color === 'number') {
|
1890
|
+
color = zeroArray(args, channels);
|
1891
|
+
}
|
1892
|
+
|
1893
|
+
return new Color(color, model);
|
1894
|
+
};
|
1895
|
+
}
|
1896
|
+
|
1897
|
+
function roundTo(number, places) {
|
1898
|
+
return Number(number.toFixed(places));
|
1899
|
+
}
|
1900
|
+
|
1901
|
+
function roundToPlace(places) {
|
1902
|
+
return function (number) {
|
1903
|
+
return roundTo(number, places);
|
1904
|
+
};
|
1905
|
+
}
|
1906
|
+
|
1907
|
+
function getset(model, channel, modifier) {
|
1908
|
+
model = Array.isArray(model) ? model : [model];
|
1909
|
+
|
1910
|
+
for (const m of model) {
|
1911
|
+
(limiters[m] || (limiters[m] = []))[channel] = modifier;
|
1912
|
+
}
|
1913
|
+
|
1914
|
+
model = model[0];
|
1915
|
+
|
1916
|
+
return function (value) {
|
1917
|
+
let result;
|
1918
|
+
|
1919
|
+
if (value !== undefined) {
|
1920
|
+
if (modifier) {
|
1921
|
+
value = modifier(value);
|
1922
|
+
}
|
1923
|
+
|
1924
|
+
result = this[model]();
|
1925
|
+
result.color[channel] = value;
|
1926
|
+
return result;
|
1927
|
+
}
|
1928
|
+
|
1929
|
+
result = this[model]().color[channel];
|
1930
|
+
if (modifier) {
|
1931
|
+
result = modifier(result);
|
1932
|
+
}
|
1933
|
+
|
1934
|
+
return result;
|
1935
|
+
};
|
1936
|
+
}
|
1937
|
+
|
1938
|
+
function maxfn(max) {
|
1939
|
+
return function (v) {
|
1940
|
+
return Math.max(0, Math.min(max, v));
|
1941
|
+
};
|
1942
|
+
}
|
1943
|
+
|
1944
|
+
function assertArray(value) {
|
1945
|
+
return Array.isArray(value) ? value : [value];
|
1946
|
+
}
|
1947
|
+
|
1948
|
+
function zeroArray(array, length) {
|
1949
|
+
for (let i = 0; i < length; i++) {
|
1950
|
+
if (typeof array[i] !== 'number') {
|
1951
|
+
array[i] = 0;
|
1952
|
+
}
|
1953
|
+
}
|
1954
|
+
|
1955
|
+
return array;
|
1956
|
+
}
|
1957
|
+
|
1958
|
+
var color = Color;
|
1959
|
+
|
1960
|
+
const Color$1 = color;
|
1961
|
+
|
1962
|
+
/*!
|
1963
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1964
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
1965
|
+
* v2.13.0
|
1966
|
+
*/
|
1967
|
+
const CSS = {
|
1968
|
+
channel: "channel",
|
1969
|
+
channels: "channels",
|
1970
|
+
colorField: "color-field",
|
1971
|
+
colorFieldScope: "scope--color-field",
|
1972
|
+
colorMode: "color-mode",
|
1973
|
+
colorModeContainer: "color-mode-container",
|
1974
|
+
container: "container",
|
1975
|
+
control: "control",
|
1976
|
+
controlAndScope: "control-and-scope",
|
1977
|
+
controlSection: "control-section",
|
1978
|
+
deleteColor: "delete-color",
|
1979
|
+
header: "header",
|
1980
|
+
hexAndChannelsGroup: "hex-and-channels-group",
|
1981
|
+
hexOptions: "color-hex-options",
|
1982
|
+
hueScope: "scope--hue",
|
1983
|
+
hueSlider: "hue-slider",
|
1984
|
+
opacityScope: "scope--opacity",
|
1985
|
+
opacitySlider: "opacity-slider",
|
1986
|
+
preview: "preview",
|
1987
|
+
previewAndSliders: "preview-and-sliders",
|
1988
|
+
saveColor: "save-color",
|
1989
|
+
savedColor: "saved-color",
|
1990
|
+
savedColors: "saved-colors",
|
1991
|
+
savedColorsButtons: "saved-colors-buttons",
|
1992
|
+
savedColorsSection: "saved-colors-section",
|
1993
|
+
scope: "scope",
|
1994
|
+
section: "section",
|
1995
|
+
slider: "slider",
|
1996
|
+
sliders: "sliders",
|
1997
|
+
splitSection: "section--split",
|
1998
|
+
};
|
1999
|
+
const DEFAULT_COLOR = Color$1("#007AC2");
|
2000
|
+
const DEFAULT_STORAGE_KEY_PREFIX = "calcite-color-";
|
2001
|
+
const RGB_LIMITS = {
|
2002
|
+
r: 255,
|
2003
|
+
g: 255,
|
2004
|
+
b: 255,
|
2005
|
+
};
|
2006
|
+
const HSV_LIMITS = {
|
2007
|
+
h: 360,
|
2008
|
+
s: 100,
|
2009
|
+
v: 100,
|
2010
|
+
};
|
2011
|
+
// 0 and 360 represent the same value, so we limit the hue to 359
|
2012
|
+
const HUE_LIMIT_CONSTRAINED = HSV_LIMITS.h - 1;
|
2013
|
+
const OPACITY_LIMITS = {
|
2014
|
+
min: 0,
|
2015
|
+
max: 100,
|
2016
|
+
};
|
2017
|
+
const DIMENSIONS = {
|
2018
|
+
s: {
|
2019
|
+
slider: {
|
2020
|
+
height: 12,
|
2021
|
+
width: 104,
|
2022
|
+
},
|
2023
|
+
colorField: {
|
2024
|
+
height: 80,
|
2025
|
+
width: 160,
|
2026
|
+
},
|
2027
|
+
thumb: {
|
2028
|
+
radius: 7,
|
2029
|
+
},
|
2030
|
+
preview: {
|
2031
|
+
size: 20,
|
2032
|
+
},
|
2033
|
+
},
|
2034
|
+
m: {
|
2035
|
+
slider: {
|
2036
|
+
height: 12,
|
2037
|
+
width: 204,
|
2038
|
+
},
|
2039
|
+
colorField: {
|
2040
|
+
height: 150,
|
2041
|
+
width: 272,
|
2042
|
+
},
|
2043
|
+
thumb: {
|
2044
|
+
radius: 7,
|
2045
|
+
},
|
2046
|
+
preview: {
|
2047
|
+
size: 24,
|
2048
|
+
},
|
2049
|
+
},
|
2050
|
+
l: {
|
2051
|
+
slider: {
|
2052
|
+
height: 12,
|
2053
|
+
width: 384,
|
2054
|
+
},
|
2055
|
+
colorField: {
|
2056
|
+
height: 200,
|
2057
|
+
width: 464,
|
2058
|
+
},
|
2059
|
+
thumb: {
|
2060
|
+
radius: 7,
|
2061
|
+
},
|
2062
|
+
preview: {
|
2063
|
+
size: 32,
|
2064
|
+
},
|
2065
|
+
},
|
2066
|
+
};
|
2067
|
+
const SCOPE_SIZE = 1;
|
2068
|
+
|
2069
|
+
/*!
|
2070
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2071
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
2072
|
+
* v2.13.0
|
2073
|
+
*/
|
2074
|
+
const hexChar = /^[0-9A-F]$/i;
|
2075
|
+
const shorthandHex = /^#[0-9A-F]{3}$/i;
|
2076
|
+
const longhandHex = /^#[0-9A-F]{6}$/i;
|
2077
|
+
const shorthandHexWithAlpha = /^#[0-9A-F]{4}$/i;
|
2078
|
+
const longhandHexWithAlpha = /^#[0-9A-F]{8}$/i;
|
2079
|
+
const alphaToOpacity = (alpha) => Number((alpha * 100).toFixed());
|
2080
|
+
const opacityToAlpha = (opacity) => Number((opacity / 100).toFixed(2));
|
2081
|
+
function isValidHex(hex, hasAlpha = false) {
|
2082
|
+
return isShorthandHex(hex, hasAlpha) || isLonghandHex(hex, hasAlpha);
|
2083
|
+
}
|
2084
|
+
function evaluateHex(hex, length, pattern) {
|
2085
|
+
if (!hex) {
|
2086
|
+
return false;
|
2087
|
+
}
|
2088
|
+
return hex.length === length && pattern.test(hex);
|
2089
|
+
}
|
2090
|
+
function isShorthandHex(hex, hasAlpha = false) {
|
2091
|
+
const hexLength = hasAlpha ? 5 : 4;
|
2092
|
+
const hexPattern = hasAlpha ? shorthandHexWithAlpha : shorthandHex;
|
2093
|
+
return evaluateHex(hex, hexLength, hexPattern);
|
2094
|
+
}
|
2095
|
+
function isLonghandHex(hex, hasAlpha = false) {
|
2096
|
+
const hexLength = hasAlpha ? 9 : 7;
|
2097
|
+
const hexPattern = hasAlpha ? longhandHexWithAlpha : longhandHex;
|
2098
|
+
return evaluateHex(hex, hexLength, hexPattern);
|
2099
|
+
}
|
2100
|
+
function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
|
2101
|
+
hex = hex.toLowerCase();
|
2102
|
+
if (!hex.startsWith("#")) {
|
2103
|
+
hex = `#${hex}`;
|
2104
|
+
}
|
2105
|
+
if (isShorthandHex(hex, hasAlpha)) {
|
2106
|
+
return rgbToHex(hexToRGB(hex, hasAlpha));
|
2107
|
+
}
|
2108
|
+
if (hasAlpha && convertFromHexToHexa && isValidHex(hex, false /* we only care about RGB hex for conversion */)) {
|
2109
|
+
const isShorthand = isShorthandHex(hex, false);
|
2110
|
+
return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`, true));
|
2111
|
+
}
|
2112
|
+
return hex;
|
2113
|
+
}
|
2114
|
+
function hexify(color, hasAlpha = false) {
|
2115
|
+
return hasAlpha ? color.hexa() : color.hex();
|
2116
|
+
}
|
2117
|
+
function rgbToHex(color) {
|
2118
|
+
const { r, g, b } = color;
|
2119
|
+
const rChars = numToHex(r);
|
2120
|
+
const gChars = numToHex(g);
|
2121
|
+
const bChars = numToHex(b);
|
2122
|
+
const alphaChars = "a" in color ? numToHex(color.a * 255) : "";
|
2123
|
+
return `#${rChars}${gChars}${bChars}${alphaChars}`.toLowerCase();
|
2124
|
+
}
|
2125
|
+
function numToHex(num) {
|
2126
|
+
return num.toString(16).padStart(2, "0");
|
2127
|
+
}
|
2128
|
+
function normalizeAlpha(colorObject) {
|
2129
|
+
const normalized = { ...colorObject, a: colorObject.alpha ?? 1 /* Color() will omit alpha if 1 */ };
|
2130
|
+
delete normalized.alpha;
|
2131
|
+
return normalized;
|
2132
|
+
}
|
2133
|
+
function normalizeColor(alphaColorObject) {
|
2134
|
+
const normalized = { ...alphaColorObject, alpha: alphaColorObject.a ?? 1 };
|
2135
|
+
delete normalized.a;
|
2136
|
+
return normalized;
|
2137
|
+
}
|
2138
|
+
function hexToRGB(hex, hasAlpha = false) {
|
2139
|
+
if (!isValidHex(hex, hasAlpha)) {
|
2140
|
+
return null;
|
2141
|
+
}
|
2142
|
+
hex = hex.replace("#", "");
|
2143
|
+
let r;
|
2144
|
+
let g;
|
2145
|
+
let b;
|
2146
|
+
let a;
|
2147
|
+
const isShorthand = hex.length === 3 || hex.length === 4;
|
2148
|
+
if (isShorthand) {
|
2149
|
+
const [first, second, third, fourth] = hex.split("");
|
2150
|
+
r = parseInt(`${first}${first}`, 16);
|
2151
|
+
g = parseInt(`${second}${second}`, 16);
|
2152
|
+
b = parseInt(`${third}${third}`, 16);
|
2153
|
+
a = parseInt(`${fourth}${fourth}`, 16) / 255;
|
2154
|
+
}
|
2155
|
+
else {
|
2156
|
+
r = parseInt(hex.slice(0, 2), 16);
|
2157
|
+
g = parseInt(hex.slice(2, 4), 16);
|
2158
|
+
b = parseInt(hex.slice(4, 6), 16);
|
2159
|
+
a = parseInt(hex.slice(6, 8), 16) / 255;
|
2160
|
+
}
|
2161
|
+
return isNaN(a) ? { r, g, b } : { r, g, b, a };
|
2162
|
+
}
|
2163
|
+
// these utils allow users to pass enum values as strings without having to access the enum
|
2164
|
+
// based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,
|
2165
|
+
const enumify = (x) => x;
|
2166
|
+
const CSSColorMode = enumify({
|
2167
|
+
HEX: "hex",
|
2168
|
+
HEXA: "hexa",
|
2169
|
+
RGB_CSS: "rgb-css",
|
2170
|
+
RGBA_CSS: "rgba-css",
|
2171
|
+
HSL_CSS: "hsl-css",
|
2172
|
+
HSLA_CSS: "hsla-css",
|
2173
|
+
});
|
2174
|
+
const ObjectColorMode = enumify({
|
2175
|
+
RGB: "rgb",
|
2176
|
+
RGBA: "rgba",
|
2177
|
+
HSL: "hsl",
|
2178
|
+
HSLA: "hsla",
|
2179
|
+
HSV: "hsv",
|
2180
|
+
HSVA: "hsva",
|
2181
|
+
});
|
2182
|
+
function parseMode(colorValue) {
|
2183
|
+
if (typeof colorValue === "string") {
|
2184
|
+
if (colorValue.startsWith("#")) {
|
2185
|
+
const { length } = colorValue;
|
2186
|
+
if (length === 4 || length === 7) {
|
2187
|
+
return CSSColorMode.HEX;
|
2188
|
+
}
|
2189
|
+
if (length === 5 || length === 9) {
|
2190
|
+
return CSSColorMode.HEXA;
|
2191
|
+
}
|
2192
|
+
}
|
2193
|
+
if (colorValue.startsWith("rgba(")) {
|
2194
|
+
return CSSColorMode.RGBA_CSS;
|
2195
|
+
}
|
2196
|
+
if (colorValue.startsWith("rgb(")) {
|
2197
|
+
return CSSColorMode.RGB_CSS;
|
2198
|
+
}
|
2199
|
+
if (colorValue.startsWith("hsl(")) {
|
2200
|
+
return CSSColorMode.HSL_CSS;
|
2201
|
+
}
|
2202
|
+
if (colorValue.startsWith("hsla(")) {
|
2203
|
+
return CSSColorMode.HSLA_CSS;
|
2204
|
+
}
|
2205
|
+
}
|
2206
|
+
if (typeof colorValue === "object") {
|
2207
|
+
if (hasChannels(colorValue, "r", "g", "b")) {
|
2208
|
+
return hasChannels(colorValue, "a") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;
|
2209
|
+
}
|
2210
|
+
if (hasChannels(colorValue, "h", "s", "l")) {
|
2211
|
+
return hasChannels(colorValue, "a") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;
|
2212
|
+
}
|
2213
|
+
if (hasChannels(colorValue, "h", "s", "v")) {
|
2214
|
+
return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
|
2215
|
+
}
|
2216
|
+
}
|
2217
|
+
return null;
|
2218
|
+
}
|
2219
|
+
function hasChannels(colorObject, ...channels) {
|
2220
|
+
return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
|
2221
|
+
}
|
2222
|
+
function colorEqual(value1, value2) {
|
2223
|
+
return value1?.rgb().array().toString() === value2?.rgb().array().toString();
|
2224
|
+
}
|
2225
|
+
function alphaCompatible(mode) {
|
2226
|
+
return (mode === CSSColorMode.HEXA ||
|
2227
|
+
mode === CSSColorMode.RGBA_CSS ||
|
2228
|
+
mode === CSSColorMode.HSLA_CSS ||
|
2229
|
+
mode === ObjectColorMode.RGBA ||
|
2230
|
+
mode === ObjectColorMode.HSLA ||
|
2231
|
+
mode === ObjectColorMode.HSVA);
|
2232
|
+
}
|
2233
|
+
function toAlphaMode(mode) {
|
2234
|
+
const alphaMode = mode === CSSColorMode.HEX
|
2235
|
+
? CSSColorMode.HEXA
|
2236
|
+
: mode === CSSColorMode.RGB_CSS
|
2237
|
+
? CSSColorMode.RGBA_CSS
|
2238
|
+
: mode === CSSColorMode.HSL_CSS
|
2239
|
+
? CSSColorMode.HSLA_CSS
|
2240
|
+
: mode === ObjectColorMode.RGB
|
2241
|
+
? ObjectColorMode.RGBA
|
2242
|
+
: mode === ObjectColorMode.HSL
|
2243
|
+
? ObjectColorMode.HSLA
|
2244
|
+
: mode === ObjectColorMode.HSV
|
2245
|
+
? ObjectColorMode.HSVA
|
2246
|
+
: mode;
|
2247
|
+
return alphaMode;
|
2248
|
+
}
|
2249
|
+
function toNonAlphaMode(mode) {
|
2250
|
+
const nonAlphaMode = mode === CSSColorMode.HEXA
|
2251
|
+
? CSSColorMode.HEX
|
2252
|
+
: mode === CSSColorMode.RGBA_CSS
|
2253
|
+
? CSSColorMode.RGB_CSS
|
2254
|
+
: mode === CSSColorMode.HSLA_CSS
|
2255
|
+
? CSSColorMode.HSL_CSS
|
2256
|
+
: mode === ObjectColorMode.RGBA
|
2257
|
+
? ObjectColorMode.RGB
|
2258
|
+
: mode === ObjectColorMode.HSLA
|
2259
|
+
? ObjectColorMode.HSL
|
2260
|
+
: mode === ObjectColorMode.HSVA
|
2261
|
+
? ObjectColorMode.HSV
|
2262
|
+
: mode;
|
2263
|
+
return nonAlphaMode;
|
2264
|
+
}
|
2265
|
+
function getSliderWidth(activeDimensions, hasAlpha) {
|
2266
|
+
const { slider: { width }, preview, } = activeDimensions;
|
2267
|
+
if (hasAlpha) {
|
2268
|
+
return width;
|
2269
|
+
}
|
2270
|
+
const previewWidthOffset = DIMENSIONS["l"].preview.size - preview.size;
|
2271
|
+
return width + previewWidthOffset;
|
2272
|
+
}
|
2273
|
+
|
2274
|
+
export { CSSColorMode as C, DEFAULT_COLOR as D, HSV_LIMITS as H, OPACITY_LIMITS as O, RGB_LIMITS as R, SCOPE_SIZE as S, Color$1 as a, CSS as b, alphaToOpacity as c, DIMENSIONS as d, alphaCompatible as e, normalizeColor as f, getSliderWidth as g, hexify as h, colorEqual as i, normalizeAlpha as j, HUE_LIMIT_CONSTRAINED as k, DEFAULT_STORAGE_KEY_PREFIX as l, toAlphaMode as m, normalizeHex as n, opacityToAlpha as o, parseMode as p, isLonghandHex as q, isShorthandHex as r, isValidHex as s, toNonAlphaMode as t, rgbToHex as u, hexChar as v, hexToRGB as w };
|