@esri/solutions-components 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/solution-config-modal/resources.json +22 -0
- package/dist/assets/t9n/solution-config-modal/resources_en.json +22 -0
- package/dist/cjs/ExpandToggle-73df0d51.js +2 -0
- package/dist/cjs/ExpandToggle-73df0d51.js.map +1 -0
- package/dist/cjs/Heading-6b7b374c.js +2 -0
- package/dist/cjs/Heading-6b7b374c.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-6aafa5de.js +2 -0
- package/dist/cjs/_commonjsHelpers-6aafa5de.js.map +1 -0
- package/dist/cjs/app-globals-2f48e57e.js +2 -0
- package/dist/cjs/app-globals-2f48e57e.js.map +1 -0
- package/dist/cjs/array-ace6d4b5.js +2 -0
- package/dist/cjs/array-ace6d4b5.js.map +1 -0
- package/dist/cjs/buffer-tools_6.cjs.entry.js +2 -0
- package/dist/cjs/buffer-tools_6.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-accordion.cjs.entry.js +2 -0
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-bar_6.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +20 -401
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-action_2.cjs.entry.js +425 -71
- package/dist/cjs/calcite-action_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -0
- package/dist/cjs/calcite-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js +2 -0
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-block.cjs.entry.js +2 -0
- package/dist/cjs/calcite-block.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-card.cjs.entry.js +2 -0
- package/dist/cjs/calcite-card.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-checkbox.cjs.entry.js +2 -0
- package/dist/cjs/calcite-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js +2 -0
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -0
- package/dist/cjs/calcite-fab.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -0
- package/dist/cjs/calcite-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-flow-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -0
- package/dist/cjs/calcite-flow.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-graph.cjs.entry.js +2 -0
- package/dist/cjs/calcite-graph.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -0
- package/dist/cjs/calcite-handle.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -0
- package/dist/cjs/calcite-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -0
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-text.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-input_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-label.cjs.entry.js +2 -0
- package/dist/cjs/calcite-label.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-link.cjs.entry.js +2 -0
- package/dist/cjs/calcite-link.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-list_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-loader.cjs.entry.js +97 -0
- package/dist/cjs/calcite-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-configuration.cjs.entry.js → calcite-modal_2.cjs.entry.js} +452 -6
- package/dist/cjs/calcite-modal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-option-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-option_2.cjs.entry.js +2 -0
- package/dist/cjs/calcite-option_2.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/{calcite-shell-panel_14.cjs.entry.js → calcite-panel_12.cjs.entry.js} +469 -711
- package/dist/cjs/calcite-panel_12.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-pick-list.cjs.entry.js +2 -0
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-rating.cjs.entry.js +2 -0
- package/dist/cjs/calcite-rating.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -0
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -0
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -0
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -0
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-stepper.cjs.entry.js +2 -0
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-switch.cjs.entry.js +2 -0
- package/dist/cjs/calcite-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-time-picker.cjs.entry.js +2 -0
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tooltip-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tooltip.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/calcite-tree_3.cjs.entry.js +2 -0
- package/dist/cjs/calcite-tree_3.cjs.entry.js.map +1 -0
- package/dist/cjs/check-list.cjs.entry.js +2 -0
- package/dist/cjs/check-list.cjs.entry.js.map +1 -0
- package/dist/cjs/conditionalSlot-2defe83d.js +2 -0
- package/dist/cjs/conditionalSlot-2defe83d.js.map +1 -0
- package/dist/cjs/config-buffer-tools.cjs.entry.js +2 -0
- package/dist/cjs/config-buffer-tools.cjs.entry.js.map +1 -0
- package/dist/cjs/config-draw-tools.cjs.entry.js +2 -0
- package/dist/cjs/config-draw-tools.cjs.entry.js.map +1 -0
- package/dist/cjs/config-layer-picker.cjs.entry.js +2 -0
- package/dist/cjs/config-layer-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/config-pdf-download.cjs.entry.js +2 -0
- package/dist/cjs/config-pdf-download.cjs.entry.js.map +1 -0
- package/dist/cjs/date-e21b2052.js +2 -0
- package/dist/cjs/date-e21b2052.js.map +1 -0
- package/dist/cjs/debounce-69c3bada.js +2 -0
- package/dist/cjs/debounce-69c3bada.js.map +1 -0
- package/dist/cjs/dom-4a580af6.js +2 -0
- package/dist/cjs/dom-4a580af6.js.map +1 -0
- package/dist/cjs/filter-325f654f.js +2 -0
- package/dist/cjs/filter-325f654f.js.map +1 -0
- package/dist/cjs/floating-ui-ca1bcead.js +2 -0
- package/dist/cjs/floating-ui-ca1bcead.js.map +1 -0
- package/dist/cjs/form-45849654.js +2 -0
- package/dist/cjs/form-45849654.js.map +1 -0
- package/dist/cjs/guid-84ac4d91.js +2 -0
- package/dist/cjs/guid-84ac4d91.js.map +1 -0
- package/dist/cjs/index-7af21b6f.js +2 -0
- package/dist/cjs/index-7af21b6f.js.map +1 -0
- package/dist/cjs/index-a86078a0.js +2 -0
- package/dist/cjs/index-a86078a0.js.map +1 -0
- package/dist/cjs/index-d7f9770d.js +2 -0
- package/dist/cjs/index-d7f9770d.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/interactive-0a68ab99.js +2 -0
- package/dist/cjs/interactive-0a68ab99.js.map +1 -0
- package/dist/cjs/interfaces-ab603e16.js +2 -0
- package/dist/cjs/interfaces-ab603e16.js.map +1 -0
- package/dist/cjs/interfaces-e76f31e9.js +2 -0
- package/dist/cjs/interfaces-e76f31e9.js.map +1 -0
- package/dist/cjs/key-55aca5c0.js +2 -0
- package/dist/cjs/key-55aca5c0.js.map +1 -0
- package/dist/cjs/label-24fcd8a5.js +2 -0
- package/dist/cjs/label-24fcd8a5.js.map +1 -0
- package/dist/cjs/labelFormats-3236d2e0.js +2 -0
- package/dist/cjs/labelFormats-3236d2e0.js.map +1 -0
- package/dist/cjs/loadModules-38269f99.js +2 -0
- package/dist/cjs/loadModules-38269f99.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -1
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/locale-73cab8e8.js +2 -0
- package/dist/cjs/locale-73cab8e8.js.map +1 -0
- package/dist/cjs/locale-746a095d.js +2 -0
- package/dist/cjs/locale-746a095d.js.map +1 -0
- package/dist/cjs/map-search.cjs.entry.js +2 -0
- package/dist/cjs/map-search.cjs.entry.js.map +1 -0
- package/dist/cjs/mapViewUtils-67cfc412.js +2 -0
- package/dist/cjs/mapViewUtils-67cfc412.js.map +1 -0
- package/dist/cjs/math-460fffaf.js +2 -0
- package/dist/cjs/math-460fffaf.js.map +1 -0
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js +2 -0
- package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js.map +1 -0
- package/dist/cjs/observers-5311faf8.js +2 -0
- package/dist/cjs/observers-5311faf8.js.map +1 -0
- package/dist/cjs/openCloseComponent-bf986132.js +2 -0
- package/dist/cjs/openCloseComponent-bf986132.js.map +1 -0
- package/dist/cjs/public-notification.cjs.entry.js +2 -0
- package/dist/cjs/public-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/publicNotificationStore-6a3d40b3.js +2 -0
- package/dist/cjs/publicNotificationStore-6a3d40b3.js.map +1 -0
- package/dist/cjs/publicNotificationUtils-9d585d8d.js +2 -0
- package/dist/cjs/publicNotificationUtils-9d585d8d.js.map +1 -0
- package/dist/cjs/resources-1f785471.js +2 -0
- package/dist/cjs/resources-1f785471.js.map +1 -0
- package/dist/cjs/resources-2260d186.js +2 -0
- package/dist/cjs/resources-2260d186.js.map +1 -0
- package/dist/cjs/resources-2a9862c7.js +2 -0
- package/dist/cjs/resources-2a9862c7.js.map +1 -0
- package/dist/cjs/resources-308edbd8.js +2 -0
- package/dist/cjs/resources-308edbd8.js.map +1 -0
- package/dist/cjs/resources-6152b073.js +2 -0
- package/dist/cjs/resources-6152b073.js.map +1 -0
- package/dist/cjs/resources-808cfca8.js +2 -0
- package/dist/cjs/resources-808cfca8.js.map +1 -0
- package/dist/cjs/resources-9c55e05c.js +2 -0
- package/dist/cjs/resources-9c55e05c.js.map +1 -0
- package/dist/cjs/resources-aa19bf8c.js +2 -0
- package/dist/cjs/resources-aa19bf8c.js.map +1 -0
- package/dist/cjs/resources-b56bce71.js +2 -0
- package/dist/cjs/resources-b56bce71.js.map +1 -0
- package/dist/cjs/resources-cc7f63b0.js +2 -0
- package/dist/cjs/resources-cc7f63b0.js.map +1 -0
- package/dist/cjs/shared-list-render-4c7d84bf.js +2 -0
- package/dist/cjs/shared-list-render-4c7d84bf.js.map +1 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js +131 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-contents_3.cjs.entry.js → solution-contents_7.cjs.entry.js} +665 -2
- package/dist/cjs/solution-contents_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-09b3fc53.js} +5 -3
- package/dist/cjs/solution-store-09b3fc53.js.map +1 -0
- package/dist/cjs/solutions-components.cjs.js +3 -1
- package/dist/cjs/solutions-components.cjs.js.map +1 -0
- package/dist/cjs/sortable.esm-bf47019d.js +2 -0
- package/dist/cjs/sortable.esm-bf47019d.js.map +1 -0
- package/dist/cjs/store-manager.cjs.entry.js +2 -0
- package/dist/cjs/store-manager.cjs.entry.js.map +1 -0
- package/dist/cjs/time-3f5577cb.js +2 -0
- package/dist/cjs/time-3f5577cb.js.map +1 -0
- package/dist/cjs/utils-120bbbeb.js +2 -0
- package/dist/cjs/utils-120bbbeb.js.map +1 -0
- package/dist/cjs/utils-b4236001.js +2 -0
- package/dist/cjs/utils-b4236001.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js.map +1 -0
- package/dist/collection/components/check-list/check-list.js +1 -0
- package/dist/collection/components/check-list/check-list.js.map +1 -0
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +1 -0
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js.map +1 -0
- package/dist/collection/components/config-draw-tools/config-draw-tools.js +1 -0
- package/dist/collection/components/config-draw-tools/config-draw-tools.js.map +1 -0
- package/dist/collection/components/config-layer-picker/config-layer-picker.js +1 -0
- package/dist/collection/components/config-layer-picker/config-layer-picker.js.map +1 -0
- package/dist/collection/components/config-pdf-download/config-pdf-download.js +1 -0
- package/dist/collection/components/config-pdf-download/config-pdf-download.js.map +1 -0
- package/dist/collection/components/json-editor/json-editor.js +1 -0
- package/dist/collection/components/json-editor/json-editor.js.map +1 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js.map +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js.map +1 -0
- package/dist/collection/components/map-search/map-search.js +1 -0
- package/dist/collection/components/map-search/map-search.js.map +1 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js.map +1 -0
- package/dist/collection/components/pdf-download/pdf-download.js +1 -0
- package/dist/collection/components/pdf-download/pdf-download.js.map +1 -0
- package/dist/collection/components/public-notification/public-notification.js +1 -0
- package/dist/collection/components/public-notification/public-notification.js.map +1 -0
- package/dist/collection/components/refine-selection/refine-selection.js +1 -0
- package/dist/collection/components/refine-selection/refine-selection.js.map +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js.map +1 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.css +91 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js +245 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +24 -11
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -0
- package/dist/collection/components/solution-contents/solution-contents.js +1 -0
- package/dist/collection/components/solution-contents/solution-contents.js.map +1 -0
- package/dist/collection/components/solution-item/solution-item.js +1 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -0
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -0
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +1 -0
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -0
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +1 -0
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -0
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +1 -0
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -0
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +1 -0
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -0
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +1 -0
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +1 -0
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +1 -0
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -0
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +1 -0
- package/dist/collection/components/solution-variables/solution-variables.js +1 -0
- package/dist/collection/components/solution-variables/solution-variables.js.map +1 -0
- package/dist/collection/components/store-manager/store-manager.js +1 -0
- package/dist/collection/components/store-manager/store-manager.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/common.js +1 -0
- package/dist/collection/utils/common.js.map +1 -0
- package/dist/collection/utils/csvUtils.js +1 -0
- package/dist/collection/utils/csvUtils.js.map +1 -0
- package/dist/collection/utils/interfaces.js +1 -0
- package/dist/collection/utils/interfaces.js.map +1 -0
- package/dist/collection/utils/languageUtil.js +1 -0
- package/dist/collection/utils/languageUtil.js.map +1 -0
- package/dist/collection/utils/loadModules.js +1 -0
- package/dist/collection/utils/loadModules.js.map +1 -0
- package/dist/collection/utils/locale.js +1 -0
- package/dist/collection/utils/locale.js.map +1 -0
- package/dist/collection/utils/mapViewUtils.js +1 -0
- package/dist/collection/utils/mapViewUtils.js.map +1 -0
- package/dist/collection/utils/publicNotificationStore.js +1 -0
- package/dist/collection/utils/publicNotificationStore.js.map +1 -0
- package/dist/collection/utils/publicNotificationUtils.js +1 -0
- package/dist/collection/utils/publicNotificationUtils.js.map +1 -0
- package/dist/collection/utils/queryUtils.js +1 -0
- package/dist/collection/utils/queryUtils.js.map +1 -0
- package/dist/collection/utils/solution-store.js +4 -3
- package/dist/collection/utils/solution-store.js.map +1 -0
- package/dist/collection/utils/solution-store.ts +3 -3
- package/dist/collection/utils/templates.js +1 -0
- package/dist/collection/utils/templates.js.map +1 -0
- package/dist/collection/utils/test/testUtils.js +1 -0
- package/dist/collection/utils/test/testUtils.js.map +1 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/esm/ExpandToggle-b7d1fb3c.js +2 -0
- package/dist/esm/ExpandToggle-b7d1fb3c.js.map +1 -0
- package/dist/esm/Heading-1efb4837.js +2 -0
- package/dist/esm/Heading-1efb4837.js.map +1 -0
- package/dist/esm/_commonjsHelpers-8fd39c50.js +2 -0
- package/dist/esm/_commonjsHelpers-8fd39c50.js.map +1 -0
- package/dist/esm/app-globals-09b9efee.js +2 -0
- package/dist/esm/app-globals-09b9efee.js.map +1 -0
- package/dist/esm/array-2ab3b18f.js +2 -0
- package/dist/esm/array-2ab3b18f.js.map +1 -0
- package/dist/esm/buffer-tools_6.entry.js +4 -2
- package/dist/esm/buffer-tools_6.entry.js.map +1 -0
- package/dist/esm/calcite-accordion-item.entry.js +2 -0
- package/dist/esm/calcite-accordion-item.entry.js.map +1 -0
- package/dist/esm/calcite-accordion.entry.js +2 -0
- package/dist/esm/calcite-accordion.entry.js.map +1 -0
- package/dist/esm/calcite-action-bar_6.entry.js +4 -2
- package/dist/esm/calcite-action-bar_6.entry.js.map +1 -0
- package/dist/esm/calcite-action-group.entry.js +2 -0
- package/dist/esm/calcite-action-group.entry.js.map +1 -0
- package/dist/esm/calcite-action-menu_2.entry.js +22 -403
- package/dist/esm/calcite-action-menu_2.entry.js.map +1 -0
- package/dist/esm/calcite-action-pad.entry.js +2 -0
- package/dist/esm/calcite-action-pad.entry.js.map +1 -0
- package/dist/esm/calcite-action_2.entry.js +426 -72
- package/dist/esm/calcite-action_2.entry.js.map +1 -0
- package/dist/esm/calcite-alert.entry.js +2 -0
- package/dist/esm/calcite-alert.entry.js.map +1 -0
- package/dist/esm/calcite-avatar.entry.js +2 -0
- package/dist/esm/calcite-avatar.entry.js.map +1 -0
- package/dist/esm/calcite-block-section.entry.js +2 -0
- package/dist/esm/calcite-block-section.entry.js.map +1 -0
- package/dist/esm/calcite-block.entry.js +2 -0
- package/dist/esm/calcite-block.entry.js.map +1 -0
- package/dist/esm/calcite-button.entry.js +2 -0
- package/dist/esm/calcite-button.entry.js.map +1 -0
- package/dist/esm/calcite-card.entry.js +2 -0
- package/dist/esm/calcite-card.entry.js.map +1 -0
- package/dist/esm/calcite-checkbox.entry.js +2 -0
- package/dist/esm/calcite-checkbox.entry.js.map +1 -0
- package/dist/esm/calcite-chip.entry.js +2 -0
- package/dist/esm/calcite-chip.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js +2 -0
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -0
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +1 -0
- package/dist/esm/calcite-color-picker.entry.js +2 -0
- package/dist/esm/calcite-color-picker.entry.js.map +1 -0
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -0
- package/dist/esm/calcite-combobox-item-group.entry.js.map +1 -0
- package/dist/esm/calcite-combobox_3.entry.js +4 -2
- package/dist/esm/calcite-combobox_3.entry.js.map +1 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js +2 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +1 -0
- package/dist/esm/calcite-date-picker.entry.js +2 -0
- package/dist/esm/calcite-date-picker.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown-group.entry.js +2 -0
- package/dist/esm/calcite-dropdown-group.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown-item.entry.js +2 -0
- package/dist/esm/calcite-dropdown-item.entry.js.map +1 -0
- package/dist/esm/calcite-dropdown.entry.js +2 -0
- package/dist/esm/calcite-dropdown.entry.js.map +1 -0
- package/dist/esm/calcite-fab.entry.js +2 -0
- package/dist/esm/calcite-fab.entry.js.map +1 -0
- package/dist/esm/calcite-filter.entry.js +2 -0
- package/dist/esm/calcite-filter.entry.js.map +1 -0
- package/dist/esm/calcite-flow-item.entry.js +2 -0
- package/dist/esm/calcite-flow-item.entry.js.map +1 -0
- package/dist/esm/calcite-flow.entry.js +2 -0
- package/dist/esm/calcite-flow.entry.js.map +1 -0
- package/dist/esm/calcite-graph.entry.js +2 -0
- package/dist/esm/calcite-graph.entry.js.map +1 -0
- package/dist/esm/calcite-handle.entry.js +2 -0
- package/dist/esm/calcite-handle.entry.js.map +1 -0
- package/dist/esm/calcite-icon.entry.js +2 -0
- package/dist/esm/calcite-icon.entry.js.map +1 -0
- package/dist/esm/calcite-inline-editable.entry.js +2 -0
- package/dist/esm/calcite-inline-editable.entry.js.map +1 -0
- package/dist/esm/calcite-input-date-picker.entry.js +2 -0
- package/dist/esm/calcite-input-date-picker.entry.js.map +1 -0
- package/dist/esm/calcite-input-number.entry.js +2 -0
- package/dist/esm/calcite-input-number.entry.js.map +1 -0
- package/dist/esm/calcite-input-text.entry.js +2 -0
- package/dist/esm/calcite-input-text.entry.js.map +1 -0
- package/dist/esm/calcite-input-time-picker.entry.js +2 -0
- package/dist/esm/calcite-input-time-picker.entry.js.map +1 -0
- package/dist/esm/calcite-input_2.entry.js +2 -0
- package/dist/esm/calcite-input_2.entry.js.map +1 -0
- package/dist/esm/calcite-label.entry.js +2 -0
- package/dist/esm/calcite-label.entry.js.map +1 -0
- package/dist/esm/calcite-link.entry.js +2 -0
- package/dist/esm/calcite-link.entry.js.map +1 -0
- package/dist/esm/calcite-list-item-group.entry.js +2 -0
- package/dist/esm/calcite-list-item-group.entry.js.map +1 -0
- package/dist/esm/calcite-list_2.entry.js +2 -0
- package/dist/esm/calcite-list_2.entry.js.map +1 -0
- package/dist/esm/calcite-loader.entry.js +93 -0
- package/dist/esm/calcite-loader.entry.js.map +1 -0
- package/dist/esm/{solution-configuration.entry.js → calcite-modal_2.entry.js} +454 -9
- package/dist/esm/calcite-modal_2.entry.js.map +1 -0
- package/dist/esm/calcite-option-group.entry.js +2 -0
- package/dist/esm/calcite-option-group.entry.js.map +1 -0
- package/dist/esm/calcite-option_2.entry.js +2 -0
- package/dist/esm/calcite-option_2.entry.js.map +1 -0
- package/dist/esm/calcite-pagination.entry.js +2 -0
- package/dist/esm/calcite-pagination.entry.js.map +1 -0
- package/dist/esm/{calcite-shell-panel_14.entry.js → calcite-panel_12.entry.js} +468 -708
- package/dist/esm/calcite-panel_12.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list-group.entry.js +2 -0
- package/dist/esm/calcite-pick-list-group.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list-item.entry.js +2 -0
- package/dist/esm/calcite-pick-list-item.entry.js.map +1 -0
- package/dist/esm/calcite-pick-list.entry.js +2 -0
- package/dist/esm/calcite-pick-list.entry.js.map +1 -0
- package/dist/esm/calcite-popover-manager.entry.js +2 -0
- package/dist/esm/calcite-popover-manager.entry.js.map +1 -0
- package/dist/esm/calcite-radio-button-group.entry.js +2 -0
- package/dist/esm/calcite-radio-button-group.entry.js.map +1 -0
- package/dist/esm/calcite-radio-button.entry.js +2 -0
- package/dist/esm/calcite-radio-button.entry.js.map +1 -0
- package/dist/esm/calcite-rating.entry.js +2 -0
- package/dist/esm/calcite-rating.entry.js.map +1 -0
- package/dist/esm/calcite-shell-center-row.entry.js +2 -0
- package/dist/esm/calcite-shell-center-row.entry.js.map +1 -0
- package/dist/esm/calcite-sortable-list.entry.js +2 -0
- package/dist/esm/calcite-sortable-list.entry.js.map +1 -0
- package/dist/esm/calcite-split-button.entry.js +2 -0
- package/dist/esm/calcite-split-button.entry.js.map +1 -0
- package/dist/esm/calcite-stepper-item.entry.js +2 -0
- package/dist/esm/calcite-stepper-item.entry.js.map +1 -0
- package/dist/esm/calcite-stepper.entry.js +2 -0
- package/dist/esm/calcite-stepper.entry.js.map +1 -0
- package/dist/esm/calcite-switch.entry.js +2 -0
- package/dist/esm/calcite-switch.entry.js.map +1 -0
- package/dist/esm/calcite-tile-select-group.entry.js +2 -0
- package/dist/esm/calcite-tile-select-group.entry.js.map +1 -0
- package/dist/esm/calcite-tile-select.entry.js +2 -0
- package/dist/esm/calcite-tile-select.entry.js.map +1 -0
- package/dist/esm/calcite-tile.entry.js +2 -0
- package/dist/esm/calcite-tile.entry.js.map +1 -0
- package/dist/esm/calcite-time-picker.entry.js +2 -0
- package/dist/esm/calcite-time-picker.entry.js.map +1 -0
- package/dist/esm/calcite-tip-group.entry.js +2 -0
- package/dist/esm/calcite-tip-group.entry.js.map +1 -0
- package/dist/esm/calcite-tip-manager.entry.js +2 -0
- package/dist/esm/calcite-tip-manager.entry.js.map +1 -0
- package/dist/esm/calcite-tip.entry.js +2 -0
- package/dist/esm/calcite-tip.entry.js.map +1 -0
- package/dist/esm/calcite-tooltip-manager.entry.js +2 -0
- package/dist/esm/calcite-tooltip-manager.entry.js.map +1 -0
- package/dist/esm/calcite-tooltip.entry.js +2 -0
- package/dist/esm/calcite-tooltip.entry.js.map +1 -0
- package/dist/esm/calcite-tree_3.entry.js +2 -0
- package/dist/esm/calcite-tree_3.entry.js.map +1 -0
- package/dist/esm/check-list.entry.js +2 -0
- package/dist/esm/check-list.entry.js.map +1 -0
- package/dist/esm/conditionalSlot-bb4cab11.js +2 -0
- package/dist/esm/conditionalSlot-bb4cab11.js.map +1 -0
- package/dist/esm/config-buffer-tools.entry.js +2 -0
- package/dist/esm/config-buffer-tools.entry.js.map +1 -0
- package/dist/esm/config-draw-tools.entry.js +2 -0
- package/dist/esm/config-draw-tools.entry.js.map +1 -0
- package/dist/esm/config-layer-picker.entry.js +4 -2
- package/dist/esm/config-layer-picker.entry.js.map +1 -0
- package/dist/esm/config-pdf-download.entry.js +2 -0
- package/dist/esm/config-pdf-download.entry.js.map +1 -0
- package/dist/esm/date-45de0016.js +2 -0
- package/dist/esm/date-45de0016.js.map +1 -0
- package/dist/esm/debounce-4c884e5c.js +2 -0
- package/dist/esm/debounce-4c884e5c.js.map +1 -0
- package/dist/esm/dom-e593bf85.js +2 -0
- package/dist/esm/dom-e593bf85.js.map +1 -0
- package/dist/esm/filter-82935f2d.js +2 -0
- package/dist/esm/filter-82935f2d.js.map +1 -0
- package/dist/esm/floating-ui-69a55a27.js +2 -0
- package/dist/esm/floating-ui-69a55a27.js.map +1 -0
- package/dist/esm/form-dbfde8ce.js +2 -0
- package/dist/esm/form-dbfde8ce.js.map +1 -0
- package/dist/esm/guid-15fce7c0.js +2 -0
- package/dist/esm/guid-15fce7c0.js.map +1 -0
- package/dist/esm/index-15022d11.js +2 -0
- package/dist/esm/index-15022d11.js.map +1 -0
- package/dist/esm/index-9c882a6e.js +2 -0
- package/dist/esm/index-9c882a6e.js.map +1 -0
- package/dist/esm/index-d33ebc35.js +2 -0
- package/dist/esm/index-d33ebc35.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interactive-822ffed6.js +2 -0
- package/dist/esm/interactive-822ffed6.js.map +1 -0
- package/dist/esm/interfaces-1bdfc3a8.js +72 -0
- package/dist/esm/interfaces-1bdfc3a8.js.map +1 -0
- package/dist/esm/interfaces-4ae145eb.js +2 -0
- package/dist/esm/interfaces-4ae145eb.js.map +1 -0
- package/dist/esm/key-acb660e7.js +2 -0
- package/dist/esm/key-acb660e7.js.map +1 -0
- package/dist/esm/label-d411de44.js +2 -0
- package/dist/esm/label-d411de44.js.map +1 -0
- package/dist/esm/labelFormats-b37958c3.js +2 -0
- package/dist/esm/labelFormats-b37958c3.js.map +1 -0
- package/dist/esm/loadModules-d3b50f95.js +2 -0
- package/dist/esm/loadModules-d3b50f95.js.map +1 -0
- package/dist/esm/loader.js +3 -1
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/locale-0b490b02.js +2 -0
- package/dist/esm/locale-0b490b02.js.map +1 -0
- package/dist/esm/locale-0e10d7e5.js +2 -0
- package/dist/esm/locale-0e10d7e5.js.map +1 -0
- package/dist/esm/map-search.entry.js +2 -0
- package/dist/esm/map-search.entry.js.map +1 -0
- package/dist/esm/mapViewUtils-809947c8.js +284 -0
- package/dist/esm/mapViewUtils-809947c8.js.map +1 -0
- package/dist/esm/math-552c5420.js +2 -0
- package/dist/esm/math-552c5420.js.map +1 -0
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js +2 -0
- package/dist/esm/nonChromiumPlatformUtils-ee349005.js.map +1 -0
- package/dist/esm/observers-31601001.js +2 -0
- package/dist/esm/observers-31601001.js.map +1 -0
- package/dist/esm/openCloseComponent-5caff873.js +2 -0
- package/dist/esm/openCloseComponent-5caff873.js.map +1 -0
- package/dist/esm/public-notification.entry.js +4 -2
- package/dist/esm/public-notification.entry.js.map +1 -0
- package/dist/esm/publicNotificationStore-060c59c8.js +2 -0
- package/dist/esm/publicNotificationStore-060c59c8.js.map +1 -0
- package/dist/esm/publicNotificationUtils-5cb5a607.js +2 -0
- package/dist/esm/publicNotificationUtils-5cb5a607.js.map +1 -0
- package/dist/esm/resources-2235e4ff.js +2 -0
- package/dist/esm/resources-2235e4ff.js.map +1 -0
- package/dist/esm/resources-3d641588.js +2 -0
- package/dist/esm/resources-3d641588.js.map +1 -0
- package/dist/esm/resources-436ae282.js +2 -0
- package/dist/esm/resources-436ae282.js.map +1 -0
- package/dist/esm/resources-4d02cb48.js +2 -0
- package/dist/esm/resources-4d02cb48.js.map +1 -0
- package/dist/esm/resources-78132e50.js +2 -0
- package/dist/esm/resources-78132e50.js.map +1 -0
- package/dist/esm/resources-7d4a587f.js +2 -0
- package/dist/esm/resources-7d4a587f.js.map +1 -0
- package/dist/esm/resources-971845d1.js +2 -0
- package/dist/esm/resources-971845d1.js.map +1 -0
- package/dist/esm/resources-9eb63965.js +2 -0
- package/dist/esm/resources-9eb63965.js.map +1 -0
- package/dist/esm/resources-d60362c3.js +2 -0
- package/dist/esm/resources-d60362c3.js.map +1 -0
- package/dist/esm/resources-e3a5cf27.js +2 -0
- package/dist/esm/resources-e3a5cf27.js.map +1 -0
- package/dist/esm/shared-list-render-4e9d47a3.js +2 -0
- package/dist/esm/shared-list-render-4e9d47a3.js.map +1 -0
- package/dist/esm/solution-config-modal.entry.js +127 -0
- package/dist/esm/solution-config-modal.entry.js.map +1 -0
- package/dist/esm/{solution-contents_3.entry.js → solution-contents_7.entry.js} +662 -3
- package/dist/esm/solution-contents_7.entry.js.map +1 -0
- package/dist/esm/{solution-store-b3c65467.js → solution-store-d8519c64.js} +6 -4
- package/dist/esm/solution-store-d8519c64.js.map +1 -0
- package/dist/esm/solutions-components.js +3 -1
- package/dist/esm/solutions-components.js.map +1 -0
- package/dist/esm/sortable.esm-3b2eaa5c.js +2 -0
- package/dist/esm/sortable.esm-3b2eaa5c.js.map +1 -0
- package/dist/esm/store-manager.entry.js +2 -0
- package/dist/esm/store-manager.entry.js.map +1 -0
- package/dist/esm/time-f014778c.js +2 -0
- package/dist/esm/time-f014778c.js.map +1 -0
- package/dist/esm/utils-3f4ee4c3.js +2 -0
- package/dist/esm/utils-3f4ee4c3.js.map +1 -0
- package/dist/esm/utils-583554bc.js +2 -0
- package/dist/esm/utils-583554bc.js.map +1 -0
- package/dist/solutions-components/index.esm.js +2 -0
- package/dist/solutions-components/index.esm.js.map +1 -0
- package/dist/solutions-components/p-06dab43c.entry.js +140 -0
- package/dist/solutions-components/p-06dab43c.entry.js.map +1 -0
- package/dist/solutions-components/p-0bbe4865.entry.js +620 -0
- package/dist/solutions-components/p-0bbe4865.entry.js.map +1 -0
- package/dist/solutions-components/p-0fddf8a4.entry.js +349 -0
- package/dist/solutions-components/p-0fddf8a4.entry.js.map +1 -0
- package/dist/solutions-components/p-11068040.entry.js +1121 -0
- package/dist/solutions-components/p-11068040.entry.js.map +1 -0
- package/dist/solutions-components/p-11bc6805.entry.js +87 -0
- package/dist/solutions-components/p-11bc6805.entry.js.map +1 -0
- package/dist/solutions-components/p-13b37f05.js +308 -3
- package/dist/solutions-components/p-13b37f05.js.map +1 -0
- package/dist/solutions-components/p-1dfb5fae.entry.js +713 -0
- package/dist/solutions-components/p-1dfb5fae.entry.js.map +1 -0
- package/dist/solutions-components/p-1e15b1a3.js +183 -2
- package/dist/solutions-components/p-1e15b1a3.js.map +1 -0
- package/dist/solutions-components/p-1e5bc9c3.entry.js +96 -0
- package/dist/solutions-components/p-1e5bc9c3.entry.js.map +1 -0
- package/dist/solutions-components/p-1ed05745.entry.js +214 -0
- package/dist/solutions-components/p-1ed05745.entry.js.map +1 -0
- package/dist/solutions-components/p-20bdf42f.js +407 -14
- package/dist/solutions-components/p-20bdf42f.js.map +1 -0
- package/dist/solutions-components/p-22574d83.entry.js +74 -0
- package/dist/solutions-components/p-22574d83.entry.js.map +1 -0
- package/dist/solutions-components/p-23904a3d.js +401 -3
- package/dist/solutions-components/p-23904a3d.js.map +1 -0
- package/dist/solutions-components/p-26484399.entry.js +108 -0
- package/dist/solutions-components/p-26484399.entry.js.map +1 -0
- package/dist/solutions-components/p-2910dd9e.js +4094 -0
- package/dist/solutions-components/p-2910dd9e.js.map +1 -0
- package/dist/solutions-components/p-29bdbd3e.entry.js +280 -0
- package/dist/solutions-components/p-29bdbd3e.entry.js.map +1 -0
- package/dist/solutions-components/p-2ac06389.js +25 -16
- package/dist/solutions-components/p-2ac06389.js.map +1 -0
- package/dist/solutions-components/p-2bce7fa2.entry.js +45 -0
- package/dist/solutions-components/p-2bce7fa2.entry.js.map +1 -0
- package/dist/solutions-components/p-2e9ed892.js +48 -1
- package/dist/solutions-components/p-2e9ed892.js.map +1 -0
- package/dist/solutions-components/p-2f12ff1b.entry.js +202 -0
- package/dist/solutions-components/p-2f12ff1b.entry.js.map +1 -0
- package/dist/solutions-components/p-30810b45.entry.js +1250 -0
- package/dist/solutions-components/p-30810b45.entry.js.map +1 -0
- package/dist/solutions-components/p-32a67cb2.js +207 -2
- package/dist/solutions-components/p-32a67cb2.js.map +1 -0
- package/dist/solutions-components/p-341ff921.entry.js +449 -0
- package/dist/solutions-components/p-341ff921.entry.js.map +1 -0
- package/dist/solutions-components/p-36ce64e4.entry.js +215 -0
- package/dist/solutions-components/p-36ce64e4.entry.js.map +1 -0
- package/dist/solutions-components/p-374a5031.js +107 -2
- package/dist/solutions-components/p-374a5031.js.map +1 -0
- package/dist/solutions-components/p-38ddadf2.entry.js +342 -0
- package/dist/solutions-components/p-38ddadf2.entry.js.map +1 -0
- package/dist/solutions-components/p-3b010ce1.js +19 -1
- package/dist/solutions-components/p-3b010ce1.js.map +1 -0
- package/dist/solutions-components/p-3f6b0af4.js +221 -2
- package/dist/solutions-components/p-3f6b0af4.js.map +1 -0
- package/dist/solutions-components/p-400e1427.entry.js +236 -0
- package/dist/solutions-components/p-400e1427.entry.js.map +1 -0
- package/dist/solutions-components/p-40d7cf01.entry.js +228 -0
- package/dist/solutions-components/p-40d7cf01.entry.js.map +1 -0
- package/dist/solutions-components/p-45556aff.entry.js +215 -0
- package/dist/solutions-components/p-45556aff.entry.js.map +1 -0
- package/dist/solutions-components/p-49aaa793.entry.js +95 -0
- package/dist/solutions-components/p-49aaa793.entry.js.map +1 -0
- package/dist/solutions-components/p-4e32bf8c.js +484 -1
- package/dist/solutions-components/p-4e32bf8c.js.map +1 -0
- package/dist/solutions-components/p-4e89b243.entry.js +479 -0
- package/dist/solutions-components/p-4e89b243.entry.js.map +1 -0
- package/dist/solutions-components/p-515637fb.entry.js +183 -0
- package/dist/solutions-components/p-515637fb.entry.js.map +1 -0
- package/dist/solutions-components/p-5243a654.entry.js +147 -0
- package/dist/solutions-components/p-5243a654.entry.js.map +1 -0
- package/dist/solutions-components/p-55673790.entry.js +82 -0
- package/dist/solutions-components/p-55673790.entry.js.map +1 -0
- package/dist/solutions-components/p-56350bff.js +173 -2
- package/dist/solutions-components/p-56350bff.js.map +1 -0
- package/dist/solutions-components/p-58b374c0.entry.js +347 -0
- package/dist/solutions-components/p-58b374c0.entry.js.map +1 -0
- package/dist/solutions-components/p-58c69df2.js +2024 -2
- package/dist/solutions-components/p-58c69df2.js.map +1 -0
- package/dist/solutions-components/p-59fd6684.entry.js +22 -0
- package/dist/solutions-components/p-59fd6684.entry.js.map +1 -0
- package/dist/solutions-components/p-5b0d7c7d.js +35 -16
- package/dist/solutions-components/p-5b0d7c7d.js.map +1 -0
- package/dist/solutions-components/p-5b20090f.entry.js +22189 -0
- package/dist/solutions-components/p-5b20090f.entry.js.map +1 -0
- package/dist/solutions-components/p-5cf33602.js +43 -2
- package/dist/solutions-components/p-5cf33602.js.map +1 -0
- package/dist/solutions-components/p-600e23c6.js +1770 -2
- package/dist/solutions-components/p-600e23c6.js.map +1 -0
- package/dist/solutions-components/p-61398a7b.entry.js +74 -0
- package/dist/solutions-components/p-61398a7b.entry.js.map +1 -0
- package/dist/solutions-components/p-63a05701.entry.js +45 -0
- package/dist/solutions-components/p-63a05701.entry.js.map +1 -0
- package/dist/solutions-components/p-63f6e8f1.js +16 -1
- package/dist/solutions-components/p-63f6e8f1.js.map +1 -0
- package/dist/solutions-components/p-64a2040e.entry.js +63 -0
- package/dist/solutions-components/p-64a2040e.entry.js.map +1 -0
- package/dist/solutions-components/p-64c63eb2.entry.js +157 -0
- package/dist/solutions-components/p-64c63eb2.entry.js.map +1 -0
- package/dist/solutions-components/p-6940e2fd.entry.js +100 -0
- package/dist/solutions-components/p-6940e2fd.entry.js.map +1 -0
- package/dist/solutions-components/p-69900b68.entry.js +152 -0
- package/dist/solutions-components/p-69900b68.entry.js.map +1 -0
- package/dist/solutions-components/p-699125b6.entry.js +44 -0
- package/dist/solutions-components/p-699125b6.entry.js.map +1 -0
- package/dist/solutions-components/p-6d0899c8.entry.js +118 -0
- package/dist/solutions-components/p-6d0899c8.entry.js.map +1 -0
- package/dist/solutions-components/p-6e0da576.js +15 -1
- package/dist/solutions-components/p-6e0da576.js.map +1 -0
- package/dist/solutions-components/p-6fe17794.js +11 -1
- package/dist/solutions-components/p-6fe17794.js.map +1 -0
- package/dist/solutions-components/p-708a63a8.js +14 -1
- package/dist/solutions-components/p-708a63a8.js.map +1 -0
- package/dist/solutions-components/p-729708a3.js +16 -1
- package/dist/solutions-components/p-729708a3.js.map +1 -0
- package/dist/solutions-components/p-73e23995.js +8 -1
- package/dist/solutions-components/p-73e23995.js.map +1 -0
- package/dist/solutions-components/p-75f54a34.entry.js +883 -0
- package/dist/solutions-components/p-75f54a34.entry.js.map +1 -0
- package/dist/solutions-components/p-77182c3a.js +3017 -1
- package/dist/solutions-components/p-77182c3a.js.map +1 -0
- package/dist/solutions-components/p-794ba85d.entry.js +175 -0
- package/dist/solutions-components/p-794ba85d.entry.js.map +1 -0
- package/dist/solutions-components/p-79cde78e.entry.js +203 -0
- package/dist/solutions-components/p-79cde78e.entry.js.map +1 -0
- package/dist/solutions-components/p-7a2c75a4.entry.js +230 -0
- package/dist/solutions-components/p-7a2c75a4.entry.js.map +1 -0
- package/dist/solutions-components/p-7daea1df.js +43 -1
- package/dist/solutions-components/p-7daea1df.js.map +1 -0
- package/dist/solutions-components/p-7de77097.entry.js +162 -0
- package/dist/solutions-components/p-7de77097.entry.js.map +1 -0
- package/dist/solutions-components/p-7f2b74a9.entry.js +56 -0
- package/dist/solutions-components/p-7f2b74a9.entry.js.map +1 -0
- package/dist/solutions-components/p-81e606c0.entry.js +915 -0
- package/dist/solutions-components/p-81e606c0.entry.js.map +1 -0
- package/dist/solutions-components/p-86908777.js +62 -3
- package/dist/solutions-components/p-86908777.js.map +1 -0
- package/dist/solutions-components/p-87a0ccb4.entry.js +254 -0
- package/dist/solutions-components/p-87a0ccb4.entry.js.map +1 -0
- package/dist/solutions-components/p-93d3119d.js +1950 -1
- package/dist/solutions-components/p-93d3119d.js.map +1 -0
- package/dist/solutions-components/p-958e2979.entry.js +111 -0
- package/dist/solutions-components/p-958e2979.entry.js.map +1 -0
- package/dist/solutions-components/p-95ddb529.entry.js +181 -0
- package/dist/solutions-components/p-95ddb529.entry.js.map +1 -0
- package/dist/solutions-components/p-991ee695.js +111 -1
- package/dist/solutions-components/p-991ee695.js.map +1 -0
- package/dist/solutions-components/p-99d9b624.entry.js +177 -0
- package/dist/solutions-components/p-99d9b624.entry.js.map +1 -0
- package/dist/solutions-components/p-9a9955db.js +43 -1
- package/dist/solutions-components/p-9a9955db.js.map +1 -0
- package/dist/solutions-components/p-9d925d5b.entry.js +233 -0
- package/dist/solutions-components/p-9d925d5b.entry.js.map +1 -0
- package/dist/solutions-components/p-9dc0210f.entry.js +125 -0
- package/dist/solutions-components/p-9dc0210f.entry.js.map +1 -0
- package/dist/solutions-components/p-9ef1328a.entry.js +542 -0
- package/dist/solutions-components/p-9ef1328a.entry.js.map +1 -0
- package/dist/solutions-components/p-9fec2884.entry.js +216 -0
- package/dist/solutions-components/p-9fec2884.entry.js.map +1 -0
- package/dist/solutions-components/p-a1786d11.entry.js +2380 -0
- package/dist/solutions-components/p-a1786d11.entry.js.map +1 -0
- package/dist/solutions-components/p-a2ada355.entry.js +135 -0
- package/dist/solutions-components/p-a2ada355.entry.js.map +1 -0
- package/dist/solutions-components/p-a57adb27.entry.js +154 -0
- package/dist/solutions-components/p-a57adb27.entry.js.map +1 -0
- package/dist/solutions-components/p-a80b3880.js +16 -1
- package/dist/solutions-components/p-a80b3880.js.map +1 -0
- package/dist/solutions-components/p-a88dd457.entry.js +123 -0
- package/dist/solutions-components/p-a88dd457.entry.js.map +1 -0
- package/dist/solutions-components/p-ac6efd19.entry.js +57 -0
- package/dist/solutions-components/p-ac6efd19.entry.js.map +1 -0
- package/dist/solutions-components/p-ae1fd76b.js +13 -1
- package/dist/solutions-components/p-ae1fd76b.js.map +1 -0
- package/dist/solutions-components/p-afffa81a.entry.js +140 -0
- package/dist/solutions-components/p-afffa81a.entry.js.map +1 -0
- package/dist/solutions-components/p-b0f3ed4d.entry.js +376 -0
- package/dist/solutions-components/p-b0f3ed4d.entry.js.map +1 -0
- package/dist/solutions-components/p-b359dc78.js +43 -1
- package/dist/solutions-components/p-b359dc78.js.map +1 -0
- package/dist/solutions-components/p-b66cba3e.entry.js +97 -0
- package/dist/solutions-components/p-b66cba3e.entry.js.map +1 -0
- package/dist/solutions-components/p-b6c2f470.entry.js +574 -0
- package/dist/solutions-components/p-b6c2f470.entry.js.map +1 -0
- package/dist/solutions-components/p-b978636e.js +16 -1
- package/dist/solutions-components/p-b978636e.js.map +1 -0
- package/dist/solutions-components/p-bd19837e.entry.js +96 -0
- package/dist/solutions-components/p-bd19837e.entry.js.map +1 -0
- package/dist/solutions-components/p-be8cc144.entry.js +567 -0
- package/dist/solutions-components/p-be8cc144.entry.js.map +1 -0
- package/dist/solutions-components/p-bfd20deb.entry.js +80 -0
- package/dist/solutions-components/p-bfd20deb.entry.js.map +1 -0
- package/dist/{esm/mapViewUtils-09f1e7bd.js → solutions-components/p-c20bd963.js} +3 -1
- package/dist/solutions-components/p-c20bd963.js.map +1 -0
- package/dist/solutions-components/p-c2c8442d.entry.js +140 -0
- package/dist/solutions-components/p-c2c8442d.entry.js.map +1 -0
- package/dist/solutions-components/p-c3f93cec.entry.js +158 -0
- package/dist/solutions-components/p-c3f93cec.entry.js.map +1 -0
- package/dist/solutions-components/p-c5721b0f.entry.js +127 -0
- package/dist/solutions-components/p-c5721b0f.entry.js.map +1 -0
- package/dist/solutions-components/p-c818e661.entry.js +107 -0
- package/dist/solutions-components/p-c818e661.entry.js.map +1 -0
- package/dist/solutions-components/p-c9870dc4.entry.js +38 -0
- package/dist/solutions-components/p-c9870dc4.entry.js.map +1 -0
- package/dist/solutions-components/p-cbd9fecf.js +500 -2
- package/dist/solutions-components/p-cbd9fecf.js.map +1 -0
- package/dist/solutions-components/p-cf59eb16.entry.js +2423 -0
- package/dist/solutions-components/p-cf59eb16.entry.js.map +1 -0
- package/dist/solutions-components/p-cfb300c6.entry.js +250 -0
- package/dist/solutions-components/p-cfb300c6.entry.js.map +1 -0
- package/dist/solutions-components/p-d48a24e6.js +756 -2
- package/dist/solutions-components/p-d48a24e6.js.map +1 -0
- package/dist/solutions-components/p-dbad98e8.js +124 -2
- package/dist/solutions-components/p-dbad98e8.js.map +1 -0
- package/dist/solutions-components/p-dd79118e.entry.js +708 -0
- package/dist/solutions-components/p-dd79118e.entry.js.map +1 -0
- package/dist/solutions-components/p-de5416e8.js +30 -1
- package/dist/solutions-components/p-de5416e8.js.map +1 -0
- package/dist/solutions-components/p-de881187.entry.js +87 -0
- package/dist/solutions-components/p-de881187.entry.js.map +1 -0
- package/dist/solutions-components/p-e1905f7b.entry.js +120 -0
- package/dist/solutions-components/p-e1905f7b.entry.js.map +1 -0
- package/dist/solutions-components/p-e405ebe8.entry.js +93 -0
- package/dist/solutions-components/p-e405ebe8.entry.js.map +1 -0
- package/dist/solutions-components/p-e515767a.entry.js +116 -0
- package/dist/solutions-components/p-e515767a.entry.js.map +1 -0
- package/dist/solutions-components/p-e611d8c8.js +30 -1
- package/dist/solutions-components/p-e611d8c8.js.map +1 -0
- package/dist/solutions-components/p-e6a695a5.js +103 -2
- package/dist/solutions-components/p-e6a695a5.js.map +1 -0
- package/dist/solutions-components/p-e6fb9cde.entry.js +1872 -0
- package/dist/solutions-components/p-e6fb9cde.entry.js.map +1 -0
- package/dist/solutions-components/p-e947d3b0.js +7 -1
- package/dist/solutions-components/p-e947d3b0.js.map +1 -0
- package/dist/solutions-components/p-e99b1247.js +207 -1
- package/dist/solutions-components/p-e99b1247.js.map +1 -0
- package/dist/solutions-components/p-eb5b78c3.entry.js +125 -0
- package/dist/solutions-components/p-eb5b78c3.entry.js.map +1 -0
- package/dist/solutions-components/p-eb976965.js +35 -3
- package/dist/solutions-components/p-eb976965.js.map +1 -0
- package/dist/solutions-components/p-ed075c2f.entry.js +186 -0
- package/dist/solutions-components/p-ed075c2f.entry.js.map +1 -0
- package/dist/solutions-components/p-eeb0321d.js +15 -2
- package/dist/solutions-components/p-eeb0321d.js.map +1 -0
- package/dist/solutions-components/p-ef6f9e24.entry.js +609 -0
- package/dist/solutions-components/p-ef6f9e24.entry.js.map +1 -0
- package/dist/solutions-components/p-f0294899.entry.js +84 -0
- package/dist/solutions-components/p-f0294899.entry.js.map +1 -0
- package/dist/{esm/interfaces-e2a2064d.js → solutions-components/p-f04fdb9a.js} +3 -1
- package/dist/solutions-components/p-f04fdb9a.js.map +1 -0
- package/dist/solutions-components/p-f477f146.entry.js +310 -0
- package/dist/solutions-components/p-f477f146.entry.js.map +1 -0
- package/dist/solutions-components/p-f48821a2.js +60 -7
- package/dist/solutions-components/p-f48821a2.js.map +1 -0
- package/dist/solutions-components/p-f496ed0c.entry.js +150 -0
- package/dist/solutions-components/p-f496ed0c.entry.js.map +1 -0
- package/dist/solutions-components/p-f759a6e7.js +196 -1
- package/dist/solutions-components/p-f759a6e7.js.map +1 -0
- package/dist/solutions-components/p-fc884dd6.js +30 -16
- package/dist/solutions-components/p-fc884dd6.js.map +1 -0
- package/dist/solutions-components/solutions-components.css +10531 -1
- package/dist/solutions-components/solutions-components.esm.js +22 -1
- package/dist/solutions-components/solutions-components.esm.js.map +1 -0
- package/dist/solutions-components/utils/solution-store.ts +3 -3
- package/dist/solutions-components_commit.txt +8 -6
- package/dist/types/components/solution-config-modal/solution-config-modal.d.ts +69 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +4 -2
- package/dist/types/components.d.ts +43 -5
- package/dist/types/preact.d.ts +4 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -447
- package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -437
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -62
- package/dist/esm/calcite-modal.entry.js +0 -443
- package/dist/esm/calcite-panel_2.entry.js +0 -432
- package/dist/esm/calcite-scrim.entry.js +0 -58
- package/dist/solutions-components/p-006c6ae1.entry.js +0 -11
- package/dist/solutions-components/p-04a37fc0.entry.js +0 -6
- package/dist/solutions-components/p-062dbde8.entry.js +0 -6
- package/dist/solutions-components/p-0b941521.entry.js +0 -11
- package/dist/solutions-components/p-0c80eb51.entry.js +0 -11
- package/dist/solutions-components/p-10501e21.entry.js +0 -23
- package/dist/solutions-components/p-109e4684.entry.js +0 -6
- package/dist/solutions-components/p-12dfd43e.entry.js +0 -11
- package/dist/solutions-components/p-1c3bcd99.entry.js +0 -12
- package/dist/solutions-components/p-1c589630.entry.js +0 -6
- package/dist/solutions-components/p-1fb471cf.entry.js +0 -11
- package/dist/solutions-components/p-23275dbd.entry.js +0 -6
- package/dist/solutions-components/p-236d76e7.entry.js +0 -11
- package/dist/solutions-components/p-29246858.entry.js +0 -11
- package/dist/solutions-components/p-2af67c67.entry.js +0 -6
- package/dist/solutions-components/p-2bee764f.entry.js +0 -11
- package/dist/solutions-components/p-2f6b4f04.entry.js +0 -6
- package/dist/solutions-components/p-305ae3fe.entry.js +0 -11
- package/dist/solutions-components/p-343e325d.entry.js +0 -11
- package/dist/solutions-components/p-3485601e.entry.js +0 -6
- package/dist/solutions-components/p-395e9b6c.entry.js +0 -6
- package/dist/solutions-components/p-39c5f2d2.entry.js +0 -6
- package/dist/solutions-components/p-3c4f2257.entry.js +0 -11
- package/dist/solutions-components/p-3c8ec7a3.entry.js +0 -12
- package/dist/solutions-components/p-4130fbcd.entry.js +0 -11
- package/dist/solutions-components/p-421cbb15.entry.js +0 -6
- package/dist/solutions-components/p-43fa414d.entry.js +0 -11
- package/dist/solutions-components/p-4760f22a.entry.js +0 -6
- package/dist/solutions-components/p-4fb6d2cf.entry.js +0 -11
- package/dist/solutions-components/p-54384555.entry.js +0 -11
- package/dist/solutions-components/p-5493f036.entry.js +0 -6
- package/dist/solutions-components/p-551fd063.entry.js +0 -11
- package/dist/solutions-components/p-5a61ef0d.entry.js +0 -6
- package/dist/solutions-components/p-6a3ce8f6.entry.js +0 -6
- package/dist/solutions-components/p-6b9dc092.js +0 -21
- package/dist/solutions-components/p-6be581f5.entry.js +0 -6
- package/dist/solutions-components/p-6cf432f9.entry.js +0 -11
- package/dist/solutions-components/p-70368b2b.entry.js +0 -6
- package/dist/solutions-components/p-708ffad0.entry.js +0 -11
- package/dist/solutions-components/p-7321ba65.entry.js +0 -11
- package/dist/solutions-components/p-75b35018.entry.js +0 -11
- package/dist/solutions-components/p-764c0a90.entry.js +0 -11
- package/dist/solutions-components/p-77031b01.entry.js +0 -11
- package/dist/solutions-components/p-778a1b4a.entry.js +0 -11
- package/dist/solutions-components/p-7cdc6089.entry.js +0 -6
- package/dist/solutions-components/p-81467529.entry.js +0 -6
- package/dist/solutions-components/p-834380d6.entry.js +0 -11
- package/dist/solutions-components/p-89cc843b.entry.js +0 -11
- package/dist/solutions-components/p-8e3a2736.entry.js +0 -11
- package/dist/solutions-components/p-8e8b182f.entry.js +0 -12
- package/dist/solutions-components/p-8f052987.entry.js +0 -11
- package/dist/solutions-components/p-93790a9e.entry.js +0 -37
- package/dist/solutions-components/p-9bbee464.entry.js +0 -6
- package/dist/solutions-components/p-9bdd4abe.entry.js +0 -17
- package/dist/solutions-components/p-a4a7d49d.entry.js +0 -17
- package/dist/solutions-components/p-a7036d68.entry.js +0 -11
- package/dist/solutions-components/p-ac91cd40.entry.js +0 -11
- package/dist/solutions-components/p-acd0a09f.entry.js +0 -11
- package/dist/solutions-components/p-acd3b2bf.entry.js +0 -11
- package/dist/solutions-components/p-aea937fb.entry.js +0 -12
- package/dist/solutions-components/p-b1b36556.entry.js +0 -11
- package/dist/solutions-components/p-b25f6ebe.js +0 -257
- package/dist/solutions-components/p-b2ae8634.entry.js +0 -6
- package/dist/solutions-components/p-ba104266.entry.js +0 -11
- package/dist/solutions-components/p-bfcab358.entry.js +0 -11
- package/dist/solutions-components/p-c848d1bd.entry.js +0 -29
- package/dist/solutions-components/p-c9766584.entry.js +0 -6
- package/dist/solutions-components/p-d2cc1b94.entry.js +0 -12
- package/dist/solutions-components/p-d51a72d2.entry.js +0 -11
- package/dist/solutions-components/p-d88fe54b.entry.js +0 -18
- package/dist/solutions-components/p-daee23cc.entry.js +0 -11
- package/dist/solutions-components/p-db7d14d5.entry.js +0 -12
- package/dist/solutions-components/p-dc724c1d.entry.js +0 -11
- package/dist/solutions-components/p-dc7bc20f.entry.js +0 -11
- package/dist/solutions-components/p-de242ea9.entry.js +0 -6
- package/dist/solutions-components/p-e4ebb82a.entry.js +0 -11
- package/dist/solutions-components/p-e64c5c11.entry.js +0 -6
- package/dist/solutions-components/p-e9e47eab.entry.js +0 -6
- package/dist/solutions-components/p-eb3be6d4.entry.js +0 -6
- package/dist/solutions-components/p-ed27c151.entry.js +0 -6
- package/dist/solutions-components/p-ef170bb1.entry.js +0 -6
- package/dist/solutions-components/p-f044863f.entry.js +0 -16
- package/dist/solutions-components/p-f0bae2f0.entry.js +0 -37
- package/dist/solutions-components/p-f5a3b34f.entry.js +0 -23
- package/dist/solutions-components/p-fa2575c2.entry.js +0 -6
- package/dist/solutions-components/p-fe0fdd8b.js +0 -36
@@ -3,5 +3,2027 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
let e,t,n,l=!1,o=!1,s=!1,i=!1,r=null,c=!1;const f=e=>{const t=new URL(e,be.t);return t.origin!==me.location.origin?t.href:t.pathname},a="http://www.w3.org/1999/xlink",u={},d=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!d(l))&&(l+=""),i&&r?c[c.length-1].l+=l:c.push(i?h(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,m);const a=h(e,null);return a.o=t,c.length>0&&(a.i=c),a.u=o,a.$=s,a},h=(e,t)=>({h:0,p:e,l:t,m:null,i:null,o:null,u:null,$:null}),p={},m={forEach:(e,t)=>e.map(y).forEach(t),map:(e,t)=>e.map(y).map(t).map(b)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.$,vtag:e.p,vtext:e.l}),b=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),$(e.vtag,t,...e.vchildren||[])}const t=h(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.$=e.vname,t},w=e=>ce(e).g,g=(e,t,n)=>{const l=w(e);return{emit:e=>v(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},v=(e,t,n)=>{const l=be.ce(t,n);return e.dispatchEvent(l),l},k=new WeakMap,j=e=>"sc-"+e.v,S=(e,t,n,l,o,s)=>{if(n!==l){let i=ue(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=C(n),s=C(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=d(l);if((i||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(a,t):e.removeAttribute(t)):(!i||4&s||o)&&!c&&(l=!0===l?"":l,f?e.setAttributeNS(a,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ue(me,r)?r.slice(2):r[2]+t.slice(3),n&&be.rel(e,t,n,!1),l&&be.ael(e,t,l,!1)}},O=/\s/,C=e=>e?e.split(O):[],M=(e,t,n,l)=>{const o=11===t.m.nodeType&&t.m.host?t.m.host:t.m,s=e&&e.o||u,i=t.o||u;for(l in s)l in i||S(o,l,s[l],void 0,n,t.h);for(l in i)S(o,l,s[l],i[l],n,t.h)},R=(o,r,c,f)=>{const a=r.i[c];let u,d,$,h=0;if(l||(s=!0,"slot"===a.p&&(e&&f.classList.add(e+"-s"),a.h|=a.i?2:1)),null!==a.l)u=a.m=ye.createTextNode(a.l);else if(1&a.h)u=a.m=ye.createTextNode("");else{if(i||(i="svg"===a.p),u=a.m=ye.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&a.h?"slot-fb":a.p),i&&"foreignObject"===a.p&&(i=!1),M(null,a,i),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.i)for(h=0;h<a.i.length;++h)d=R(o,a,h,u),d&&u.appendChild(d);"svg"===a.p?i=!1:"foreignObject"===u.tagName&&(i=!0)}return u["s-hn"]=n,3&a.h&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.$||"",$=o&&o.i&&o.i[c],$&&$.p===a.p&&o.m&&x(o.m,!1)),u},x=(e,t)=>{be.h|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(N(o).insertBefore(o,E(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&x(o,t)}be.h&=-2},L=(e,t,l,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=R(null,l,s,e),r&&(o[s].m=r,c.insertBefore(r,E(t))))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.m,H(l),o=!0,s["s-ol"]?s["s-ol"].remove():x(s,!0),s.remove())},T=(e,t)=>e.p===t.p&&("slot"===e.p?e.$===t.$:e.u===t.u),E=e=>e&&e["s-ol"]||e,N=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,W=(e,t)=>{const n=t.m=e.m,l=e.i,o=t.i,s=t.p,r=t.l;let c;null===r?(i="svg"===s||"foreignObject"!==s&&i,"slot"===s||M(e,t,i),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],d=t[a],$=l.length-1,h=l[0],p=l[$];for(;i<=a&&r<=$;)if(null==u)u=t[++i];else if(null==d)d=t[--a];else if(null==h)h=l[++r];else if(null==p)p=l[--$];else if(T(u,h))W(u,h),u=t[++i],h=l[++r];else if(T(d,p))W(d,p),d=t[--a],p=l[--$];else if(T(u,p))"slot"!==u.p&&"slot"!==p.p||x(u.m.parentNode,!1),W(u,p),e.insertBefore(u.m,d.m.nextSibling),u=t[++i],p=l[--$];else if(T(d,h))"slot"!==u.p&&"slot"!==p.p||x(d.m.parentNode,!1),W(d,h),e.insertBefore(d.m,u.m),d=t[--a],h=l[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].u&&t[f].u===h.u){c=f;break}c>=0?(s=t[c],s.p!==h.p?o=R(t&&t[r],n,c,e):(W(s,h),t[c]=void 0,o=s.m),h=l[++r]):(o=R(t&&t[r],n,r,e),h=l[++r]),o&&N(u.m).insertBefore(o,E(u.m))}i>a?L(e,null==l[$+1]?null:l[$+1].m,n,l,r,$):r>$&&P(t,i,a)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),L(n,null,t,o,0,o.length-1)):null!==l&&P(l,0,l.length-1),i&&"svg"===s&&(i=!1)):(c=n["s-cr"])?c.parentNode.textContent=r:e.l!==r&&(n.data=r)},F=e=>{const t=e.childNodes;let n,l,o,s,i,r;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){n.hidden=!0;break}F(n)}},U=[],A=e=>{let t,n,l,s,i,r,c=0;const f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(D(n,s)?(i=U.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.j=t:U.push({j:t,k:n}),n["s-sr"]&&U.map((e=>{D(e.k,n["s-sn"])&&(i=U.find((e=>e.k===n)),i&&!e.j&&(e.j=i.j))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&A(t)}},D=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,H=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(H)},q=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},V=(e,t)=>{if(e.h|=16,!(4&e.h))return q(e,e.O),Me((()=>_(e,t)));e.h|=512},_=(e,t)=>{const n=e.C;let l;return t&&(e.h|=256,e.M&&(e.M.map((([e,t])=>Q(n,e,t))),e.M=null),l=Q(n,"componentWillLoad")),l=X(l,(()=>Q(n,"componentWillRender"))),X(l,(()=>z(e,n,t)))},z=async(e,t,n)=>{const l=e.g,o=l["s-rc"];n&&(e=>{const t=e.R,n=e.g,l=t.h,o=((e,t)=>{let n=j(t);const l=pe.get(n);if(e=11===e.nodeType?e:ye,l)if("string"==typeof l){let t,o=k.get(e=e.head||e);o||k.set(e,o=new Set),o.has(n)||(t=ye.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);B(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>I(e);0===t.length?n():(Promise.all(t).then(n),e.h|=4,t.length=0)}},B=(i,c)=>{try{r=c,c=c.render(),i.h&=-17,i.h|=2,((i,r)=>{const c=i.g,f=i.R,a=i.L||h(null,null),u=(e=>e&&e.p===p)(r)?r:$(null,null,r);if(n=c.tagName,f.P&&(u.o=u.o||{},f.P.map((([e,t])=>u.o[t]=c[e]))),u.p=null,u.h|=4,i.L=u,u.m=a.m=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&f.h),o=!1,W(a,u),be.h|=1,s){let e,t,n,l,o,s;A(u.m);let i=0;for(;i<U.length;i++)e=U[i],t=e.k,t["s-ol"]||(n=ye.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<U.length;i++)if(e=U[i],t=e.k,e.j){for(l=e.j.parentNode,o=e.j.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&F(u.m),be.h&=-2,U.length=0})(i,c)}catch(e){de(e,i.g)}return r=null,null},G=()=>r,I=e=>{const t=e.g,n=e.C,l=e.O;Q(n,"componentDidRender"),64&e.h||(e.h|=64,Y(t),Q(n,"componentDidLoad"),e.T(t),l||K()),e.N(t),e.S&&(e.S(),e.S=void 0),512&e.h&&Ce((()=>V(e,!1))),e.h&=-517},J=e=>{{const t=ce(e),n=t.g.isConnected;return n&&2==(18&t.h)&&V(t,!1),n}},K=()=>{Y(ye.documentElement),Ce((()=>v(me,"appload",{detail:{namespace:"solutions-components"}})))},Q=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){de(e)}},X=(e,t)=>e&&e.then?e.then(t):t(),Y=e=>e.classList.add("hydrated"),Z=(e,t,n)=>{if(t.W){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>ce(this).U.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ce(e),s=o.g,i=o.U.get(t),r=o.h,c=o.C;if(n=((e,t)=>null==e||d(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.U.set(t,n),c)){if(l.F&&128&r){const e=l.F[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){de(e,s)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,i,t))return;V(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=ce(this);return n.A.then((()=>n.C[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){be.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.P.push([e,o]),o}))}}return e},ee=e=>{Q(e,"connectedCallback")},te=(e,t={})=>{const n=[],l=t.exclude||[],o=me.customElements,s=ye.head,i=s.querySelector("meta[charset]"),r=ye.createElement("style"),c=[];let f,a=!0;Object.assign(be,t),be.t=new URL(t.resourcesUrl||"./",ye.baseURI).href,e.map((e=>{e[1].map((t=>{const s={h:t[0],v:t[1],W:t[2],D:t[3]};s.W=t[2],s.D=t[3],s.P=[],s.F={};const i=s.v,r=class extends HTMLElement{constructor(e){super(e),ae(e=this,s),1&s.h&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),a?c.push(this):be.jmp((()=>(e=>{if(0==(1&be.h)){const t=ce(e),n=t.R,l=()=>{};if(1&t.h)le(e,t,n.D),ee(t.C);else{t.h|=1,12&n.h&&(e=>{const t=e["s-cr"]=ye.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){q(t,t.O=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.h)){{if(t.h|=32,(o=he(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.F=o.watchers,Z(o,n,2),o.isProxied=!0);const e=()=>{};t.h|=8;try{new o(t)}catch(e){de(e)}t.h&=-9,t.h|=128,e(),ee(t.C)}if(o.style){let e=o.style;const t=j(n);if(!pe.has(t)){const l=()=>{};((e,t,n)=>{let l=pe.get(e);ge&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,pe.set(e,l)})(t,e,!!(1&n.h)),l()}}}const s=t.O,i=()=>V(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){be.jmp((()=>(()=>{if(0==(1&be.h)){const e=ce(this),t=e.C;e.H&&(e.H.map((e=>e())),e.H=void 0),Q(t,"disconnectedCallback")}})()))}componentOnReady(){return ce(this).q}};s.V=e[0],l.includes(i)||o.get(i)||(n.push(i),o.define(i,Z(r,s,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),s.insertBefore(r,i?i.nextSibling:s.firstChild),a=!1,c.length?c.map((e=>e.connectedCallback())):be.jmp((()=>f=setTimeout(K,30)))},ne=(e,t)=>t,le=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=se(e,n),i=oe(t,o),r=ie(n);be.ael(s,l,i,r),(t.H=t.H||[]).push((()=>be.rel(s,l,i,r)))}))},oe=(e,t)=>n=>{try{256&e.h?e.C[t](n):(e.M=e.M||[]).push([t,n])}catch(e){de(e)}},se=(e,t)=>4&t?ye:8&t?me:16&t?ye.body:e,ie=e=>0!=(2&e),re=new WeakMap,ce=e=>re.get(e),fe=(e,t)=>re.set(t.C=e,t),ae=(e,t)=>{const n={h:0,g:e,R:t,U:new Map};return n.A=new Promise((e=>n.N=e)),n.q=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],le(e,n,t.D),re.set(e,n)},ue=(e,t)=>t in e,de=(e,t)=>(0,console.error)(e,t),$e=new Map,he=e=>{const t=e.v.replace(/-/g,"_"),n=e.V,l=$e.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>($e.set(n,e),e[t])),de)
|
7
|
-
|
6
|
+
const NAMESPACE = 'solutions-components';
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Virtual DOM patching algorithm based on Snabbdom by
|
10
|
+
* Simon Friis Vindum (@paldepind)
|
11
|
+
* Licensed under the MIT License
|
12
|
+
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
13
|
+
*
|
14
|
+
* Modified for Stencil's renderer and slot projection
|
15
|
+
*/
|
16
|
+
let scopeId;
|
17
|
+
let contentRef;
|
18
|
+
let hostTagName;
|
19
|
+
let useNativeShadowDom = false;
|
20
|
+
let checkSlotFallbackVisibility = false;
|
21
|
+
let checkSlotRelocate = false;
|
22
|
+
let isSvgMode = false;
|
23
|
+
let renderingRef = null;
|
24
|
+
let queuePending = false;
|
25
|
+
const getAssetPath = (path) => {
|
26
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
27
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
28
|
+
};
|
29
|
+
const createTime = (fnName, tagName = '') => {
|
30
|
+
{
|
31
|
+
return () => {
|
32
|
+
return;
|
33
|
+
};
|
34
|
+
}
|
35
|
+
};
|
36
|
+
const uniqueTime = (key, measureText) => {
|
37
|
+
{
|
38
|
+
return () => {
|
39
|
+
return;
|
40
|
+
};
|
41
|
+
}
|
42
|
+
};
|
43
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
44
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
45
|
+
/**
|
46
|
+
* Default style mode id
|
47
|
+
*/
|
48
|
+
/**
|
49
|
+
* Reusable empty obj/array
|
50
|
+
* Don't add values to these!!
|
51
|
+
*/
|
52
|
+
const EMPTY_OBJ = {};
|
53
|
+
/**
|
54
|
+
* Namespaces
|
55
|
+
*/
|
56
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
57
|
+
const HTML_NS = 'http://www.w3.org/1999/xhtml';
|
58
|
+
const isDef = (v) => v != null;
|
59
|
+
const isComplexType = (o) => {
|
60
|
+
// https://jsperf.com/typeof-fn-object/5
|
61
|
+
o = typeof o;
|
62
|
+
return o === 'object' || o === 'function';
|
63
|
+
};
|
64
|
+
/**
|
65
|
+
* Production h() function based on Preact by
|
66
|
+
* Jason Miller (@developit)
|
67
|
+
* Licensed under the MIT License
|
68
|
+
* https://github.com/developit/preact/blob/master/LICENSE
|
69
|
+
*
|
70
|
+
* Modified for Stencil's compiler and vdom
|
71
|
+
*/
|
72
|
+
// const stack: any[] = [];
|
73
|
+
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
74
|
+
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
75
|
+
const h = (nodeName, vnodeData, ...children) => {
|
76
|
+
let child = null;
|
77
|
+
let key = null;
|
78
|
+
let slotName = null;
|
79
|
+
let simple = false;
|
80
|
+
let lastSimple = false;
|
81
|
+
const vNodeChildren = [];
|
82
|
+
const walk = (c) => {
|
83
|
+
for (let i = 0; i < c.length; i++) {
|
84
|
+
child = c[i];
|
85
|
+
if (Array.isArray(child)) {
|
86
|
+
walk(child);
|
87
|
+
}
|
88
|
+
else if (child != null && typeof child !== 'boolean') {
|
89
|
+
if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
|
90
|
+
child = String(child);
|
91
|
+
}
|
92
|
+
if (simple && lastSimple) {
|
93
|
+
// If the previous child was simple (string), we merge both
|
94
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
95
|
+
}
|
96
|
+
else {
|
97
|
+
// Append a new vNode, if it's text, we create a text vNode
|
98
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
99
|
+
}
|
100
|
+
lastSimple = simple;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
};
|
104
|
+
walk(children);
|
105
|
+
if (vnodeData) {
|
106
|
+
// normalize class / classname attributes
|
107
|
+
if (vnodeData.key) {
|
108
|
+
key = vnodeData.key;
|
109
|
+
}
|
110
|
+
if (vnodeData.name) {
|
111
|
+
slotName = vnodeData.name;
|
112
|
+
}
|
113
|
+
{
|
114
|
+
const classData = vnodeData.className || vnodeData.class;
|
115
|
+
if (classData) {
|
116
|
+
vnodeData.class =
|
117
|
+
typeof classData !== 'object'
|
118
|
+
? classData
|
119
|
+
: Object.keys(classData)
|
120
|
+
.filter((k) => classData[k])
|
121
|
+
.join(' ');
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
if (typeof nodeName === 'function') {
|
126
|
+
// nodeName is a functional component
|
127
|
+
return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
|
128
|
+
}
|
129
|
+
const vnode = newVNode(nodeName, null);
|
130
|
+
vnode.$attrs$ = vnodeData;
|
131
|
+
if (vNodeChildren.length > 0) {
|
132
|
+
vnode.$children$ = vNodeChildren;
|
133
|
+
}
|
134
|
+
{
|
135
|
+
vnode.$key$ = key;
|
136
|
+
}
|
137
|
+
{
|
138
|
+
vnode.$name$ = slotName;
|
139
|
+
}
|
140
|
+
return vnode;
|
141
|
+
};
|
142
|
+
const newVNode = (tag, text) => {
|
143
|
+
const vnode = {
|
144
|
+
$flags$: 0,
|
145
|
+
$tag$: tag,
|
146
|
+
$text$: text,
|
147
|
+
$elm$: null,
|
148
|
+
$children$: null,
|
149
|
+
};
|
150
|
+
{
|
151
|
+
vnode.$attrs$ = null;
|
152
|
+
}
|
153
|
+
{
|
154
|
+
vnode.$key$ = null;
|
155
|
+
}
|
156
|
+
{
|
157
|
+
vnode.$name$ = null;
|
158
|
+
}
|
159
|
+
return vnode;
|
160
|
+
};
|
161
|
+
const Host = {};
|
162
|
+
const isHost = (node) => node && node.$tag$ === Host;
|
163
|
+
const vdomFnUtils = {
|
164
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
165
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
166
|
+
};
|
167
|
+
const convertToPublic = (node) => ({
|
168
|
+
vattrs: node.$attrs$,
|
169
|
+
vchildren: node.$children$,
|
170
|
+
vkey: node.$key$,
|
171
|
+
vname: node.$name$,
|
172
|
+
vtag: node.$tag$,
|
173
|
+
vtext: node.$text$,
|
174
|
+
});
|
175
|
+
const convertToPrivate = (node) => {
|
176
|
+
if (typeof node.vtag === 'function') {
|
177
|
+
const vnodeData = Object.assign({}, node.vattrs);
|
178
|
+
if (node.vkey) {
|
179
|
+
vnodeData.key = node.vkey;
|
180
|
+
}
|
181
|
+
if (node.vname) {
|
182
|
+
vnodeData.name = node.vname;
|
183
|
+
}
|
184
|
+
return h(node.vtag, vnodeData, ...(node.vchildren || []));
|
185
|
+
}
|
186
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
187
|
+
vnode.$attrs$ = node.vattrs;
|
188
|
+
vnode.$children$ = node.vchildren;
|
189
|
+
vnode.$key$ = node.vkey;
|
190
|
+
vnode.$name$ = node.vname;
|
191
|
+
return vnode;
|
192
|
+
};
|
193
|
+
/**
|
194
|
+
* Parse a new property value for a given property type.
|
195
|
+
*
|
196
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
197
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
198
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
199
|
+
* 2. the type stored from `propType`.
|
200
|
+
*
|
201
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
202
|
+
*
|
203
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
204
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
205
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
206
|
+
* ```tsx
|
207
|
+
* <my-cmp prop-val={0}></my-cmp>
|
208
|
+
* ```
|
209
|
+
*
|
210
|
+
* HTML prop values on the other hand, will always a string
|
211
|
+
*
|
212
|
+
* @param propValue the new value to coerce to some type
|
213
|
+
* @param propType the type of the prop, expressed as a binary number
|
214
|
+
* @returns the parsed/coerced value
|
215
|
+
*/
|
216
|
+
const parsePropertyValue = (propValue, propType) => {
|
217
|
+
// ensure this value is of the correct prop type
|
218
|
+
if (propValue != null && !isComplexType(propValue)) {
|
219
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
220
|
+
// per the HTML spec, any string value means it is a boolean true value
|
221
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
222
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
223
|
+
}
|
224
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
225
|
+
// force it to be a number
|
226
|
+
return parseFloat(propValue);
|
227
|
+
}
|
228
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
229
|
+
// could have been passed as a number or boolean
|
230
|
+
// but we still want it as a string
|
231
|
+
return String(propValue);
|
232
|
+
}
|
233
|
+
// redundant return here for better minification
|
234
|
+
return propValue;
|
235
|
+
}
|
236
|
+
// not sure exactly what type we want
|
237
|
+
// so no need to change to a different type
|
238
|
+
return propValue;
|
239
|
+
};
|
240
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
241
|
+
const createEvent = (ref, name, flags) => {
|
242
|
+
const elm = getElement(ref);
|
243
|
+
return {
|
244
|
+
emit: (detail) => {
|
245
|
+
return emitEvent(elm, name, {
|
246
|
+
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
247
|
+
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
248
|
+
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
249
|
+
detail,
|
250
|
+
});
|
251
|
+
},
|
252
|
+
};
|
253
|
+
};
|
254
|
+
/**
|
255
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
256
|
+
* @param elm the target of the Event
|
257
|
+
* @param name the name to give the custom Event
|
258
|
+
* @param opts options for configuring a custom Event
|
259
|
+
* @returns the custom Event
|
260
|
+
*/
|
261
|
+
const emitEvent = (elm, name, opts) => {
|
262
|
+
const ev = plt.ce(name, opts);
|
263
|
+
elm.dispatchEvent(ev);
|
264
|
+
return ev;
|
265
|
+
};
|
266
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
267
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
268
|
+
let style = styles.get(scopeId);
|
269
|
+
if (supportsConstructableStylesheets && allowCS) {
|
270
|
+
style = (style || new CSSStyleSheet());
|
271
|
+
if (typeof style === 'string') {
|
272
|
+
style = cssText;
|
273
|
+
}
|
274
|
+
else {
|
275
|
+
style.replaceSync(cssText);
|
276
|
+
}
|
277
|
+
}
|
278
|
+
else {
|
279
|
+
style = cssText;
|
280
|
+
}
|
281
|
+
styles.set(scopeId, style);
|
282
|
+
};
|
283
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
284
|
+
let scopeId = getScopeId(cmpMeta);
|
285
|
+
const style = styles.get(scopeId);
|
286
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
287
|
+
// so the fallback is to always use the document for the root node in those cases
|
288
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
289
|
+
if (style) {
|
290
|
+
if (typeof style === 'string') {
|
291
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
292
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
293
|
+
let styleElm;
|
294
|
+
if (!appliedStyles) {
|
295
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
296
|
+
}
|
297
|
+
if (!appliedStyles.has(scopeId)) {
|
298
|
+
{
|
299
|
+
{
|
300
|
+
styleElm = doc.createElement('style');
|
301
|
+
styleElm.innerHTML = style;
|
302
|
+
}
|
303
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
304
|
+
}
|
305
|
+
if (appliedStyles) {
|
306
|
+
appliedStyles.add(scopeId);
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
311
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
312
|
+
}
|
313
|
+
}
|
314
|
+
return scopeId;
|
315
|
+
};
|
316
|
+
const attachStyles = (hostRef) => {
|
317
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
318
|
+
const elm = hostRef.$hostElement$;
|
319
|
+
const flags = cmpMeta.$flags$;
|
320
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
321
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
322
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
323
|
+
// only required when we're NOT using native shadow dom (slot)
|
324
|
+
// or this browser doesn't support native shadow dom
|
325
|
+
// and this host element was NOT created with SSR
|
326
|
+
// let's pick out the inner content for slot projection
|
327
|
+
// create a node to represent where the original
|
328
|
+
// content was first placed, which is useful later on
|
329
|
+
// DOM WRITE!!
|
330
|
+
elm['s-sc'] = scopeId;
|
331
|
+
elm.classList.add(scopeId + '-h');
|
332
|
+
}
|
333
|
+
endAttachStyles();
|
334
|
+
};
|
335
|
+
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
336
|
+
/**
|
337
|
+
* Production setAccessor() function based on Preact by
|
338
|
+
* Jason Miller (@developit)
|
339
|
+
* Licensed under the MIT License
|
340
|
+
* https://github.com/developit/preact/blob/master/LICENSE
|
341
|
+
*
|
342
|
+
* Modified for Stencil's compiler and vdom
|
343
|
+
*/
|
344
|
+
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
345
|
+
if (oldValue !== newValue) {
|
346
|
+
let isProp = isMemberInElement(elm, memberName);
|
347
|
+
let ln = memberName.toLowerCase();
|
348
|
+
if (memberName === 'class') {
|
349
|
+
const classList = elm.classList;
|
350
|
+
const oldClasses = parseClassList(oldValue);
|
351
|
+
const newClasses = parseClassList(newValue);
|
352
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
353
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
354
|
+
}
|
355
|
+
else if (memberName === 'style') {
|
356
|
+
// update style attribute, css properties and values
|
357
|
+
{
|
358
|
+
for (const prop in oldValue) {
|
359
|
+
if (!newValue || newValue[prop] == null) {
|
360
|
+
if (prop.includes('-')) {
|
361
|
+
elm.style.removeProperty(prop);
|
362
|
+
}
|
363
|
+
else {
|
364
|
+
elm.style[prop] = '';
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}
|
368
|
+
}
|
369
|
+
for (const prop in newValue) {
|
370
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
371
|
+
if (prop.includes('-')) {
|
372
|
+
elm.style.setProperty(prop, newValue[prop]);
|
373
|
+
}
|
374
|
+
else {
|
375
|
+
elm.style[prop] = newValue[prop];
|
376
|
+
}
|
377
|
+
}
|
378
|
+
}
|
379
|
+
}
|
380
|
+
else if (memberName === 'key')
|
381
|
+
;
|
382
|
+
else if (memberName === 'ref') {
|
383
|
+
// minifier will clean this up
|
384
|
+
if (newValue) {
|
385
|
+
newValue(elm);
|
386
|
+
}
|
387
|
+
}
|
388
|
+
else if ((!isProp ) &&
|
389
|
+
memberName[0] === 'o' &&
|
390
|
+
memberName[1] === 'n') {
|
391
|
+
// Event Handlers
|
392
|
+
// so if the member name starts with "on" and the 3rd characters is
|
393
|
+
// a capital letter, and it's not already a member on the element,
|
394
|
+
// then we're assuming it's an event listener
|
395
|
+
if (memberName[2] === '-') {
|
396
|
+
// on- prefixed events
|
397
|
+
// allows to be explicit about the dom event to listen without any magic
|
398
|
+
// under the hood:
|
399
|
+
// <my-cmp on-click> // listens for "click"
|
400
|
+
// <my-cmp on-Click> // listens for "Click"
|
401
|
+
// <my-cmp on-ionChange> // listens for "ionChange"
|
402
|
+
// <my-cmp on-EVENTS> // listens for "EVENTS"
|
403
|
+
memberName = memberName.slice(3);
|
404
|
+
}
|
405
|
+
else if (isMemberInElement(win, ln)) {
|
406
|
+
// standard event
|
407
|
+
// the JSX attribute could have been "onMouseOver" and the
|
408
|
+
// member name "onmouseover" is on the window's prototype
|
409
|
+
// so let's add the listener "mouseover", which is all lowercased
|
410
|
+
memberName = ln.slice(2);
|
411
|
+
}
|
412
|
+
else {
|
413
|
+
// custom event
|
414
|
+
// the JSX attribute could have been "onMyCustomEvent"
|
415
|
+
// so let's trim off the "on" prefix and lowercase the first character
|
416
|
+
// and add the listener "myCustomEvent"
|
417
|
+
// except for the first character, we keep the event name case
|
418
|
+
memberName = ln[2] + memberName.slice(3);
|
419
|
+
}
|
420
|
+
if (oldValue) {
|
421
|
+
plt.rel(elm, memberName, oldValue, false);
|
422
|
+
}
|
423
|
+
if (newValue) {
|
424
|
+
plt.ael(elm, memberName, newValue, false);
|
425
|
+
}
|
426
|
+
}
|
427
|
+
else {
|
428
|
+
// Set property if it exists and it's not a SVG
|
429
|
+
const isComplex = isComplexType(newValue);
|
430
|
+
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
431
|
+
try {
|
432
|
+
if (!elm.tagName.includes('-')) {
|
433
|
+
const n = newValue == null ? '' : newValue;
|
434
|
+
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
435
|
+
if (memberName === 'list') {
|
436
|
+
isProp = false;
|
437
|
+
}
|
438
|
+
else if (oldValue == null || elm[memberName] != n) {
|
439
|
+
elm[memberName] = n;
|
440
|
+
}
|
441
|
+
}
|
442
|
+
else {
|
443
|
+
elm[memberName] = newValue;
|
444
|
+
}
|
445
|
+
}
|
446
|
+
catch (e) { }
|
447
|
+
}
|
448
|
+
/**
|
449
|
+
* Need to manually update attribute if:
|
450
|
+
* - memberName is not an attribute
|
451
|
+
* - if we are rendering the host element in order to reflect attribute
|
452
|
+
* - if it's a SVG, since properties might not work in <svg>
|
453
|
+
* - if the newValue is null/undefined or 'false'.
|
454
|
+
*/
|
455
|
+
let xlink = false;
|
456
|
+
{
|
457
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
|
458
|
+
memberName = ln;
|
459
|
+
xlink = true;
|
460
|
+
}
|
461
|
+
}
|
462
|
+
if (newValue == null || newValue === false) {
|
463
|
+
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
464
|
+
if (xlink) {
|
465
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
466
|
+
}
|
467
|
+
else {
|
468
|
+
elm.removeAttribute(memberName);
|
469
|
+
}
|
470
|
+
}
|
471
|
+
}
|
472
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
473
|
+
newValue = newValue === true ? '' : newValue;
|
474
|
+
if (xlink) {
|
475
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
476
|
+
}
|
477
|
+
else {
|
478
|
+
elm.setAttribute(memberName, newValue);
|
479
|
+
}
|
480
|
+
}
|
481
|
+
}
|
482
|
+
}
|
483
|
+
};
|
484
|
+
const parseClassListRegex = /\s/;
|
485
|
+
const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
|
486
|
+
const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
487
|
+
// if the element passed in is a shadow root, which is a document fragment
|
488
|
+
// then we want to be adding attrs/props to the shadow root's "host" element
|
489
|
+
// if it's not a shadow root, then we add attrs/props to the same element
|
490
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
491
|
+
? newVnode.$elm$.host
|
492
|
+
: newVnode.$elm$;
|
493
|
+
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
494
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
495
|
+
{
|
496
|
+
// remove attributes no longer present on the vnode by setting them to undefined
|
497
|
+
for (memberName in oldVnodeAttrs) {
|
498
|
+
if (!(memberName in newVnodeAttrs)) {
|
499
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
|
500
|
+
}
|
501
|
+
}
|
502
|
+
}
|
503
|
+
// add new & update changed attributes
|
504
|
+
for (memberName in newVnodeAttrs) {
|
505
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
506
|
+
}
|
507
|
+
};
|
508
|
+
/**
|
509
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
510
|
+
*
|
511
|
+
* @param oldParentVNode the parent VNode from the previous render
|
512
|
+
* @param newParentVNode the parent VNode from the current render
|
513
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
514
|
+
* children, for which we will create a new DOM node
|
515
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
516
|
+
* @returns the newly created node
|
517
|
+
*/
|
518
|
+
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
519
|
+
// tslint:disable-next-line: prefer-const
|
520
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
521
|
+
let i = 0;
|
522
|
+
let elm;
|
523
|
+
let childNode;
|
524
|
+
let oldVNode;
|
525
|
+
if (!useNativeShadowDom) {
|
526
|
+
// remember for later we need to check to relocate nodes
|
527
|
+
checkSlotRelocate = true;
|
528
|
+
if (newVNode.$tag$ === 'slot') {
|
529
|
+
if (scopeId) {
|
530
|
+
// scoped css needs to add its scoped id to the parent element
|
531
|
+
parentElm.classList.add(scopeId + '-s');
|
532
|
+
}
|
533
|
+
newVNode.$flags$ |= newVNode.$children$
|
534
|
+
? // slot element has fallback content
|
535
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
536
|
+
: // slot element does not have fallback content
|
537
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
538
|
+
}
|
539
|
+
}
|
540
|
+
if (newVNode.$text$ !== null) {
|
541
|
+
// create text node
|
542
|
+
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
543
|
+
}
|
544
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
545
|
+
// create a slot reference node
|
546
|
+
elm = newVNode.$elm$ =
|
547
|
+
doc.createTextNode('');
|
548
|
+
}
|
549
|
+
else {
|
550
|
+
if (!isSvgMode) {
|
551
|
+
isSvgMode = newVNode.$tag$ === 'svg';
|
552
|
+
}
|
553
|
+
// create element
|
554
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
555
|
+
? 'slot-fb'
|
556
|
+
: newVNode.$tag$)
|
557
|
+
);
|
558
|
+
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
559
|
+
isSvgMode = false;
|
560
|
+
}
|
561
|
+
// add css classes, attrs, props, listeners, etc.
|
562
|
+
{
|
563
|
+
updateElement(null, newVNode, isSvgMode);
|
564
|
+
}
|
565
|
+
if (isDef(scopeId) && elm['s-si'] !== scopeId) {
|
566
|
+
// if there is a scopeId and this is the initial render
|
567
|
+
// then let's add the scopeId as a css class
|
568
|
+
elm.classList.add((elm['s-si'] = scopeId));
|
569
|
+
}
|
570
|
+
if (newVNode.$children$) {
|
571
|
+
for (i = 0; i < newVNode.$children$.length; ++i) {
|
572
|
+
// create the node
|
573
|
+
childNode = createElm(oldParentVNode, newVNode, i, elm);
|
574
|
+
// return node could have been null
|
575
|
+
if (childNode) {
|
576
|
+
// append our new node
|
577
|
+
elm.appendChild(childNode);
|
578
|
+
}
|
579
|
+
}
|
580
|
+
}
|
581
|
+
{
|
582
|
+
if (newVNode.$tag$ === 'svg') {
|
583
|
+
// Only reset the SVG context when we're exiting <svg> element
|
584
|
+
isSvgMode = false;
|
585
|
+
}
|
586
|
+
else if (elm.tagName === 'foreignObject') {
|
587
|
+
// Reenter SVG context when we're exiting <foreignObject> element
|
588
|
+
isSvgMode = true;
|
589
|
+
}
|
590
|
+
}
|
591
|
+
}
|
592
|
+
{
|
593
|
+
elm['s-hn'] = hostTagName;
|
594
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
595
|
+
// remember the content reference comment
|
596
|
+
elm['s-sr'] = true;
|
597
|
+
// remember the content reference comment
|
598
|
+
elm['s-cr'] = contentRef;
|
599
|
+
// remember the slot name, or empty string for default slot
|
600
|
+
elm['s-sn'] = newVNode.$name$ || '';
|
601
|
+
// check if we've got an old vnode for this slot
|
602
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
603
|
+
if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
|
604
|
+
// we've got an old slot vnode and the wrapper is being replaced
|
605
|
+
// so let's move the old slot content back to it's original location
|
606
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
607
|
+
}
|
608
|
+
}
|
609
|
+
}
|
610
|
+
return elm;
|
611
|
+
};
|
612
|
+
const putBackInOriginalLocation = (parentElm, recursive) => {
|
613
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
614
|
+
const oldSlotChildNodes = parentElm.childNodes;
|
615
|
+
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
616
|
+
const childNode = oldSlotChildNodes[i];
|
617
|
+
if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
|
618
|
+
// // this child node in the old element is from another component
|
619
|
+
// // remove this node from the old slot's parent
|
620
|
+
// childNode.remove();
|
621
|
+
// and relocate it back to it's original location
|
622
|
+
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
623
|
+
// remove the old original location comment entirely
|
624
|
+
// later on the patch function will know what to do
|
625
|
+
// and move this to the correct spot in need be
|
626
|
+
childNode['s-ol'].remove();
|
627
|
+
childNode['s-ol'] = undefined;
|
628
|
+
checkSlotRelocate = true;
|
629
|
+
}
|
630
|
+
if (recursive) {
|
631
|
+
putBackInOriginalLocation(childNode, recursive);
|
632
|
+
}
|
633
|
+
}
|
634
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
635
|
+
};
|
636
|
+
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
637
|
+
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
638
|
+
let childNode;
|
639
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
640
|
+
containerElm = containerElm.shadowRoot;
|
641
|
+
}
|
642
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
643
|
+
if (vnodes[startIdx]) {
|
644
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
645
|
+
if (childNode) {
|
646
|
+
vnodes[startIdx].$elm$ = childNode;
|
647
|
+
containerElm.insertBefore(childNode, referenceNode(before) );
|
648
|
+
}
|
649
|
+
}
|
650
|
+
}
|
651
|
+
};
|
652
|
+
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
653
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
654
|
+
if ((vnode = vnodes[startIdx])) {
|
655
|
+
elm = vnode.$elm$;
|
656
|
+
callNodeRefs(vnode);
|
657
|
+
{
|
658
|
+
// we're removing this element
|
659
|
+
// so it's possible we need to show slot fallback content now
|
660
|
+
checkSlotFallbackVisibility = true;
|
661
|
+
if (elm['s-ol']) {
|
662
|
+
// remove the original location comment
|
663
|
+
elm['s-ol'].remove();
|
664
|
+
}
|
665
|
+
else {
|
666
|
+
// it's possible that child nodes of the node
|
667
|
+
// that's being removed are slot nodes
|
668
|
+
putBackInOriginalLocation(elm, true);
|
669
|
+
}
|
670
|
+
}
|
671
|
+
// remove the vnode's element from the dom
|
672
|
+
elm.remove();
|
673
|
+
}
|
674
|
+
}
|
675
|
+
};
|
676
|
+
/**
|
677
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
678
|
+
* traversing the two collections of children, identifying nodes that are
|
679
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
680
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
681
|
+
*
|
682
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
683
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
684
|
+
* 'windows' by storing start and end indices and references to the
|
685
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
686
|
+
* to the entire array, but we progressively narrow the windows until there are
|
687
|
+
* no children left to update by doing the following:
|
688
|
+
*
|
689
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
690
|
+
* that if we have an initial array like the following we'll end up dealing
|
691
|
+
* only with a window bounded by the highlighted elements:
|
692
|
+
*
|
693
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
694
|
+
* ^^^^^^ ^^^^^^
|
695
|
+
*
|
696
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
697
|
+
* across the windows. This will basically detect elements which haven't
|
698
|
+
* been added, removed, or changed position, i.e. if you had the following
|
699
|
+
* VNode elements (represented as HTML):
|
700
|
+
*
|
701
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
702
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
703
|
+
*
|
704
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
705
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
706
|
+
* same tag in the same position, we'd be able to avoid completely
|
707
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
708
|
+
* call out to `patch` to handle reconciling their children and so on.
|
709
|
+
*
|
710
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
711
|
+
* window corresponds to the element at the end of the other window. This is
|
712
|
+
* a heuristic which will let us identify _some_ situations in which
|
713
|
+
* elements have changed position, for instance it _should_ detect that the
|
714
|
+
* children nodes themselves have not changed but merely moved in the
|
715
|
+
* following example:
|
716
|
+
*
|
717
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
718
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
719
|
+
*
|
720
|
+
* If we find cases like this then we also need to move the concrete DOM
|
721
|
+
* elements corresponding to the moved children to write the re-order to the
|
722
|
+
* DOM.
|
723
|
+
*
|
724
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
725
|
+
* nodes in the old children which have the same key as the first element in
|
726
|
+
* our window on the new children. If we find such a node we handle calling
|
727
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
728
|
+
* what we find.
|
729
|
+
*
|
730
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
731
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
732
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
733
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
734
|
+
* children has collapsed we still have more nodes on the new children that
|
735
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
736
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
737
|
+
* sure the corresponding DOM nodes are removed.
|
738
|
+
*
|
739
|
+
* @param parentElm the node into which the parent VNode is rendered
|
740
|
+
* @param oldCh the old children of the parent node
|
741
|
+
* @param newVNode the new VNode which will replace the parent
|
742
|
+
* @param newCh the new children of the parent node
|
743
|
+
*/
|
744
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
745
|
+
let oldStartIdx = 0;
|
746
|
+
let newStartIdx = 0;
|
747
|
+
let idxInOld = 0;
|
748
|
+
let i = 0;
|
749
|
+
let oldEndIdx = oldCh.length - 1;
|
750
|
+
let oldStartVnode = oldCh[0];
|
751
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
752
|
+
let newEndIdx = newCh.length - 1;
|
753
|
+
let newStartVnode = newCh[0];
|
754
|
+
let newEndVnode = newCh[newEndIdx];
|
755
|
+
let node;
|
756
|
+
let elmToMove;
|
757
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
758
|
+
if (oldStartVnode == null) {
|
759
|
+
// VNode might have been moved left
|
760
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
761
|
+
}
|
762
|
+
else if (oldEndVnode == null) {
|
763
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
764
|
+
}
|
765
|
+
else if (newStartVnode == null) {
|
766
|
+
newStartVnode = newCh[++newStartIdx];
|
767
|
+
}
|
768
|
+
else if (newEndVnode == null) {
|
769
|
+
newEndVnode = newCh[--newEndIdx];
|
770
|
+
}
|
771
|
+
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
772
|
+
// if the start nodes are the same then we should patch the new VNode
|
773
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
774
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
775
|
+
// since things are matched up in order.
|
776
|
+
patch(oldStartVnode, newStartVnode);
|
777
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
778
|
+
newStartVnode = newCh[++newStartIdx];
|
779
|
+
}
|
780
|
+
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
781
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
782
|
+
// decrement our end indices, and also likewise in this case we don't
|
783
|
+
// need to move any DOM Nodes.
|
784
|
+
patch(oldEndVnode, newEndVnode);
|
785
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
786
|
+
newEndVnode = newCh[--newEndIdx];
|
787
|
+
}
|
788
|
+
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
789
|
+
// case: "Vnode moved right"
|
790
|
+
//
|
791
|
+
// We've found that the last node in our window on the new children is
|
792
|
+
// the same VNode as the _first_ node in our window on the old children
|
793
|
+
// we're dealing with now. Visually, this is the layout of these two
|
794
|
+
// nodes:
|
795
|
+
//
|
796
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
797
|
+
// ^^^^^^^^^^^
|
798
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
799
|
+
// ^^^^^^^^^^^^^
|
800
|
+
//
|
801
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
802
|
+
// and move the DOM element for `oldStartVnode`.
|
803
|
+
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
804
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
805
|
+
}
|
806
|
+
patch(oldStartVnode, newEndVnode);
|
807
|
+
// We need to move the element for `oldStartVnode` into a position which
|
808
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
809
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
810
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
811
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
812
|
+
//
|
813
|
+
// <old-start-node />
|
814
|
+
// <some-intervening-node />
|
815
|
+
// <old-end-node />
|
816
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
817
|
+
// <next-sibling />
|
818
|
+
//
|
819
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
820
|
+
// the node for `oldStartVnode` at the end of the children of
|
821
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
822
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
823
|
+
// append it to the children of the parent element.
|
824
|
+
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
825
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
826
|
+
newEndVnode = newCh[--newEndIdx];
|
827
|
+
}
|
828
|
+
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
829
|
+
// case: "Vnode moved left"
|
830
|
+
//
|
831
|
+
// We've found that the first node in our window on the new children is
|
832
|
+
// the same VNode as the _last_ node in our window on the old children.
|
833
|
+
// Visually, this is the layout of these two nodes:
|
834
|
+
//
|
835
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
836
|
+
// ^^^^^^^^^^^^^
|
837
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
838
|
+
// ^^^^^^^^^^^
|
839
|
+
//
|
840
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
841
|
+
// (which will handle updating any changed attributes, reconciling their
|
842
|
+
// children etc) but we also need to move the DOM node to which
|
843
|
+
// `oldEndVnode` corresponds.
|
844
|
+
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
845
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
846
|
+
}
|
847
|
+
patch(oldEndVnode, newStartVnode);
|
848
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
849
|
+
// the same node, so since we're here we know that they are not. Thus we
|
850
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
851
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
852
|
+
// future.
|
853
|
+
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
854
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
855
|
+
newStartVnode = newCh[++newStartIdx];
|
856
|
+
}
|
857
|
+
else {
|
858
|
+
// Here we do some checks to match up old and new nodes based on the
|
859
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
860
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
861
|
+
// component.
|
862
|
+
//
|
863
|
+
// First we check to see if there are any nodes in the array of old
|
864
|
+
// children which have the same key as the first node in the new
|
865
|
+
// children.
|
866
|
+
idxInOld = -1;
|
867
|
+
{
|
868
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
869
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
870
|
+
idxInOld = i;
|
871
|
+
break;
|
872
|
+
}
|
873
|
+
}
|
874
|
+
}
|
875
|
+
if (idxInOld >= 0) {
|
876
|
+
// We found a node in the old children which matches up with the first
|
877
|
+
// node in the new children! So let's deal with that
|
878
|
+
elmToMove = oldCh[idxInOld];
|
879
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
880
|
+
// the tag doesn't match so we'll need a new DOM element
|
881
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
882
|
+
}
|
883
|
+
else {
|
884
|
+
patch(elmToMove, newStartVnode);
|
885
|
+
// invalidate the matching old node so that we won't try to update it
|
886
|
+
// again later on
|
887
|
+
oldCh[idxInOld] = undefined;
|
888
|
+
node = elmToMove.$elm$;
|
889
|
+
}
|
890
|
+
newStartVnode = newCh[++newStartIdx];
|
891
|
+
}
|
892
|
+
else {
|
893
|
+
// We either didn't find an element in the old children that matches
|
894
|
+
// the key of the first new child OR the build is not using `key`
|
895
|
+
// attributes at all. In either case we need to create a new element
|
896
|
+
// for the new node.
|
897
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
898
|
+
newStartVnode = newCh[++newStartIdx];
|
899
|
+
}
|
900
|
+
if (node) {
|
901
|
+
// if we created a new node then handle inserting it to the DOM
|
902
|
+
{
|
903
|
+
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
904
|
+
}
|
905
|
+
}
|
906
|
+
}
|
907
|
+
}
|
908
|
+
if (oldStartIdx > oldEndIdx) {
|
909
|
+
// we have some more new nodes to add which don't match up with old nodes
|
910
|
+
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
911
|
+
}
|
912
|
+
else if (newStartIdx > newEndIdx) {
|
913
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
914
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
915
|
+
// relevant DOM nodes)
|
916
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
917
|
+
}
|
918
|
+
};
|
919
|
+
/**
|
920
|
+
* Compare two VNodes to determine if they are the same
|
921
|
+
*
|
922
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
923
|
+
* information set on the two VNodes and can be misleading under certain
|
924
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
925
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
926
|
+
* checking that they have the same tag.
|
927
|
+
*
|
928
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
929
|
+
* changing order within a `children` array or something along those lines then
|
930
|
+
* we could obtain a false positive and then have to do needless re-rendering.
|
931
|
+
*
|
932
|
+
* @param leftVNode the first VNode to check
|
933
|
+
* @param rightVNode the second VNode to check
|
934
|
+
* @returns whether they're equal or not
|
935
|
+
*/
|
936
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
937
|
+
// compare if two vnode to see if they're "technically" the same
|
938
|
+
// need to have the same element tag, and same key to be the same
|
939
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
940
|
+
if (leftVNode.$tag$ === 'slot') {
|
941
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
942
|
+
}
|
943
|
+
// this will be set if components in the build have `key` attrs set on them
|
944
|
+
{
|
945
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
946
|
+
}
|
947
|
+
}
|
948
|
+
return false;
|
949
|
+
};
|
950
|
+
const referenceNode = (node) => {
|
951
|
+
// this node was relocated to a new location in the dom
|
952
|
+
// because of some other component's slot
|
953
|
+
// but we still have an html comment in place of where
|
954
|
+
// it's original location was according to it's original vdom
|
955
|
+
return (node && node['s-ol']) || node;
|
956
|
+
};
|
957
|
+
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
958
|
+
/**
|
959
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
960
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
961
|
+
* children of the two nodes (if any).
|
962
|
+
*
|
963
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
964
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
965
|
+
*/
|
966
|
+
const patch = (oldVNode, newVNode) => {
|
967
|
+
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
968
|
+
const oldChildren = oldVNode.$children$;
|
969
|
+
const newChildren = newVNode.$children$;
|
970
|
+
const tag = newVNode.$tag$;
|
971
|
+
const text = newVNode.$text$;
|
972
|
+
let defaultHolder;
|
973
|
+
if (text === null) {
|
974
|
+
{
|
975
|
+
// test if we're rendering an svg element, or still rendering nodes inside of one
|
976
|
+
// only add this to the when the compiler sees we're using an svg somewhere
|
977
|
+
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
978
|
+
}
|
979
|
+
{
|
980
|
+
if (tag === 'slot')
|
981
|
+
;
|
982
|
+
else {
|
983
|
+
// either this is the first render of an element OR it's an update
|
984
|
+
// AND we already know it's possible it could have changed
|
985
|
+
// this updates the element's css classes, attrs, props, listeners, etc.
|
986
|
+
updateElement(oldVNode, newVNode, isSvgMode);
|
987
|
+
}
|
988
|
+
}
|
989
|
+
if (oldChildren !== null && newChildren !== null) {
|
990
|
+
// looks like there's child vnodes for both the old and new vnodes
|
991
|
+
// so we need to call `updateChildren` to reconcile them
|
992
|
+
updateChildren(elm, oldChildren, newVNode, newChildren);
|
993
|
+
}
|
994
|
+
else if (newChildren !== null) {
|
995
|
+
// no old child vnodes, but there are new child vnodes to add
|
996
|
+
if (oldVNode.$text$ !== null) {
|
997
|
+
// the old vnode was text, so be sure to clear it out
|
998
|
+
elm.textContent = '';
|
999
|
+
}
|
1000
|
+
// add the new vnode children
|
1001
|
+
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
1002
|
+
}
|
1003
|
+
else if (oldChildren !== null) {
|
1004
|
+
// no new child vnodes, but there are old child vnodes to remove
|
1005
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
1006
|
+
}
|
1007
|
+
if (isSvgMode && tag === 'svg') {
|
1008
|
+
isSvgMode = false;
|
1009
|
+
}
|
1010
|
+
}
|
1011
|
+
else if ((defaultHolder = elm['s-cr'])) {
|
1012
|
+
// this element has slotted content
|
1013
|
+
defaultHolder.parentNode.textContent = text;
|
1014
|
+
}
|
1015
|
+
else if (oldVNode.$text$ !== text) {
|
1016
|
+
// update the text content for the text only vnode
|
1017
|
+
// and also only if the text is different than before
|
1018
|
+
elm.data = text;
|
1019
|
+
}
|
1020
|
+
};
|
1021
|
+
const updateFallbackSlotVisibility = (elm) => {
|
1022
|
+
// tslint:disable-next-line: prefer-const
|
1023
|
+
const childNodes = elm.childNodes;
|
1024
|
+
let childNode;
|
1025
|
+
let i;
|
1026
|
+
let ilen;
|
1027
|
+
let j;
|
1028
|
+
let slotNameAttr;
|
1029
|
+
let nodeType;
|
1030
|
+
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
1031
|
+
childNode = childNodes[i];
|
1032
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
1033
|
+
if (childNode['s-sr']) {
|
1034
|
+
// this is a slot fallback node
|
1035
|
+
// get the slot name for this slot reference node
|
1036
|
+
slotNameAttr = childNode['s-sn'];
|
1037
|
+
// by default always show a fallback slot node
|
1038
|
+
// then hide it if there are other slots in the light dom
|
1039
|
+
childNode.hidden = false;
|
1040
|
+
for (j = 0; j < ilen; j++) {
|
1041
|
+
nodeType = childNodes[j].nodeType;
|
1042
|
+
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
1043
|
+
// this sibling node is from a different component OR is a named fallback slot node
|
1044
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
1045
|
+
childNode.hidden = true;
|
1046
|
+
break;
|
1047
|
+
}
|
1048
|
+
}
|
1049
|
+
else {
|
1050
|
+
// this is a default fallback slot node
|
1051
|
+
// any element or text node (with content)
|
1052
|
+
// should hide the default fallback slot node
|
1053
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
1054
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
1055
|
+
childNode.hidden = true;
|
1056
|
+
break;
|
1057
|
+
}
|
1058
|
+
}
|
1059
|
+
}
|
1060
|
+
}
|
1061
|
+
// keep drilling down
|
1062
|
+
updateFallbackSlotVisibility(childNode);
|
1063
|
+
}
|
1064
|
+
}
|
1065
|
+
};
|
1066
|
+
const relocateNodes = [];
|
1067
|
+
const relocateSlotContent = (elm) => {
|
1068
|
+
// tslint:disable-next-line: prefer-const
|
1069
|
+
let childNode;
|
1070
|
+
let node;
|
1071
|
+
let hostContentNodes;
|
1072
|
+
let slotNameAttr;
|
1073
|
+
let relocateNodeData;
|
1074
|
+
let j;
|
1075
|
+
let i = 0;
|
1076
|
+
const childNodes = elm.childNodes;
|
1077
|
+
const ilen = childNodes.length;
|
1078
|
+
for (; i < ilen; i++) {
|
1079
|
+
childNode = childNodes[i];
|
1080
|
+
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
1081
|
+
// first got the content reference comment node
|
1082
|
+
// then we got it's parent, which is where all the host content is in now
|
1083
|
+
hostContentNodes = node.parentNode.childNodes;
|
1084
|
+
slotNameAttr = childNode['s-sn'];
|
1085
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
1086
|
+
node = hostContentNodes[j];
|
1087
|
+
if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
|
1088
|
+
// let's do some relocating to its new home
|
1089
|
+
// but never relocate a content reference node
|
1090
|
+
// that is suppose to always represent the original content location
|
1091
|
+
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
1092
|
+
// it's possible we've already decided to relocate this node
|
1093
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
1094
|
+
// made some changes to slots
|
1095
|
+
// let's make sure we also double check
|
1096
|
+
// fallbacks are correctly hidden or shown
|
1097
|
+
checkSlotFallbackVisibility = true;
|
1098
|
+
node['s-sn'] = node['s-sn'] || slotNameAttr;
|
1099
|
+
if (relocateNodeData) {
|
1100
|
+
// previously we never found a slot home for this node
|
1101
|
+
// but turns out we did, so let's remember it now
|
1102
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
1103
|
+
}
|
1104
|
+
else {
|
1105
|
+
// add to our list of nodes to relocate
|
1106
|
+
relocateNodes.push({
|
1107
|
+
$slotRefNode$: childNode,
|
1108
|
+
$nodeToRelocate$: node,
|
1109
|
+
});
|
1110
|
+
}
|
1111
|
+
if (node['s-sr']) {
|
1112
|
+
relocateNodes.map((relocateNode) => {
|
1113
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
1114
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
1115
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
1116
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
1117
|
+
}
|
1118
|
+
}
|
1119
|
+
});
|
1120
|
+
}
|
1121
|
+
}
|
1122
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
1123
|
+
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
1124
|
+
// if we never find a home for this element then we'll need to hide it
|
1125
|
+
relocateNodes.push({
|
1126
|
+
$nodeToRelocate$: node,
|
1127
|
+
});
|
1128
|
+
}
|
1129
|
+
}
|
1130
|
+
}
|
1131
|
+
}
|
1132
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
1133
|
+
relocateSlotContent(childNode);
|
1134
|
+
}
|
1135
|
+
}
|
1136
|
+
};
|
1137
|
+
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
1138
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
1139
|
+
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
1140
|
+
return true;
|
1141
|
+
}
|
1142
|
+
if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
|
1143
|
+
return true;
|
1144
|
+
}
|
1145
|
+
return false;
|
1146
|
+
}
|
1147
|
+
if (nodeToRelocate['s-sn'] === slotNameAttr) {
|
1148
|
+
return true;
|
1149
|
+
}
|
1150
|
+
return slotNameAttr === '';
|
1151
|
+
};
|
1152
|
+
const callNodeRefs = (vNode) => {
|
1153
|
+
{
|
1154
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
1155
|
+
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
1156
|
+
}
|
1157
|
+
};
|
1158
|
+
const renderVdom = (hostRef, renderFnResults) => {
|
1159
|
+
const hostElm = hostRef.$hostElement$;
|
1160
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
1161
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
1162
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
1163
|
+
hostTagName = hostElm.tagName;
|
1164
|
+
if (cmpMeta.$attrsToReflect$) {
|
1165
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
1166
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
1167
|
+
}
|
1168
|
+
rootVnode.$tag$ = null;
|
1169
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
1170
|
+
hostRef.$vnode$ = rootVnode;
|
1171
|
+
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
1172
|
+
{
|
1173
|
+
scopeId = hostElm['s-sc'];
|
1174
|
+
}
|
1175
|
+
{
|
1176
|
+
contentRef = hostElm['s-cr'];
|
1177
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
1178
|
+
// always reset
|
1179
|
+
checkSlotFallbackVisibility = false;
|
1180
|
+
}
|
1181
|
+
// synchronous patch
|
1182
|
+
patch(oldVNode, rootVnode);
|
1183
|
+
{
|
1184
|
+
// while we're moving nodes around existing nodes, temporarily disable
|
1185
|
+
// the disconnectCallback from working
|
1186
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
1187
|
+
if (checkSlotRelocate) {
|
1188
|
+
relocateSlotContent(rootVnode.$elm$);
|
1189
|
+
let relocateData;
|
1190
|
+
let nodeToRelocate;
|
1191
|
+
let orgLocationNode;
|
1192
|
+
let parentNodeRef;
|
1193
|
+
let insertBeforeNode;
|
1194
|
+
let refNode;
|
1195
|
+
let i = 0;
|
1196
|
+
for (; i < relocateNodes.length; i++) {
|
1197
|
+
relocateData = relocateNodes[i];
|
1198
|
+
nodeToRelocate = relocateData.$nodeToRelocate$;
|
1199
|
+
if (!nodeToRelocate['s-ol']) {
|
1200
|
+
// add a reference node marking this node's original location
|
1201
|
+
// keep a reference to this node for later lookups
|
1202
|
+
orgLocationNode =
|
1203
|
+
doc.createTextNode('');
|
1204
|
+
orgLocationNode['s-nr'] = nodeToRelocate;
|
1205
|
+
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
1206
|
+
}
|
1207
|
+
}
|
1208
|
+
for (i = 0; i < relocateNodes.length; i++) {
|
1209
|
+
relocateData = relocateNodes[i];
|
1210
|
+
nodeToRelocate = relocateData.$nodeToRelocate$;
|
1211
|
+
if (relocateData.$slotRefNode$) {
|
1212
|
+
// by default we're just going to insert it directly
|
1213
|
+
// after the slot reference node
|
1214
|
+
parentNodeRef = relocateData.$slotRefNode$.parentNode;
|
1215
|
+
insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
|
1216
|
+
orgLocationNode = nodeToRelocate['s-ol'];
|
1217
|
+
while ((orgLocationNode = orgLocationNode.previousSibling)) {
|
1218
|
+
refNode = orgLocationNode['s-nr'];
|
1219
|
+
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
1220
|
+
refNode = refNode.nextSibling;
|
1221
|
+
if (!refNode || !refNode['s-nr']) {
|
1222
|
+
insertBeforeNode = refNode;
|
1223
|
+
break;
|
1224
|
+
}
|
1225
|
+
}
|
1226
|
+
}
|
1227
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
1228
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
1229
|
+
// we've checked that it's worth while to relocate
|
1230
|
+
// since that the node to relocate
|
1231
|
+
// has a different next sibling or parent relocated
|
1232
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
1233
|
+
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
1234
|
+
// probably a component in the index.html that doesn't have it's hostname set
|
1235
|
+
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
1236
|
+
}
|
1237
|
+
// add it back to the dom but in its new home
|
1238
|
+
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
1239
|
+
}
|
1240
|
+
}
|
1241
|
+
}
|
1242
|
+
else {
|
1243
|
+
// this node doesn't have a slot home to go to, so let's hide it
|
1244
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
1245
|
+
nodeToRelocate.hidden = true;
|
1246
|
+
}
|
1247
|
+
}
|
1248
|
+
}
|
1249
|
+
}
|
1250
|
+
if (checkSlotFallbackVisibility) {
|
1251
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
1252
|
+
}
|
1253
|
+
// done moving nodes around
|
1254
|
+
// allow the disconnect callback to work again
|
1255
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
1256
|
+
// always reset
|
1257
|
+
relocateNodes.length = 0;
|
1258
|
+
}
|
1259
|
+
};
|
1260
|
+
const attachToAncestor = (hostRef, ancestorComponent) => {
|
1261
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
1262
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
1263
|
+
}
|
1264
|
+
};
|
1265
|
+
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
1266
|
+
{
|
1267
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
1268
|
+
}
|
1269
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
1270
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
1271
|
+
return;
|
1272
|
+
}
|
1273
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
1274
|
+
// there is no ancestor component or the ancestor component
|
1275
|
+
// has already fired off its lifecycle update then
|
1276
|
+
// fire off the initial update
|
1277
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
1278
|
+
return writeTask(dispatch) ;
|
1279
|
+
};
|
1280
|
+
const dispatchHooks = (hostRef, isInitialLoad) => {
|
1281
|
+
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
1282
|
+
const instance = hostRef.$lazyInstance$ ;
|
1283
|
+
let promise;
|
1284
|
+
if (isInitialLoad) {
|
1285
|
+
{
|
1286
|
+
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
1287
|
+
if (hostRef.$queuedListeners$) {
|
1288
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
1289
|
+
hostRef.$queuedListeners$ = null;
|
1290
|
+
}
|
1291
|
+
}
|
1292
|
+
{
|
1293
|
+
promise = safeCall(instance, 'componentWillLoad');
|
1294
|
+
}
|
1295
|
+
}
|
1296
|
+
{
|
1297
|
+
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
1298
|
+
}
|
1299
|
+
endSchedule();
|
1300
|
+
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
1301
|
+
};
|
1302
|
+
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
1303
|
+
// updateComponent
|
1304
|
+
const elm = hostRef.$hostElement$;
|
1305
|
+
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
1306
|
+
const rc = elm['s-rc'];
|
1307
|
+
if (isInitialLoad) {
|
1308
|
+
// DOM WRITE!
|
1309
|
+
attachStyles(hostRef);
|
1310
|
+
}
|
1311
|
+
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
1312
|
+
{
|
1313
|
+
callRender(hostRef, instance);
|
1314
|
+
}
|
1315
|
+
if (rc) {
|
1316
|
+
// ok, so turns out there are some child host elements
|
1317
|
+
// waiting on this parent element to load
|
1318
|
+
// let's fire off all update callbacks waiting
|
1319
|
+
rc.map((cb) => cb());
|
1320
|
+
elm['s-rc'] = undefined;
|
1321
|
+
}
|
1322
|
+
endRender();
|
1323
|
+
endUpdate();
|
1324
|
+
{
|
1325
|
+
const childrenPromises = elm['s-p'];
|
1326
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
1327
|
+
if (childrenPromises.length === 0) {
|
1328
|
+
postUpdate();
|
1329
|
+
}
|
1330
|
+
else {
|
1331
|
+
Promise.all(childrenPromises).then(postUpdate);
|
1332
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
1333
|
+
childrenPromises.length = 0;
|
1334
|
+
}
|
1335
|
+
}
|
1336
|
+
};
|
1337
|
+
const callRender = (hostRef, instance, elm) => {
|
1338
|
+
try {
|
1339
|
+
renderingRef = instance;
|
1340
|
+
instance = instance.render() ;
|
1341
|
+
{
|
1342
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
1343
|
+
}
|
1344
|
+
{
|
1345
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
1346
|
+
}
|
1347
|
+
{
|
1348
|
+
{
|
1349
|
+
// looks like we've got child nodes to render into this host element
|
1350
|
+
// or we need to update the css class/attrs on the host element
|
1351
|
+
// DOM WRITE!
|
1352
|
+
{
|
1353
|
+
renderVdom(hostRef, instance);
|
1354
|
+
}
|
1355
|
+
}
|
1356
|
+
}
|
1357
|
+
}
|
1358
|
+
catch (e) {
|
1359
|
+
consoleError(e, hostRef.$hostElement$);
|
1360
|
+
}
|
1361
|
+
renderingRef = null;
|
1362
|
+
return null;
|
1363
|
+
};
|
1364
|
+
const getRenderingRef = () => renderingRef;
|
1365
|
+
const postUpdateComponent = (hostRef) => {
|
1366
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
1367
|
+
const elm = hostRef.$hostElement$;
|
1368
|
+
const endPostUpdate = createTime('postUpdate', tagName);
|
1369
|
+
const instance = hostRef.$lazyInstance$ ;
|
1370
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
1371
|
+
{
|
1372
|
+
safeCall(instance, 'componentDidRender');
|
1373
|
+
}
|
1374
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
1375
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
1376
|
+
{
|
1377
|
+
// DOM WRITE!
|
1378
|
+
addHydratedFlag(elm);
|
1379
|
+
}
|
1380
|
+
{
|
1381
|
+
safeCall(instance, 'componentDidLoad');
|
1382
|
+
}
|
1383
|
+
endPostUpdate();
|
1384
|
+
{
|
1385
|
+
hostRef.$onReadyResolve$(elm);
|
1386
|
+
if (!ancestorComponent) {
|
1387
|
+
appDidLoad();
|
1388
|
+
}
|
1389
|
+
}
|
1390
|
+
}
|
1391
|
+
else {
|
1392
|
+
endPostUpdate();
|
1393
|
+
}
|
1394
|
+
{
|
1395
|
+
hostRef.$onInstanceResolve$(elm);
|
1396
|
+
}
|
1397
|
+
// load events fire from bottom to top
|
1398
|
+
// the deepest elements load first then bubbles up
|
1399
|
+
{
|
1400
|
+
if (hostRef.$onRenderResolve$) {
|
1401
|
+
hostRef.$onRenderResolve$();
|
1402
|
+
hostRef.$onRenderResolve$ = undefined;
|
1403
|
+
}
|
1404
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
1405
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
1406
|
+
}
|
1407
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
1408
|
+
}
|
1409
|
+
// ( •_•)
|
1410
|
+
// ( •_•)>⌐■-■
|
1411
|
+
// (⌐■_■)
|
1412
|
+
};
|
1413
|
+
const forceUpdate = (ref) => {
|
1414
|
+
{
|
1415
|
+
const hostRef = getHostRef(ref);
|
1416
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
1417
|
+
if (isConnected &&
|
1418
|
+
(hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
1419
|
+
scheduleUpdate(hostRef, false);
|
1420
|
+
}
|
1421
|
+
// Returns "true" when the forced update was successfully scheduled
|
1422
|
+
return isConnected;
|
1423
|
+
}
|
1424
|
+
};
|
1425
|
+
const appDidLoad = (who) => {
|
1426
|
+
// on appload
|
1427
|
+
// we have finish the first big initial render
|
1428
|
+
{
|
1429
|
+
addHydratedFlag(doc.documentElement);
|
1430
|
+
}
|
1431
|
+
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
1432
|
+
};
|
1433
|
+
const safeCall = (instance, method, arg) => {
|
1434
|
+
if (instance && instance[method]) {
|
1435
|
+
try {
|
1436
|
+
return instance[method](arg);
|
1437
|
+
}
|
1438
|
+
catch (e) {
|
1439
|
+
consoleError(e);
|
1440
|
+
}
|
1441
|
+
}
|
1442
|
+
return undefined;
|
1443
|
+
};
|
1444
|
+
const then = (promise, thenFn) => {
|
1445
|
+
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
1446
|
+
};
|
1447
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
1448
|
+
;
|
1449
|
+
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
1450
|
+
const setValue = (ref, propName, newVal, cmpMeta) => {
|
1451
|
+
// check our new property value against our internal value
|
1452
|
+
const hostRef = getHostRef(ref);
|
1453
|
+
const elm = hostRef.$hostElement$ ;
|
1454
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
1455
|
+
const flags = hostRef.$flags$;
|
1456
|
+
const instance = hostRef.$lazyInstance$ ;
|
1457
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
1458
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
1459
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
1460
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
1461
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
1462
|
+
// gadzooks! the property's value has changed!!
|
1463
|
+
// set our new value!
|
1464
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
1465
|
+
if (instance) {
|
1466
|
+
// get an array of method names of watch functions to call
|
1467
|
+
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
1468
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
1469
|
+
if (watchMethods) {
|
1470
|
+
// this instance is watching for when this property changed
|
1471
|
+
watchMethods.map((watchMethodName) => {
|
1472
|
+
try {
|
1473
|
+
// fire off each of the watch methods that are watching this property
|
1474
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
1475
|
+
}
|
1476
|
+
catch (e) {
|
1477
|
+
consoleError(e, elm);
|
1478
|
+
}
|
1479
|
+
});
|
1480
|
+
}
|
1481
|
+
}
|
1482
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
1483
|
+
if (instance.componentShouldUpdate) {
|
1484
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
1485
|
+
return;
|
1486
|
+
}
|
1487
|
+
}
|
1488
|
+
// looks like this value actually changed, so we've got work to do!
|
1489
|
+
// but only if we've already rendered, otherwise just chill out
|
1490
|
+
// queue that we need to do an update, but don't worry about queuing
|
1491
|
+
// up millions cuz this function ensures it only runs once
|
1492
|
+
scheduleUpdate(hostRef, false);
|
1493
|
+
}
|
1494
|
+
}
|
1495
|
+
}
|
1496
|
+
};
|
1497
|
+
/**
|
1498
|
+
* Attach a series of runtime constructs to a compiled Stencil component
|
1499
|
+
* constructor, including getters and setters for the `@Prop` and `@State`
|
1500
|
+
* decorators, callbacks for when attributes change, and so on.
|
1501
|
+
*
|
1502
|
+
* @param Cstr the constructor for a component that we need to process
|
1503
|
+
* @param cmpMeta metadata collected previously about the component
|
1504
|
+
* @param flags a number used to store a series of bit flags
|
1505
|
+
* @returns a reference to the same constructor passed in (but now mutated)
|
1506
|
+
*/
|
1507
|
+
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
1508
|
+
if (cmpMeta.$members$) {
|
1509
|
+
if (Cstr.watchers) {
|
1510
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
1511
|
+
}
|
1512
|
+
// It's better to have a const than two Object.entries()
|
1513
|
+
const members = Object.entries(cmpMeta.$members$);
|
1514
|
+
const prototype = Cstr.prototype;
|
1515
|
+
members.map(([memberName, [memberFlags]]) => {
|
1516
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
1517
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
1518
|
+
// proxyComponent - prop
|
1519
|
+
Object.defineProperty(prototype, memberName, {
|
1520
|
+
get() {
|
1521
|
+
// proxyComponent, get value
|
1522
|
+
return getValue(this, memberName);
|
1523
|
+
},
|
1524
|
+
set(newValue) {
|
1525
|
+
// proxyComponent, set value
|
1526
|
+
setValue(this, memberName, newValue, cmpMeta);
|
1527
|
+
},
|
1528
|
+
configurable: true,
|
1529
|
+
enumerable: true,
|
1530
|
+
});
|
1531
|
+
}
|
1532
|
+
else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
|
1533
|
+
memberFlags & 64 /* MEMBER_FLAGS.Method */) {
|
1534
|
+
// proxyComponent - method
|
1535
|
+
Object.defineProperty(prototype, memberName, {
|
1536
|
+
value(...args) {
|
1537
|
+
const ref = getHostRef(this);
|
1538
|
+
return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
|
1539
|
+
},
|
1540
|
+
});
|
1541
|
+
}
|
1542
|
+
});
|
1543
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
1544
|
+
const attrNameToPropName = new Map();
|
1545
|
+
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
1546
|
+
plt.jmp(() => {
|
1547
|
+
const propName = attrNameToPropName.get(attrName);
|
1548
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
1549
|
+
// in the case where an attribute was set inline.
|
1550
|
+
// ```html
|
1551
|
+
// <my-component some-attribute="some-value"></my-component>
|
1552
|
+
// ```
|
1553
|
+
//
|
1554
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
1555
|
+
// programmatically changes it before it has been upgraded as shown below:
|
1556
|
+
//
|
1557
|
+
// ```html
|
1558
|
+
// <!-- this component has _not_ been upgraded yet -->
|
1559
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
1560
|
+
// <script>
|
1561
|
+
// // grab non-upgraded component
|
1562
|
+
// el = document.querySelector("#test");
|
1563
|
+
// el.someAttribute = "another-value";
|
1564
|
+
// // upgrade component
|
1565
|
+
// customElements.define('my-component', MyComponent);
|
1566
|
+
// </script>
|
1567
|
+
// ```
|
1568
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
1569
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
1570
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
1571
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
1572
|
+
//
|
1573
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
1574
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
1575
|
+
//
|
1576
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
1577
|
+
//
|
1578
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
1579
|
+
// properties here given that this goes against best practices outlined here
|
1580
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
1581
|
+
if (this.hasOwnProperty(propName)) {
|
1582
|
+
newValue = this[propName];
|
1583
|
+
delete this[propName];
|
1584
|
+
}
|
1585
|
+
else if (prototype.hasOwnProperty(propName) &&
|
1586
|
+
typeof this[propName] === 'number' &&
|
1587
|
+
this[propName] == newValue) {
|
1588
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
1589
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
1590
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
1591
|
+
return;
|
1592
|
+
}
|
1593
|
+
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
1594
|
+
});
|
1595
|
+
};
|
1596
|
+
// create an array of attributes to observe
|
1597
|
+
// and also create a map of html attribute name to js property name
|
1598
|
+
Cstr.observedAttributes = members
|
1599
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
1600
|
+
.map(([propName, m]) => {
|
1601
|
+
const attrName = m[1] || propName;
|
1602
|
+
attrNameToPropName.set(attrName, propName);
|
1603
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
1604
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
1605
|
+
}
|
1606
|
+
return attrName;
|
1607
|
+
});
|
1608
|
+
}
|
1609
|
+
}
|
1610
|
+
return Cstr;
|
1611
|
+
};
|
1612
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
1613
|
+
// initializeComponent
|
1614
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
1615
|
+
{
|
1616
|
+
// we haven't initialized this element yet
|
1617
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
1618
|
+
// lazy loaded components
|
1619
|
+
// request the component's implementation to be
|
1620
|
+
// wired up with the host element
|
1621
|
+
Cstr = loadModule(cmpMeta);
|
1622
|
+
if (Cstr.then) {
|
1623
|
+
// Await creates a micro-task avoid if possible
|
1624
|
+
const endLoad = uniqueTime();
|
1625
|
+
Cstr = await Cstr;
|
1626
|
+
endLoad();
|
1627
|
+
}
|
1628
|
+
if (!Cstr.isProxied) {
|
1629
|
+
// we've never proxied this Constructor before
|
1630
|
+
// let's add the getters/setters to its prototype before
|
1631
|
+
// the first time we create an instance of the implementation
|
1632
|
+
{
|
1633
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
1634
|
+
}
|
1635
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
1636
|
+
Cstr.isProxied = true;
|
1637
|
+
}
|
1638
|
+
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
1639
|
+
// ok, time to construct the instance
|
1640
|
+
// but let's keep track of when we start and stop
|
1641
|
+
// so that the getters/setters don't incorrectly step on data
|
1642
|
+
{
|
1643
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
1644
|
+
}
|
1645
|
+
// construct the lazy-loaded component implementation
|
1646
|
+
// passing the hostRef is very important during
|
1647
|
+
// construction in order to directly wire together the
|
1648
|
+
// host element and the lazy-loaded instance
|
1649
|
+
try {
|
1650
|
+
new Cstr(hostRef);
|
1651
|
+
}
|
1652
|
+
catch (e) {
|
1653
|
+
consoleError(e);
|
1654
|
+
}
|
1655
|
+
{
|
1656
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
1657
|
+
}
|
1658
|
+
{
|
1659
|
+
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
1660
|
+
}
|
1661
|
+
endNewInstance();
|
1662
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
1663
|
+
}
|
1664
|
+
if (Cstr.style) {
|
1665
|
+
// this component has styles but we haven't registered them yet
|
1666
|
+
let style = Cstr.style;
|
1667
|
+
const scopeId = getScopeId(cmpMeta);
|
1668
|
+
if (!styles.has(scopeId)) {
|
1669
|
+
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
1670
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
1671
|
+
endRegisterStyles();
|
1672
|
+
}
|
1673
|
+
}
|
1674
|
+
}
|
1675
|
+
// we've successfully created a lazy instance
|
1676
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
1677
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
1678
|
+
if (ancestorComponent && ancestorComponent['s-rc']) {
|
1679
|
+
// this is the initial load and this component it has an ancestor component
|
1680
|
+
// but the ancestor component has NOT fired its will update lifecycle yet
|
1681
|
+
// so let's just cool our jets and wait for the ancestor to continue first
|
1682
|
+
// this will get fired off when the ancestor component
|
1683
|
+
// finally gets around to rendering its lazy self
|
1684
|
+
// fire off the initial update
|
1685
|
+
ancestorComponent['s-rc'].push(schedule);
|
1686
|
+
}
|
1687
|
+
else {
|
1688
|
+
schedule();
|
1689
|
+
}
|
1690
|
+
};
|
1691
|
+
const fireConnectedCallback = (instance) => {
|
1692
|
+
{
|
1693
|
+
safeCall(instance, 'connectedCallback');
|
1694
|
+
}
|
1695
|
+
};
|
1696
|
+
const connectedCallback = (elm) => {
|
1697
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
1698
|
+
const hostRef = getHostRef(elm);
|
1699
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
1700
|
+
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
1701
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
1702
|
+
// first time this component has connected
|
1703
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
1704
|
+
{
|
1705
|
+
// initUpdate
|
1706
|
+
// if the slot polyfill is required we'll need to put some nodes
|
1707
|
+
// in here to act as original content anchors as we move nodes around
|
1708
|
+
// host element has been connected to the DOM
|
1709
|
+
if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
1710
|
+
setContentReference(elm);
|
1711
|
+
}
|
1712
|
+
}
|
1713
|
+
{
|
1714
|
+
// find the first ancestor component (if there is one) and register
|
1715
|
+
// this component as one of the actively loading child components for its ancestor
|
1716
|
+
let ancestorComponent = elm;
|
1717
|
+
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
1718
|
+
// climb up the ancestors looking for the first
|
1719
|
+
// component that hasn't finished its lifecycle update yet
|
1720
|
+
if (ancestorComponent['s-p']) {
|
1721
|
+
// we found this components first ancestor component
|
1722
|
+
// keep a reference to this component's ancestor component
|
1723
|
+
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
1724
|
+
break;
|
1725
|
+
}
|
1726
|
+
}
|
1727
|
+
}
|
1728
|
+
// Lazy properties
|
1729
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
1730
|
+
if (cmpMeta.$members$) {
|
1731
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
1732
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
1733
|
+
const value = elm[memberName];
|
1734
|
+
delete elm[memberName];
|
1735
|
+
elm[memberName] = value;
|
1736
|
+
}
|
1737
|
+
});
|
1738
|
+
}
|
1739
|
+
{
|
1740
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
1741
|
+
}
|
1742
|
+
}
|
1743
|
+
else {
|
1744
|
+
// not the first time this has connected
|
1745
|
+
// reattach any event listeners to the host
|
1746
|
+
// since they would have been removed when disconnected
|
1747
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
1748
|
+
// fire off connectedCallback() on component instance
|
1749
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
1750
|
+
}
|
1751
|
+
endConnected();
|
1752
|
+
}
|
1753
|
+
};
|
1754
|
+
const setContentReference = (elm) => {
|
1755
|
+
// only required when we're NOT using native shadow dom (slot)
|
1756
|
+
// or this browser doesn't support native shadow dom
|
1757
|
+
// and this host element was NOT created with SSR
|
1758
|
+
// let's pick out the inner content for slot projection
|
1759
|
+
// create a node to represent where the original
|
1760
|
+
// content was first placed, which is useful later on
|
1761
|
+
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
1762
|
+
contentRefElm['s-cn'] = true;
|
1763
|
+
elm.insertBefore(contentRefElm, elm.firstChild);
|
1764
|
+
};
|
1765
|
+
const disconnectedCallback = (elm) => {
|
1766
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
1767
|
+
const hostRef = getHostRef(elm);
|
1768
|
+
const instance = hostRef.$lazyInstance$ ;
|
1769
|
+
{
|
1770
|
+
if (hostRef.$rmListeners$) {
|
1771
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
1772
|
+
hostRef.$rmListeners$ = undefined;
|
1773
|
+
}
|
1774
|
+
}
|
1775
|
+
{
|
1776
|
+
safeCall(instance, 'disconnectedCallback');
|
1777
|
+
}
|
1778
|
+
}
|
1779
|
+
};
|
1780
|
+
const bootstrapLazy = (lazyBundles, options = {}) => {
|
1781
|
+
const endBootstrap = createTime();
|
1782
|
+
const cmpTags = [];
|
1783
|
+
const exclude = options.exclude || [];
|
1784
|
+
const customElements = win.customElements;
|
1785
|
+
const head = doc.head;
|
1786
|
+
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
1787
|
+
const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
|
1788
|
+
const deferredConnectedCallbacks = [];
|
1789
|
+
let appLoadFallback;
|
1790
|
+
let isBootstrapping = true;
|
1791
|
+
Object.assign(plt, options);
|
1792
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
1793
|
+
lazyBundles.map((lazyBundle) => {
|
1794
|
+
lazyBundle[1].map((compactMeta) => {
|
1795
|
+
const cmpMeta = {
|
1796
|
+
$flags$: compactMeta[0],
|
1797
|
+
$tagName$: compactMeta[1],
|
1798
|
+
$members$: compactMeta[2],
|
1799
|
+
$listeners$: compactMeta[3],
|
1800
|
+
};
|
1801
|
+
{
|
1802
|
+
cmpMeta.$members$ = compactMeta[2];
|
1803
|
+
}
|
1804
|
+
{
|
1805
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
1806
|
+
}
|
1807
|
+
{
|
1808
|
+
cmpMeta.$attrsToReflect$ = [];
|
1809
|
+
}
|
1810
|
+
{
|
1811
|
+
cmpMeta.$watchers$ = {};
|
1812
|
+
}
|
1813
|
+
const tagName = cmpMeta.$tagName$;
|
1814
|
+
const HostElement = class extends HTMLElement {
|
1815
|
+
// StencilLazyHost
|
1816
|
+
constructor(self) {
|
1817
|
+
// @ts-ignore
|
1818
|
+
super(self);
|
1819
|
+
self = this;
|
1820
|
+
registerHost(self, cmpMeta);
|
1821
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
1822
|
+
// this component is using shadow dom
|
1823
|
+
// and this browser supports shadow dom
|
1824
|
+
// add the read-only property "shadowRoot" to the host element
|
1825
|
+
// adding the shadow root build conditionals to minimize runtime
|
1826
|
+
{
|
1827
|
+
{
|
1828
|
+
self.attachShadow({ mode: 'open' });
|
1829
|
+
}
|
1830
|
+
}
|
1831
|
+
}
|
1832
|
+
}
|
1833
|
+
connectedCallback() {
|
1834
|
+
if (appLoadFallback) {
|
1835
|
+
clearTimeout(appLoadFallback);
|
1836
|
+
appLoadFallback = null;
|
1837
|
+
}
|
1838
|
+
if (isBootstrapping) {
|
1839
|
+
// connectedCallback will be processed once all components have been registered
|
1840
|
+
deferredConnectedCallbacks.push(this);
|
1841
|
+
}
|
1842
|
+
else {
|
1843
|
+
plt.jmp(() => connectedCallback(this));
|
1844
|
+
}
|
1845
|
+
}
|
1846
|
+
disconnectedCallback() {
|
1847
|
+
plt.jmp(() => disconnectedCallback(this));
|
1848
|
+
}
|
1849
|
+
componentOnReady() {
|
1850
|
+
return getHostRef(this).$onReadyPromise$;
|
1851
|
+
}
|
1852
|
+
};
|
1853
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
1854
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
1855
|
+
cmpTags.push(tagName);
|
1856
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
1857
|
+
}
|
1858
|
+
});
|
1859
|
+
});
|
1860
|
+
{
|
1861
|
+
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
1862
|
+
visibilityStyle.setAttribute('data-styles', '');
|
1863
|
+
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
1864
|
+
}
|
1865
|
+
// Process deferred connectedCallbacks now all components have been registered
|
1866
|
+
isBootstrapping = false;
|
1867
|
+
if (deferredConnectedCallbacks.length) {
|
1868
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
1869
|
+
}
|
1870
|
+
else {
|
1871
|
+
{
|
1872
|
+
plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
|
1873
|
+
}
|
1874
|
+
}
|
1875
|
+
// Fallback appLoad event
|
1876
|
+
endBootstrap();
|
1877
|
+
};
|
1878
|
+
const Fragment = (_, children) => children;
|
1879
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
1880
|
+
if (listeners) {
|
1881
|
+
listeners.map(([flags, name, method]) => {
|
1882
|
+
const target = getHostListenerTarget(elm, flags) ;
|
1883
|
+
const handler = hostListenerProxy(hostRef, method);
|
1884
|
+
const opts = hostListenerOpts(flags);
|
1885
|
+
plt.ael(target, name, handler, opts);
|
1886
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
1887
|
+
});
|
1888
|
+
}
|
1889
|
+
};
|
1890
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
1891
|
+
try {
|
1892
|
+
{
|
1893
|
+
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
1894
|
+
// instance is ready, let's call it's member method for this event
|
1895
|
+
hostRef.$lazyInstance$[methodName](ev);
|
1896
|
+
}
|
1897
|
+
else {
|
1898
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
1899
|
+
}
|
1900
|
+
}
|
1901
|
+
}
|
1902
|
+
catch (e) {
|
1903
|
+
consoleError(e);
|
1904
|
+
}
|
1905
|
+
};
|
1906
|
+
const getHostListenerTarget = (elm, flags) => {
|
1907
|
+
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
1908
|
+
return doc;
|
1909
|
+
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
1910
|
+
return win;
|
1911
|
+
if (flags & 16 /* LISTENER_FLAGS.TargetBody */)
|
1912
|
+
return doc.body;
|
1913
|
+
return elm;
|
1914
|
+
};
|
1915
|
+
// prettier-ignore
|
1916
|
+
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
1917
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
1918
|
+
const getHostRef = (ref) => hostRefs.get(ref);
|
1919
|
+
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
1920
|
+
const registerHost = (elm, cmpMeta) => {
|
1921
|
+
const hostRef = {
|
1922
|
+
$flags$: 0,
|
1923
|
+
$hostElement$: elm,
|
1924
|
+
$cmpMeta$: cmpMeta,
|
1925
|
+
$instanceValues$: new Map(),
|
1926
|
+
};
|
1927
|
+
{
|
1928
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
1929
|
+
}
|
1930
|
+
{
|
1931
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
1932
|
+
elm['s-p'] = [];
|
1933
|
+
elm['s-rc'] = [];
|
1934
|
+
}
|
1935
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
1936
|
+
return hostRefs.set(elm, hostRef);
|
1937
|
+
};
|
1938
|
+
const isMemberInElement = (elm, memberName) => memberName in elm;
|
1939
|
+
const consoleError = (e, el) => (0, console.error)(e, el);
|
1940
|
+
const cmpModules = /*@__PURE__*/ new Map();
|
1941
|
+
const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
1942
|
+
// loadModuleImport
|
1943
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
|
1944
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
1945
|
+
const module = cmpModules.get(bundleId) ;
|
1946
|
+
if (module) {
|
1947
|
+
return module[exportName];
|
1948
|
+
}
|
1949
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
1950
|
+
return import(
|
1951
|
+
/* @vite-ignore */
|
1952
|
+
/* webpackInclude: /\.entry\.js$/ */
|
1953
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
1954
|
+
/* webpackMode: "lazy" */
|
1955
|
+
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
1956
|
+
{
|
1957
|
+
cmpModules.set(bundleId, importedModule);
|
1958
|
+
}
|
1959
|
+
return importedModule[exportName];
|
1960
|
+
}, consoleError);
|
1961
|
+
};
|
1962
|
+
const styles = /*@__PURE__*/ new Map();
|
1963
|
+
const win = typeof window !== 'undefined' ? window : {};
|
1964
|
+
const doc = win.document || { head: {} };
|
1965
|
+
const plt = {
|
1966
|
+
$flags$: 0,
|
1967
|
+
$resourcesUrl$: '',
|
1968
|
+
jmp: (h) => h(),
|
1969
|
+
raf: (h) => requestAnimationFrame(h),
|
1970
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
1971
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
1972
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
1973
|
+
};
|
1974
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
1975
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
1976
|
+
try {
|
1977
|
+
new CSSStyleSheet();
|
1978
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
1979
|
+
}
|
1980
|
+
catch (e) { }
|
1981
|
+
return false;
|
1982
|
+
})()
|
1983
|
+
;
|
1984
|
+
const queueDomReads = [];
|
1985
|
+
const queueDomWrites = [];
|
1986
|
+
const queueTask = (queue, write) => (cb) => {
|
1987
|
+
queue.push(cb);
|
1988
|
+
if (!queuePending) {
|
1989
|
+
queuePending = true;
|
1990
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
1991
|
+
nextTick(flush);
|
1992
|
+
}
|
1993
|
+
else {
|
1994
|
+
plt.raf(flush);
|
1995
|
+
}
|
1996
|
+
}
|
1997
|
+
};
|
1998
|
+
const consume = (queue) => {
|
1999
|
+
for (let i = 0; i < queue.length; i++) {
|
2000
|
+
try {
|
2001
|
+
queue[i](performance.now());
|
2002
|
+
}
|
2003
|
+
catch (e) {
|
2004
|
+
consoleError(e);
|
2005
|
+
}
|
2006
|
+
}
|
2007
|
+
queue.length = 0;
|
2008
|
+
};
|
2009
|
+
const flush = () => {
|
2010
|
+
// always force a bunch of medium callbacks to run, but still have
|
2011
|
+
// a throttle on how many can run in a certain time
|
2012
|
+
// DOM READS!!!
|
2013
|
+
consume(queueDomReads);
|
2014
|
+
// DOM WRITES!!!
|
2015
|
+
{
|
2016
|
+
consume(queueDomWrites);
|
2017
|
+
if ((queuePending = queueDomReads.length > 0)) {
|
2018
|
+
// still more to do yet, but we've run out of time
|
2019
|
+
// let's let this thing cool off and try again in the next tick
|
2020
|
+
plt.raf(flush);
|
2021
|
+
}
|
2022
|
+
}
|
2023
|
+
};
|
2024
|
+
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
2025
|
+
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
2026
|
+
|
2027
|
+
export { Fragment as F, Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getRenderingRef as d, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r };
|
2028
|
+
|
2029
|
+
//# sourceMappingURL=p-58c69df2.js.map
|