@charde/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/charde/charde.css +1775 -0
- package/dist/charde/charde.esm.js +50 -0
- package/dist/charde/charde.esm.js.map +1 -0
- package/dist/charde/chardes-alert-close-button.entry.js +24 -0
- package/dist/charde/chardes-alert-close-button.entry.js.map +1 -0
- package/dist/charde/chardes-alert-content.entry.js +23 -0
- package/dist/charde/chardes-alert-content.entry.js.map +1 -0
- package/dist/charde/chardes-alert-error.entry.js +22 -0
- package/dist/charde/chardes-alert-error.entry.js.map +1 -0
- package/dist/charde/chardes-alert-header.entry.js +22 -0
- package/dist/charde/chardes-alert-header.entry.js.map +1 -0
- package/dist/charde/chardes-alert-icon.entry.js +23 -0
- package/dist/charde/chardes-alert-icon.entry.js.map +1 -0
- package/dist/charde/chardes-alert-success.entry.js +22 -0
- package/dist/charde/chardes-alert-success.entry.js.map +1 -0
- package/dist/charde/chardes-alert-title-container.entry.js +22 -0
- package/dist/charde/chardes-alert-title-container.entry.js.map +1 -0
- package/dist/charde/chardes-alert-title.entry.js +23 -0
- package/dist/charde/chardes-alert-title.entry.js.map +1 -0
- package/dist/charde/chardes-alert-warning.entry.js +22 -0
- package/dist/charde/chardes-alert-warning.entry.js.map +1 -0
- package/dist/charde/chardes-alerts.entry.js +22 -0
- package/dist/charde/chardes-alerts.entry.js.map +1 -0
- package/dist/charde/chardes-badge-close-button.entry.js +24 -0
- package/dist/charde/chardes-badge-close-button.entry.js.map +1 -0
- package/dist/charde/chardes-badge-error.entry.js +23 -0
- package/dist/charde/chardes-badge-error.entry.js.map +1 -0
- package/dist/charde/chardes-badge-group.entry.js +22 -0
- package/dist/charde/chardes-badge-group.entry.js.map +1 -0
- package/dist/charde/chardes-badge-icon.entry.js +23 -0
- package/dist/charde/chardes-badge-icon.entry.js.map +1 -0
- package/dist/charde/chardes-badge-interactive-text.entry.js +23 -0
- package/dist/charde/chardes-badge-interactive-text.entry.js.map +1 -0
- package/dist/charde/chardes-badge-interactive.entry.js +22 -0
- package/dist/charde/chardes-badge-interactive.entry.js.map +1 -0
- package/dist/charde/chardes-badge-outline.entry.js +23 -0
- package/dist/charde/chardes-badge-outline.entry.js.map +1 -0
- package/dist/charde/chardes-badge-primary.entry.js +23 -0
- package/dist/charde/chardes-badge-primary.entry.js.map +1 -0
- package/dist/charde/chardes-badge-secondary.entry.js +23 -0
- package/dist/charde/chardes-badge-secondary.entry.js.map +1 -0
- package/dist/charde/chardes-badge-success.entry.js +23 -0
- package/dist/charde/chardes-badge-success.entry.js.map +1 -0
- package/dist/charde/chardes-badge-text.entry.js +23 -0
- package/dist/charde/chardes-badge-text.entry.js.map +1 -0
- package/dist/charde/chardes-badge-warning.entry.js +23 -0
- package/dist/charde/chardes-badge-warning.entry.js.map +1 -0
- package/dist/charde/chardes-badge-with-icon.entry.js +22 -0
- package/dist/charde/chardes-badge-with-icon.entry.js.map +1 -0
- package/dist/charde/chardes-badge.entry.js +22 -0
- package/dist/charde/chardes-badge.entry.js.map +1 -0
- package/dist/charde/chardes-button.entry.js +25 -0
- package/dist/charde/chardes-button.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-action-button-1.entry.js +24 -0
- package/dist/charde/chardes-card-body-action-button-1.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-action-button-2.entry.js +24 -0
- package/dist/charde/chardes-card-body-action-button-2.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-action-icon-1.entry.js +23 -0
- package/dist/charde/chardes-card-body-action-icon-1.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-action-icon-2.entry.js +23 -0
- package/dist/charde/chardes-card-body-action-icon-2.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-actions.entry.js +22 -0
- package/dist/charde/chardes-card-body-actions.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-driver.entry.js +22 -0
- package/dist/charde/chardes-card-body-driver.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-img.entry.js +24 -0
- package/dist/charde/chardes-card-body-img.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-info.entry.js +22 -0
- package/dist/charde/chardes-card-body-info.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-name.entry.js +23 -0
- package/dist/charde/chardes-card-body-name.entry.js.map +1 -0
- package/dist/charde/chardes-card-body-span.entry.js +23 -0
- package/dist/charde/chardes-card-body-span.entry.js.map +1 -0
- package/dist/charde/chardes-card-body.entry.js +22 -0
- package/dist/charde/chardes-card-body.entry.js.map +1 -0
- package/dist/charde/chardes-card-container.entry.js +22 -0
- package/dist/charde/chardes-card-container.entry.js.map +1 -0
- package/dist/charde/chardes-card-header-content.entry.js +22 -0
- package/dist/charde/chardes-card-header-content.entry.js.map +1 -0
- package/dist/charde/chardes-card-header-timer.entry.js +23 -0
- package/dist/charde/chardes-card-header-timer.entry.js.map +1 -0
- package/dist/charde/chardes-card-header-title.entry.js +23 -0
- package/dist/charde/chardes-card-header-title.entry.js.map +1 -0
- package/dist/charde/chardes-card-header.entry.js +22 -0
- package/dist/charde/chardes-card-header.entry.js.map +1 -0
- package/dist/charde/chardes-card-icon-container.entry.js +22 -0
- package/dist/charde/chardes-card-icon-container.entry.js.map +1 -0
- package/dist/charde/chardes-card-number.entry.js +23 -0
- package/dist/charde/chardes-card-number.entry.js.map +1 -0
- package/dist/charde/chardes-card-payment-container.entry.js +22 -0
- package/dist/charde/chardes-card-payment-container.entry.js.map +1 -0
- package/dist/charde/chardes-card-payment-content.entry.js +22 -0
- package/dist/charde/chardes-card-payment-content.entry.js.map +1 -0
- package/dist/charde/chardes-card-payment-details.entry.js +22 -0
- package/dist/charde/chardes-card-payment-details.entry.js.map +1 -0
- package/dist/charde/chardes-card-payment-icon-container.entry.js +22 -0
- package/dist/charde/chardes-card-payment-icon-container.entry.js.map +1 -0
- package/dist/charde/chardes-card-payment.entry.js +22 -0
- package/dist/charde/chardes-card-payment.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-container.entry.js +22 -0
- package/dist/charde/chardes-card-route-container.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-destination-address.entry.js +23 -0
- package/dist/charde/chardes-card-route-destination-address.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-destination-details.entry.js +22 -0
- package/dist/charde/chardes-card-route-destination-details.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-destination-icon-container.entry.js +22 -0
- package/dist/charde/chardes-card-route-destination-icon-container.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-destination-icon.entry.js +22 -0
- package/dist/charde/chardes-card-route-destination-icon.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-destination-label.entry.js +23 -0
- package/dist/charde/chardes-card-route-destination-label.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-destination.entry.js +22 -0
- package/dist/charde/chardes-card-route-destination.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-pickup-address.entry.js +23 -0
- package/dist/charde/chardes-card-route-pickup-address.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-pickup-details.entry.js +22 -0
- package/dist/charde/chardes-card-route-pickup-details.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-pickup-icon.entry.js +22 -0
- package/dist/charde/chardes-card-route-pickup-icon.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-pickup-label.entry.js +23 -0
- package/dist/charde/chardes-card-route-pickup-label.entry.js.map +1 -0
- package/dist/charde/chardes-card-route-pickup.entry.js +22 -0
- package/dist/charde/chardes-card-route-pickup.entry.js.map +1 -0
- package/dist/charde/chardes-card-route.entry.js +22 -0
- package/dist/charde/chardes-card-route.entry.js.map +1 -0
- package/dist/charde/chardes-card-total-amount.entry.js +23 -0
- package/dist/charde/chardes-card-total-amount.entry.js.map +1 -0
- package/dist/charde/chardes-card-total-content.entry.js +22 -0
- package/dist/charde/chardes-card-total-content.entry.js.map +1 -0
- package/dist/charde/chardes-card-total-label.entry.js +23 -0
- package/dist/charde/chardes-card-total-label.entry.js.map +1 -0
- package/dist/charde/chardes-card-total-section.entry.js +22 -0
- package/dist/charde/chardes-card-total-section.entry.js.map +1 -0
- package/dist/charde/chardes-card-type.entry.js +23 -0
- package/dist/charde/chardes-card-type.entry.js.map +1 -0
- package/dist/charde/chardes-card.entry.js +22 -0
- package/dist/charde/chardes-card.entry.js.map +1 -0
- package/dist/charde/chardes-checkbox-checkmark.entry.js +22 -0
- package/dist/charde/chardes-checkbox-checkmark.entry.js.map +1 -0
- package/dist/charde/chardes-checkbox-input-wrapper.entry.js +22 -0
- package/dist/charde/chardes-checkbox-input-wrapper.entry.js.map +1 -0
- package/dist/charde/chardes-checkbox-input.entry.js +26 -0
- package/dist/charde/chardes-checkbox-input.entry.js.map +1 -0
- package/dist/charde/chardes-checkbox-label.entry.js +23 -0
- package/dist/charde/chardes-checkbox-label.entry.js.map +1 -0
- package/dist/charde/chardes-checkbox.entry.js +23 -0
- package/dist/charde/chardes-checkbox.entry.js.map +1 -0
- package/dist/charde/chardes-checkmark-svg.entry.js +22 -0
- package/dist/charde/chardes-checkmark-svg.entry.js.map +1 -0
- package/dist/charde/chardes-close-icon.entry.js +23 -0
- package/dist/charde/chardes-close-icon.entry.js.map +1 -0
- package/dist/charde/chardes-error-icon-svg.entry.js +23 -0
- package/dist/charde/chardes-error-icon-svg.entry.js.map +1 -0
- package/dist/charde/chardes-error-input-icon.entry.js +22 -0
- package/dist/charde/chardes-error-input-icon.entry.js.map +1 -0
- package/dist/charde/chardes-error-input-wrapper.entry.js +22 -0
- package/dist/charde/chardes-error-input-wrapper.entry.js.map +1 -0
- package/dist/charde/chardes-error-input.entry.js +27 -0
- package/dist/charde/chardes-error-input.entry.js.map +1 -0
- package/dist/charde/chardes-error-label.entry.js +24 -0
- package/dist/charde/chardes-error-label.entry.js.map +1 -0
- package/dist/charde/chardes-error-message.entry.js +23 -0
- package/dist/charde/chardes-error-message.entry.js.map +1 -0
- package/dist/charde/chardes-error-state.entry.js +22 -0
- package/dist/charde/chardes-error-state.entry.js.map +1 -0
- package/dist/charde/chardes-form-group.entry.js +22 -0
- package/dist/charde/chardes-form-group.entry.js.map +1 -0
- package/dist/charde/chardes-form-input.entry.js +26 -0
- package/dist/charde/chardes-form-input.entry.js.map +1 -0
- package/dist/charde/chardes-form-label.entry.js +24 -0
- package/dist/charde/chardes-form-label.entry.js.map +1 -0
- package/dist/charde/chardes-group-badge-1.entry.js +23 -0
- package/dist/charde/chardes-group-badge-1.entry.js.map +1 -0
- package/dist/charde/chardes-group-badge-2.entry.js +23 -0
- package/dist/charde/chardes-group-badge-2.entry.js.map +1 -0
- package/dist/charde/chardes-group-badge-3.entry.js +23 -0
- package/dist/charde/chardes-group-badge-3.entry.js.map +1 -0
- package/dist/charde/chardes-group-badge-4.entry.js +23 -0
- package/dist/charde/chardes-group-badge-4.entry.js.map +1 -0
- package/dist/charde/chardes-icon-svg-destination.entry.js +23 -0
- package/dist/charde/chardes-icon-svg-destination.entry.js.map +1 -0
- package/dist/charde/chardes-icon-svg-pickup.entry.js +23 -0
- package/dist/charde/chardes-icon-svg-pickup.entry.js.map +1 -0
- package/dist/charde/chardes-icon-svg.entry.js +23 -0
- package/dist/charde/chardes-icon-svg.entry.js.map +1 -0
- package/dist/charde/chardes-input-element.entry.js +27 -0
- package/dist/charde/chardes-input-element.entry.js.map +1 -0
- package/dist/charde/chardes-input-field-wrapper.entry.js +22 -0
- package/dist/charde/chardes-input-field-wrapper.entry.js.map +1 -0
- package/dist/charde/chardes-input-helper.entry.js +23 -0
- package/dist/charde/chardes-input-helper.entry.js.map +1 -0
- package/dist/charde/chardes-input-icon.entry.js +22 -0
- package/dist/charde/chardes-input-icon.entry.js.map +1 -0
- package/dist/charde/chardes-input-label.entry.js +24 -0
- package/dist/charde/chardes-input-label.entry.js.map +1 -0
- package/dist/charde/chardes-input-states.entry.js +22 -0
- package/dist/charde/chardes-input-states.entry.js.map +1 -0
- package/dist/charde/chardes-input-wrapper.entry.js +22 -0
- package/dist/charde/chardes-input-wrapper.entry.js.map +1 -0
- package/dist/charde/chardes-input.entry.js +22 -0
- package/dist/charde/chardes-input.entry.js.map +1 -0
- package/dist/charde/chardes-modal-body.entry.js +22 -0
- package/dist/charde/chardes-modal-body.entry.js.map +1 -0
- package/dist/charde/chardes-modal-cancel-button.entry.js +25 -0
- package/dist/charde/chardes-modal-cancel-button.entry.js.map +1 -0
- package/dist/charde/chardes-modal-close-button.entry.js +24 -0
- package/dist/charde/chardes-modal-close-button.entry.js.map +1 -0
- package/dist/charde/chardes-modal-confirm-button.entry.js +25 -0
- package/dist/charde/chardes-modal-confirm-button.entry.js.map +1 -0
- package/dist/charde/chardes-modal-container.entry.js +22 -0
- package/dist/charde/chardes-modal-container.entry.js.map +1 -0
- package/dist/charde/chardes-modal-content.entry.js +23 -0
- package/dist/charde/chardes-modal-content.entry.js.map +1 -0
- package/dist/charde/chardes-modal-footer.entry.js +22 -0
- package/dist/charde/chardes-modal-footer.entry.js.map +1 -0
- package/dist/charde/chardes-modal-form.entry.js +22 -0
- package/dist/charde/chardes-modal-form.entry.js.map +1 -0
- package/dist/charde/chardes-modal-header.entry.js +22 -0
- package/dist/charde/chardes-modal-header.entry.js.map +1 -0
- package/dist/charde/chardes-modal-title.entry.js +23 -0
- package/dist/charde/chardes-modal-title.entry.js.map +1 -0
- package/dist/charde/chardes-modal.entry.js +22 -0
- package/dist/charde/chardes-modal.entry.js.map +1 -0
- package/dist/charde/chardes-muzingo-primary-button.entry.js +22 -0
- package/dist/charde/chardes-muzingo-primary-button.entry.js.map +1 -0
- package/dist/charde/chardes-muzingo.entry.js +26 -0
- package/dist/charde/chardes-muzingo.entry.js.map +1 -0
- package/dist/charde/chardes-notification-toast.entry.js +22 -0
- package/dist/charde/chardes-notification-toast.entry.js.map +1 -0
- package/dist/charde/chardes-payment-icon.entry.js +23 -0
- package/dist/charde/chardes-payment-icon.entry.js.map +1 -0
- package/dist/charde/chardes-success-icon-svg.entry.js +23 -0
- package/dist/charde/chardes-success-icon-svg.entry.js.map +1 -0
- package/dist/charde/chardes-success-input-icon.entry.js +22 -0
- package/dist/charde/chardes-success-input-icon.entry.js.map +1 -0
- package/dist/charde/chardes-success-input-wrapper.entry.js +22 -0
- package/dist/charde/chardes-success-input-wrapper.entry.js.map +1 -0
- package/dist/charde/chardes-success-input.entry.js +27 -0
- package/dist/charde/chardes-success-input.entry.js.map +1 -0
- package/dist/charde/chardes-success-label.entry.js +24 -0
- package/dist/charde/chardes-success-label.entry.js.map +1 -0
- package/dist/charde/chardes-success-message.entry.js +23 -0
- package/dist/charde/chardes-success-message.entry.js.map +1 -0
- package/dist/charde/chardes-success-state.entry.js +22 -0
- package/dist/charde/chardes-success-state.entry.js.map +1 -0
- package/dist/charde/chardes-toast-action-button.entry.js +25 -0
- package/dist/charde/chardes-toast-action-button.entry.js.map +1 -0
- package/dist/charde/chardes-toast-actions.entry.js +22 -0
- package/dist/charde/chardes-toast-actions.entry.js.map +1 -0
- package/dist/charde/chardes-toast-content.entry.js +23 -0
- package/dist/charde/chardes-toast-content.entry.js.map +1 -0
- package/dist/charde/chardes-toast-dismiss-button.entry.js +25 -0
- package/dist/charde/chardes-toast-dismiss-button.entry.js.map +1 -0
- package/dist/charde/chardes-toast-header.entry.js +22 -0
- package/dist/charde/chardes-toast-header.entry.js.map +1 -0
- package/dist/charde/chardes-toast-icon.entry.js +23 -0
- package/dist/charde/chardes-toast-icon.entry.js.map +1 -0
- package/dist/charde/chardes-toast-timestamp.entry.js +23 -0
- package/dist/charde/chardes-toast-timestamp.entry.js.map +1 -0
- package/dist/charde/chardes-toast-title-container.entry.js +22 -0
- package/dist/charde/chardes-toast-title-container.entry.js.map +1 -0
- package/dist/charde/chardes-toast-title.entry.js +23 -0
- package/dist/charde/chardes-toast-title.entry.js.map +1 -0
- package/dist/charde/charisol-alert-close-button.entry.js +24 -0
- package/dist/charde/charisol-alert-close-button.entry.js.map +1 -0
- package/dist/charde/charisol-alert-content.entry.js +23 -0
- package/dist/charde/charisol-alert-content.entry.js.map +1 -0
- package/dist/charde/charisol-alert-error.entry.js +22 -0
- package/dist/charde/charisol-alert-error.entry.js.map +1 -0
- package/dist/charde/charisol-alert-header.entry.js +22 -0
- package/dist/charde/charisol-alert-header.entry.js.map +1 -0
- package/dist/charde/charisol-alert-icon.entry.js +23 -0
- package/dist/charde/charisol-alert-icon.entry.js.map +1 -0
- package/dist/charde/charisol-alert-success.entry.js +22 -0
- package/dist/charde/charisol-alert-success.entry.js.map +1 -0
- package/dist/charde/charisol-alert-title-container.entry.js +22 -0
- package/dist/charde/charisol-alert-title-container.entry.js.map +1 -0
- package/dist/charde/charisol-alert-title.entry.js +23 -0
- package/dist/charde/charisol-alert-title.entry.js.map +1 -0
- package/dist/charde/charisol-alert-warning.entry.js +22 -0
- package/dist/charde/charisol-alert-warning.entry.js.map +1 -0
- package/dist/charde/charisol-alerts.entry.js +22 -0
- package/dist/charde/charisol-alerts.entry.js.map +1 -0
- package/dist/charde/charisol-badge-close-button.entry.js +24 -0
- package/dist/charde/charisol-badge-close-button.entry.js.map +1 -0
- package/dist/charde/charisol-badge-error.entry.js +23 -0
- package/dist/charde/charisol-badge-error.entry.js.map +1 -0
- package/dist/charde/charisol-badge-group.entry.js +22 -0
- package/dist/charde/charisol-badge-group.entry.js.map +1 -0
- package/dist/charde/charisol-badge-icon.entry.js +23 -0
- package/dist/charde/charisol-badge-icon.entry.js.map +1 -0
- package/dist/charde/charisol-badge-interactive-text.entry.js +23 -0
- package/dist/charde/charisol-badge-interactive-text.entry.js.map +1 -0
- package/dist/charde/charisol-badge-interactive.entry.js +22 -0
- package/dist/charde/charisol-badge-interactive.entry.js.map +1 -0
- package/dist/charde/charisol-badge-outline.entry.js +23 -0
- package/dist/charde/charisol-badge-outline.entry.js.map +1 -0
- package/dist/charde/charisol-badge-primary.entry.js +23 -0
- package/dist/charde/charisol-badge-primary.entry.js.map +1 -0
- package/dist/charde/charisol-badge-secondary.entry.js +23 -0
- package/dist/charde/charisol-badge-secondary.entry.js.map +1 -0
- package/dist/charde/charisol-badge-success.entry.js +23 -0
- package/dist/charde/charisol-badge-success.entry.js.map +1 -0
- package/dist/charde/charisol-badge-text.entry.js +23 -0
- package/dist/charde/charisol-badge-text.entry.js.map +1 -0
- package/dist/charde/charisol-badge-warning.entry.js +23 -0
- package/dist/charde/charisol-badge-warning.entry.js.map +1 -0
- package/dist/charde/charisol-badge-with-icon.entry.js +22 -0
- package/dist/charde/charisol-badge-with-icon.entry.js.map +1 -0
- package/dist/charde/charisol-badge.entry.js +22 -0
- package/dist/charde/charisol-badge.entry.js.map +1 -0
- package/dist/charde/charisol-button.entry.js +25 -0
- package/dist/charde/charisol-button.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-action-button-1.entry.js +24 -0
- package/dist/charde/charisol-card-body-action-button-1.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-action-button-2.entry.js +24 -0
- package/dist/charde/charisol-card-body-action-button-2.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-action-icon-1.entry.js +23 -0
- package/dist/charde/charisol-card-body-action-icon-1.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-action-icon-2.entry.js +23 -0
- package/dist/charde/charisol-card-body-action-icon-2.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-actions.entry.js +22 -0
- package/dist/charde/charisol-card-body-actions.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-driver.entry.js +22 -0
- package/dist/charde/charisol-card-body-driver.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-img.entry.js +24 -0
- package/dist/charde/charisol-card-body-img.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-info.entry.js +22 -0
- package/dist/charde/charisol-card-body-info.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-name.entry.js +23 -0
- package/dist/charde/charisol-card-body-name.entry.js.map +1 -0
- package/dist/charde/charisol-card-body-span.entry.js +23 -0
- package/dist/charde/charisol-card-body-span.entry.js.map +1 -0
- package/dist/charde/charisol-card-body.entry.js +22 -0
- package/dist/charde/charisol-card-body.entry.js.map +1 -0
- package/dist/charde/charisol-card-container.entry.js +22 -0
- package/dist/charde/charisol-card-container.entry.js.map +1 -0
- package/dist/charde/charisol-card-header-content.entry.js +22 -0
- package/dist/charde/charisol-card-header-content.entry.js.map +1 -0
- package/dist/charde/charisol-card-header-timer.entry.js +23 -0
- package/dist/charde/charisol-card-header-timer.entry.js.map +1 -0
- package/dist/charde/charisol-card-header-title.entry.js +23 -0
- package/dist/charde/charisol-card-header-title.entry.js.map +1 -0
- package/dist/charde/charisol-card-header.entry.js +22 -0
- package/dist/charde/charisol-card-header.entry.js.map +1 -0
- package/dist/charde/charisol-card-icon-container.entry.js +22 -0
- package/dist/charde/charisol-card-icon-container.entry.js.map +1 -0
- package/dist/charde/charisol-card-number.entry.js +23 -0
- package/dist/charde/charisol-card-number.entry.js.map +1 -0
- package/dist/charde/charisol-card-payment-container.entry.js +22 -0
- package/dist/charde/charisol-card-payment-container.entry.js.map +1 -0
- package/dist/charde/charisol-card-payment-content.entry.js +22 -0
- package/dist/charde/charisol-card-payment-content.entry.js.map +1 -0
- package/dist/charde/charisol-card-payment-details.entry.js +22 -0
- package/dist/charde/charisol-card-payment-details.entry.js.map +1 -0
- package/dist/charde/charisol-card-payment-icon-container.entry.js +22 -0
- package/dist/charde/charisol-card-payment-icon-container.entry.js.map +1 -0
- package/dist/charde/charisol-card-payment.entry.js +22 -0
- package/dist/charde/charisol-card-payment.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-container.entry.js +22 -0
- package/dist/charde/charisol-card-route-container.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-destination-address.entry.js +23 -0
- package/dist/charde/charisol-card-route-destination-address.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-destination-details.entry.js +22 -0
- package/dist/charde/charisol-card-route-destination-details.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-destination-icon-container.entry.js +22 -0
- package/dist/charde/charisol-card-route-destination-icon-container.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-destination-icon.entry.js +22 -0
- package/dist/charde/charisol-card-route-destination-icon.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-destination-label.entry.js +23 -0
- package/dist/charde/charisol-card-route-destination-label.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-destination.entry.js +22 -0
- package/dist/charde/charisol-card-route-destination.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-pickup-address.entry.js +23 -0
- package/dist/charde/charisol-card-route-pickup-address.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-pickup-details.entry.js +22 -0
- package/dist/charde/charisol-card-route-pickup-details.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-pickup-icon.entry.js +22 -0
- package/dist/charde/charisol-card-route-pickup-icon.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-pickup-label.entry.js +23 -0
- package/dist/charde/charisol-card-route-pickup-label.entry.js.map +1 -0
- package/dist/charde/charisol-card-route-pickup.entry.js +22 -0
- package/dist/charde/charisol-card-route-pickup.entry.js.map +1 -0
- package/dist/charde/charisol-card-route.entry.js +22 -0
- package/dist/charde/charisol-card-route.entry.js.map +1 -0
- package/dist/charde/charisol-card-total-amount.entry.js +23 -0
- package/dist/charde/charisol-card-total-amount.entry.js.map +1 -0
- package/dist/charde/charisol-card-total-content.entry.js +22 -0
- package/dist/charde/charisol-card-total-content.entry.js.map +1 -0
- package/dist/charde/charisol-card-total-label.entry.js +23 -0
- package/dist/charde/charisol-card-total-label.entry.js.map +1 -0
- package/dist/charde/charisol-card-total-section.entry.js +22 -0
- package/dist/charde/charisol-card-total-section.entry.js.map +1 -0
- package/dist/charde/charisol-card-type.entry.js +23 -0
- package/dist/charde/charisol-card-type.entry.js.map +1 -0
- package/dist/charde/charisol-card.entry.js +22 -0
- package/dist/charde/charisol-card.entry.js.map +1 -0
- package/dist/charde/charisol-checkbox-checkmark.entry.js +22 -0
- package/dist/charde/charisol-checkbox-checkmark.entry.js.map +1 -0
- package/dist/charde/charisol-checkbox-input-wrapper.entry.js +22 -0
- package/dist/charde/charisol-checkbox-input-wrapper.entry.js.map +1 -0
- package/dist/charde/charisol-checkbox-input.entry.js +26 -0
- package/dist/charde/charisol-checkbox-input.entry.js.map +1 -0
- package/dist/charde/charisol-checkbox-label.entry.js +23 -0
- package/dist/charde/charisol-checkbox-label.entry.js.map +1 -0
- package/dist/charde/charisol-checkbox.entry.js +23 -0
- package/dist/charde/charisol-checkbox.entry.js.map +1 -0
- package/dist/charde/charisol-checkmark-svg.entry.js +22 -0
- package/dist/charde/charisol-checkmark-svg.entry.js.map +1 -0
- package/dist/charde/charisol-close-icon.entry.js +23 -0
- package/dist/charde/charisol-close-icon.entry.js.map +1 -0
- package/dist/charde/charisol-error-icon-svg.entry.js +23 -0
- package/dist/charde/charisol-error-icon-svg.entry.js.map +1 -0
- package/dist/charde/charisol-error-input-icon.entry.js +22 -0
- package/dist/charde/charisol-error-input-icon.entry.js.map +1 -0
- package/dist/charde/charisol-error-input-wrapper.entry.js +22 -0
- package/dist/charde/charisol-error-input-wrapper.entry.js.map +1 -0
- package/dist/charde/charisol-error-input.entry.js +27 -0
- package/dist/charde/charisol-error-input.entry.js.map +1 -0
- package/dist/charde/charisol-error-label.entry.js +24 -0
- package/dist/charde/charisol-error-label.entry.js.map +1 -0
- package/dist/charde/charisol-error-message.entry.js +23 -0
- package/dist/charde/charisol-error-message.entry.js.map +1 -0
- package/dist/charde/charisol-error-state.entry.js +22 -0
- package/dist/charde/charisol-error-state.entry.js.map +1 -0
- package/dist/charde/charisol-form-group.entry.js +22 -0
- package/dist/charde/charisol-form-group.entry.js.map +1 -0
- package/dist/charde/charisol-form-input.entry.js +26 -0
- package/dist/charde/charisol-form-input.entry.js.map +1 -0
- package/dist/charde/charisol-form-label.entry.js +24 -0
- package/dist/charde/charisol-form-label.entry.js.map +1 -0
- package/dist/charde/charisol-group-badge-1.entry.js +23 -0
- package/dist/charde/charisol-group-badge-1.entry.js.map +1 -0
- package/dist/charde/charisol-group-badge-2.entry.js +23 -0
- package/dist/charde/charisol-group-badge-2.entry.js.map +1 -0
- package/dist/charde/charisol-group-badge-3.entry.js +23 -0
- package/dist/charde/charisol-group-badge-3.entry.js.map +1 -0
- package/dist/charde/charisol-group-badge-4.entry.js +23 -0
- package/dist/charde/charisol-group-badge-4.entry.js.map +1 -0
- package/dist/charde/charisol-icon-svg-destination.entry.js +23 -0
- package/dist/charde/charisol-icon-svg-destination.entry.js.map +1 -0
- package/dist/charde/charisol-icon-svg-pickup.entry.js +23 -0
- package/dist/charde/charisol-icon-svg-pickup.entry.js.map +1 -0
- package/dist/charde/charisol-icon-svg.entry.js +23 -0
- package/dist/charde/charisol-icon-svg.entry.js.map +1 -0
- package/dist/charde/charisol-input-element.entry.js +27 -0
- package/dist/charde/charisol-input-element.entry.js.map +1 -0
- package/dist/charde/charisol-input-field-wrapper.entry.js +22 -0
- package/dist/charde/charisol-input-field-wrapper.entry.js.map +1 -0
- package/dist/charde/charisol-input-helper.entry.js +23 -0
- package/dist/charde/charisol-input-helper.entry.js.map +1 -0
- package/dist/charde/charisol-input-icon.entry.js +22 -0
- package/dist/charde/charisol-input-icon.entry.js.map +1 -0
- package/dist/charde/charisol-input-label.entry.js +24 -0
- package/dist/charde/charisol-input-label.entry.js.map +1 -0
- package/dist/charde/charisol-input-states.entry.js +22 -0
- package/dist/charde/charisol-input-states.entry.js.map +1 -0
- package/dist/charde/charisol-input-wrapper.entry.js +22 -0
- package/dist/charde/charisol-input-wrapper.entry.js.map +1 -0
- package/dist/charde/charisol-input.entry.js +22 -0
- package/dist/charde/charisol-input.entry.js.map +1 -0
- package/dist/charde/charisol-modal-body.entry.js +22 -0
- package/dist/charde/charisol-modal-body.entry.js.map +1 -0
- package/dist/charde/charisol-modal-cancel-button.entry.js +25 -0
- package/dist/charde/charisol-modal-cancel-button.entry.js.map +1 -0
- package/dist/charde/charisol-modal-close-button.entry.js +24 -0
- package/dist/charde/charisol-modal-close-button.entry.js.map +1 -0
- package/dist/charde/charisol-modal-confirm-button.entry.js +25 -0
- package/dist/charde/charisol-modal-confirm-button.entry.js.map +1 -0
- package/dist/charde/charisol-modal-container.entry.js +22 -0
- package/dist/charde/charisol-modal-container.entry.js.map +1 -0
- package/dist/charde/charisol-modal-content.entry.js +23 -0
- package/dist/charde/charisol-modal-content.entry.js.map +1 -0
- package/dist/charde/charisol-modal-footer.entry.js +22 -0
- package/dist/charde/charisol-modal-footer.entry.js.map +1 -0
- package/dist/charde/charisol-modal-form.entry.js +22 -0
- package/dist/charde/charisol-modal-form.entry.js.map +1 -0
- package/dist/charde/charisol-modal-header.entry.js +22 -0
- package/dist/charde/charisol-modal-header.entry.js.map +1 -0
- package/dist/charde/charisol-modal-title.entry.js +23 -0
- package/dist/charde/charisol-modal-title.entry.js.map +1 -0
- package/dist/charde/charisol-modal.entry.js +22 -0
- package/dist/charde/charisol-modal.entry.js.map +1 -0
- package/dist/charde/charisol-muzingo-primary-button.entry.js +22 -0
- package/dist/charde/charisol-muzingo-primary-button.entry.js.map +1 -0
- package/dist/charde/charisol-muzingo.entry.js +26 -0
- package/dist/charde/charisol-muzingo.entry.js.map +1 -0
- package/dist/charde/charisol-notification-toast.entry.js +22 -0
- package/dist/charde/charisol-notification-toast.entry.js.map +1 -0
- package/dist/charde/charisol-payment-icon.entry.js +23 -0
- package/dist/charde/charisol-payment-icon.entry.js.map +1 -0
- package/dist/charde/charisol-success-icon-svg.entry.js +23 -0
- package/dist/charde/charisol-success-icon-svg.entry.js.map +1 -0
- package/dist/charde/charisol-success-input-icon.entry.js +22 -0
- package/dist/charde/charisol-success-input-icon.entry.js.map +1 -0
- package/dist/charde/charisol-success-input-wrapper.entry.js +22 -0
- package/dist/charde/charisol-success-input-wrapper.entry.js.map +1 -0
- package/dist/charde/charisol-success-input.entry.js +27 -0
- package/dist/charde/charisol-success-input.entry.js.map +1 -0
- package/dist/charde/charisol-success-label.entry.js +24 -0
- package/dist/charde/charisol-success-label.entry.js.map +1 -0
- package/dist/charde/charisol-success-message.entry.js +23 -0
- package/dist/charde/charisol-success-message.entry.js.map +1 -0
- package/dist/charde/charisol-success-state.entry.js +22 -0
- package/dist/charde/charisol-success-state.entry.js.map +1 -0
- package/dist/charde/charisol-toast-action-button.entry.js +25 -0
- package/dist/charde/charisol-toast-action-button.entry.js.map +1 -0
- package/dist/charde/charisol-toast-actions.entry.js +22 -0
- package/dist/charde/charisol-toast-actions.entry.js.map +1 -0
- package/dist/charde/charisol-toast-content.entry.js +23 -0
- package/dist/charde/charisol-toast-content.entry.js.map +1 -0
- package/dist/charde/charisol-toast-dismiss-button.entry.js +25 -0
- package/dist/charde/charisol-toast-dismiss-button.entry.js.map +1 -0
- package/dist/charde/charisol-toast-header.entry.js +22 -0
- package/dist/charde/charisol-toast-header.entry.js.map +1 -0
- package/dist/charde/charisol-toast-icon.entry.js +23 -0
- package/dist/charde/charisol-toast-icon.entry.js.map +1 -0
- package/dist/charde/charisol-toast-timestamp.entry.js +23 -0
- package/dist/charde/charisol-toast-timestamp.entry.js.map +1 -0
- package/dist/charde/charisol-toast-title-container.entry.js +22 -0
- package/dist/charde/charisol-toast-title-container.entry.js.map +1 -0
- package/dist/charde/charisol-toast-title.entry.js +23 -0
- package/dist/charde/charisol-toast-title.entry.js.map +1 -0
- package/dist/charde/index-C9gbKL_s.js +4576 -0
- package/dist/charde/index-C9gbKL_s.js.map +1 -0
- package/dist/charde/index.esm.js +4906 -0
- package/dist/charde/index.esm.js.map +1 -0
- package/dist/charde/my-component.entry.js +34 -0
- package/dist/charde/my-component.entry.js.map +1 -0
- package/dist/charde/utils-DhW431pq.js +8 -0
- package/dist/charde/utils-DhW431pq.js.map +1 -0
- package/dist/components/chardes-alert-close-button.d.ts +11 -0
- package/dist/components/chardes-alert-content.d.ts +11 -0
- package/dist/components/chardes-alert-error.d.ts +11 -0
- package/dist/components/chardes-alert-header.d.ts +11 -0
- package/dist/components/chardes-alert-icon.d.ts +11 -0
- package/dist/components/chardes-alert-success.d.ts +11 -0
- package/dist/components/chardes-alert-title-container.d.ts +11 -0
- package/dist/components/chardes-alert-title.d.ts +11 -0
- package/dist/components/chardes-alert-warning.d.ts +11 -0
- package/dist/components/chardes-alerts.d.ts +11 -0
- package/dist/components/chardes-badge-close-button.d.ts +11 -0
- package/dist/components/chardes-badge-error.d.ts +11 -0
- package/dist/components/chardes-badge-group.d.ts +11 -0
- package/dist/components/chardes-badge-icon.d.ts +11 -0
- package/dist/components/chardes-badge-interactive-text.d.ts +11 -0
- package/dist/components/chardes-badge-interactive.d.ts +11 -0
- package/dist/components/chardes-badge-outline.d.ts +11 -0
- package/dist/components/chardes-badge-primary.d.ts +11 -0
- package/dist/components/chardes-badge-secondary.d.ts +11 -0
- package/dist/components/chardes-badge-success.d.ts +11 -0
- package/dist/components/chardes-badge-text.d.ts +11 -0
- package/dist/components/chardes-badge-warning.d.ts +11 -0
- package/dist/components/chardes-badge-with-icon.d.ts +11 -0
- package/dist/components/chardes-badge.d.ts +11 -0
- package/dist/components/chardes-button.d.ts +11 -0
- package/dist/components/chardes-card-body-action-button-1.d.ts +11 -0
- package/dist/components/chardes-card-body-action-button-2.d.ts +11 -0
- package/dist/components/chardes-card-body-action-icon-1.d.ts +11 -0
- package/dist/components/chardes-card-body-action-icon-2.d.ts +11 -0
- package/dist/components/chardes-card-body-actions.d.ts +11 -0
- package/dist/components/chardes-card-body-driver.d.ts +11 -0
- package/dist/components/chardes-card-body-img.d.ts +11 -0
- package/dist/components/chardes-card-body-info.d.ts +11 -0
- package/dist/components/chardes-card-body-name.d.ts +11 -0
- package/dist/components/chardes-card-body-span.d.ts +11 -0
- package/dist/components/chardes-card-body.d.ts +11 -0
- package/dist/components/chardes-card-container.d.ts +11 -0
- package/dist/components/chardes-card-header-content.d.ts +11 -0
- package/dist/components/chardes-card-header-timer.d.ts +11 -0
- package/dist/components/chardes-card-header-title.d.ts +11 -0
- package/dist/components/chardes-card-header.d.ts +11 -0
- package/dist/components/chardes-card-icon-container.d.ts +11 -0
- package/dist/components/chardes-card-number.d.ts +11 -0
- package/dist/components/chardes-card-payment-container.d.ts +11 -0
- package/dist/components/chardes-card-payment-content.d.ts +11 -0
- package/dist/components/chardes-card-payment-details.d.ts +11 -0
- package/dist/components/chardes-card-payment-icon-container.d.ts +11 -0
- package/dist/components/chardes-card-payment.d.ts +11 -0
- package/dist/components/chardes-card-route-container.d.ts +11 -0
- package/dist/components/chardes-card-route-destination-address.d.ts +11 -0
- package/dist/components/chardes-card-route-destination-details.d.ts +11 -0
- package/dist/components/chardes-card-route-destination-icon-container.d.ts +11 -0
- package/dist/components/chardes-card-route-destination-icon.d.ts +11 -0
- package/dist/components/chardes-card-route-destination-label.d.ts +11 -0
- package/dist/components/chardes-card-route-destination.d.ts +11 -0
- package/dist/components/chardes-card-route-pickup-address.d.ts +11 -0
- package/dist/components/chardes-card-route-pickup-details.d.ts +11 -0
- package/dist/components/chardes-card-route-pickup-icon.d.ts +11 -0
- package/dist/components/chardes-card-route-pickup-label.d.ts +11 -0
- package/dist/components/chardes-card-route-pickup.d.ts +11 -0
- package/dist/components/chardes-card-route.d.ts +11 -0
- package/dist/components/chardes-card-total-amount.d.ts +11 -0
- package/dist/components/chardes-card-total-content.d.ts +11 -0
- package/dist/components/chardes-card-total-label.d.ts +11 -0
- package/dist/components/chardes-card-total-section.d.ts +11 -0
- package/dist/components/chardes-card-type.d.ts +11 -0
- package/dist/components/chardes-card.d.ts +11 -0
- package/dist/components/chardes-checkbox-checkmark.d.ts +11 -0
- package/dist/components/chardes-checkbox-input-wrapper.d.ts +11 -0
- package/dist/components/chardes-checkbox-input.d.ts +11 -0
- package/dist/components/chardes-checkbox-label.d.ts +11 -0
- package/dist/components/chardes-checkbox.d.ts +11 -0
- package/dist/components/chardes-checkmark-svg.d.ts +11 -0
- package/dist/components/chardes-close-icon.d.ts +11 -0
- package/dist/components/chardes-error-icon-svg.d.ts +11 -0
- package/dist/components/chardes-error-input-icon.d.ts +11 -0
- package/dist/components/chardes-error-input-wrapper.d.ts +11 -0
- package/dist/components/chardes-error-input.d.ts +11 -0
- package/dist/components/chardes-error-label.d.ts +11 -0
- package/dist/components/chardes-error-message.d.ts +11 -0
- package/dist/components/chardes-error-state.d.ts +11 -0
- package/dist/components/chardes-form-group.d.ts +11 -0
- package/dist/components/chardes-form-input.d.ts +11 -0
- package/dist/components/chardes-form-label.d.ts +11 -0
- package/dist/components/chardes-group-badge-1.d.ts +11 -0
- package/dist/components/chardes-group-badge-2.d.ts +11 -0
- package/dist/components/chardes-group-badge-3.d.ts +11 -0
- package/dist/components/chardes-group-badge-4.d.ts +11 -0
- package/dist/components/chardes-icon-svg-destination.d.ts +11 -0
- package/dist/components/chardes-icon-svg-pickup.d.ts +11 -0
- package/dist/components/chardes-icon-svg.d.ts +11 -0
- package/dist/components/chardes-input-element.d.ts +11 -0
- package/dist/components/chardes-input-field-wrapper.d.ts +11 -0
- package/dist/components/chardes-input-helper.d.ts +11 -0
- package/dist/components/chardes-input-icon.d.ts +11 -0
- package/dist/components/chardes-input-label.d.ts +11 -0
- package/dist/components/chardes-input-states.d.ts +11 -0
- package/dist/components/chardes-input-wrapper.d.ts +11 -0
- package/dist/components/chardes-input.d.ts +11 -0
- package/dist/components/chardes-modal-body.d.ts +11 -0
- package/dist/components/chardes-modal-cancel-button.d.ts +11 -0
- package/dist/components/chardes-modal-close-button.d.ts +11 -0
- package/dist/components/chardes-modal-confirm-button.d.ts +11 -0
- package/dist/components/chardes-modal-container.d.ts +11 -0
- package/dist/components/chardes-modal-content.d.ts +11 -0
- package/dist/components/chardes-modal-footer.d.ts +11 -0
- package/dist/components/chardes-modal-form.d.ts +11 -0
- package/dist/components/chardes-modal-header.d.ts +11 -0
- package/dist/components/chardes-modal-title.d.ts +11 -0
- package/dist/components/chardes-modal.d.ts +11 -0
- package/dist/components/chardes-muzingo-primary-button.d.ts +11 -0
- package/dist/components/chardes-muzingo.d.ts +11 -0
- package/dist/components/chardes-notification-toast.d.ts +11 -0
- package/dist/components/chardes-payment-icon.d.ts +11 -0
- package/dist/components/chardes-success-icon-svg.d.ts +11 -0
- package/dist/components/chardes-success-input-icon.d.ts +11 -0
- package/dist/components/chardes-success-input-wrapper.d.ts +11 -0
- package/dist/components/chardes-success-input.d.ts +11 -0
- package/dist/components/chardes-success-label.d.ts +11 -0
- package/dist/components/chardes-success-message.d.ts +11 -0
- package/dist/components/chardes-success-state.d.ts +11 -0
- package/dist/components/chardes-toast-action-button.d.ts +11 -0
- package/dist/components/chardes-toast-actions.d.ts +11 -0
- package/dist/components/chardes-toast-content.d.ts +11 -0
- package/dist/components/chardes-toast-dismiss-button.d.ts +11 -0
- package/dist/components/chardes-toast-header.d.ts +11 -0
- package/dist/components/chardes-toast-icon.d.ts +11 -0
- package/dist/components/chardes-toast-timestamp.d.ts +11 -0
- package/dist/components/chardes-toast-title-container.d.ts +11 -0
- package/dist/components/chardes-toast-title.d.ts +11 -0
- package/dist/components/charisol-alert-close-button.d.ts +11 -0
- package/dist/components/charisol-alert-content.d.ts +11 -0
- package/dist/components/charisol-alert-error.d.ts +11 -0
- package/dist/components/charisol-alert-header.d.ts +11 -0
- package/dist/components/charisol-alert-icon.d.ts +11 -0
- package/dist/components/charisol-alert-success.d.ts +11 -0
- package/dist/components/charisol-alert-title-container.d.ts +11 -0
- package/dist/components/charisol-alert-title.d.ts +11 -0
- package/dist/components/charisol-alert-warning.d.ts +11 -0
- package/dist/components/charisol-alerts.d.ts +11 -0
- package/dist/components/charisol-badge-close-button.d.ts +11 -0
- package/dist/components/charisol-badge-error.d.ts +11 -0
- package/dist/components/charisol-badge-group.d.ts +11 -0
- package/dist/components/charisol-badge-icon.d.ts +11 -0
- package/dist/components/charisol-badge-interactive-text.d.ts +11 -0
- package/dist/components/charisol-badge-interactive.d.ts +11 -0
- package/dist/components/charisol-badge-outline.d.ts +11 -0
- package/dist/components/charisol-badge-primary.d.ts +11 -0
- package/dist/components/charisol-badge-secondary.d.ts +11 -0
- package/dist/components/charisol-badge-success.d.ts +11 -0
- package/dist/components/charisol-badge-text.d.ts +11 -0
- package/dist/components/charisol-badge-warning.d.ts +11 -0
- package/dist/components/charisol-badge-with-icon.d.ts +11 -0
- package/dist/components/charisol-badge.d.ts +11 -0
- package/dist/components/charisol-button.d.ts +11 -0
- package/dist/components/charisol-card-body-action-button-1.d.ts +11 -0
- package/dist/components/charisol-card-body-action-button-2.d.ts +11 -0
- package/dist/components/charisol-card-body-action-icon-1.d.ts +11 -0
- package/dist/components/charisol-card-body-action-icon-2.d.ts +11 -0
- package/dist/components/charisol-card-body-actions.d.ts +11 -0
- package/dist/components/charisol-card-body-driver.d.ts +11 -0
- package/dist/components/charisol-card-body-img.d.ts +11 -0
- package/dist/components/charisol-card-body-info.d.ts +11 -0
- package/dist/components/charisol-card-body-name.d.ts +11 -0
- package/dist/components/charisol-card-body-span.d.ts +11 -0
- package/dist/components/charisol-card-body.d.ts +11 -0
- package/dist/components/charisol-card-container.d.ts +11 -0
- package/dist/components/charisol-card-header-content.d.ts +11 -0
- package/dist/components/charisol-card-header-timer.d.ts +11 -0
- package/dist/components/charisol-card-header-title.d.ts +11 -0
- package/dist/components/charisol-card-header.d.ts +11 -0
- package/dist/components/charisol-card-icon-container.d.ts +11 -0
- package/dist/components/charisol-card-number.d.ts +11 -0
- package/dist/components/charisol-card-payment-container.d.ts +11 -0
- package/dist/components/charisol-card-payment-content.d.ts +11 -0
- package/dist/components/charisol-card-payment-details.d.ts +11 -0
- package/dist/components/charisol-card-payment-icon-container.d.ts +11 -0
- package/dist/components/charisol-card-payment.d.ts +11 -0
- package/dist/components/charisol-card-route-container.d.ts +11 -0
- package/dist/components/charisol-card-route-destination-address.d.ts +11 -0
- package/dist/components/charisol-card-route-destination-details.d.ts +11 -0
- package/dist/components/charisol-card-route-destination-icon-container.d.ts +11 -0
- package/dist/components/charisol-card-route-destination-icon.d.ts +11 -0
- package/dist/components/charisol-card-route-destination-label.d.ts +11 -0
- package/dist/components/charisol-card-route-destination.d.ts +11 -0
- package/dist/components/charisol-card-route-pickup-address.d.ts +11 -0
- package/dist/components/charisol-card-route-pickup-details.d.ts +11 -0
- package/dist/components/charisol-card-route-pickup-icon.d.ts +11 -0
- package/dist/components/charisol-card-route-pickup-label.d.ts +11 -0
- package/dist/components/charisol-card-route-pickup.d.ts +11 -0
- package/dist/components/charisol-card-route.d.ts +11 -0
- package/dist/components/charisol-card-total-amount.d.ts +11 -0
- package/dist/components/charisol-card-total-content.d.ts +11 -0
- package/dist/components/charisol-card-total-label.d.ts +11 -0
- package/dist/components/charisol-card-total-section.d.ts +11 -0
- package/dist/components/charisol-card-type.d.ts +11 -0
- package/dist/components/charisol-card.d.ts +11 -0
- package/dist/components/charisol-checkbox-checkmark.d.ts +11 -0
- package/dist/components/charisol-checkbox-input-wrapper.d.ts +11 -0
- package/dist/components/charisol-checkbox-input.d.ts +11 -0
- package/dist/components/charisol-checkbox-label.d.ts +11 -0
- package/dist/components/charisol-checkbox.d.ts +11 -0
- package/dist/components/charisol-checkmark-svg.d.ts +11 -0
- package/dist/components/charisol-close-icon.d.ts +11 -0
- package/dist/components/charisol-error-icon-svg.d.ts +11 -0
- package/dist/components/charisol-error-input-icon.d.ts +11 -0
- package/dist/components/charisol-error-input-wrapper.d.ts +11 -0
- package/dist/components/charisol-error-input.d.ts +11 -0
- package/dist/components/charisol-error-label.d.ts +11 -0
- package/dist/components/charisol-error-message.d.ts +11 -0
- package/dist/components/charisol-error-state.d.ts +11 -0
- package/dist/components/charisol-form-group.d.ts +11 -0
- package/dist/components/charisol-form-input.d.ts +11 -0
- package/dist/components/charisol-form-label.d.ts +11 -0
- package/dist/components/charisol-group-badge-1.d.ts +11 -0
- package/dist/components/charisol-group-badge-2.d.ts +11 -0
- package/dist/components/charisol-group-badge-3.d.ts +11 -0
- package/dist/components/charisol-group-badge-4.d.ts +11 -0
- package/dist/components/charisol-icon-svg-destination.d.ts +11 -0
- package/dist/components/charisol-icon-svg-pickup.d.ts +11 -0
- package/dist/components/charisol-icon-svg.d.ts +11 -0
- package/dist/components/charisol-input-element.d.ts +11 -0
- package/dist/components/charisol-input-field-wrapper.d.ts +11 -0
- package/dist/components/charisol-input-helper.d.ts +11 -0
- package/dist/components/charisol-input-icon.d.ts +11 -0
- package/dist/components/charisol-input-label.d.ts +11 -0
- package/dist/components/charisol-input-states.d.ts +11 -0
- package/dist/components/charisol-input-wrapper.d.ts +11 -0
- package/dist/components/charisol-input.d.ts +11 -0
- package/dist/components/charisol-modal-body.d.ts +11 -0
- package/dist/components/charisol-modal-cancel-button.d.ts +11 -0
- package/dist/components/charisol-modal-close-button.d.ts +11 -0
- package/dist/components/charisol-modal-confirm-button.d.ts +11 -0
- package/dist/components/charisol-modal-container.d.ts +11 -0
- package/dist/components/charisol-modal-content.d.ts +11 -0
- package/dist/components/charisol-modal-footer.d.ts +11 -0
- package/dist/components/charisol-modal-form.d.ts +11 -0
- package/dist/components/charisol-modal-header.d.ts +11 -0
- package/dist/components/charisol-modal-title.d.ts +11 -0
- package/dist/components/charisol-modal.d.ts +11 -0
- package/dist/components/charisol-muzingo-primary-button.d.ts +11 -0
- package/dist/components/charisol-muzingo.d.ts +11 -0
- package/dist/components/charisol-notification-toast.d.ts +11 -0
- package/dist/components/charisol-payment-icon.d.ts +11 -0
- package/dist/components/charisol-success-icon-svg.d.ts +11 -0
- package/dist/components/charisol-success-input-icon.d.ts +11 -0
- package/dist/components/charisol-success-input-wrapper.d.ts +11 -0
- package/dist/components/charisol-success-input.d.ts +11 -0
- package/dist/components/charisol-success-label.d.ts +11 -0
- package/dist/components/charisol-success-message.d.ts +11 -0
- package/dist/components/charisol-success-state.d.ts +11 -0
- package/dist/components/charisol-toast-action-button.d.ts +11 -0
- package/dist/components/charisol-toast-actions.d.ts +11 -0
- package/dist/components/charisol-toast-content.d.ts +11 -0
- package/dist/components/charisol-toast-dismiss-button.d.ts +11 -0
- package/dist/components/charisol-toast-header.d.ts +11 -0
- package/dist/components/charisol-toast-icon.d.ts +11 -0
- package/dist/components/charisol-toast-timestamp.d.ts +11 -0
- package/dist/components/charisol-toast-title-container.d.ts +11 -0
- package/dist/components/charisol-toast-title.d.ts +11 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/types/Users/mac/Documents/chardesym-stencil/.stencil/scripts/generate-components.d.ts +73 -0
- package/dist/types/Users/mac/Documents/chardesym-stencil/.stencil/scripts/utils.d.ts +9 -0
- package/dist/types/components/generated/chardes-alert-close-button.d.ts +11 -0
- package/dist/types/components/generated/chardes-alert-content.d.ts +10 -0
- package/dist/types/components/generated/chardes-alert-error.d.ts +9 -0
- package/dist/types/components/generated/chardes-alert-header.d.ts +9 -0
- package/dist/types/components/generated/chardes-alert-icon.d.ts +10 -0
- package/dist/types/components/generated/chardes-alert-success.d.ts +9 -0
- package/dist/types/components/generated/chardes-alert-title-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-alert-title.d.ts +10 -0
- package/dist/types/components/generated/chardes-alert-warning.d.ts +9 -0
- package/dist/types/components/generated/chardes-alerts.d.ts +9 -0
- package/dist/types/components/generated/chardes-badge-close-button.d.ts +11 -0
- package/dist/types/components/generated/chardes-badge-error.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-group.d.ts +9 -0
- package/dist/types/components/generated/chardes-badge-icon.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-interactive-text.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-interactive.d.ts +9 -0
- package/dist/types/components/generated/chardes-badge-outline.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-primary.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-secondary.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-success.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-text.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-warning.d.ts +10 -0
- package/dist/types/components/generated/chardes-badge-with-icon.d.ts +9 -0
- package/dist/types/components/generated/chardes-badge.d.ts +9 -0
- package/dist/types/components/generated/chardes-button.d.ts +12 -0
- package/dist/types/components/generated/chardes-card-body-action-button-1.d.ts +11 -0
- package/dist/types/components/generated/chardes-card-body-action-button-2.d.ts +11 -0
- package/dist/types/components/generated/chardes-card-body-action-icon-1.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-body-action-icon-2.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-body-actions.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-body-driver.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-body-img.d.ts +11 -0
- package/dist/types/components/generated/chardes-card-body-info.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-body-name.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-body-span.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-body.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-header-content.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-header-timer.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-header-title.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-header.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-icon-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-number.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-payment-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-payment-content.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-payment-details.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-payment-icon-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-payment.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-destination-address.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-route-destination-details.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-destination-icon-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-destination-icon.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-destination-label.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-route-destination.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-pickup-address.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-route-pickup-details.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-pickup-icon.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route-pickup-label.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-route-pickup.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-route.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-total-amount.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-total-content.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-total-label.d.ts +10 -0
- package/dist/types/components/generated/chardes-card-total-section.d.ts +9 -0
- package/dist/types/components/generated/chardes-card-type.d.ts +10 -0
- package/dist/types/components/generated/chardes-card.d.ts +9 -0
- package/dist/types/components/generated/chardes-checkbox-checkmark.d.ts +9 -0
- package/dist/types/components/generated/chardes-checkbox-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/chardes-checkbox-input.d.ts +13 -0
- package/dist/types/components/generated/chardes-checkbox-label.d.ts +10 -0
- package/dist/types/components/generated/chardes-checkbox.d.ts +10 -0
- package/dist/types/components/generated/chardes-checkmark-svg.d.ts +9 -0
- package/dist/types/components/generated/chardes-close-icon.d.ts +10 -0
- package/dist/types/components/generated/chardes-error-icon-svg.d.ts +10 -0
- package/dist/types/components/generated/chardes-error-input-icon.d.ts +9 -0
- package/dist/types/components/generated/chardes-error-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/chardes-error-input.d.ts +14 -0
- package/dist/types/components/generated/chardes-error-label.d.ts +11 -0
- package/dist/types/components/generated/chardes-error-message.d.ts +10 -0
- package/dist/types/components/generated/chardes-error-state.d.ts +9 -0
- package/dist/types/components/generated/chardes-form-group.d.ts +9 -0
- package/dist/types/components/generated/chardes-form-input.d.ts +13 -0
- package/dist/types/components/generated/chardes-form-label.d.ts +11 -0
- package/dist/types/components/generated/chardes-group-badge-1.d.ts +10 -0
- package/dist/types/components/generated/chardes-group-badge-2.d.ts +10 -0
- package/dist/types/components/generated/chardes-group-badge-3.d.ts +10 -0
- package/dist/types/components/generated/chardes-group-badge-4.d.ts +10 -0
- package/dist/types/components/generated/chardes-icon-svg-destination.d.ts +10 -0
- package/dist/types/components/generated/chardes-icon-svg-pickup.d.ts +10 -0
- package/dist/types/components/generated/chardes-icon-svg.d.ts +10 -0
- package/dist/types/components/generated/chardes-input-element.d.ts +14 -0
- package/dist/types/components/generated/chardes-input-field-wrapper.d.ts +9 -0
- package/dist/types/components/generated/chardes-input-helper.d.ts +10 -0
- package/dist/types/components/generated/chardes-input-icon.d.ts +9 -0
- package/dist/types/components/generated/chardes-input-label.d.ts +11 -0
- package/dist/types/components/generated/chardes-input-states.d.ts +9 -0
- package/dist/types/components/generated/chardes-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/chardes-input.d.ts +9 -0
- package/dist/types/components/generated/chardes-modal-body.d.ts +9 -0
- package/dist/types/components/generated/chardes-modal-cancel-button.d.ts +12 -0
- package/dist/types/components/generated/chardes-modal-close-button.d.ts +11 -0
- package/dist/types/components/generated/chardes-modal-confirm-button.d.ts +12 -0
- package/dist/types/components/generated/chardes-modal-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-modal-content.d.ts +10 -0
- package/dist/types/components/generated/chardes-modal-footer.d.ts +9 -0
- package/dist/types/components/generated/chardes-modal-form.d.ts +9 -0
- package/dist/types/components/generated/chardes-modal-header.d.ts +9 -0
- package/dist/types/components/generated/chardes-modal-title.d.ts +10 -0
- package/dist/types/components/generated/chardes-modal.d.ts +9 -0
- package/dist/types/components/generated/chardes-muzingo-primary-button.d.ts +9 -0
- package/dist/types/components/generated/chardes-muzingo.d.ts +13 -0
- package/dist/types/components/generated/chardes-notification-toast.d.ts +9 -0
- package/dist/types/components/generated/chardes-payment-icon.d.ts +10 -0
- package/dist/types/components/generated/chardes-success-icon-svg.d.ts +10 -0
- package/dist/types/components/generated/chardes-success-input-icon.d.ts +9 -0
- package/dist/types/components/generated/chardes-success-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/chardes-success-input.d.ts +14 -0
- package/dist/types/components/generated/chardes-success-label.d.ts +11 -0
- package/dist/types/components/generated/chardes-success-message.d.ts +10 -0
- package/dist/types/components/generated/chardes-success-state.d.ts +9 -0
- package/dist/types/components/generated/chardes-toast-action-button.d.ts +12 -0
- package/dist/types/components/generated/chardes-toast-actions.d.ts +9 -0
- package/dist/types/components/generated/chardes-toast-content.d.ts +10 -0
- package/dist/types/components/generated/chardes-toast-dismiss-button.d.ts +12 -0
- package/dist/types/components/generated/chardes-toast-header.d.ts +9 -0
- package/dist/types/components/generated/chardes-toast-icon.d.ts +10 -0
- package/dist/types/components/generated/chardes-toast-timestamp.d.ts +10 -0
- package/dist/types/components/generated/chardes-toast-title-container.d.ts +9 -0
- package/dist/types/components/generated/chardes-toast-title.d.ts +10 -0
- package/dist/types/components/generated/charisol-alert-close-button.d.ts +11 -0
- package/dist/types/components/generated/charisol-alert-content.d.ts +10 -0
- package/dist/types/components/generated/charisol-alert-error.d.ts +9 -0
- package/dist/types/components/generated/charisol-alert-header.d.ts +9 -0
- package/dist/types/components/generated/charisol-alert-icon.d.ts +10 -0
- package/dist/types/components/generated/charisol-alert-success.d.ts +9 -0
- package/dist/types/components/generated/charisol-alert-title-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-alert-title.d.ts +10 -0
- package/dist/types/components/generated/charisol-alert-warning.d.ts +9 -0
- package/dist/types/components/generated/charisol-alerts.d.ts +9 -0
- package/dist/types/components/generated/charisol-badge-close-button.d.ts +11 -0
- package/dist/types/components/generated/charisol-badge-error.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-group.d.ts +9 -0
- package/dist/types/components/generated/charisol-badge-icon.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-interactive-text.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-interactive.d.ts +9 -0
- package/dist/types/components/generated/charisol-badge-outline.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-primary.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-secondary.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-success.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-text.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-warning.d.ts +10 -0
- package/dist/types/components/generated/charisol-badge-with-icon.d.ts +9 -0
- package/dist/types/components/generated/charisol-badge.d.ts +9 -0
- package/dist/types/components/generated/charisol-button.d.ts +12 -0
- package/dist/types/components/generated/charisol-card-body-action-button-1.d.ts +11 -0
- package/dist/types/components/generated/charisol-card-body-action-button-2.d.ts +11 -0
- package/dist/types/components/generated/charisol-card-body-action-icon-1.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-body-action-icon-2.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-body-actions.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-body-driver.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-body-img.d.ts +11 -0
- package/dist/types/components/generated/charisol-card-body-info.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-body-name.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-body-span.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-body.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-header-content.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-header-timer.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-header-title.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-header.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-icon-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-number.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-payment-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-payment-content.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-payment-details.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-payment-icon-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-payment.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-destination-address.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-route-destination-details.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-destination-icon-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-destination-icon.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-destination-label.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-route-destination.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-pickup-address.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-route-pickup-details.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-pickup-icon.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route-pickup-label.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-route-pickup.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-route.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-total-amount.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-total-content.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-total-label.d.ts +10 -0
- package/dist/types/components/generated/charisol-card-total-section.d.ts +9 -0
- package/dist/types/components/generated/charisol-card-type.d.ts +10 -0
- package/dist/types/components/generated/charisol-card.d.ts +9 -0
- package/dist/types/components/generated/charisol-checkbox-checkmark.d.ts +9 -0
- package/dist/types/components/generated/charisol-checkbox-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/charisol-checkbox-input.d.ts +13 -0
- package/dist/types/components/generated/charisol-checkbox-label.d.ts +10 -0
- package/dist/types/components/generated/charisol-checkbox.d.ts +10 -0
- package/dist/types/components/generated/charisol-checkmark-svg.d.ts +9 -0
- package/dist/types/components/generated/charisol-close-icon.d.ts +10 -0
- package/dist/types/components/generated/charisol-error-icon-svg.d.ts +10 -0
- package/dist/types/components/generated/charisol-error-input-icon.d.ts +9 -0
- package/dist/types/components/generated/charisol-error-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/charisol-error-input.d.ts +14 -0
- package/dist/types/components/generated/charisol-error-label.d.ts +11 -0
- package/dist/types/components/generated/charisol-error-message.d.ts +10 -0
- package/dist/types/components/generated/charisol-error-state.d.ts +9 -0
- package/dist/types/components/generated/charisol-form-group.d.ts +9 -0
- package/dist/types/components/generated/charisol-form-input.d.ts +13 -0
- package/dist/types/components/generated/charisol-form-label.d.ts +11 -0
- package/dist/types/components/generated/charisol-group-badge-1.d.ts +10 -0
- package/dist/types/components/generated/charisol-group-badge-2.d.ts +10 -0
- package/dist/types/components/generated/charisol-group-badge-3.d.ts +10 -0
- package/dist/types/components/generated/charisol-group-badge-4.d.ts +10 -0
- package/dist/types/components/generated/charisol-icon-svg-destination.d.ts +10 -0
- package/dist/types/components/generated/charisol-icon-svg-pickup.d.ts +10 -0
- package/dist/types/components/generated/charisol-icon-svg.d.ts +10 -0
- package/dist/types/components/generated/charisol-input-element.d.ts +14 -0
- package/dist/types/components/generated/charisol-input-field-wrapper.d.ts +9 -0
- package/dist/types/components/generated/charisol-input-helper.d.ts +10 -0
- package/dist/types/components/generated/charisol-input-icon.d.ts +9 -0
- package/dist/types/components/generated/charisol-input-label.d.ts +11 -0
- package/dist/types/components/generated/charisol-input-states.d.ts +9 -0
- package/dist/types/components/generated/charisol-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/charisol-input.d.ts +9 -0
- package/dist/types/components/generated/charisol-modal-body.d.ts +9 -0
- package/dist/types/components/generated/charisol-modal-cancel-button.d.ts +12 -0
- package/dist/types/components/generated/charisol-modal-close-button.d.ts +11 -0
- package/dist/types/components/generated/charisol-modal-confirm-button.d.ts +12 -0
- package/dist/types/components/generated/charisol-modal-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-modal-content.d.ts +10 -0
- package/dist/types/components/generated/charisol-modal-footer.d.ts +9 -0
- package/dist/types/components/generated/charisol-modal-form.d.ts +9 -0
- package/dist/types/components/generated/charisol-modal-header.d.ts +9 -0
- package/dist/types/components/generated/charisol-modal-title.d.ts +10 -0
- package/dist/types/components/generated/charisol-modal.d.ts +9 -0
- package/dist/types/components/generated/charisol-muzingo-primary-button.d.ts +9 -0
- package/dist/types/components/generated/charisol-muzingo.d.ts +13 -0
- package/dist/types/components/generated/charisol-notification-toast.d.ts +9 -0
- package/dist/types/components/generated/charisol-payment-icon.d.ts +10 -0
- package/dist/types/components/generated/charisol-success-icon-svg.d.ts +10 -0
- package/dist/types/components/generated/charisol-success-input-icon.d.ts +9 -0
- package/dist/types/components/generated/charisol-success-input-wrapper.d.ts +9 -0
- package/dist/types/components/generated/charisol-success-input.d.ts +14 -0
- package/dist/types/components/generated/charisol-success-label.d.ts +11 -0
- package/dist/types/components/generated/charisol-success-message.d.ts +10 -0
- package/dist/types/components/generated/charisol-success-state.d.ts +9 -0
- package/dist/types/components/generated/charisol-toast-action-button.d.ts +12 -0
- package/dist/types/components/generated/charisol-toast-actions.d.ts +9 -0
- package/dist/types/components/generated/charisol-toast-content.d.ts +10 -0
- package/dist/types/components/generated/charisol-toast-dismiss-button.d.ts +12 -0
- package/dist/types/components/generated/charisol-toast-header.d.ts +9 -0
- package/dist/types/components/generated/charisol-toast-icon.d.ts +10 -0
- package/dist/types/components/generated/charisol-toast-timestamp.d.ts +10 -0
- package/dist/types/components/generated/charisol-toast-title-container.d.ts +9 -0
- package/dist/types/components/generated/charisol-toast-title.d.ts +10 -0
- package/dist/types/components/generated/index.d.ts +130 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components.d.ts +10348 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/stencil-public-runtime.d.ts +1858 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/types.d.ts +68 -0
- package/dist/types/utils/api-client.d.ts +14 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +58 -0
- package/readme.md +111 -0
|
@@ -0,0 +1,4576 @@
|
|
|
1
|
+
const NAMESPACE = 'charde';
|
|
2
|
+
const BUILD = /* charde */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, deserializer: false, devTools: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: true, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: true, prop: true, propBoolean: false, propChangeCallback: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, serializer: false, shadowDelegatesFocus: false, shadowDom: true, shadowSlotAssignmentManual: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false };
|
|
3
|
+
const Env = /* charde */ {};
|
|
4
|
+
|
|
5
|
+
const globalScripts = () => {};
|
|
6
|
+
const globalStyles = "/* src/global/global.css */\n\n/* Import design tokens and utilities - these are dynamically generated */\n:root {\n\n /* Accent color */\n --secondary-color: #dcd926ff;\n\n /* Neutral background/text color */\n --neutral-color: #cccccc;\n\n /* Light text color for dark backgrounds */\n --text-light: #ffffff;\n\n /* Light background color */\n --background-light: #f9f9f9;\n\n /* Base font size for body text */\n --font-size-base: 1rem;\n\n /* Large font size for headings */\n --font-size-lg: 1.2rem;\n\n /* Small font size */\n --font-size-sm: 0.875rem;\n\n /* Extra small font size */\n --font-size-xs: 0.75rem;\n\n /* Semibold font weight */\n --font-weight-semibold: 600;\n\n /* Monospace font stack */\n --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n\n /* Sans-serif font utility class */\n --font-sans: font-sans;\n\n --spacing-0: 0px;\n\n /* 4px */\n --spacing-1: 0.25rem;\n\n /* 8px */\n --spacing-2: 0.5rem;\n\n /* 12px */\n --spacing-3: 0.75rem;\n\n /* 16px */\n --spacing-4: 1rem;\n\n /* 24px */\n --spacing-6: 2.5rem;\n\n /* 32px */\n --spacing-8: 2rem;\n\n /* Default width of the card */\n --width: 100%;\n\n /* Maximum width of the card */\n --max-width: 300rem;\n\n --border-radius-xs: 2rem;\n\n --border-radius-sm: 4px;\n\n --border-radius-md: 6px;\n\n --border-radius-lg: 8px;\n\n --border-radius-xl: 2rem;\n\n --border-radius-2xl: 16px;\n\n /* For very rounded corners, e.g., rounded-3xl */\n --border-radius-3xl: 20px;\n\n /* For circular elements */\n --border-radius-full: 50%;\n\n --white: #ffffff;\n\n --black: #000000;\n\n --gray-50: #f9f9f9;\n\n --gray-100: #f3f4f6;\n\n --gray-200: #67880c;\n\n --gray-300: #d5d8dc;\n\n --gray-400: #9ca3af;\n\n --gray-500: #7af202;\n\n --gray-600: #4b5563;\n\n --gray-700: #374151;\n\n --gray-800: #122be2;\n\n --gray-900: #76f990;\n\n --indigo-500: #6366f1;\n\n /* Light blue background */\n --blue-50: #eff6ff;\n\n /* Blue for icons */\n --blue-600: #2563eb;\n\n /* Width utility class (3.5rem) */\n --w-14: w-14;\n\n /* Height utility class (3.5rem) */\n --h-14: h-14;\n\n /* Width utility class (2rem) */\n --w-8: w-8;\n\n /* Height utility class (2rem) */\n --h-8: h-8;\n\n /* Width utility class (3rem) */\n --w-12: w-12;\n\n /* Height utility class (3rem) */\n --h-12: h-12;\n\n /* Horizontal spacing utility class */\n --space-x-2: space-x-2;\n\n /* Padding utility class */\n --p-2: p-2;\n\n /* White text color utility class */\n --text-white: text-white;\n\n /* Medium font weight utility class */\n --font-medium: font-medium;\n\n /* Bold font weight utility class */\n --font-bold: font-bold;\n\n /* Border utility class */\n --border: border;\n\n --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n\n /* Large shadow for cards and elevated elements */\n --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n\n /* Transition for color properties */\n --transition-colors: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n\n /* Standard transition duration for hover effects */\n --duration-200: 0.2;\n\n /* Standard 1px border width */\n --border-width-1: 1rem;\n\n /* 2px border width */\n --border-width-2: 2rem;\n\n /* Solid border style */\n --border-style-solid: solid;\n\n /* No border style */\n --border-style-none: none;\n\n /* Flex display property */\n --display-flex: flex;\n\n /* Center alignment for flex items */\n --align-items-center: center;\n\n /* Start alignment for flex items */\n --align-items-start: flex-start;\n\n /* Space between flex items */\n --justify-content-space-between: space-between;\n\n /* Center justification for flex items */\n --justify-content-center: center;\n\n /* Pointer cursor */\n --cursor-pointer: pointer;\n\n /* Center text alignment */\n --text-align-center: center;\n\n /* Default width for profile images */\n --image-width: 32px;\n\n /* Default height for profile images */\n --image-height: 32px;\n\n /* Border radius for circular images */\n --image-border-radius: 50%;\n\n /* Utility class for white background */\n --bg-white: bg-white;\n\n /* Utility class for gray-50 background */\n --bg-gray-50: bg-gray-50;\n\n /* Utility class for gray-900 background */\n --bg-gray-900: bg-gray-900;\n\n /* Utility class for gray-800 background */\n --bg-gray-800: bg-gray-800;\n\n /* Utility class for blue-50 background */\n --bg-blue-50: bg-blue-50;\n\n /* Utility class for padding (maps to --spacing-6) */\n --p-6: p-6;\n\n /* Utility class for padding (maps to --spacing-4) */\n --p-4: p-4;\n\n /* Utility class for horizontal padding (maps to --spacing-6) */\n --px-6: px-6;\n\n /* Utility class for bottom padding (maps to --spacing-6) */\n --pb-6: pb-6;\n\n /* Utility class for vertical padding (maps to --spacing-6) */\n --py-6: py-6;\n\n /* Utility class for margin-top: 0.25rem */\n --mt-1: mt-1;\n\n /* Utility class for flex-shrink: 0 */\n --flex-shrink-0: flex-shrink-0;\n\n /* Utility class for extra large border radius (maps to --border-radius-xl) */\n --rounded-xl: rounded-xl;\n\n /* Utility class for 3X large border radius (maps to --border-radius-3xl) */\n --rounded-3xl: rounded-3xl;\n\n /* Utility class for large border radius (maps to --border-radius-lg) */\n --rounded-lg: rounded-lg;\n\n /* Utility class for 50% border radius */\n --rounded-full: rounded-full;\n\n /* Utility class for full width */\n --w-full: w-full;\n\n /* Utility class for medium max-width */\n --max-w-md: max-w-md;\n\n /* Utility class for horizontal auto margin (centering) */\n --mx-auto: mx-auto;\n\n /* Utility class for overflow: hidden */\n --overflow-hidden: overflow-hidden;\n\n /* Utility class for large shadow (maps to --shadow-lg) */\n --class-shadow-lg: shadow-lg;\n\n /* Utility class for display: flex */\n --flex: flex;\n\n /* Utility class for align-items: center */\n --items-center: items-center;\n\n /* Utility class for align-items: flex-start */\n --items-start: items-start;\n\n /* Utility class for justify-content: space-between */\n --justify-between: justify-between;\n\n /* Utility class for justify-content: center */\n --justify-center: justify-center;\n\n /* Utility class for bottom border (maps to --border-width-1, --border-style-solid, --gray-200) */\n --border-b: border-b;\n\n /* Utility class for gray-200 border color */\n --border-gray-200: border-gray-200;\n\n /* Utility class for gray-300 border color */\n --border-gray-300: border-gray-300;\n\n /* Utility class for top border */\n --border-t: border-t;\n\n /* Utility class for horizontal gap (maps to 0.75rem / 12px) */\n --space-x-3: space-x-3;\n\n /* Utility class for horizontal gap (maps to 1rem / 16px) */\n --space-x-4: space-x-4;\n\n /* Utility class for vertical gap (maps to 1.5rem / 24px) */\n --space-y-6: space-y-6;\n\n /* Utility class for semibold font weight */\n --font-semibold: font-semibold;\n\n /* Utility class for monospace font family */\n --font-mono: font-mono;\n\n /* Utility class for extra large text size */\n --text-xl: text-xl;\n\n /* Utility class for large text size */\n --text-lg: text-lg;\n\n /* Utility class for small text size */\n --text-sm: text-sm;\n\n /* Utility class for gray-900 text color */\n --text-gray-900: text-gray-900;\n\n /* Utility class for gray-800 text color */\n --text-gray-800: text-gray-800;\n\n /* Utility class for gray-700 text color */\n --text-gray-700: text-gray-700;\n\n /* Utility class for gray-600 text color */\n --text-gray-600: text-gray-600;\n\n /* Utility class for gray-500 text color */\n --text-gray-500: text-gray-500;\n\n /* Utility class for gray-300 text color */\n --text-gray-300: text-gray-300;\n\n /* Utility class for blue-600 text color */\n --text-blue-600: text-blue-600;\n\n /* Utility class for hover state gray-100 background */\n --hover-bg-gray-100: hover:bg-gray-100;\n\n /* Utility class for hover state gray-700 background */\n --hover-bg-gray-700: hover:bg-gray-700;\n\n /* Utility class for color transition */\n --class-transition-colors: transition-colors;\n\n /* Utility class for flex: 1 1 0% */\n --flex-1: flex-1;\n\n /* Default sans-serif font stack */\n --font-family-sans: Inter, system-ui, sans-serif;\n\n /* Standard transition duration */\n --duration-150: 150ms;\n\n /* Z-index for modals */\n --z-index-modal: 50%;\n\n /* Z-index for tooltips */\n --z-index-tooltip: 60;\n\n /* Opacity for disabled states */\n --opacity-disabled: 0.6;\n\n /* Cursor for disabled elements */\n --cursor-not-allowed: not-allowed;\n\n /* Grid display property */\n --display-grid: grid;\n\n /* 8px gap */\n --gap-2: 0.5rem;\n\n /* 16px gap */\n --gap-4: 1rem;\n\n /* Default icon size */\n --icon-size-md: 16px;\n\n /* Small icon size (1rem) */\n --icon-size-sm: 16px;\n\n /* User-added custom property */\n --custom-primary-color: #6add2c;\n\n /* Default height for input elements (44px) */\n --input-height: 2.75rem;\n\n /* Maximum height for dropdown menu (256px) */\n --dropdown-max-height: 16px;\n\n /* Blue focus ring color */\n --focus-ring-color: #3b82f6;\n\n /* Focus ring width */\n --focus-ring-width: 2rem;\n\n /* Size of chevron icon (20px) */\n --chevron-size: 1.25rem;\n\n /* Primary button background color */\n --button-primary-bg: #dcd926ff;\n\n /* Primary button hover state background */\n --button-primary-hover-bg: #1d56b0;\n\n /* Primary button active/pressed state */\n --button-primary-active-bg: #174291;\n\n /* Secondary button background color */\n --button-secondary-bg: #6b7280;\n\n /* Secondary button hover state background */\n --button-secondary-hover-bg: #4b5563;\n\n /* Danger/error button background */\n --button-danger-bg: #dc2626;\n\n /* Danger button hover state */\n --button-danger-hover-bg: #b91c1c;\n\n /* Success button background */\n --button-success-bg: #059669;\n\n /* Success button hover state */\n --button-success-hover-bg: #047857;\n\n /* Outline button border color */\n --button-outline-border: #d1d5db;\n\n /* Outline button hover border color */\n --button-outline-hover-border: #9ca3af;\n\n /* Default button text color */\n --button-text-color: 1rem;\n\n /* Outline button text color */\n --button-outline-text: #374151;\n\n /* Disabled button background */\n --button-disabled-bg: #f3f4f6;\n\n /* Disabled button text color */\n --button-disabled-text: #9ca3af;\n\n /* Disabled button border color */\n --button-disabled-border: #e5e7eb;\n\n /* Horizontal padding for medium buttons */\n --button-padding-x: 1rem;\n\n /* Vertical padding for medium buttons */\n --button-padding-y: 0.5rem;\n\n /* Horizontal padding for small buttons */\n --button-padding-x-sm: 0.75rem;\n\n /* Vertical padding for small buttons */\n --button-padding-y-sm: 0.375rem;\n\n /* Horizontal padding for large buttons */\n --button-padding-x-lg: 1.5rem;\n\n /* Vertical padding for large buttons */\n --button-padding-y-lg: 0.75rem;\n\n /* Default button font size */\n --button-font-size: 1rem;\n\n /* Small button font size */\n --button-font-size-sm: 0.875rem;\n\n /* Large button font size */\n --button-font-size-lg: 1.125rem;\n\n /* Button font weight */\n --button-font-weight: 600;\n\n /* Default button border radius */\n --button-border-radius: 6px;\n\n /* Small button border radius */\n --button-border-radius-sm: 4px;\n\n /* Large button border radius */\n --button-border-radius-lg: 8px;\n\n /* Button border width */\n --button-border-width: 1rem;\n\n /* Button transition animation */\n --button-transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n\n /* Button focus ring style */\n --button-focus-ring: 0 0 0 3px rgba(38, 109, 220, 0.25);\n\n /* Primary button utility classes */\n --button-primary-class: bg-blue-600 hover:bg-blue-700 active:bg-blue-800;\n\n /* Secondary button utility classes */\n --button-secondary-class: bg-gray-600 hover:bg-gray-700 active:bg-gray-800;\n\n /* Danger button utility classes */\n --button-danger-class: bg-red-600 hover:bg-red-700 active:bg-red-800;\n\n /* Success button utility classes */\n --button-success-class: bg-green-600 hover:bg-green-700 active:bg-green-800;\n\n /* Outline button utility classes */\n --button-outline-class: bg-transparent border border-gray-300 text-gray-700 hover:border-gray-400 hover:bg-gray-50;\n\n /* Disabled button utility classes */\n --button-disabled-class: bg-gray-100 text-gray-400 cursor-not-allowed border-gray-200;\n\n /* Base button utility classes */\n --button-base-class: inline-flex items-center justify-center font-semibold rounded-md transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed;\n\n /* Medium button size utility classes */\n --button-size-md-class: px-4 py-2 text-sm;\n\n /* Small button size utility classes */\n --button-size-sm-class: px-3 py-1.5 text-xs;\n\n /* Large button size utility classes */\n --button-size-lg-class: px-6 py-3 text-base;\n\n /* Background color for input fields */\n --input-bg-color: #ffffff;\n\n /* Text color for input fields */\n --input-text-color: #b5d416;\n\n /* Default border color for input fields */\n --input-border-color: #d5d8dc;\n\n /* Border color for input fields when focused */\n --input-border-color-focus: var(--primary-color);\n\n /* Placeholder text color */\n --input-placeholder-color: #7af202;\n\n /* Horizontal padding for input fields */\n --input-padding-x: 1rem;\n\n /* Vertical padding for input fields */\n --input-padding-y: 0.75rem;\n\n /* Border radius for input fields */\n --input-border-radius: 8px;\n\n /* Border width for input fields */\n --input-border-width: 1rem;\n\n /* Font size for input text */\n --input-font-size: 1rem;\n\n /* Font family for input fields */\n --input-font-family: Inter, system-ui, sans-serif;\n\n /* Transition for input focus/hover states */\n --input-transition: 0.2;\n\n /* Box shadow for focused input fields */\n --input-shadow-focus: 0 0 0 3px rgba(38, 109, 220, 0.1);\n\n /* Border color on hover */\n --input-hover-border-color: #9ca3af;\n\n /* Background color for disabled inputs */\n --input-disabled-bg: #f3f4f6;\n\n /* Text color for disabled inputs */\n --input-disabled-text: #7af202;\n\n /* Border color for disabled inputs */\n --input-disabled-border: #67880c;\n\n /* Color for input labels */\n --input-label-color: #374151;\n\n /* Color for error states */\n --input-error-color: #dc2626;\n\n /* Color for success states */\n --input-success-color: #16a34a;\n\n /* Base input utility class */\n --input: input;\n\n /* Primary input variant */\n --input-primary: input-primary;\n\n /* Error input variant */\n --input-error: input-error;\n\n /* Success input variant */\n --input-success: input-success;\n\n /* Disabled input variant */\n --input-disabled: input-disabled;\n\n /* Large input size */\n --input-lg: input-lg;\n\n /* Small input size */\n --input-sm: input-sm;\n\n /* Width utility class (1.25rem) */\n --w-5: w-5;\n\n /* Height utility class (1.25rem) */\n --h-5: h-5;\n\n /* Horizontal padding utility class (1rem) */\n --px-4: px-4;\n\n /* Vertical padding utility class (0.75rem) */\n --py-3: py-3;\n\n /* Vertical padding utility class (0.5rem) */\n --py-2: py-2;\n\n /* Base text size utility class */\n --text-base: text-base;\n\n /* Extra small text size utility class */\n --text-xs: text-xs;\n\n /* Bottom margin utility class (0.25rem) */\n --mb-1: mb-1;\n\n /* Vertical spacing utility class */\n --space-y-2: space-y-2;\n\n /* Transition all properties utility class */\n --transition-all: transition-all;\n\n /* Remove outline utility class */\n --outline-none: outline-none;\n\n /* Margin left utility class (0.75rem / 12px) */\n --ml-3: ml-3;\n\n /* 2px border width utility class */\n --border-2: border-2;\n\n /* Solid border style utility class */\n --border-solid: border-solid;\n\n /* Medium border radius utility class */\n --rounded: rounded;\n\n /* Width utility class (0.75rem / 12px) */\n --w-3: w-3;\n\n /* Height utility class (0.75rem / 12px) */\n --h-3: h-3;\n\n /* Gray 400 border color utility class */\n --border-gray-400: border-gray-400;\n\n /* Blue 600 border color utility class */\n --border-blue-600: border-blue-600;\n\n /* Blue 700 border color utility class */\n --border-blue-700: border-blue-700;\n\n /* Blue 600 background utility class */\n --bg-blue-600: bg-blue-600;\n\n /* Blue 700 background utility class */\n --bg-blue-700: bg-blue-700;\n\n /* Gray 100 background utility class */\n --bg-gray-100: bg-gray-100;\n\n /* Gray 300 background utility class */\n --bg-gray-300: bg-gray-300;\n\n /* Checked state border color */\n --checked:border-blue-600: checked:border-blue-600;\n\n /* Checked state background color */\n --checked:bg-blue-600: checked:bg-blue-600;\n\n /* Hover state border color */\n --hover:border-gray-400: hover:border-gray-400;\n\n /* Hover checked state border color */\n --hover:checked:border-blue-700: hover:checked:border-blue-700;\n\n /* Hover checked state background color */\n --hover:checked:bg-blue-700: hover:checked:bg-blue-700;\n\n /* Remove default focus outline */\n --focus:outline-none: focus:outline-none;\n\n /* Focus ring width */\n --focus:ring-2: focus:ring-2;\n\n /* Focus ring color with opacity */\n --focus:ring-blue-500/30: focus:ring-blue-500/30;\n\n /* Focus state border color */\n --focus:border-blue-600: focus:border-blue-600;\n\n /* Disabled state border color */\n --disabled:border-gray-200: disabled:border-gray-200;\n\n /* Disabled state background color */\n --disabled:bg-gray-100: disabled:bg-gray-100;\n\n /* Disabled state cursor */\n --disabled:cursor-not-allowed: disabled:cursor-not-allowed;\n\n /* Disabled checked state border color */\n --disabled:checked:border-gray-300: disabled:checked:border-gray-300;\n\n /* Disabled checked state background color */\n --disabled:checked:bg-gray-300: disabled:checked:bg-gray-300;\n\n /* Show checkmark when checked */\n --group-has-[:checked]:opacity-100: group-has-[:checked]:opacity-100;\n\n /* Disabled label text color */\n --group-has-[:disabled]:text-gray-400: group-has-[:disabled]:text-gray-400;\n\n /* Opacity transition utility class */\n --transition-opacity: transition-opacity;\n\n /* CSS transform utility class */\n --transform: transform;\n\n /* Horizontal translation utility class */\n -translate-x-1/2: -translate-x-1/2;\n\n /* Vertical translation utility class */\n -translate-y-1/2: -translate-y-1/2;\n\n /* Top 50% positioning utility class */\n --top-1/2: top-1/2;\n\n /* Left 50% positioning utility class */\n --left-1/2: left-1/2;\n\n /* Absolute positioning utility class */\n --absolute: absolute;\n\n /* Pointer events none utility class */\n --pointer-events-none: pointer-events-none;\n\n /* Opacity 0 utility class */\n --opacity-0: opacity-0;\n\n /* Text selection none utility class */\n --select-none: select-none;\n\n /* Remove default appearance utility class */\n --appearance-none: appearance-none;\n\n /* Z-index for modals to appear above other content */\n --modal-z-index: 50%;\n\n /* Semi-transparent backdrop behind modal */\n --modal-backdrop-bg: rgba(0, 0, 0, 0.5);\n\n /* Backdrop blur amount */\n --modal-backdrop-blur: 8px;\n\n /* Maximum width of modal content */\n --modal-max-width: 32px;\n\n /* Minimum width of modal content */\n --modal-min-width: 20px;\n\n /* Duration of modal open/close animations */\n --modal-animation-duration: 0.3;\n\n /* Easing function for modal animations */\n --modal-easing: cubic-bezier(0.4, 0, 0.2, 1);\n\n /* Padding inside modal content area */\n --modal-content-padding: 1.5rem;\n\n /* Utility class for fixed positioning */\n --fixed: fixed;\n\n /* Utility class for top, right, bottom, left: 0 */\n --inset-0: inset-0;\n\n /* Utility class for flex-direction: column */\n --flex-col: flex-col;\n\n /* Utility class for 1.5rem gap */\n --gap-6: gap-6;\n\n /* Utility class for sticky positioning */\n --sticky: sticky;\n\n /* Utility class for top: 0 */\n --top-0: top-0;\n\n /* Utility class for backdrop blur */\n --backdrop-blur-sm: backdrop-blur-sm;\n\n /* Utility class for 300ms transition duration */\n --duration-300: duration-300;\n\n /* Utility class for ease-out timing function */\n --ease-out: ease-out;\n\n /* Utility class for 95% scale transform */\n --scale-95: scale-95;\n\n /* Utility class for 100% scale transform */\n --scale-100: scale-100;\n\n /* Utility class for 100% opacity */\n --opacity-100: opacity-100;\n\n /* Utility class for z-index: 50 */\n --z-50: z-50;\n\n /* Utility class for pointer-events: auto */\n --pointer-events-auto: pointer-events-auto;\n\n /* Utility class for scale 105% on hover */\n --hover-scale-105: hover:scale-105;\n\n /* Utility class for gray-800 background on hover */\n --hover-bg-gray-800: hover:bg-gray-800;\n\n /* Utility class for blue-600 background on hover */\n --hover-bg-blue-600: hover:bg-blue-600;\n\n /* Utility class for focus ring */\n --focus-ring-4: focus:ring-4;\n\n /* Utility class for blue focus ring */\n --focus-ring-blue-500: focus:ring-blue-500;\n\n /* Utility class for focus ring opacity */\n --focus-ring-opacity-20: focus:ring-opacity-20;\n\n /* Utility class for no outline on focus */\n --focus-outline-none: focus:outline-none;\n\n /* Animation utility class for entrance animations */\n --animate-in: animate-in;\n\n /* Fade in animation class */\n --fade-in: fade-in;\n\n /* Zoom in animation class */\n --zoom-in-95: zoom-in-95;\n\n /* Focus ring utility */\n --focus-ring-2: focus:ring-2;\n\n /* Focus ring offset */\n --focus-ring-offset-2: focus:ring-offset-2;\n\n /* Hover state for primary button */\n --hover-bg-blue-700: hover:bg-blue-700;\n\n /* Placeholder text color */\n --placeholder-gray-400: placeholder-gray-400;\n\n /* Line height utility */\n --leading-relaxed: leading-relaxed;\n\n /* Top margin utility class (1.5rem) */\n --mt-6: mt-6;\n\n /* Medium border radius utility class */\n --rounded-md: rounded-md;\n\n /* 2XL border radius utility class */\n --rounded-2xl: rounded-2xl;\n\n /* Very light success background color */\n --success-50: #f0fdf4;\n\n /* Light success background color */\n --success-100: #dcfce7;\n\n /* Primary success color */\n --success-500: #22c55e;\n\n /* Dark success color */\n --success-600: #16a34a;\n\n /* Darker success color */\n --success-700: #15803d;\n\n /* Very light warning background color */\n --warning-50: #fffbeb;\n\n /* Light warning background color */\n --warning-100: #fef3c7;\n\n /* Primary warning color */\n --warning-500: #f59e0b;\n\n /* Dark warning color */\n --warning-600: #d97706;\n\n /* Darker warning color */\n --warning-700: #b45309;\n\n /* Very light error background color */\n --error-50: #fef2f2;\n\n /* Light error background color */\n --error-100: #fee2e2;\n\n /* Primary error color */\n --error-500: #ef4444;\n\n /* Dark error color */\n --error-600: #dc2626;\n\n /* Darker error color */\n --error-700: #b91c1c;\n\n /* Very light info background color */\n --info-50: #eff6ff;\n\n /* Light info background color */\n --info-100: #dbeafe;\n\n /* Primary info color */\n --info-500: #3b82f6;\n\n /* Dark info color */\n --info-600: #2563eb;\n\n /* Darker info color */\n --info-700: #1d4ed8;\n\n /* Primary neutral color */\n --neutral-500: #6b7280;\n\n /* Soft shadow for subtle elevation */\n --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);\n\n /* Subtle shadow for alerts */\n --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);\n\n /* Base size for alert icons */\n --icon-size-base: 1.25rem;\n\n /* Smooth transition for interactive elements */\n --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\n /* Utility class for success-50 background */\n --bg-success-50: bg-success-50;\n\n /* Utility class for warning-50 background */\n --bg-warning-50: bg-warning-50;\n\n /* Utility class for error-50 background */\n --bg-error-50: bg-error-50;\n\n /* Utility class for info-50 background */\n --bg-info-50: bg-info-50;\n\n /* Utility class for success-700 text color */\n --text-success-700: text-success-700;\n\n /* Utility class for warning-700 text color */\n --text-warning-700: text-warning-700;\n\n /* Utility class for error-700 text color */\n --text-error-700: text-error-700;\n\n /* Utility class for info-700 text color */\n --text-info-700: text-info-700;\n\n /* Utility class for success-200 border */\n --border-success-200: border-success-200;\n\n /* Utility class for warning-200 border */\n --border-warning-200: border-warning-200;\n\n /* Utility class for error-200 border */\n --border-error-200: border-error-200;\n\n /* Utility class for info-200 border */\n --border-info-200: border-info-200;\n\n /* Utility class for soft shadow */\n --shadow-soft-class: shadow-soft;\n\n /* Utility class for subtle shadow */\n --shadow-subtle-class: shadow-subtle;\n\n /* Utility class for smooth transition */\n --transition-all-smooth: transition-all-smooth;\n\n /* Vertical spacing utility class (1rem) */\n --space-y-4: space-y-4;\n\n /* Bottom margin utility class (0.5rem) */\n --mb-2: mb-2;\n\n /* Padding utility class (0.25rem) */\n --p-1: p-1;\n\n /* Bottom margin utility class (0.75rem) */\n --mb-3: mb-3;\n\n /* Primary background color for badges */\n --badge-bg-primary: var(--primary-color);\n\n /* Text color for primary badges */\n --badge-text-primary: #ffffff;\n\n /* Secondary background color for badges */\n --badge-bg-secondary: #dcd926ff;\n\n /* Text color for secondary badges */\n --badge-text-secondary: #76f990;\n\n /* Success state background color */\n --badge-bg-success: #10b981;\n\n /* Text color for success badges */\n --badge-text-success: #ffffff;\n\n /* Warning state background color */\n --badge-bg-warning: #f59e0b;\n\n /* Text color for warning badges */\n --badge-text-warning: #ffffff;\n\n /* Error state background color */\n --badge-bg-error: #ef4444;\n\n /* Text color for error badges */\n --badge-text-error: #ffffff;\n\n /* Transparent background for outline badges */\n --badge-bg-outline: transparent;\n\n /* Border color for outline badges */\n --badge-border-outline: #d5d8dc;\n\n /* Text color for outline badges */\n --badge-text-outline: #374151;\n\n /* Horizontal padding for badges */\n --badge-padding-x: 0.75rem;\n\n /* Vertical padding for badges */\n --badge-padding-y: 0.25rem;\n\n /* Border radius for pill-shaped badges */\n --badge-border-radius: 50%;\n\n /* Border radius for square badges */\n --badge-border-radius-square: 6px;\n\n /* Border width for outline badges */\n --badge-border-width: 1rem;\n\n /* Font size for badge text */\n --badge-font-size: 0.75rem;\n\n /* Font weight for badge text */\n --badge-font-weight: 600;\n\n /* Letter spacing for badge text */\n --badge-letter-spacing: 0.025em;\n\n /* Transition for hover states */\n --badge-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n\n /* Box shadow for elevated badges */\n --badge-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n\n /* Scale transform on hover */\n --badge-hover-scale: 1.05;\n\n /* Scale transform when active/clicked */\n --badge-active-scale: 0.95;\n\n /* Size for icons within badges */\n --badge-icon-size: 0.75rem;\n\n /* Gap between badge elements */\n --badge-gap: 0.5rem;\n\n /* Primary badge utility class */\n --badge-primary: badge-primary;\n\n /* Secondary badge utility class */\n --badge-secondary: badge-secondary;\n\n /* Success badge utility class */\n --badge-success: badge-success;\n\n /* Warning badge utility class */\n --badge-warning: badge-warning;\n\n /* Error badge utility class */\n --badge-error: badge-error;\n\n /* Outline badge utility class */\n --badge-outline: badge-outline;\n\n /* Pill-shaped badge utility class */\n --badge-pill: badge-pill;\n\n /* Badge with icon utility class */\n --badge-with-icon: badge-with-icon;\n\n /* Interactive badge utility class */\n --badge-interactive: badge-interactive;\n\n /* User-added custom property */\n --muzingo-primary-color: #dd2c47;\n\n /* User-added custom property */\n --muzingo-primary-color-1: #266DDC;\n}\n/* Auto-generated Utility Classes from Design System */\n/* DO NOT EDIT - Generated from your design system API */\n\n:host, :root {\n display: block;\n box-sizing: border-box;\n}\n\n*, *::before, *::after {\n box-sizing: inherit;\n}\n\n.bg-gray-50 {\n background-color: var(--gray-50, #f9f9f9);\n}\n\n.font-sans {\n font-family: var(--font-family-sans, Inter, system-ui, sans-serif);\n}\n\n.w-full {\n width: var(--width, 100%);\n}\n\n.max-w-md {\n max-width: var(--max-width, 300rem);\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.bg-white {\n background-color: var(--white, #ffffff);\n}\n\n.rounded-3xl {\n border-radius: var(--border-radius-3xl, 20px);\n}\n\n.shadow-lg {\n box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.p-6 {\n padding: var(--spacing-6, 2.5rem);\n}\n\n.border-b {\n border-bottom-width: var(--border-width-1, 1px);\n border-bottom-style: var(--border-style-solid, solid);\n border-bottom-color: var(--gray-200, #67880c);\n}\n\n.border-gray-200 {\n border-color: var(--gray-200, #67880c);\n}\n\n.flex {\n display: flex;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.items-center {\n align-items: center;\n}\n\n.text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n\n.font-semibold {\n font-weight: var(--font-weight-semibold, 600);\n}\n\n.text-gray-900 {\n color: var(--gray-900, #76f990);\n}\n\n.font-mono {\n font-family: var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);\n}\n\n.text-gray-800 {\n color: var(--gray-800, #122be2);\n}\n\n.rounded-xl {\n border-radius: var(--border-radius-xl, 2px);\n}\n\n.p-4 {\n padding: var(--spacing-4, 1rem);\n}\n\n.space-x-4 {\n > * + * { margin-left: var(--spacing-4, 1rem); };\n}\n\n.w-14 {\n width: 3.5rem;\n}\n\n.h-14 {\n height: 3.5rem;\n}\n\n.rounded-full {\n border-radius: var(--border-radius-full, 50%);\n}\n\n.object-cover {\n object-fit: cover;\n}\n\n.flex-1 {\n flex: 1 1 0%;\n}\n\n.text-sm {\n font-size: var(--font-size-sm, 0.875rem);\n line-height: 1.25rem;\n}\n\n.text-gray-500 {\n color: var(--gray-500, #7af202);\n}\n\n.space-x-2 {\n > * + * { margin-left: var(--spacing-2, 0.5rem); };\n}\n\n.p-2 {\n padding: var(--spacing-2, 0.5rem);\n}\n\n.border {\n border-width: var(--border-width-1, 1px);\n border-style: var(--border-style-solid, solid);\n border-color: var(--gray-200, #67880c);\n}\n\n.border-gray-300 {\n border-color: var(--gray-300, #d5d8dc);\n}\n\n.transition-colors {\n transition-property: color, background-color, border-color, box-shadow;\n transition-duration: var(--duration-200, 0.2);\n transition-timing-function: ease-in-out;\n}\n\n.bg-gray-800 {\n background-color: var(--gray-800, #122be2);\n}\n\n.text-white {\n color: var(--white, #ffffff);\n}\n\n.px-6 {\n padding-left: var(--spacing-6, 2.5rem);\n padding-right: var(--spacing-6, 2.5rem);\n}\n\n.pb-6 {\n padding-bottom: var(--spacing-6, 2.5rem);\n}\n\n.space-y-6 {\n > * + * { margin-top: var(--spacing-6, 2.5rem); };\n}\n\n.items-start {\n align-items: flex-start;\n}\n\n.space-x-3 {\n > * + * { margin-left: var(--spacing-3, 0.75rem); };\n}\n\n.mt-1 {\n margin-top: var(--spacing-1, 0.25rem);\n}\n\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n\n.w-8 {\n width: var(--spacing-8, 2rem);\n}\n\n.h-8 {\n height: var(--spacing-8, 2rem);\n}\n\n.bg-blue-50 {\n background-color: var(--blue-50, #eff6ff);\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.bg-gray-900 {\n background-color: var(--gray-900, #76f990);\n}\n\n.w-12 {\n width: 3rem;\n}\n\n.h-12 {\n height: 3rem;\n}\n\n.font-medium {\n font-weight: 500;\n}\n\n.text-lg {\n font-size: var(--font-size-lg, 1.2rem);\n line-height: 1.75rem;\n}\n\n.text-gray-300 {\n color: var(--gray-300, #d5d8dc);\n}\n\n.py-6 {\n padding-top: var(--spacing-6, 2.5rem);\n padding-bottom: var(--spacing-6, 2.5rem);\n}\n\n.border-t {\n border-top-width: var(--border-width-1, 1px);\n border-top-style: var(--border-style-solid, solid);\n border-top-color: var(--gray-200, #67880c);\n}\n\n.font-bold {\n font-weight: 700;\n}\n\n.rounded-md {\n border-radius: var(--border-radius-md, 6px);\n}\n\n.transition-all {\n transition-property: all;\n transition-duration: var(--duration-200, 0.2);\n transition-timing-function: ease-in-out;\n}\n\n.bg-blue-600 {\n background-color: var(--blue-600, #2563eb);\n}\n\n.px-4 {\n padding-left: var(--spacing-4, 1rem);\n padding-right: var(--spacing-4, 1rem);\n}\n\n.py-2 {\n padding-top: var(--spacing-2, 0.5rem);\n padding-bottom: var(--spacing-2, 0.5rem);\n}\n\n.text-gray-700 {\n color: var(--gray-700, #374151);\n}\n\n.mb-1 {\n margin-bottom: var(--spacing-1, 0.25rem);\n}\n\n.relative {\n position: relative;\n}\n\n.absolute {\n position: absolute;\n}\n\n.top-1\\/2 {\n top: 50%;\n}\n\n.transform {\n transform: translateX(0) translateY(0) rotate(0) scale(1);\n}\n\n.-translate-y-1\\/2 {\n transform: translateY(-50%);\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.rounded-lg {\n border-radius: var(--border-radius-lg, 8px);\n}\n\n.text-base {\n font-size: var(--font-size-base, 1rem);\n line-height: 1.5rem;\n}\n\n.leading-relaxed {\n line-height: 1.625;\n}\n\n.duration-200 {\n transition-duration: var(--duration-200, 0.2);\n}\n\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.pl-12 {\n padding-left: 3rem;\n}\n\n.text-xs {\n font-size: var(--font-size-xs, 0.75rem);\n line-height: 1rem;\n}\n\n.grid {\n display: grid;\n}\n\n.grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.mt-6 {\n margin-top: var(--spacing-6, 2.5rem);\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.space-y-2 {\n > * + * { margin-top: var(--spacing-2, 0.5rem); };\n}\n\n.text-red-600 {\n color: #dc2626;\n}\n\n.border-red-500 {\n border-color: #ef4444;\n}\n\n.border-green-600 {\n border-color: #16a34a;\n}\n\n.text-green-600 {\n color: #16a34a;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.select-none {\n user-select: none;\n}\n\n.appearance-none {\n appearance: none;\n}\n\n.w-5 {\n width: 1.25rem;\n}\n\n.h-5 {\n height: 1.25rem;\n}\n\n.border-2 {\n border-width: 2px;\n border-style: solid;\n border-color: inherit;\n}\n\n.border-solid {\n border-style: solid;\n}\n\n.rounded {\n border-radius: var(--border-radius-md, 6px);\n}\n\n.left-1\\/2 {\n left: 50%;\n}\n\n.-translate-x-1\\/2 {\n transform: translateX(-50%);\n}\n\n.w-3 {\n width: 0.75rem;\n}\n\n.h-3 {\n height: 0.75rem;\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.transition-opacity {\n transition-property: opacity;\n transition-duration: var(--duration-200, 0.2);\n transition-timing-function: ease-in-out;\n}\n\n.ml-3 {\n margin-left: var(--spacing-3, 0.75rem);\n}\n\n.fixed {\n position: fixed;\n}\n\n.inset-0 {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n.rounded-2xl {\n border-radius: var(--border-radius-2xl, 16px);\n}\n\n.duration-300 {\n transition-duration: 0.3s;\n}\n\n.space-y-4 {\n > * + * { margin-top: var(--spacing-4, 1rem); };\n}\n\n.mb-2 {\n margin-bottom: var(--spacing-2, 0.5rem);\n}\n\n.px-3 {\n padding-left: var(--spacing-3, 0.75rem);\n padding-right: var(--spacing-3, 0.75rem);\n}\n\n.border-blue-600 {\n border-color: var(--blue-600, #2563eb);\n}\n\n.text-blue-600 {\n color: var(--blue-600, #2563eb);\n}\n\n.p-1 {\n padding: var(--spacing-1, 0.25rem);\n}\n\n.bg-transparent {\n background-color: transparent;\n}\n\n.mb-3 {\n margin-bottom: var(--spacing-3, 0.75rem);\n}\n\n.text-gray-600 {\n color: var(--gray-600, #4b5563);\n}\n\n.py-1 {\n padding-top: var(--spacing-1, 0.25rem);\n padding-bottom: var(--spacing-1, 0.25rem);\n}\n\n.shadow-sm {\n box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));\n}\n\n.w-4 {\n width: 1rem;\n}\n\n.h-4 {\n height: 1rem;\n}\n\n.bg-gray-100:hover {\n background-color: var(--gray-100, #f3f4f6);\n}\n\n.outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.bg-blue-700:hover {\n background-color: #1d4ed8;\n}\n\n.border-gray-400:hover {\n border-color: var(--gray-400, #9ca3af);\n}\n\n.border-red-500:focus {\n border-color: #ef4444;\n}\n\n.border-green-600:focus {\n border-color: #16a34a;\n}\n\n.border-blue-600:checked {\n border-color: var(--blue-600, #2563eb);\n}\n\n.bg-blue-600:checked {\n background-color: var(--blue-600, #2563eb);\n}\n\n.border-blue-600:focus {\n border-color: var(--blue-600, #2563eb);\n}\n\n.border-gray-200:disabled {\n border-color: var(--gray-200, #67880c);\n}\n\n.bg-gray-100:disabled {\n background-color: var(--gray-100, #f3f4f6);\n}\n\n.bg-gray-50:hover {\n background-color: var(--gray-50, #f9f9f9);\n}\n\n.bg-blue-600:hover {\n background-color: var(--blue-600, #2563eb);\n}\n\n.bg-green-600:hover {\n background-color: #16a34a;\n}\n\n.bg-red-600:hover {\n background-color: #dc2626;\n}\n\n.text-gray-900:hover {\n color: var(--gray-900, #76f990);\n}\n\n\n/* Global reset */\n*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n/* Base styles using design tokens */\n:root {\n font-family: var(--font-family-sans, Inter, system-ui, sans-serif);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Ensure SVG icons display properly and can be styled via tokens */\nsvg {\n display: inline-block;\n vertical-align: middle;\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\n/* Allow SVG parts to be styled */\nsvg[part=\"icon\"] {\n width: var(--icon-size, 1em);\n height: var(--icon-size, 1em);\n color: var(--icon-color, currentColor);\n}\n\n/* Host styles for components */\n:host {\n display: block;\n}\n\n/* Component part styling */\n::part(icon) {\n width: var(--icon-size, 1.25rem);\n height: var(--icon-size, 1.25rem);\n}\n\n/* Animation keyframes from design system */\n@keyframes fadeIn {\n from {\n opacity: var(--opacity-0, 0);\n }\n to {\n opacity: var(--opacity-100, 1);\n }\n}\n\n@keyframes slideIn {\n from {\n transform: translateY(10px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}";
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
Stencil Client Platform v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var Build = {
|
|
13
|
+
isDev: BUILD.isDev ? true : false,
|
|
14
|
+
isBrowser: true,
|
|
15
|
+
isServer: false,
|
|
16
|
+
isTesting: BUILD.isTesting ? true : false
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// src/utils/constants.ts
|
|
20
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
21
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
22
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
23
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
24
|
+
PrimitiveType2["Null"] = "null";
|
|
25
|
+
PrimitiveType2["String"] = "string";
|
|
26
|
+
PrimitiveType2["Number"] = "number";
|
|
27
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
28
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
29
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
30
|
+
return PrimitiveType2;
|
|
31
|
+
})(PrimitiveType || {});
|
|
32
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
33
|
+
NonPrimitiveType2["Array"] = "array";
|
|
34
|
+
NonPrimitiveType2["Date"] = "date";
|
|
35
|
+
NonPrimitiveType2["Map"] = "map";
|
|
36
|
+
NonPrimitiveType2["Object"] = "object";
|
|
37
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
38
|
+
NonPrimitiveType2["Set"] = "set";
|
|
39
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
40
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
41
|
+
return NonPrimitiveType2;
|
|
42
|
+
})(NonPrimitiveType || {});
|
|
43
|
+
var TYPE_CONSTANT = "type";
|
|
44
|
+
var VALUE_CONSTANT = "value";
|
|
45
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
46
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
47
|
+
var _a;
|
|
48
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
49
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
50
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
51
|
+
if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
52
|
+
const ogValue = instance[memberName];
|
|
53
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
54
|
+
if (ogDescriptor) {
|
|
55
|
+
Object.defineProperty(instance, memberName, {
|
|
56
|
+
get() {
|
|
57
|
+
return ogDescriptor.get.call(this);
|
|
58
|
+
},
|
|
59
|
+
set(newValue) {
|
|
60
|
+
ogDescriptor.set.call(this, newValue);
|
|
61
|
+
},
|
|
62
|
+
configurable: true,
|
|
63
|
+
enumerable: true
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
function getPropertyDescriptor(obj, memberName) {
|
|
71
|
+
while (obj) {
|
|
72
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
73
|
+
if (desc == null ? void 0 : desc.get) return desc;
|
|
74
|
+
obj = Object.getPrototypeOf(obj);
|
|
75
|
+
}
|
|
76
|
+
return void 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// src/client/client-host-ref.ts
|
|
80
|
+
var getHostRef = (ref) => {
|
|
81
|
+
if (ref.__stencil__getHostRef) {
|
|
82
|
+
return ref.__stencil__getHostRef();
|
|
83
|
+
}
|
|
84
|
+
return void 0;
|
|
85
|
+
};
|
|
86
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
87
|
+
if (!hostRef) return;
|
|
88
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
89
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
90
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
|
|
91
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
95
|
+
const hostRef = {
|
|
96
|
+
$flags$: 0,
|
|
97
|
+
$hostElement$: hostElement,
|
|
98
|
+
$cmpMeta$: cmpMeta,
|
|
99
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
100
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
101
|
+
};
|
|
102
|
+
if (BUILD.isDev) {
|
|
103
|
+
hostRef.$renderCount$ = 0;
|
|
104
|
+
}
|
|
105
|
+
if (BUILD.method && BUILD.lazyLoad) {
|
|
106
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
107
|
+
}
|
|
108
|
+
if (BUILD.asyncLoading) {
|
|
109
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
110
|
+
hostElement["s-p"] = [];
|
|
111
|
+
hostElement["s-rc"] = [];
|
|
112
|
+
}
|
|
113
|
+
if (BUILD.lazyLoad) {
|
|
114
|
+
hostRef.$fetchedCbList$ = [];
|
|
115
|
+
}
|
|
116
|
+
const ref = hostRef;
|
|
117
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
118
|
+
if (!BUILD.lazyLoad && cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
|
|
119
|
+
reWireGetterSetter(hostElement, hostRef);
|
|
120
|
+
}
|
|
121
|
+
return ref;
|
|
122
|
+
};
|
|
123
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
124
|
+
var customError;
|
|
125
|
+
var consoleError = (e, el) => (customError || console.error)(e, el);
|
|
126
|
+
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
127
|
+
"%cstencil",
|
|
128
|
+
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
129
|
+
];
|
|
130
|
+
var consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
|
|
131
|
+
var consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
|
|
132
|
+
var consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
|
|
133
|
+
var setErrorHandler = (handler) => customError = handler;
|
|
134
|
+
|
|
135
|
+
// src/client/client-load-module.ts
|
|
136
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
137
|
+
var MODULE_IMPORT_PREFIX = "./";
|
|
138
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
139
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
140
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
141
|
+
if (BUILD.isDev && typeof bundleId !== "string") {
|
|
142
|
+
consoleDevError(
|
|
143
|
+
`Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`
|
|
144
|
+
);
|
|
145
|
+
return void 0;
|
|
146
|
+
} else if (!bundleId) {
|
|
147
|
+
return void 0;
|
|
148
|
+
}
|
|
149
|
+
const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
|
|
150
|
+
if (module) {
|
|
151
|
+
return module[exportName];
|
|
152
|
+
}
|
|
153
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
154
|
+
return import(
|
|
155
|
+
/* @vite-ignore */
|
|
156
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
157
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
158
|
+
/* webpackMode: "lazy" */
|
|
159
|
+
`./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
|
|
160
|
+
).then(
|
|
161
|
+
(importedModule) => {
|
|
162
|
+
if (!BUILD.hotModuleReplacement) {
|
|
163
|
+
cmpModules.set(bundleId, importedModule);
|
|
164
|
+
}
|
|
165
|
+
return importedModule[exportName];
|
|
166
|
+
},
|
|
167
|
+
(e) => {
|
|
168
|
+
consoleError(e, hostRef.$hostElement$);
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
// src/client/client-style.ts
|
|
174
|
+
var styles = /* @__PURE__ */ new Map();
|
|
175
|
+
var modeResolutionChain = [];
|
|
176
|
+
var setScopedSSR = (_opts) => {
|
|
177
|
+
};
|
|
178
|
+
var needsScopedSSR = () => false;
|
|
179
|
+
|
|
180
|
+
// src/runtime/runtime-constants.ts
|
|
181
|
+
var CONTENT_REF_ID = "r";
|
|
182
|
+
var ORG_LOCATION_ID = "o";
|
|
183
|
+
var SLOT_NODE_ID = "s";
|
|
184
|
+
var TEXT_NODE_ID = "t";
|
|
185
|
+
var COMMENT_NODE_ID = "c";
|
|
186
|
+
var HYDRATE_ID = "s-id";
|
|
187
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
188
|
+
var HYDRATE_CHILD_ID = "c-id";
|
|
189
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
190
|
+
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
191
|
+
var DEFAULT_DOC_DATA = {
|
|
192
|
+
hostIds: 0,
|
|
193
|
+
rootLevelIds: 0,
|
|
194
|
+
staticComponents: /* @__PURE__ */ new Set()
|
|
195
|
+
};
|
|
196
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
197
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
198
|
+
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
199
|
+
"formAssociatedCallback",
|
|
200
|
+
"formResetCallback",
|
|
201
|
+
"formDisabledCallback",
|
|
202
|
+
"formStateRestoreCallback"
|
|
203
|
+
];
|
|
204
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
205
|
+
var H = win.HTMLElement || class {
|
|
206
|
+
};
|
|
207
|
+
var plt = {
|
|
208
|
+
$flags$: 0,
|
|
209
|
+
$resourcesUrl$: "",
|
|
210
|
+
jmp: (h2) => h2(),
|
|
211
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
212
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
213
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
214
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
215
|
+
};
|
|
216
|
+
var setPlatformHelpers = (helpers) => {
|
|
217
|
+
Object.assign(plt, helpers);
|
|
218
|
+
};
|
|
219
|
+
var supportsShadow = BUILD.shadowDom;
|
|
220
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
221
|
+
var _a;
|
|
222
|
+
let supportsListenerOptions2 = false;
|
|
223
|
+
try {
|
|
224
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
225
|
+
"e",
|
|
226
|
+
null,
|
|
227
|
+
Object.defineProperty({}, "passive", {
|
|
228
|
+
get() {
|
|
229
|
+
supportsListenerOptions2 = true;
|
|
230
|
+
}
|
|
231
|
+
})
|
|
232
|
+
);
|
|
233
|
+
} catch (e) {
|
|
234
|
+
}
|
|
235
|
+
return supportsListenerOptions2;
|
|
236
|
+
})();
|
|
237
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
238
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
239
|
+
try {
|
|
240
|
+
if (!win.document.adoptedStyleSheets) {
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
new CSSStyleSheet();
|
|
244
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
245
|
+
} catch (e) {
|
|
246
|
+
}
|
|
247
|
+
return false;
|
|
248
|
+
})() : false;
|
|
249
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
250
|
+
|
|
251
|
+
// src/client/client-task-queue.ts
|
|
252
|
+
var queueCongestion = 0;
|
|
253
|
+
var queuePending = false;
|
|
254
|
+
var queueDomReads = [];
|
|
255
|
+
var queueDomWrites = [];
|
|
256
|
+
var queueDomWritesLow = [];
|
|
257
|
+
var queueTask = (queue, write) => (cb) => {
|
|
258
|
+
queue.push(cb);
|
|
259
|
+
if (!queuePending) {
|
|
260
|
+
queuePending = true;
|
|
261
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
262
|
+
nextTick(flush);
|
|
263
|
+
} else {
|
|
264
|
+
plt.raf(flush);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
var consume = (queue) => {
|
|
269
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
270
|
+
try {
|
|
271
|
+
queue[i2](performance.now());
|
|
272
|
+
} catch (e) {
|
|
273
|
+
consoleError(e);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
queue.length = 0;
|
|
277
|
+
};
|
|
278
|
+
var consumeTimeout = (queue, timeout) => {
|
|
279
|
+
let i2 = 0;
|
|
280
|
+
let ts = 0;
|
|
281
|
+
while (i2 < queue.length && (ts = performance.now()) < timeout) {
|
|
282
|
+
try {
|
|
283
|
+
queue[i2++](ts);
|
|
284
|
+
} catch (e) {
|
|
285
|
+
consoleError(e);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (i2 === queue.length) {
|
|
289
|
+
queue.length = 0;
|
|
290
|
+
} else if (i2 !== 0) {
|
|
291
|
+
queue.splice(0, i2);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
var flush = () => {
|
|
295
|
+
if (BUILD.asyncQueue) {
|
|
296
|
+
queueCongestion++;
|
|
297
|
+
}
|
|
298
|
+
consume(queueDomReads);
|
|
299
|
+
if (BUILD.asyncQueue) {
|
|
300
|
+
const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;
|
|
301
|
+
consumeTimeout(queueDomWrites, timeout);
|
|
302
|
+
consumeTimeout(queueDomWritesLow, timeout);
|
|
303
|
+
if (queueDomWrites.length > 0) {
|
|
304
|
+
queueDomWritesLow.push(...queueDomWrites);
|
|
305
|
+
queueDomWrites.length = 0;
|
|
306
|
+
}
|
|
307
|
+
if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {
|
|
308
|
+
plt.raf(flush);
|
|
309
|
+
} else {
|
|
310
|
+
queueCongestion = 0;
|
|
311
|
+
}
|
|
312
|
+
} else {
|
|
313
|
+
consume(queueDomWrites);
|
|
314
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
315
|
+
plt.raf(flush);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
320
|
+
var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
|
321
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
322
|
+
|
|
323
|
+
// src/runtime/asset-path.ts
|
|
324
|
+
var getAssetPath = (path) => {
|
|
325
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
326
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
327
|
+
};
|
|
328
|
+
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
329
|
+
|
|
330
|
+
// src/utils/style.ts
|
|
331
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
332
|
+
if (!styles2 || !supportsConstructableStylesheets) return void 0;
|
|
333
|
+
const sheet = new CSSStyleSheet();
|
|
334
|
+
sheet.replaceSync(styles2);
|
|
335
|
+
return sheet;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// src/utils/shadow-root.ts
|
|
339
|
+
var globalStyleSheet;
|
|
340
|
+
var GLOBAL_STYLE_ID = "sc-global";
|
|
341
|
+
function createShadowRoot(cmpMeta) {
|
|
342
|
+
var _a;
|
|
343
|
+
const opts = { mode: "open" };
|
|
344
|
+
if (BUILD.shadowDelegatesFocus) {
|
|
345
|
+
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
346
|
+
}
|
|
347
|
+
if (BUILD.shadowSlotAssignmentManual) {
|
|
348
|
+
const isManual = !!(cmpMeta.$flags$ & 1024 /* shadowSlotAssignmentManual */);
|
|
349
|
+
if (isManual) {
|
|
350
|
+
opts.slotAssignment = "manual";
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
const shadowRoot = this.attachShadow(opts);
|
|
354
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
355
|
+
if (globalStyleSheet) {
|
|
356
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
357
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
358
|
+
} else {
|
|
359
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
360
|
+
}
|
|
361
|
+
} else if (globalStyles && !supportsConstructableStylesheets) {
|
|
362
|
+
const styleElm = document.createElement("style");
|
|
363
|
+
styleElm.innerHTML = globalStyles;
|
|
364
|
+
if (BUILD.hotModuleReplacement) {
|
|
365
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, GLOBAL_STYLE_ID);
|
|
366
|
+
}
|
|
367
|
+
shadowRoot.prepend(styleElm);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
371
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
372
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
373
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
374
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
375
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
376
|
+
slotNode.hidden = true;
|
|
377
|
+
} else {
|
|
378
|
+
slotNode.hidden = false;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
let i2 = 0;
|
|
384
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
385
|
+
const childNode = childNodes[i2];
|
|
386
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
387
|
+
updateFallbackSlotVisibility(childNode);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
392
|
+
const result = [];
|
|
393
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
394
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
395
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
396
|
+
result.push(slottedNode);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return result;
|
|
400
|
+
};
|
|
401
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
402
|
+
let i2 = 0;
|
|
403
|
+
let slottedNodes = [];
|
|
404
|
+
let childNode;
|
|
405
|
+
for (; i2 < childNodes.length; i2++) {
|
|
406
|
+
childNode = childNodes[i2];
|
|
407
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
408
|
+
slottedNodes.push(childNode);
|
|
409
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
410
|
+
}
|
|
411
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
412
|
+
}
|
|
413
|
+
return slottedNodes;
|
|
414
|
+
}
|
|
415
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
416
|
+
const childNodes = [];
|
|
417
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
418
|
+
let node = slot;
|
|
419
|
+
while (node = node.nextSibling) {
|
|
420
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
421
|
+
}
|
|
422
|
+
return childNodes;
|
|
423
|
+
};
|
|
424
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
425
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
426
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
427
|
+
return true;
|
|
428
|
+
}
|
|
429
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
430
|
+
return true;
|
|
431
|
+
}
|
|
432
|
+
return false;
|
|
433
|
+
}
|
|
434
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
435
|
+
return true;
|
|
436
|
+
}
|
|
437
|
+
return slotName === "";
|
|
438
|
+
};
|
|
439
|
+
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
440
|
+
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const slottedNodeLocation = document.createTextNode("");
|
|
444
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
445
|
+
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
446
|
+
const parent = slotNode["s-cr"].parentNode;
|
|
447
|
+
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
448
|
+
if (BUILD.hydrateClientSide && typeof position !== "undefined") {
|
|
449
|
+
slottedNodeLocation["s-oo"] = position;
|
|
450
|
+
const childNodes = internalCall(parent, "childNodes");
|
|
451
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
452
|
+
childNodes.forEach((n) => {
|
|
453
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
454
|
+
});
|
|
455
|
+
slotRelocateNodes.sort((a, b) => {
|
|
456
|
+
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
457
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
458
|
+
return 0;
|
|
459
|
+
});
|
|
460
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
461
|
+
} else {
|
|
462
|
+
appendMethod.call(parent, slottedNodeLocation);
|
|
463
|
+
}
|
|
464
|
+
newChild["s-ol"] = slottedNodeLocation;
|
|
465
|
+
newChild["s-sh"] = slotNode["s-hn"];
|
|
466
|
+
};
|
|
467
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
468
|
+
function patchSlotNode(node) {
|
|
469
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
470
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
471
|
+
const toReturn = [];
|
|
472
|
+
const slotName = this["s-sn"];
|
|
473
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
474
|
+
console.error(`
|
|
475
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
476
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
477
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
478
|
+
`);
|
|
479
|
+
}
|
|
480
|
+
const parent = this["s-cr"].parentElement;
|
|
481
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
482
|
+
slottedNodes.forEach((n) => {
|
|
483
|
+
if (slotName === getSlotName(n)) {
|
|
484
|
+
toReturn.push(n);
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
if (elementsOnly) {
|
|
488
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
489
|
+
}
|
|
490
|
+
return toReturn;
|
|
491
|
+
}).bind(node);
|
|
492
|
+
node.assignedElements = assignedFactory(true);
|
|
493
|
+
node.assignedNodes = assignedFactory(false);
|
|
494
|
+
}
|
|
495
|
+
function dispatchSlotChangeEvent(elm) {
|
|
496
|
+
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
497
|
+
}
|
|
498
|
+
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
499
|
+
var _a;
|
|
500
|
+
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
501
|
+
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
502
|
+
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
503
|
+
const childNodes = internalCall(parentHost, "childNodes");
|
|
504
|
+
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
505
|
+
return { slotNode, slotName };
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// src/runtime/dom-extras.ts
|
|
509
|
+
var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
510
|
+
patchCloneNode(hostElementPrototype);
|
|
511
|
+
patchSlotAppendChild(hostElementPrototype);
|
|
512
|
+
patchSlotAppend(hostElementPrototype);
|
|
513
|
+
patchSlotPrepend(hostElementPrototype);
|
|
514
|
+
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
515
|
+
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
516
|
+
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
517
|
+
patchInsertBefore(hostElementPrototype);
|
|
518
|
+
patchTextContent(hostElementPrototype);
|
|
519
|
+
patchChildSlotNodes(hostElementPrototype);
|
|
520
|
+
patchSlotRemoveChild(hostElementPrototype);
|
|
521
|
+
};
|
|
522
|
+
var patchCloneNode = (HostElementPrototype) => {
|
|
523
|
+
if (HostElementPrototype.__cloneNode) return;
|
|
524
|
+
const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;
|
|
525
|
+
HostElementPrototype.cloneNode = function(deep) {
|
|
526
|
+
const srcNode = this;
|
|
527
|
+
const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
|
|
528
|
+
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
529
|
+
if (BUILD.slot && !isShadowDom && deep) {
|
|
530
|
+
let i2 = 0;
|
|
531
|
+
let slotted, nonStencilNode;
|
|
532
|
+
const stencilPrivates = [
|
|
533
|
+
"s-id",
|
|
534
|
+
"s-cr",
|
|
535
|
+
"s-lr",
|
|
536
|
+
"s-rc",
|
|
537
|
+
"s-sc",
|
|
538
|
+
"s-p",
|
|
539
|
+
"s-cn",
|
|
540
|
+
"s-sr",
|
|
541
|
+
"s-sn",
|
|
542
|
+
"s-hn",
|
|
543
|
+
"s-ol",
|
|
544
|
+
"s-nr",
|
|
545
|
+
"s-si",
|
|
546
|
+
"s-rf",
|
|
547
|
+
"s-scs"
|
|
548
|
+
];
|
|
549
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
550
|
+
for (; i2 < childNodes.length; i2++) {
|
|
551
|
+
slotted = childNodes[i2]["s-nr"];
|
|
552
|
+
nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
|
|
553
|
+
if (slotted) {
|
|
554
|
+
if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
|
|
555
|
+
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
556
|
+
} else {
|
|
557
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
if (nonStencilNode) {
|
|
561
|
+
clonedNode.appendChild(childNodes[i2].cloneNode(true));
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
return clonedNode;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
569
|
+
if (HostElementPrototype.__appendChild) return;
|
|
570
|
+
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
571
|
+
HostElementPrototype.appendChild = function(newChild) {
|
|
572
|
+
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
573
|
+
if (slotNode) {
|
|
574
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
575
|
+
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
576
|
+
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
577
|
+
const parent = internalCall(appendAfter, "parentNode");
|
|
578
|
+
const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
|
|
579
|
+
dispatchSlotChangeEvent(slotNode);
|
|
580
|
+
updateFallbackSlotVisibility(this);
|
|
581
|
+
return insertedNode;
|
|
582
|
+
}
|
|
583
|
+
return this.__appendChild(newChild);
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
587
|
+
if (ElementPrototype.__removeChild) return;
|
|
588
|
+
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
589
|
+
ElementPrototype.removeChild = function(toRemove) {
|
|
590
|
+
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
591
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
592
|
+
const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
|
|
593
|
+
if (slotNode && toRemove.isConnected) {
|
|
594
|
+
toRemove.remove();
|
|
595
|
+
updateFallbackSlotVisibility(this);
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return this.__removeChild(toRemove);
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
var patchSlotPrepend = (HostElementPrototype) => {
|
|
603
|
+
if (HostElementPrototype.__prepend) return;
|
|
604
|
+
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
605
|
+
HostElementPrototype.prepend = function(...newChildren) {
|
|
606
|
+
newChildren.forEach((newChild) => {
|
|
607
|
+
if (typeof newChild === "string") {
|
|
608
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
609
|
+
}
|
|
610
|
+
const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
|
|
611
|
+
const childNodes = internalCall(this, "childNodes");
|
|
612
|
+
const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
|
|
613
|
+
if (slotNode) {
|
|
614
|
+
addSlotRelocateNode(newChild, slotNode, true);
|
|
615
|
+
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
616
|
+
const appendAfter = slotChildNodes[0];
|
|
617
|
+
const parent = internalCall(appendAfter, "parentNode");
|
|
618
|
+
const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
|
|
619
|
+
dispatchSlotChangeEvent(slotNode);
|
|
620
|
+
return toReturn;
|
|
621
|
+
}
|
|
622
|
+
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
623
|
+
newChild.hidden = true;
|
|
624
|
+
}
|
|
625
|
+
return HostElementPrototype.__prepend(newChild);
|
|
626
|
+
});
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
var patchSlotAppend = (HostElementPrototype) => {
|
|
630
|
+
if (HostElementPrototype.__append) return;
|
|
631
|
+
HostElementPrototype.__append = HostElementPrototype.append;
|
|
632
|
+
HostElementPrototype.append = function(...newChildren) {
|
|
633
|
+
newChildren.forEach((newChild) => {
|
|
634
|
+
if (typeof newChild === "string") {
|
|
635
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
636
|
+
}
|
|
637
|
+
this.appendChild(newChild);
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
642
|
+
if (HostElementPrototype.__insertAdjacentHTML) return;
|
|
643
|
+
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
644
|
+
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
645
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
646
|
+
return originalInsertAdjacentHtml.call(this, position, text);
|
|
647
|
+
}
|
|
648
|
+
const container = this.ownerDocument.createElement("_");
|
|
649
|
+
let node;
|
|
650
|
+
container.innerHTML = text;
|
|
651
|
+
if (position === "afterbegin") {
|
|
652
|
+
while (node = container.firstChild) {
|
|
653
|
+
this.prepend(node);
|
|
654
|
+
}
|
|
655
|
+
} else if (position === "beforeend") {
|
|
656
|
+
while (node = container.firstChild) {
|
|
657
|
+
this.append(node);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
663
|
+
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
664
|
+
this.insertAdjacentHTML(position, text);
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
var patchInsertBefore = (HostElementPrototype) => {
|
|
668
|
+
if (HostElementPrototype.__insertBefore) return;
|
|
669
|
+
const eleProto = HostElementPrototype;
|
|
670
|
+
if (eleProto.__insertBefore) return;
|
|
671
|
+
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
672
|
+
HostElementPrototype.insertBefore = function(newChild, currentChild) {
|
|
673
|
+
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
674
|
+
const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
675
|
+
if (slotNode) {
|
|
676
|
+
let found = false;
|
|
677
|
+
slottedNodes.forEach((childNode) => {
|
|
678
|
+
if (childNode === currentChild || currentChild === null) {
|
|
679
|
+
found = true;
|
|
680
|
+
if (currentChild === null || slotName !== currentChild["s-sn"]) {
|
|
681
|
+
this.appendChild(newChild);
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
if (slotName === currentChild["s-sn"]) {
|
|
685
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
686
|
+
const parent = internalCall(currentChild, "parentNode");
|
|
687
|
+
internalCall(parent, "insertBefore")(newChild, currentChild);
|
|
688
|
+
dispatchSlotChangeEvent(slotNode);
|
|
689
|
+
}
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
if (found) return newChild;
|
|
694
|
+
}
|
|
695
|
+
const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
|
|
696
|
+
if (parentNode && !this.isSameNode(parentNode)) {
|
|
697
|
+
return this.appendChild(newChild);
|
|
698
|
+
}
|
|
699
|
+
return this.__insertBefore(newChild, currentChild);
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
703
|
+
if (HostElementPrototype.__insertAdjacentElement) return;
|
|
704
|
+
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
705
|
+
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
706
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
707
|
+
return originalInsertAdjacentElement.call(this, position, element);
|
|
708
|
+
}
|
|
709
|
+
if (position === "afterbegin") {
|
|
710
|
+
this.prepend(element);
|
|
711
|
+
return element;
|
|
712
|
+
} else if (position === "beforeend") {
|
|
713
|
+
this.append(element);
|
|
714
|
+
return element;
|
|
715
|
+
}
|
|
716
|
+
return element;
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
var patchTextContent = (hostElementPrototype) => {
|
|
720
|
+
patchHostOriginalAccessor("textContent", hostElementPrototype);
|
|
721
|
+
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
722
|
+
get: function() {
|
|
723
|
+
let text = "";
|
|
724
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
725
|
+
childNodes.forEach((node) => text += node.textContent || "");
|
|
726
|
+
return text;
|
|
727
|
+
},
|
|
728
|
+
set: function(value) {
|
|
729
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
730
|
+
childNodes.forEach((node) => {
|
|
731
|
+
if (node["s-ol"]) node["s-ol"].remove();
|
|
732
|
+
node.remove();
|
|
733
|
+
});
|
|
734
|
+
this.insertAdjacentHTML("beforeend", value);
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
};
|
|
738
|
+
var patchChildSlotNodes = (elm) => {
|
|
739
|
+
class FakeNodeList extends Array {
|
|
740
|
+
item(n) {
|
|
741
|
+
return this[n];
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
patchHostOriginalAccessor("children", elm);
|
|
745
|
+
Object.defineProperty(elm, "children", {
|
|
746
|
+
get() {
|
|
747
|
+
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
Object.defineProperty(elm, "childElementCount", {
|
|
751
|
+
get() {
|
|
752
|
+
return this.children.length;
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
patchHostOriginalAccessor("firstChild", elm);
|
|
756
|
+
Object.defineProperty(elm, "firstChild", {
|
|
757
|
+
get() {
|
|
758
|
+
return this.childNodes[0];
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
patchHostOriginalAccessor("lastChild", elm);
|
|
762
|
+
Object.defineProperty(elm, "lastChild", {
|
|
763
|
+
get() {
|
|
764
|
+
return this.childNodes[this.childNodes.length - 1];
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
patchHostOriginalAccessor("childNodes", elm);
|
|
768
|
+
Object.defineProperty(elm, "childNodes", {
|
|
769
|
+
get() {
|
|
770
|
+
const result = new FakeNodeList();
|
|
771
|
+
result.push(...getSlottedChildNodes(this.__childNodes));
|
|
772
|
+
return result;
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
};
|
|
776
|
+
var patchSlottedNode = (node) => {
|
|
777
|
+
if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
|
|
778
|
+
patchNextSibling(node);
|
|
779
|
+
patchPreviousSibling(node);
|
|
780
|
+
patchParentNode(node);
|
|
781
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
782
|
+
patchNextElementSibling(node);
|
|
783
|
+
patchPreviousElementSibling(node);
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
var patchNextSibling = (node) => {
|
|
787
|
+
if (!node || node.__nextSibling) return;
|
|
788
|
+
patchHostOriginalAccessor("nextSibling", node);
|
|
789
|
+
Object.defineProperty(node, "nextSibling", {
|
|
790
|
+
get: function() {
|
|
791
|
+
var _a;
|
|
792
|
+
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
793
|
+
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
794
|
+
if (parentNodes && index > -1) {
|
|
795
|
+
return parentNodes[index + 1];
|
|
796
|
+
}
|
|
797
|
+
return this.__nextSibling;
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
};
|
|
801
|
+
var patchNextElementSibling = (element) => {
|
|
802
|
+
if (!element || element.__nextElementSibling) return;
|
|
803
|
+
patchHostOriginalAccessor("nextElementSibling", element);
|
|
804
|
+
Object.defineProperty(element, "nextElementSibling", {
|
|
805
|
+
get: function() {
|
|
806
|
+
var _a;
|
|
807
|
+
const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
808
|
+
const index = parentEles == null ? void 0 : parentEles.indexOf(this);
|
|
809
|
+
if (parentEles && index > -1) {
|
|
810
|
+
return parentEles[index + 1];
|
|
811
|
+
}
|
|
812
|
+
return this.__nextElementSibling;
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
var patchPreviousSibling = (node) => {
|
|
817
|
+
if (!node || node.__previousSibling) return;
|
|
818
|
+
patchHostOriginalAccessor("previousSibling", node);
|
|
819
|
+
Object.defineProperty(node, "previousSibling", {
|
|
820
|
+
get: function() {
|
|
821
|
+
var _a;
|
|
822
|
+
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
823
|
+
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
824
|
+
if (parentNodes && index > -1) {
|
|
825
|
+
return parentNodes[index - 1];
|
|
826
|
+
}
|
|
827
|
+
return this.__previousSibling;
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
};
|
|
831
|
+
var patchPreviousElementSibling = (element) => {
|
|
832
|
+
if (!element || element.__previousElementSibling) return;
|
|
833
|
+
patchHostOriginalAccessor("previousElementSibling", element);
|
|
834
|
+
Object.defineProperty(element, "previousElementSibling", {
|
|
835
|
+
get: function() {
|
|
836
|
+
var _a;
|
|
837
|
+
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
838
|
+
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
839
|
+
if (parentNodes && index > -1) {
|
|
840
|
+
return parentNodes[index - 1];
|
|
841
|
+
}
|
|
842
|
+
return this.__previousElementSibling;
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
};
|
|
846
|
+
var patchParentNode = (node) => {
|
|
847
|
+
if (!node || node.__parentNode) return;
|
|
848
|
+
patchHostOriginalAccessor("parentNode", node);
|
|
849
|
+
Object.defineProperty(node, "parentNode", {
|
|
850
|
+
get: function() {
|
|
851
|
+
var _a;
|
|
852
|
+
return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
|
|
853
|
+
},
|
|
854
|
+
set: function(value) {
|
|
855
|
+
this.__parentNode = value;
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
};
|
|
859
|
+
var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
|
|
860
|
+
var validNodesPatches = [
|
|
861
|
+
"childNodes",
|
|
862
|
+
"firstChild",
|
|
863
|
+
"lastChild",
|
|
864
|
+
"nextSibling",
|
|
865
|
+
"previousSibling",
|
|
866
|
+
"textContent",
|
|
867
|
+
"parentNode"
|
|
868
|
+
];
|
|
869
|
+
function patchHostOriginalAccessor(accessorName, node) {
|
|
870
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
let accessor;
|
|
874
|
+
if (validElementPatches.includes(accessorName)) {
|
|
875
|
+
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
876
|
+
} else if (validNodesPatches.includes(accessorName)) {
|
|
877
|
+
accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
|
|
878
|
+
}
|
|
879
|
+
if (!accessor) {
|
|
880
|
+
accessor = Object.getOwnPropertyDescriptor(node, accessorName);
|
|
881
|
+
}
|
|
882
|
+
if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
|
|
883
|
+
}
|
|
884
|
+
function internalCall(node, method) {
|
|
885
|
+
if ("__" + method in node) {
|
|
886
|
+
const toReturn = node["__" + method];
|
|
887
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
888
|
+
return toReturn.bind(node);
|
|
889
|
+
} else {
|
|
890
|
+
if (typeof node[method] !== "function") return node[method];
|
|
891
|
+
return node[method].bind(node);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
var i = 0;
|
|
895
|
+
var createTime = (fnName, tagName = "") => {
|
|
896
|
+
if (BUILD.profile && performance.mark) {
|
|
897
|
+
const key = `st:${fnName}:${tagName}:${i++}`;
|
|
898
|
+
performance.mark(key);
|
|
899
|
+
return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
|
|
900
|
+
} else {
|
|
901
|
+
return () => {
|
|
902
|
+
return;
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
var uniqueTime = (key, measureText) => {
|
|
907
|
+
if (BUILD.profile && performance.mark) {
|
|
908
|
+
if (performance.getEntriesByName(key, "mark").length === 0) {
|
|
909
|
+
performance.mark(key);
|
|
910
|
+
}
|
|
911
|
+
return () => {
|
|
912
|
+
if (performance.getEntriesByName(measureText, "measure").length === 0) {
|
|
913
|
+
performance.measure(measureText, key);
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
} else {
|
|
917
|
+
return () => {
|
|
918
|
+
return;
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
var inspect = (ref) => {
|
|
923
|
+
const hostRef = getHostRef(ref);
|
|
924
|
+
if (!hostRef) {
|
|
925
|
+
return void 0;
|
|
926
|
+
}
|
|
927
|
+
const flags = hostRef.$flags$;
|
|
928
|
+
const hostElement = hostRef.$hostElement$;
|
|
929
|
+
return {
|
|
930
|
+
renderCount: hostRef.$renderCount$,
|
|
931
|
+
flags: {
|
|
932
|
+
hasRendered: !!(flags & 2 /* hasRendered */),
|
|
933
|
+
hasConnected: !!(flags & 1 /* hasConnected */),
|
|
934
|
+
isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
|
|
935
|
+
isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
|
|
936
|
+
isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
|
|
937
|
+
hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
|
|
938
|
+
hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
|
|
939
|
+
isWatchReady: !!(flags & 128 /* isWatchReady */),
|
|
940
|
+
isListenReady: !!(flags & 256 /* isListenReady */),
|
|
941
|
+
needsRerender: !!(flags & 512 /* needsRerender */)
|
|
942
|
+
},
|
|
943
|
+
instanceValues: hostRef.$instanceValues$,
|
|
944
|
+
serializerValues: hostRef.$serializerValues$,
|
|
945
|
+
ancestorComponent: hostRef.$ancestorComponent$,
|
|
946
|
+
hostElement,
|
|
947
|
+
lazyInstance: hostRef.$lazyInstance$,
|
|
948
|
+
vnode: hostRef.$vnode$,
|
|
949
|
+
modeName: hostRef.$modeName$,
|
|
950
|
+
fetchedCbList: hostRef.$fetchedCbList$,
|
|
951
|
+
onReadyPromise: hostRef.$onReadyPromise$,
|
|
952
|
+
onReadyResolve: hostRef.$onReadyResolve$,
|
|
953
|
+
onInstancePromise: hostRef.$onInstancePromise$,
|
|
954
|
+
onInstanceResolve: hostRef.$onInstanceResolve$,
|
|
955
|
+
onRenderResolve: hostRef.$onRenderResolve$,
|
|
956
|
+
queuedListeners: hostRef.$queuedListeners$,
|
|
957
|
+
rmListeners: hostRef.$rmListeners$,
|
|
958
|
+
["s-id"]: hostElement["s-id"],
|
|
959
|
+
["s-cr"]: hostElement["s-cr"],
|
|
960
|
+
["s-lr"]: hostElement["s-lr"],
|
|
961
|
+
["s-p"]: hostElement["s-p"],
|
|
962
|
+
["s-rc"]: hostElement["s-rc"],
|
|
963
|
+
["s-sc"]: hostElement["s-sc"]
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
var installDevTools = () => {
|
|
967
|
+
if (BUILD.devTools) {
|
|
968
|
+
const stencil = win.stencil = win.stencil || {};
|
|
969
|
+
const originalInspect = stencil.inspect;
|
|
970
|
+
stencil.inspect = (ref) => {
|
|
971
|
+
let result = inspect(ref);
|
|
972
|
+
if (!result && typeof originalInspect === "function") {
|
|
973
|
+
result = originalInspect(ref);
|
|
974
|
+
}
|
|
975
|
+
return result;
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
981
|
+
function queryNonceMetaTagContent(doc) {
|
|
982
|
+
var _a, _b, _c;
|
|
983
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// src/runtime/styles.ts
|
|
987
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
988
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
989
|
+
let style = styles.get(scopeId2);
|
|
990
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
991
|
+
style = style || new CSSStyleSheet();
|
|
992
|
+
if (typeof style === "string") {
|
|
993
|
+
style = cssText;
|
|
994
|
+
} else {
|
|
995
|
+
style.replaceSync(cssText);
|
|
996
|
+
}
|
|
997
|
+
} else {
|
|
998
|
+
style = cssText;
|
|
999
|
+
}
|
|
1000
|
+
styles.set(scopeId2, style);
|
|
1001
|
+
};
|
|
1002
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1003
|
+
var _a, _b, _c;
|
|
1004
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1005
|
+
const style = styles.get(scopeId2);
|
|
1006
|
+
if (!BUILD.attachStyles || !win.document) {
|
|
1007
|
+
return scopeId2;
|
|
1008
|
+
}
|
|
1009
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1010
|
+
if (style) {
|
|
1011
|
+
if (typeof style === "string") {
|
|
1012
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1013
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1014
|
+
let styleElm;
|
|
1015
|
+
if (!appliedStyles) {
|
|
1016
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1017
|
+
}
|
|
1018
|
+
const existingStyleElm = (BUILD.hydrateClientSide || BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1019
|
+
if (existingStyleElm) {
|
|
1020
|
+
existingStyleElm.textContent = style;
|
|
1021
|
+
} else if (!appliedStyles.has(scopeId2)) {
|
|
1022
|
+
styleElm = win.document.createElement("style");
|
|
1023
|
+
styleElm.textContent = style;
|
|
1024
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1025
|
+
if (nonce != null) {
|
|
1026
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1027
|
+
}
|
|
1028
|
+
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */ || cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1029
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1030
|
+
}
|
|
1031
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1032
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1033
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1034
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1035
|
+
styleContainerNode.insertBefore(
|
|
1036
|
+
styleElm,
|
|
1037
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1038
|
+
);
|
|
1039
|
+
} else if ("host" in styleContainerNode) {
|
|
1040
|
+
if (supportsConstructableStylesheets) {
|
|
1041
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
1042
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
1043
|
+
stylesheet.replaceSync(style);
|
|
1044
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1045
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1046
|
+
} else {
|
|
1047
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1048
|
+
}
|
|
1049
|
+
} else {
|
|
1050
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1051
|
+
if (existingStyleContainer) {
|
|
1052
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
1053
|
+
} else {
|
|
1054
|
+
styleContainerNode.prepend(styleElm);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
} else {
|
|
1058
|
+
styleContainerNode.append(styleElm);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1062
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1063
|
+
}
|
|
1064
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1065
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
1066
|
+
}
|
|
1067
|
+
if (appliedStyles) {
|
|
1068
|
+
appliedStyles.add(scopeId2);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
} else if (BUILD.constructableCSS) {
|
|
1072
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1073
|
+
if (!appliedStyles) {
|
|
1074
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1075
|
+
}
|
|
1076
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1077
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
1078
|
+
let stylesheet;
|
|
1079
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
1080
|
+
stylesheet = style;
|
|
1081
|
+
} else {
|
|
1082
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
1083
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
1084
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1088
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
1089
|
+
} else {
|
|
1090
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
1091
|
+
}
|
|
1092
|
+
appliedStyles.add(scopeId2);
|
|
1093
|
+
if (BUILD.hydrateClientSide && "host" in styleContainerNode) {
|
|
1094
|
+
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1095
|
+
if (ssrStyleElm) {
|
|
1096
|
+
writeTask(() => ssrStyleElm.remove());
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
return scopeId2;
|
|
1103
|
+
};
|
|
1104
|
+
var attachStyles = (hostRef) => {
|
|
1105
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1106
|
+
const elm = hostRef.$hostElement$;
|
|
1107
|
+
const flags = cmpMeta.$flags$;
|
|
1108
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1109
|
+
const scopeId2 = addStyle(
|
|
1110
|
+
BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1111
|
+
cmpMeta,
|
|
1112
|
+
hostRef.$modeName$
|
|
1113
|
+
);
|
|
1114
|
+
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
|
|
1115
|
+
elm["s-sc"] = scopeId2;
|
|
1116
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1117
|
+
}
|
|
1118
|
+
endAttachStyles();
|
|
1119
|
+
};
|
|
1120
|
+
var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1121
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1122
|
+
var hydrateScopedToShadow = () => {
|
|
1123
|
+
if (!win.document) {
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1127
|
+
let i2 = 0;
|
|
1128
|
+
for (; i2 < styles2.length; i2++) {
|
|
1129
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
// src/utils/helpers.ts
|
|
1134
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
1135
|
+
var isComplexType = (o) => {
|
|
1136
|
+
o = typeof o;
|
|
1137
|
+
return o === "object" || o === "function";
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
// src/runtime/vdom/h.ts
|
|
1141
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
1142
|
+
if (typeof nodeName === "string") {
|
|
1143
|
+
nodeName = transformTag(nodeName);
|
|
1144
|
+
}
|
|
1145
|
+
let child = null;
|
|
1146
|
+
let key = null;
|
|
1147
|
+
let slotName = null;
|
|
1148
|
+
let simple = false;
|
|
1149
|
+
let lastSimple = false;
|
|
1150
|
+
const vNodeChildren = [];
|
|
1151
|
+
const walk = (c) => {
|
|
1152
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
1153
|
+
child = c[i2];
|
|
1154
|
+
if (Array.isArray(child)) {
|
|
1155
|
+
walk(child);
|
|
1156
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
1157
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
1158
|
+
child = String(child);
|
|
1159
|
+
} else if (BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
1160
|
+
consoleDevError(`vNode passed as children has unexpected type.
|
|
1161
|
+
Make sure it's using the correct h() function.
|
|
1162
|
+
Empty objects can also be the cause, look for JSX comments that became objects.`);
|
|
1163
|
+
}
|
|
1164
|
+
if (simple && lastSimple) {
|
|
1165
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
1166
|
+
} else {
|
|
1167
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
1168
|
+
}
|
|
1169
|
+
lastSimple = simple;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
};
|
|
1173
|
+
walk(children);
|
|
1174
|
+
if (vnodeData) {
|
|
1175
|
+
if (BUILD.isDev && nodeName === "input") {
|
|
1176
|
+
validateInputProperties(vnodeData);
|
|
1177
|
+
}
|
|
1178
|
+
if (BUILD.vdomKey && vnodeData.key) {
|
|
1179
|
+
key = vnodeData.key;
|
|
1180
|
+
}
|
|
1181
|
+
if (BUILD.slotRelocation && vnodeData.name) {
|
|
1182
|
+
slotName = vnodeData.name;
|
|
1183
|
+
}
|
|
1184
|
+
if (BUILD.vdomClass) {
|
|
1185
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
1186
|
+
if (classData) {
|
|
1187
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
if (BUILD.isDev && vNodeChildren.some(isHost)) {
|
|
1192
|
+
consoleDevError(`The <Host> must be the single root component. Make sure:
|
|
1193
|
+
- You are NOT using hostData() and <Host> in the same component.
|
|
1194
|
+
- <Host> is used once, and it's the single root component of the render() function.`);
|
|
1195
|
+
}
|
|
1196
|
+
if (BUILD.vdomFunctional && typeof nodeName === "function") {
|
|
1197
|
+
return nodeName(
|
|
1198
|
+
vnodeData === null ? {} : vnodeData,
|
|
1199
|
+
vNodeChildren,
|
|
1200
|
+
vdomFnUtils
|
|
1201
|
+
);
|
|
1202
|
+
}
|
|
1203
|
+
const vnode = newVNode(nodeName, null);
|
|
1204
|
+
vnode.$attrs$ = vnodeData;
|
|
1205
|
+
if (vNodeChildren.length > 0) {
|
|
1206
|
+
vnode.$children$ = vNodeChildren;
|
|
1207
|
+
}
|
|
1208
|
+
if (BUILD.vdomKey) {
|
|
1209
|
+
vnode.$key$ = key;
|
|
1210
|
+
}
|
|
1211
|
+
if (BUILD.slotRelocation) {
|
|
1212
|
+
vnode.$name$ = slotName;
|
|
1213
|
+
}
|
|
1214
|
+
return vnode;
|
|
1215
|
+
};
|
|
1216
|
+
var newVNode = (tag, text) => {
|
|
1217
|
+
const vnode = {
|
|
1218
|
+
$flags$: 0,
|
|
1219
|
+
$tag$: tag,
|
|
1220
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
1221
|
+
$text$: text != null ? text : null,
|
|
1222
|
+
$elm$: null,
|
|
1223
|
+
$children$: null
|
|
1224
|
+
};
|
|
1225
|
+
if (BUILD.vdomAttribute) {
|
|
1226
|
+
vnode.$attrs$ = null;
|
|
1227
|
+
}
|
|
1228
|
+
if (BUILD.vdomKey) {
|
|
1229
|
+
vnode.$key$ = null;
|
|
1230
|
+
}
|
|
1231
|
+
if (BUILD.slotRelocation) {
|
|
1232
|
+
vnode.$name$ = null;
|
|
1233
|
+
}
|
|
1234
|
+
return vnode;
|
|
1235
|
+
};
|
|
1236
|
+
var Host = {};
|
|
1237
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
|
1238
|
+
var vdomFnUtils = {
|
|
1239
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
1240
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
1241
|
+
};
|
|
1242
|
+
var convertToPublic = (node) => ({
|
|
1243
|
+
vattrs: node.$attrs$,
|
|
1244
|
+
vchildren: node.$children$,
|
|
1245
|
+
vkey: node.$key$,
|
|
1246
|
+
vname: node.$name$,
|
|
1247
|
+
vtag: node.$tag$,
|
|
1248
|
+
vtext: node.$text$
|
|
1249
|
+
});
|
|
1250
|
+
var convertToPrivate = (node) => {
|
|
1251
|
+
if (typeof node.vtag === "function") {
|
|
1252
|
+
const vnodeData = { ...node.vattrs };
|
|
1253
|
+
if (node.vkey) {
|
|
1254
|
+
vnodeData.key = node.vkey;
|
|
1255
|
+
}
|
|
1256
|
+
if (node.vname) {
|
|
1257
|
+
vnodeData.name = node.vname;
|
|
1258
|
+
}
|
|
1259
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
1260
|
+
}
|
|
1261
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
1262
|
+
vnode.$attrs$ = node.vattrs;
|
|
1263
|
+
vnode.$children$ = node.vchildren;
|
|
1264
|
+
vnode.$key$ = node.vkey;
|
|
1265
|
+
vnode.$name$ = node.vname;
|
|
1266
|
+
return vnode;
|
|
1267
|
+
};
|
|
1268
|
+
var validateInputProperties = (inputElm) => {
|
|
1269
|
+
const props = Object.keys(inputElm);
|
|
1270
|
+
const value = props.indexOf("value");
|
|
1271
|
+
if (value === -1) {
|
|
1272
|
+
return;
|
|
1273
|
+
}
|
|
1274
|
+
const typeIndex = props.indexOf("type");
|
|
1275
|
+
const minIndex = props.indexOf("min");
|
|
1276
|
+
const maxIndex = props.indexOf("max");
|
|
1277
|
+
const stepIndex = props.indexOf("step");
|
|
1278
|
+
if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
|
|
1279
|
+
consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
// src/runtime/client-hydrate.ts
|
|
1284
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1285
|
+
var _a, _b, _c, _d;
|
|
1286
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
1287
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
1288
|
+
const childRenderNodes = [];
|
|
1289
|
+
const slotNodes = [];
|
|
1290
|
+
const slottedNodes = [];
|
|
1291
|
+
const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
|
|
1292
|
+
const vnode = newVNode(tagName, null);
|
|
1293
|
+
vnode.$elm$ = hostElm;
|
|
1294
|
+
let scopeId2;
|
|
1295
|
+
if (BUILD.scoped) {
|
|
1296
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1297
|
+
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
1298
|
+
scopeId2 = hostElm["s-sc"];
|
|
1299
|
+
hostElm.classList.add(scopeId2 + "-h");
|
|
1300
|
+
} else if (hostElm["s-sc"]) {
|
|
1301
|
+
delete hostElm["s-sc"];
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
1305
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1306
|
+
}
|
|
1307
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
1308
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
1309
|
+
hostRef.$vnode$ = clientHydrate(
|
|
1310
|
+
vnode,
|
|
1311
|
+
childRenderNodes,
|
|
1312
|
+
slotNodes,
|
|
1313
|
+
shadowRootNodes,
|
|
1314
|
+
hostElm,
|
|
1315
|
+
hostElm,
|
|
1316
|
+
hostId,
|
|
1317
|
+
slottedNodes
|
|
1318
|
+
);
|
|
1319
|
+
let crIndex = 0;
|
|
1320
|
+
const crLength = childRenderNodes.length;
|
|
1321
|
+
let childRenderNode;
|
|
1322
|
+
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1323
|
+
childRenderNode = childRenderNodes[crIndex];
|
|
1324
|
+
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
1325
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1326
|
+
const node = childRenderNode.$elm$;
|
|
1327
|
+
if (!shadowRoot) {
|
|
1328
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
1329
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
1330
|
+
node["s-cr"] = hostElm["s-cr"];
|
|
1331
|
+
}
|
|
1332
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1333
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1334
|
+
if (cmpMeta) {
|
|
1335
|
+
const scopeId3 = getScopeId(
|
|
1336
|
+
cmpMeta.$cmpMeta$,
|
|
1337
|
+
BUILD.mode ? childRenderNode.$elm$.getAttribute("s-mode") : void 0
|
|
1338
|
+
);
|
|
1339
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1340
|
+
if (styleSheet) {
|
|
1341
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
1346
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
1347
|
+
if (childRenderNode.$children$) {
|
|
1348
|
+
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
1349
|
+
if (!childRenderNode.$elm$.childNodes.length) {
|
|
1350
|
+
childRenderNode.$children$.forEach((c) => {
|
|
1351
|
+
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
} else {
|
|
1355
|
+
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1359
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1360
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1361
|
+
}
|
|
1362
|
+
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
1363
|
+
if (!shadowRoot) {
|
|
1364
|
+
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1368
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
const hosts = [];
|
|
1372
|
+
const snLen = slottedNodes.length;
|
|
1373
|
+
let snIndex = 0;
|
|
1374
|
+
let slotGroup;
|
|
1375
|
+
let snGroupIdx;
|
|
1376
|
+
let snGroupLen;
|
|
1377
|
+
let slottedItem;
|
|
1378
|
+
let currentPos = 0;
|
|
1379
|
+
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1380
|
+
slotGroup = slottedNodes[snIndex];
|
|
1381
|
+
if (!slotGroup || !slotGroup.length) continue;
|
|
1382
|
+
snGroupLen = slotGroup.length;
|
|
1383
|
+
snGroupIdx = 0;
|
|
1384
|
+
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1385
|
+
slottedItem = slotGroup[snGroupIdx];
|
|
1386
|
+
if (!hosts[slottedItem.hostId]) {
|
|
1387
|
+
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1388
|
+
}
|
|
1389
|
+
if (!hosts[slottedItem.hostId]) continue;
|
|
1390
|
+
const hostEle = hosts[slottedItem.hostId];
|
|
1391
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1392
|
+
hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
|
|
1393
|
+
}
|
|
1394
|
+
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1395
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1396
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1397
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1398
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1399
|
+
} else {
|
|
1400
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
1404
|
+
if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1405
|
+
slottedItem.node.removeAttribute("slot");
|
|
1406
|
+
}
|
|
1407
|
+
if (BUILD.experimentalSlotFixes) {
|
|
1408
|
+
patchSlottedNode(slottedItem.node);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
if (BUILD.scoped && scopeId2 && slotNodes.length) {
|
|
1415
|
+
slotNodes.forEach((slot) => {
|
|
1416
|
+
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
if (BUILD.shadowDom && shadowRoot && !shadowRoot.childNodes.length) {
|
|
1420
|
+
let rnIdex = 0;
|
|
1421
|
+
const rnLen = shadowRootNodes.length;
|
|
1422
|
+
if (rnLen) {
|
|
1423
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1424
|
+
const node = shadowRootNodes[rnIdex];
|
|
1425
|
+
if (node) {
|
|
1426
|
+
shadowRoot.appendChild(node);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1430
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1431
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1432
|
+
node.removeAttribute("hidden");
|
|
1433
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
|
|
1434
|
+
node.parentNode.removeChild(node);
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
hostRef.$hostElement$ = hostElm;
|
|
1441
|
+
endHydrate();
|
|
1442
|
+
};
|
|
1443
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
1444
|
+
let childNodeType;
|
|
1445
|
+
let childIdSplt;
|
|
1446
|
+
let childVNode;
|
|
1447
|
+
let i2;
|
|
1448
|
+
const scopeId2 = hostElm["s-sc"];
|
|
1449
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1450
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1451
|
+
if (childNodeType) {
|
|
1452
|
+
childIdSplt = childNodeType.split(".");
|
|
1453
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1454
|
+
childVNode = createSimpleVNode({
|
|
1455
|
+
$flags$: 0,
|
|
1456
|
+
$hostId$: childIdSplt[0],
|
|
1457
|
+
$nodeId$: childIdSplt[1],
|
|
1458
|
+
$depth$: childIdSplt[2],
|
|
1459
|
+
$index$: childIdSplt[3],
|
|
1460
|
+
$tag$: node.tagName.toLowerCase(),
|
|
1461
|
+
$elm$: node,
|
|
1462
|
+
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
|
|
1463
|
+
// won't try to reconcile them. Classes set on the node will be blown away.
|
|
1464
|
+
$attrs$: { class: node.className || "" }
|
|
1465
|
+
});
|
|
1466
|
+
childRenderNodes.push(childVNode);
|
|
1467
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1468
|
+
if (!parentVNode.$children$) {
|
|
1469
|
+
parentVNode.$children$ = [];
|
|
1470
|
+
}
|
|
1471
|
+
if (BUILD.scoped && scopeId2 && childIdSplt[0] === hostId) {
|
|
1472
|
+
node["s-si"] = scopeId2;
|
|
1473
|
+
childVNode.$attrs$.class += " " + scopeId2;
|
|
1474
|
+
}
|
|
1475
|
+
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1476
|
+
if (typeof slotName === "string") {
|
|
1477
|
+
if (childVNode.$tag$ === "slot-fb") {
|
|
1478
|
+
addSlot(
|
|
1479
|
+
slotName,
|
|
1480
|
+
childIdSplt[2],
|
|
1481
|
+
childVNode,
|
|
1482
|
+
node,
|
|
1483
|
+
parentVNode,
|
|
1484
|
+
childRenderNodes,
|
|
1485
|
+
slotNodes,
|
|
1486
|
+
shadowRootNodes,
|
|
1487
|
+
slottedNodes
|
|
1488
|
+
);
|
|
1489
|
+
if (BUILD.scoped && scopeId2) {
|
|
1490
|
+
node.classList.add(scopeId2);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
childVNode.$elm$["s-sn"] = slotName;
|
|
1494
|
+
childVNode.$elm$.removeAttribute("s-sn");
|
|
1495
|
+
}
|
|
1496
|
+
if (childVNode.$index$ !== void 0) {
|
|
1497
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1498
|
+
}
|
|
1499
|
+
parentVNode = childVNode;
|
|
1500
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1501
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
if (node.shadowRoot) {
|
|
1506
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1507
|
+
clientHydrate(
|
|
1508
|
+
parentVNode,
|
|
1509
|
+
childRenderNodes,
|
|
1510
|
+
slotNodes,
|
|
1511
|
+
shadowRootNodes,
|
|
1512
|
+
hostElm,
|
|
1513
|
+
node.shadowRoot.childNodes[i2],
|
|
1514
|
+
hostId,
|
|
1515
|
+
slottedNodes
|
|
1516
|
+
);
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1520
|
+
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
1521
|
+
clientHydrate(
|
|
1522
|
+
parentVNode,
|
|
1523
|
+
childRenderNodes,
|
|
1524
|
+
slotNodes,
|
|
1525
|
+
shadowRootNodes,
|
|
1526
|
+
hostElm,
|
|
1527
|
+
nonShadowNodes[i2],
|
|
1528
|
+
hostId,
|
|
1529
|
+
slottedNodes
|
|
1530
|
+
);
|
|
1531
|
+
}
|
|
1532
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1533
|
+
childIdSplt = node.nodeValue.split(".");
|
|
1534
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1535
|
+
childNodeType = childIdSplt[0];
|
|
1536
|
+
childVNode = createSimpleVNode({
|
|
1537
|
+
$hostId$: childIdSplt[1],
|
|
1538
|
+
$nodeId$: childIdSplt[2],
|
|
1539
|
+
$depth$: childIdSplt[3],
|
|
1540
|
+
$index$: childIdSplt[4] || "0",
|
|
1541
|
+
$elm$: node,
|
|
1542
|
+
$attrs$: null,
|
|
1543
|
+
$children$: null,
|
|
1544
|
+
$key$: null,
|
|
1545
|
+
$name$: null,
|
|
1546
|
+
$tag$: null,
|
|
1547
|
+
$text$: null
|
|
1548
|
+
});
|
|
1549
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
1550
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
1551
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1552
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1553
|
+
childRenderNodes.push(childVNode);
|
|
1554
|
+
node.remove();
|
|
1555
|
+
if (hostId === childVNode.$hostId$) {
|
|
1556
|
+
if (!parentVNode.$children$) {
|
|
1557
|
+
parentVNode.$children$ = [];
|
|
1558
|
+
}
|
|
1559
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1560
|
+
}
|
|
1561
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1562
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1566
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
1567
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1568
|
+
childRenderNodes.push(childVNode);
|
|
1569
|
+
node.remove();
|
|
1570
|
+
}
|
|
1571
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
1572
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
1573
|
+
const slotName = node["s-sn"] = childIdSplt[5] || "";
|
|
1574
|
+
addSlot(
|
|
1575
|
+
slotName,
|
|
1576
|
+
childIdSplt[2],
|
|
1577
|
+
childVNode,
|
|
1578
|
+
node,
|
|
1579
|
+
parentVNode,
|
|
1580
|
+
childRenderNodes,
|
|
1581
|
+
slotNodes,
|
|
1582
|
+
shadowRootNodes,
|
|
1583
|
+
slottedNodes
|
|
1584
|
+
);
|
|
1585
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1586
|
+
if (BUILD.shadowDom && shadowRootNodes) {
|
|
1587
|
+
node.remove();
|
|
1588
|
+
} else if (BUILD.slotRelocation) {
|
|
1589
|
+
hostElm["s-cr"] = node;
|
|
1590
|
+
node["s-cn"] = true;
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1596
|
+
const vnode = newVNode(null, node.textContent);
|
|
1597
|
+
vnode.$elm$ = node;
|
|
1598
|
+
vnode.$index$ = "0";
|
|
1599
|
+
parentVNode.$children$ = [vnode];
|
|
1600
|
+
}
|
|
1601
|
+
return parentVNode;
|
|
1602
|
+
};
|
|
1603
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1604
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1605
|
+
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1606
|
+
if (componentId) {
|
|
1607
|
+
orgLocNodes.set(componentId, node);
|
|
1608
|
+
}
|
|
1609
|
+
let i2 = 0;
|
|
1610
|
+
if (node.shadowRoot) {
|
|
1611
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1612
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1616
|
+
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1617
|
+
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1618
|
+
}
|
|
1619
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1620
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
1621
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1622
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1623
|
+
node.nodeValue = "";
|
|
1624
|
+
node["s-en"] = childIdSplt[3];
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
var createSimpleVNode = (vnode) => {
|
|
1629
|
+
const defaultVNode = {
|
|
1630
|
+
$flags$: 0,
|
|
1631
|
+
$hostId$: null,
|
|
1632
|
+
$nodeId$: null,
|
|
1633
|
+
$depth$: null,
|
|
1634
|
+
$index$: "0",
|
|
1635
|
+
$elm$: null,
|
|
1636
|
+
$attrs$: null,
|
|
1637
|
+
$children$: null,
|
|
1638
|
+
$key$: null,
|
|
1639
|
+
$name$: null,
|
|
1640
|
+
$tag$: null,
|
|
1641
|
+
$text$: null
|
|
1642
|
+
};
|
|
1643
|
+
return { ...defaultVNode, ...vnode };
|
|
1644
|
+
};
|
|
1645
|
+
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1646
|
+
node["s-sr"] = true;
|
|
1647
|
+
childVNode.$name$ = slotName || null;
|
|
1648
|
+
childVNode.$tag$ = "slot";
|
|
1649
|
+
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1650
|
+
if (BUILD.shadowDom && shadowRootNodes && win.document) {
|
|
1651
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1652
|
+
if (childVNode.$name$) {
|
|
1653
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
|
1654
|
+
}
|
|
1655
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1656
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1657
|
+
} else {
|
|
1658
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1659
|
+
}
|
|
1660
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1661
|
+
node.remove();
|
|
1662
|
+
if (childVNode.$depth$ === "0") {
|
|
1663
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1664
|
+
}
|
|
1665
|
+
} else {
|
|
1666
|
+
const slot = childVNode.$elm$;
|
|
1667
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1668
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1669
|
+
patchSlotNode(node);
|
|
1670
|
+
if (shouldMove) {
|
|
1671
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
childRenderNodes.push(childVNode);
|
|
1675
|
+
slotNodes.push(childVNode);
|
|
1676
|
+
if (!parentVNode.$children$) {
|
|
1677
|
+
parentVNode.$children$ = [];
|
|
1678
|
+
}
|
|
1679
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1680
|
+
}
|
|
1681
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1682
|
+
var _a, _b;
|
|
1683
|
+
let slottedNode = slotNode.nextSibling;
|
|
1684
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1685
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1686
|
+
do {
|
|
1687
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1688
|
+
slottedNode["s-sn"] = slotName;
|
|
1689
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1690
|
+
}
|
|
1691
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1692
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1693
|
+
};
|
|
1694
|
+
var findCorrespondingNode = (node, type) => {
|
|
1695
|
+
let sibling = node;
|
|
1696
|
+
do {
|
|
1697
|
+
sibling = sibling.nextSibling;
|
|
1698
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1699
|
+
return sibling;
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
// src/utils/regular-expression.ts
|
|
1703
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
1704
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
// src/utils/shadow-css.ts
|
|
1708
|
+
/**
|
|
1709
|
+
* @license
|
|
1710
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
1711
|
+
*
|
|
1712
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1713
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1714
|
+
*
|
|
1715
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
1716
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
1717
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
1718
|
+
*/
|
|
1719
|
+
var safeSelector = (selector) => {
|
|
1720
|
+
const placeholders = [];
|
|
1721
|
+
let index = 0;
|
|
1722
|
+
selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
|
|
1723
|
+
const replaceBy = `__part-${index}__`;
|
|
1724
|
+
placeholders.push(keep);
|
|
1725
|
+
index++;
|
|
1726
|
+
return replaceBy;
|
|
1727
|
+
});
|
|
1728
|
+
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
1729
|
+
const replaceBy = `__ph-${index}__`;
|
|
1730
|
+
placeholders.push(keep);
|
|
1731
|
+
index++;
|
|
1732
|
+
return replaceBy;
|
|
1733
|
+
});
|
|
1734
|
+
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
1735
|
+
const replaceBy = `__ph-${index}__`;
|
|
1736
|
+
placeholders.push(exp);
|
|
1737
|
+
index++;
|
|
1738
|
+
return pseudo + replaceBy;
|
|
1739
|
+
});
|
|
1740
|
+
const ss = {
|
|
1741
|
+
content,
|
|
1742
|
+
placeholders
|
|
1743
|
+
};
|
|
1744
|
+
return ss;
|
|
1745
|
+
};
|
|
1746
|
+
var restoreSafeSelector = (placeholders, content) => {
|
|
1747
|
+
content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
1748
|
+
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
1749
|
+
};
|
|
1750
|
+
var _polyfillHost = "-shadowcsshost";
|
|
1751
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
1752
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
1753
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
1754
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
1755
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
1756
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
1757
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
1758
|
+
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
1759
|
+
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
1760
|
+
var _safePartRe = /__part-(\d+)__/g;
|
|
1761
|
+
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
1762
|
+
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
1763
|
+
var createSupportsRuleRe = (selector) => {
|
|
1764
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
1765
|
+
return new RegExp(
|
|
1766
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
1767
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
1768
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
1769
|
+
"g"
|
|
1770
|
+
);
|
|
1771
|
+
};
|
|
1772
|
+
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
1773
|
+
var stripComments = (input) => {
|
|
1774
|
+
return input.replace(_commentRe, "");
|
|
1775
|
+
};
|
|
1776
|
+
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
1777
|
+
var extractCommentsWithHash = (input) => {
|
|
1778
|
+
return input.match(_commentWithHashRe) || [];
|
|
1779
|
+
};
|
|
1780
|
+
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
1781
|
+
var _curlyRe = /([{}])/g;
|
|
1782
|
+
var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
1783
|
+
var OPEN_CURLY = "{";
|
|
1784
|
+
var CLOSE_CURLY = "}";
|
|
1785
|
+
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
|
1786
|
+
var processRules = (input, ruleCallback) => {
|
|
1787
|
+
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
1788
|
+
let nextBlockIndex = 0;
|
|
1789
|
+
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
1790
|
+
const selector = m[2];
|
|
1791
|
+
let content = "";
|
|
1792
|
+
let suffix = m[4];
|
|
1793
|
+
let contentPrefix = "";
|
|
1794
|
+
if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
|
|
1795
|
+
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
1796
|
+
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
1797
|
+
contentPrefix = "{";
|
|
1798
|
+
}
|
|
1799
|
+
const cssRule = {
|
|
1800
|
+
selector,
|
|
1801
|
+
content
|
|
1802
|
+
};
|
|
1803
|
+
const rule = ruleCallback(cssRule);
|
|
1804
|
+
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
1805
|
+
});
|
|
1806
|
+
};
|
|
1807
|
+
var escapeBlocks = (input) => {
|
|
1808
|
+
const inputParts = input.split(_curlyRe);
|
|
1809
|
+
const resultParts = [];
|
|
1810
|
+
const escapedBlocks = [];
|
|
1811
|
+
let bracketCount = 0;
|
|
1812
|
+
let currentBlockParts = [];
|
|
1813
|
+
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
1814
|
+
const part = inputParts[partIndex];
|
|
1815
|
+
if (part === CLOSE_CURLY) {
|
|
1816
|
+
bracketCount--;
|
|
1817
|
+
}
|
|
1818
|
+
if (bracketCount > 0) {
|
|
1819
|
+
currentBlockParts.push(part);
|
|
1820
|
+
} else {
|
|
1821
|
+
if (currentBlockParts.length > 0) {
|
|
1822
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
1823
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
1824
|
+
currentBlockParts = [];
|
|
1825
|
+
}
|
|
1826
|
+
resultParts.push(part);
|
|
1827
|
+
}
|
|
1828
|
+
if (part === OPEN_CURLY) {
|
|
1829
|
+
bracketCount++;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
if (currentBlockParts.length > 0) {
|
|
1833
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
1834
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
1835
|
+
}
|
|
1836
|
+
const strEscapedBlocks = {
|
|
1837
|
+
escapedString: resultParts.join(""),
|
|
1838
|
+
blocks: escapedBlocks
|
|
1839
|
+
};
|
|
1840
|
+
return strEscapedBlocks;
|
|
1841
|
+
};
|
|
1842
|
+
var insertPolyfillHostInCssText = (cssText) => {
|
|
1843
|
+
const supportsBlocks = [];
|
|
1844
|
+
cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
|
|
1845
|
+
const placeholder = `__supports_${supportsBlocks.length}__`;
|
|
1846
|
+
supportsBlocks.push(selectorContent);
|
|
1847
|
+
return `@supports selector(${placeholder})`;
|
|
1848
|
+
});
|
|
1849
|
+
const _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
1850
|
+
const _colonHostRe = createSupportsRuleRe(":host");
|
|
1851
|
+
const _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
1852
|
+
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
1853
|
+
supportsBlocks.forEach((originalSelector, index) => {
|
|
1854
|
+
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
1855
|
+
});
|
|
1856
|
+
return cssText;
|
|
1857
|
+
};
|
|
1858
|
+
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
1859
|
+
return cssText.replace(regExp, (...m) => {
|
|
1860
|
+
if (m[2]) {
|
|
1861
|
+
const parts = m[2].split(",");
|
|
1862
|
+
const r = [];
|
|
1863
|
+
for (let i2 = 0; i2 < parts.length; i2++) {
|
|
1864
|
+
const p = parts[i2].trim();
|
|
1865
|
+
if (!p) break;
|
|
1866
|
+
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
1867
|
+
}
|
|
1868
|
+
return r.join(",");
|
|
1869
|
+
} else {
|
|
1870
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
};
|
|
1874
|
+
var colonHostPartReplacer = (host, part, suffix) => {
|
|
1875
|
+
return host + part.replace(_polyfillHost, "") + suffix;
|
|
1876
|
+
};
|
|
1877
|
+
var convertColonHost = (cssText) => {
|
|
1878
|
+
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
1879
|
+
};
|
|
1880
|
+
var colonHostContextPartReplacer = (host, part, suffix) => {
|
|
1881
|
+
if (part.indexOf(_polyfillHost) > -1) {
|
|
1882
|
+
return colonHostPartReplacer(host, part, suffix);
|
|
1883
|
+
} else {
|
|
1884
|
+
return host + part + suffix + ", " + part + " " + host + suffix;
|
|
1885
|
+
}
|
|
1886
|
+
};
|
|
1887
|
+
var convertColonSlotted = (cssText, slotScopeId) => {
|
|
1888
|
+
const slotClass = "." + slotScopeId + " > ";
|
|
1889
|
+
const selectors = [];
|
|
1890
|
+
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
1891
|
+
if (m[2]) {
|
|
1892
|
+
const compound = m[2].trim();
|
|
1893
|
+
const suffix = m[3];
|
|
1894
|
+
const slottedSelector = slotClass + compound + suffix;
|
|
1895
|
+
let prefixSelector = "";
|
|
1896
|
+
for (let i2 = m[4] - 1; i2 >= 0; i2--) {
|
|
1897
|
+
const char = m[5][i2];
|
|
1898
|
+
if (char === "}" || char === ",") {
|
|
1899
|
+
break;
|
|
1900
|
+
}
|
|
1901
|
+
prefixSelector = char + prefixSelector;
|
|
1902
|
+
}
|
|
1903
|
+
const orgSelector = (prefixSelector + slottedSelector).trim();
|
|
1904
|
+
const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
|
|
1905
|
+
if (orgSelector !== addedSelector) {
|
|
1906
|
+
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
1907
|
+
selectors.push({
|
|
1908
|
+
orgSelector,
|
|
1909
|
+
updatedSelector
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
return slottedSelector;
|
|
1913
|
+
} else {
|
|
1914
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1915
|
+
}
|
|
1916
|
+
});
|
|
1917
|
+
return {
|
|
1918
|
+
selectors,
|
|
1919
|
+
cssText
|
|
1920
|
+
};
|
|
1921
|
+
};
|
|
1922
|
+
var convertColonHostContext = (cssText) => {
|
|
1923
|
+
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
1924
|
+
};
|
|
1925
|
+
var convertShadowDOMSelectors = (cssText) => {
|
|
1926
|
+
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
|
1927
|
+
};
|
|
1928
|
+
var makeScopeMatcher = (scopeSelector2) => {
|
|
1929
|
+
const lre = /\[/g;
|
|
1930
|
+
const rre = /\]/g;
|
|
1931
|
+
scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
|
|
1932
|
+
return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
|
|
1933
|
+
};
|
|
1934
|
+
var selectorNeedsScoping = (selector, scopeSelector2) => {
|
|
1935
|
+
const re = makeScopeMatcher(scopeSelector2);
|
|
1936
|
+
return !re.test(selector);
|
|
1937
|
+
};
|
|
1938
|
+
var injectScopingSelector = (selector, scopingSelector) => {
|
|
1939
|
+
return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
|
|
1940
|
+
return before + scopingSelector + colon + after;
|
|
1941
|
+
});
|
|
1942
|
+
};
|
|
1943
|
+
var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1944
|
+
_polyfillHostRe.lastIndex = 0;
|
|
1945
|
+
if (_polyfillHostRe.test(selector)) {
|
|
1946
|
+
const replaceBy = `.${hostSelector}`;
|
|
1947
|
+
return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
|
|
1948
|
+
}
|
|
1949
|
+
return scopeSelector2 + " " + selector;
|
|
1950
|
+
};
|
|
1951
|
+
var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1952
|
+
const isRe = /\[is=([^\]]*)\]/g;
|
|
1953
|
+
scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
|
|
1954
|
+
const className = "." + scopeSelector2;
|
|
1955
|
+
const _scopeSelectorPart = (p) => {
|
|
1956
|
+
let scopedP = p.trim();
|
|
1957
|
+
if (!scopedP) {
|
|
1958
|
+
return "";
|
|
1959
|
+
}
|
|
1960
|
+
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
1961
|
+
scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
|
|
1962
|
+
} else {
|
|
1963
|
+
const t = p.replace(_polyfillHostRe, "");
|
|
1964
|
+
if (t.length > 0) {
|
|
1965
|
+
scopedP = injectScopingSelector(t, className);
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
return scopedP;
|
|
1969
|
+
};
|
|
1970
|
+
const safeContent = safeSelector(selector);
|
|
1971
|
+
selector = safeContent.content;
|
|
1972
|
+
let scopedSelector = "";
|
|
1973
|
+
let startIndex = 0;
|
|
1974
|
+
let res;
|
|
1975
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
1976
|
+
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1977
|
+
let shouldScope = !hasHost;
|
|
1978
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
1979
|
+
const separator = res[1];
|
|
1980
|
+
const part2 = selector.slice(startIndex, res.index).trim();
|
|
1981
|
+
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1982
|
+
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
1983
|
+
scopedSelector += `${scopedPart} ${separator} `;
|
|
1984
|
+
startIndex = sep.lastIndex;
|
|
1985
|
+
}
|
|
1986
|
+
const part = selector.substring(startIndex);
|
|
1987
|
+
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
1988
|
+
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
1989
|
+
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
1990
|
+
};
|
|
1991
|
+
var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
1992
|
+
return selector.split(",").map((shallowPart) => {
|
|
1993
|
+
if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
|
|
1994
|
+
return shallowPart.trim();
|
|
1995
|
+
}
|
|
1996
|
+
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
1997
|
+
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
1998
|
+
} else {
|
|
1999
|
+
return shallowPart.trim();
|
|
2000
|
+
}
|
|
2001
|
+
}).join(", ");
|
|
2002
|
+
};
|
|
2003
|
+
var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
2004
|
+
return processRules(cssText, (rule) => {
|
|
2005
|
+
let selector = rule.selector;
|
|
2006
|
+
let content = rule.content;
|
|
2007
|
+
if (rule.selector[0] !== "@") {
|
|
2008
|
+
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
2009
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
2010
|
+
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector);
|
|
2011
|
+
}
|
|
2012
|
+
const cssRule = {
|
|
2013
|
+
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
|
2014
|
+
content
|
|
2015
|
+
};
|
|
2016
|
+
return cssRule;
|
|
2017
|
+
});
|
|
2018
|
+
};
|
|
2019
|
+
var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
2020
|
+
cssText = insertPolyfillHostInCssText(cssText);
|
|
2021
|
+
cssText = convertColonHost(cssText);
|
|
2022
|
+
cssText = convertColonHostContext(cssText);
|
|
2023
|
+
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
2024
|
+
cssText = slotted.cssText;
|
|
2025
|
+
cssText = convertShadowDOMSelectors(cssText);
|
|
2026
|
+
if (scopeId2) {
|
|
2027
|
+
cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);
|
|
2028
|
+
}
|
|
2029
|
+
cssText = replaceShadowCssHost(cssText, hostScopeId);
|
|
2030
|
+
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
|
|
2031
|
+
return {
|
|
2032
|
+
cssText: cssText.trim(),
|
|
2033
|
+
// We need to replace the shadow CSS host string in each of these selectors since we created
|
|
2034
|
+
// them prior to the replacement happening in the components CSS text.
|
|
2035
|
+
slottedSelectors: slotted.selectors.map((ref) => ({
|
|
2036
|
+
orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
|
|
2037
|
+
updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
|
|
2038
|
+
}))
|
|
2039
|
+
};
|
|
2040
|
+
};
|
|
2041
|
+
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
2042
|
+
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
2043
|
+
};
|
|
2044
|
+
var expandPartSelectors = (cssText) => {
|
|
2045
|
+
const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
|
|
2046
|
+
return processRules(cssText, (rule) => {
|
|
2047
|
+
if (rule.selector[0] === "@") {
|
|
2048
|
+
return rule;
|
|
2049
|
+
}
|
|
2050
|
+
const selectors = rule.selector.split(",").map((sel) => {
|
|
2051
|
+
const out = [sel.trim()];
|
|
2052
|
+
let m;
|
|
2053
|
+
while ((m = partSelectorRe.exec(sel)) !== null) {
|
|
2054
|
+
const before = m[1].trimEnd();
|
|
2055
|
+
const partNames = m[2].trim().split(/\s+/);
|
|
2056
|
+
const after = m[3] || "";
|
|
2057
|
+
const partAttr = partNames.flatMap((p) => {
|
|
2058
|
+
if (!rule.selector.includes(`[part~="${p}"]`)) {
|
|
2059
|
+
return [`[part~="${p}"]`];
|
|
2060
|
+
}
|
|
2061
|
+
return [];
|
|
2062
|
+
}).join("");
|
|
2063
|
+
const expanded = `${before} ${partAttr}${after}`;
|
|
2064
|
+
if (!!partAttr && expanded !== sel.trim()) {
|
|
2065
|
+
out.push(expanded);
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
return out.join(", ");
|
|
2069
|
+
});
|
|
2070
|
+
rule.selector = selectors.join(", ");
|
|
2071
|
+
return rule;
|
|
2072
|
+
});
|
|
2073
|
+
};
|
|
2074
|
+
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
2075
|
+
const hostScopeId = scopeId2 + "-h";
|
|
2076
|
+
const slotScopeId = scopeId2 + "-s";
|
|
2077
|
+
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
2078
|
+
cssText = stripComments(cssText);
|
|
2079
|
+
const orgSelectors = [];
|
|
2080
|
+
if (commentOriginalSelector) {
|
|
2081
|
+
const processCommentedSelector = (rule) => {
|
|
2082
|
+
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
2083
|
+
const comment = `/*!@${rule.selector}*/`;
|
|
2084
|
+
orgSelectors.push({ placeholder, comment });
|
|
2085
|
+
rule.selector = placeholder + rule.selector;
|
|
2086
|
+
return rule;
|
|
2087
|
+
};
|
|
2088
|
+
cssText = processRules(cssText, (rule) => {
|
|
2089
|
+
if (rule.selector[0] !== "@") {
|
|
2090
|
+
return processCommentedSelector(rule);
|
|
2091
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
2092
|
+
rule.content = processRules(rule.content, processCommentedSelector);
|
|
2093
|
+
return rule;
|
|
2094
|
+
}
|
|
2095
|
+
return rule;
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);
|
|
2099
|
+
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
2100
|
+
if (commentOriginalSelector) {
|
|
2101
|
+
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
2102
|
+
cssText = cssText.replace(placeholder, comment);
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
2106
|
+
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + "(?=\\s*[,{]|$)", "g");
|
|
2107
|
+
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
2108
|
+
});
|
|
2109
|
+
cssText = expandPartSelectors(cssText);
|
|
2110
|
+
return cssText;
|
|
2111
|
+
};
|
|
2112
|
+
|
|
2113
|
+
// src/runtime/mode.ts
|
|
2114
|
+
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
2115
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
2116
|
+
var getMode = (ref) => {
|
|
2117
|
+
var _a;
|
|
2118
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
2119
|
+
};
|
|
2120
|
+
|
|
2121
|
+
// src/utils/remote-value.ts
|
|
2122
|
+
var RemoteValue = class _RemoteValue {
|
|
2123
|
+
/**
|
|
2124
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2125
|
+
*
|
|
2126
|
+
* @param serialized The serialized LocalValue object
|
|
2127
|
+
* @returns The original JavaScript value/object
|
|
2128
|
+
*/
|
|
2129
|
+
static fromLocalValue(serialized) {
|
|
2130
|
+
const type = serialized[TYPE_CONSTANT];
|
|
2131
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2132
|
+
switch (type) {
|
|
2133
|
+
case "string" /* String */:
|
|
2134
|
+
return value;
|
|
2135
|
+
case "boolean" /* Boolean */:
|
|
2136
|
+
return value;
|
|
2137
|
+
case "bigint" /* BigInt */:
|
|
2138
|
+
return BigInt(value);
|
|
2139
|
+
case "undefined" /* Undefined */:
|
|
2140
|
+
return void 0;
|
|
2141
|
+
case "null" /* Null */:
|
|
2142
|
+
return null;
|
|
2143
|
+
case "number" /* Number */:
|
|
2144
|
+
if (value === "NaN") return NaN;
|
|
2145
|
+
if (value === "-0") return -0;
|
|
2146
|
+
if (value === "Infinity") return Infinity;
|
|
2147
|
+
if (value === "-Infinity") return -Infinity;
|
|
2148
|
+
return value;
|
|
2149
|
+
case "array" /* Array */:
|
|
2150
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2151
|
+
case "date" /* Date */:
|
|
2152
|
+
return new Date(value);
|
|
2153
|
+
case "map" /* Map */:
|
|
2154
|
+
const map = /* @__PURE__ */ new Map();
|
|
2155
|
+
for (const [key, val] of value) {
|
|
2156
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2157
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2158
|
+
map.set(deserializedKey, deserializedValue);
|
|
2159
|
+
}
|
|
2160
|
+
return map;
|
|
2161
|
+
case "object" /* Object */:
|
|
2162
|
+
const obj = {};
|
|
2163
|
+
for (const [key, val] of value) {
|
|
2164
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2165
|
+
}
|
|
2166
|
+
return obj;
|
|
2167
|
+
case "regexp" /* RegularExpression */:
|
|
2168
|
+
const { pattern, flags } = value;
|
|
2169
|
+
return new RegExp(pattern, flags);
|
|
2170
|
+
case "set" /* Set */:
|
|
2171
|
+
const set = /* @__PURE__ */ new Set();
|
|
2172
|
+
for (const item of value) {
|
|
2173
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
2174
|
+
}
|
|
2175
|
+
return set;
|
|
2176
|
+
case "symbol" /* Symbol */:
|
|
2177
|
+
return Symbol(value);
|
|
2178
|
+
default:
|
|
2179
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
2184
|
+
*
|
|
2185
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
2186
|
+
* @returns Array of deserialized JavaScript values
|
|
2187
|
+
*/
|
|
2188
|
+
static fromLocalValueArray(serializedValues) {
|
|
2189
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2193
|
+
*
|
|
2194
|
+
* @param obj Object to verify
|
|
2195
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
2196
|
+
*/
|
|
2197
|
+
static isLocalValueObject(obj) {
|
|
2198
|
+
if (typeof obj !== "object" || obj === null) {
|
|
2199
|
+
return false;
|
|
2200
|
+
}
|
|
2201
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2202
|
+
return false;
|
|
2203
|
+
}
|
|
2204
|
+
const type = obj[TYPE_CONSTANT];
|
|
2205
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2206
|
+
if (!hasTypeProperty) {
|
|
2207
|
+
return false;
|
|
2208
|
+
}
|
|
2209
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2210
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2211
|
+
}
|
|
2212
|
+
return true;
|
|
2213
|
+
}
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
// src/utils/serialize.ts
|
|
2217
|
+
function deserializeProperty(value) {
|
|
2218
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2219
|
+
return value;
|
|
2220
|
+
}
|
|
2221
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
// src/runtime/parse-property-value.ts
|
|
2225
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
2226
|
+
if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
2227
|
+
propValue = deserializeProperty(propValue);
|
|
2228
|
+
return propValue;
|
|
2229
|
+
}
|
|
2230
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
2231
|
+
if (BUILD.propBoolean && propType & 4 /* Boolean */) {
|
|
2232
|
+
if (BUILD.formAssociated && isFormAssociated && typeof propValue === "string") {
|
|
2233
|
+
return propValue === "" || !!propValue;
|
|
2234
|
+
} else {
|
|
2235
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
if (BUILD.propNumber && propType & 2 /* Number */) {
|
|
2239
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
2240
|
+
}
|
|
2241
|
+
if (BUILD.propString && propType & 1 /* String */) {
|
|
2242
|
+
return String(propValue);
|
|
2243
|
+
}
|
|
2244
|
+
return propValue;
|
|
2245
|
+
}
|
|
2246
|
+
return propValue;
|
|
2247
|
+
};
|
|
2248
|
+
var getElement = (ref) => {
|
|
2249
|
+
var _a;
|
|
2250
|
+
return BUILD.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;
|
|
2251
|
+
};
|
|
2252
|
+
|
|
2253
|
+
// src/runtime/event-emitter.ts
|
|
2254
|
+
var createEvent = (ref, name, flags) => {
|
|
2255
|
+
const elm = getElement(ref);
|
|
2256
|
+
return {
|
|
2257
|
+
emit: (detail) => {
|
|
2258
|
+
if (BUILD.isDev && !elm.isConnected) {
|
|
2259
|
+
consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
|
|
2260
|
+
}
|
|
2261
|
+
return emitEvent(elm, name, {
|
|
2262
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
2263
|
+
composed: !!(flags & 2 /* Composed */),
|
|
2264
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
2265
|
+
detail
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
var emitEvent = (elm, name, opts) => {
|
|
2271
|
+
const ev = plt.ce(name, opts);
|
|
2272
|
+
elm.dispatchEvent(ev);
|
|
2273
|
+
return ev;
|
|
2274
|
+
};
|
|
2275
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
2276
|
+
if (oldValue === newValue) {
|
|
2277
|
+
return;
|
|
2278
|
+
}
|
|
2279
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
2280
|
+
let ln = memberName.toLowerCase();
|
|
2281
|
+
if (BUILD.vdomClass && memberName === "class") {
|
|
2282
|
+
const classList = elm.classList;
|
|
2283
|
+
const oldClasses = parseClassList(oldValue);
|
|
2284
|
+
let newClasses = parseClassList(newValue);
|
|
2285
|
+
if (BUILD.hydrateClientSide && (elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
2286
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
2287
|
+
newClasses.push(scopeId2);
|
|
2288
|
+
oldClasses.forEach((c) => {
|
|
2289
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
2290
|
+
});
|
|
2291
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
2292
|
+
classList.add(...newClasses);
|
|
2293
|
+
} else {
|
|
2294
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
2295
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
2296
|
+
}
|
|
2297
|
+
} else if (BUILD.vdomStyle && memberName === "style") {
|
|
2298
|
+
if (BUILD.updatable) {
|
|
2299
|
+
for (const prop in oldValue) {
|
|
2300
|
+
if (!newValue || newValue[prop] == null) {
|
|
2301
|
+
if (!BUILD.hydrateServerSide && prop.includes("-")) {
|
|
2302
|
+
elm.style.removeProperty(prop);
|
|
2303
|
+
} else {
|
|
2304
|
+
elm.style[prop] = "";
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
for (const prop in newValue) {
|
|
2310
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
2311
|
+
if (!BUILD.hydrateServerSide && prop.includes("-")) {
|
|
2312
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
2313
|
+
} else {
|
|
2314
|
+
elm.style[prop] = newValue[prop];
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
} else if (BUILD.vdomKey && memberName === "key") {
|
|
2319
|
+
} else if (BUILD.vdomRef && memberName === "ref") {
|
|
2320
|
+
if (newValue) {
|
|
2321
|
+
queueRefAttachment(newValue, elm);
|
|
2322
|
+
}
|
|
2323
|
+
} else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
2324
|
+
if (memberName[2] === "-") {
|
|
2325
|
+
memberName = memberName.slice(3);
|
|
2326
|
+
} else if (isMemberInElement(win, ln)) {
|
|
2327
|
+
memberName = ln.slice(2);
|
|
2328
|
+
} else {
|
|
2329
|
+
memberName = ln[2] + memberName.slice(3);
|
|
2330
|
+
}
|
|
2331
|
+
if (oldValue || newValue) {
|
|
2332
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
2333
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
2334
|
+
if (oldValue) {
|
|
2335
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
2336
|
+
}
|
|
2337
|
+
if (newValue) {
|
|
2338
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
} else if (BUILD.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
2342
|
+
const propName = memberName.slice(5);
|
|
2343
|
+
let attrName;
|
|
2344
|
+
if (BUILD.member) {
|
|
2345
|
+
const hostRef = getHostRef(elm);
|
|
2346
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
2347
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
2348
|
+
if (memberMeta && memberMeta[1]) {
|
|
2349
|
+
attrName = memberMeta[1];
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
if (!attrName) {
|
|
2354
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2355
|
+
}
|
|
2356
|
+
if (newValue == null || newValue === false) {
|
|
2357
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
2358
|
+
elm.removeAttribute(attrName);
|
|
2359
|
+
}
|
|
2360
|
+
} else {
|
|
2361
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
2362
|
+
}
|
|
2363
|
+
return;
|
|
2364
|
+
} else if (BUILD.vdomPropOrAttr && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
2365
|
+
const propName = memberName.slice(5);
|
|
2366
|
+
try {
|
|
2367
|
+
elm[propName] = newValue;
|
|
2368
|
+
} catch (e) {
|
|
2369
|
+
}
|
|
2370
|
+
return;
|
|
2371
|
+
} else if (BUILD.vdomPropOrAttr) {
|
|
2372
|
+
const isComplex = isComplexType(newValue);
|
|
2373
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
2374
|
+
try {
|
|
2375
|
+
if (!elm.tagName.includes("-")) {
|
|
2376
|
+
const n = newValue == null ? "" : newValue;
|
|
2377
|
+
if (memberName === "list") {
|
|
2378
|
+
isProp = false;
|
|
2379
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
2380
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
2381
|
+
elm[memberName] = n;
|
|
2382
|
+
} else {
|
|
2383
|
+
elm.setAttribute(memberName, n);
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
} else if (elm[memberName] !== newValue) {
|
|
2387
|
+
elm[memberName] = newValue;
|
|
2388
|
+
}
|
|
2389
|
+
} catch (e) {
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
let xlink = false;
|
|
2393
|
+
if (BUILD.vdomXlink) {
|
|
2394
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
2395
|
+
memberName = ln;
|
|
2396
|
+
xlink = true;
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
if (newValue == null || newValue === false) {
|
|
2400
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
2401
|
+
if (BUILD.vdomXlink && xlink) {
|
|
2402
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
2403
|
+
} else {
|
|
2404
|
+
elm.removeAttribute(memberName);
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
2408
|
+
newValue = newValue === true ? "" : newValue;
|
|
2409
|
+
if (BUILD.vdomXlink && xlink) {
|
|
2410
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
2411
|
+
} else {
|
|
2412
|
+
elm.setAttribute(memberName, newValue);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
};
|
|
2417
|
+
var parseClassListRegex = /\s/;
|
|
2418
|
+
var parseClassList = (value) => {
|
|
2419
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
2420
|
+
value = value.baseVal;
|
|
2421
|
+
}
|
|
2422
|
+
if (!value || typeof value !== "string") {
|
|
2423
|
+
return [];
|
|
2424
|
+
}
|
|
2425
|
+
return value.split(parseClassListRegex);
|
|
2426
|
+
};
|
|
2427
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
2428
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
2429
|
+
|
|
2430
|
+
// src/runtime/vdom/update-element.ts
|
|
2431
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
2432
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
2433
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
2434
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
2435
|
+
if (BUILD.updatable) {
|
|
2436
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
2437
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
2438
|
+
setAccessor(
|
|
2439
|
+
elm,
|
|
2440
|
+
memberName,
|
|
2441
|
+
oldVnodeAttrs[memberName],
|
|
2442
|
+
void 0,
|
|
2443
|
+
isSvgMode2,
|
|
2444
|
+
newVnode.$flags$,
|
|
2445
|
+
isInitialRender
|
|
2446
|
+
);
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
2451
|
+
setAccessor(
|
|
2452
|
+
elm,
|
|
2453
|
+
memberName,
|
|
2454
|
+
oldVnodeAttrs[memberName],
|
|
2455
|
+
newVnodeAttrs[memberName],
|
|
2456
|
+
isSvgMode2,
|
|
2457
|
+
newVnode.$flags$,
|
|
2458
|
+
isInitialRender
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
};
|
|
2462
|
+
function sortedAttrNames(attrNames) {
|
|
2463
|
+
return attrNames.includes("ref") ? (
|
|
2464
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
2465
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
2466
|
+
) : (
|
|
2467
|
+
// no need to sort, return the original array
|
|
2468
|
+
attrNames
|
|
2469
|
+
);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
// src/runtime/vdom/vdom-render.ts
|
|
2473
|
+
var scopeId;
|
|
2474
|
+
var contentRef;
|
|
2475
|
+
var hostTagName;
|
|
2476
|
+
var useNativeShadowDom = false;
|
|
2477
|
+
var checkSlotFallbackVisibility = false;
|
|
2478
|
+
var checkSlotRelocate = false;
|
|
2479
|
+
var isSvgMode = false;
|
|
2480
|
+
var refCallbacksToRemove = [];
|
|
2481
|
+
var refCallbacksToAttach = [];
|
|
2482
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2483
|
+
var _a;
|
|
2484
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
2485
|
+
let i2 = 0;
|
|
2486
|
+
let elm;
|
|
2487
|
+
let childNode;
|
|
2488
|
+
let oldVNode;
|
|
2489
|
+
if (BUILD.slotRelocation && !useNativeShadowDom) {
|
|
2490
|
+
checkSlotRelocate = true;
|
|
2491
|
+
if (newVNode2.$tag$ === "slot") {
|
|
2492
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
2493
|
+
// slot element has fallback content
|
|
2494
|
+
// still create an element that "mocks" the slot element
|
|
2495
|
+
2 /* isSlotFallback */
|
|
2496
|
+
) : (
|
|
2497
|
+
// slot element does not have fallback content
|
|
2498
|
+
// create an html comment we'll use to always reference
|
|
2499
|
+
// where actual slot content should sit next to
|
|
2500
|
+
1 /* isSlotReference */
|
|
2501
|
+
);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
if (BUILD.isDev && newVNode2.$elm$) {
|
|
2505
|
+
consoleDevError(
|
|
2506
|
+
`The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
|
|
2507
|
+
);
|
|
2508
|
+
}
|
|
2509
|
+
if (BUILD.vdomText && newVNode2.$text$ != null) {
|
|
2510
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2511
|
+
} else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2512
|
+
elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
2513
|
+
if (BUILD.vdomAttribute) {
|
|
2514
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
2515
|
+
}
|
|
2516
|
+
} else {
|
|
2517
|
+
if (BUILD.svg && !isSvgMode) {
|
|
2518
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
2519
|
+
}
|
|
2520
|
+
if (!win.document) {
|
|
2521
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
2522
|
+
}
|
|
2523
|
+
elm = newVNode2.$elm$ = BUILD.svg ? win.document.createElementNS(
|
|
2524
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
2525
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
2526
|
+
) : win.document.createElement(
|
|
2527
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
2528
|
+
);
|
|
2529
|
+
if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
2530
|
+
isSvgMode = false;
|
|
2531
|
+
}
|
|
2532
|
+
if (BUILD.vdomAttribute) {
|
|
2533
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
2534
|
+
}
|
|
2535
|
+
if ((BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
2536
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
2537
|
+
}
|
|
2538
|
+
if (newVNode2.$children$) {
|
|
2539
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
2540
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
2541
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
2542
|
+
if (childNode) {
|
|
2543
|
+
appendTarget.appendChild(childNode);
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
if (BUILD.svg) {
|
|
2548
|
+
if (newVNode2.$tag$ === "svg") {
|
|
2549
|
+
isSvgMode = false;
|
|
2550
|
+
} else if (elm.tagName === "foreignObject") {
|
|
2551
|
+
isSvgMode = true;
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
elm["s-hn"] = hostTagName;
|
|
2556
|
+
if (BUILD.slotRelocation) {
|
|
2557
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
2558
|
+
elm["s-sr"] = true;
|
|
2559
|
+
elm["s-cr"] = contentRef;
|
|
2560
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2561
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2562
|
+
patchSlotNode(elm);
|
|
2563
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2564
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
2565
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
2566
|
+
}
|
|
2567
|
+
if (BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) {
|
|
2568
|
+
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
return elm;
|
|
2573
|
+
};
|
|
2574
|
+
var relocateToHostRoot = (parentElm) => {
|
|
2575
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2576
|
+
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
2577
|
+
if (host != null) {
|
|
2578
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
2579
|
+
(ref) => ref["s-cr"]
|
|
2580
|
+
);
|
|
2581
|
+
const childNodeArray = Array.from(
|
|
2582
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
2583
|
+
);
|
|
2584
|
+
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
2585
|
+
if (childNode["s-sh"] != null) {
|
|
2586
|
+
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
2587
|
+
childNode["s-sh"] = void 0;
|
|
2588
|
+
checkSlotRelocate = true;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
2593
|
+
};
|
|
2594
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
2595
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2596
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
2597
|
+
if (parentElm["s-sr"]) {
|
|
2598
|
+
let node = parentElm;
|
|
2599
|
+
while (node = node.nextSibling) {
|
|
2600
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
2601
|
+
oldSlotChildNodes.push(node);
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
2606
|
+
const childNode = oldSlotChildNodes[i2];
|
|
2607
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
2608
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
2609
|
+
childNode["s-ol"].remove();
|
|
2610
|
+
childNode["s-ol"] = void 0;
|
|
2611
|
+
childNode["s-sh"] = void 0;
|
|
2612
|
+
checkSlotRelocate = true;
|
|
2613
|
+
}
|
|
2614
|
+
if (recursive) {
|
|
2615
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
2619
|
+
};
|
|
2620
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
2621
|
+
let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
2622
|
+
let childNode;
|
|
2623
|
+
if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
2624
|
+
containerElm = containerElm.shadowRoot;
|
|
2625
|
+
}
|
|
2626
|
+
if (parentVNode.$tag$ === "template") {
|
|
2627
|
+
containerElm = containerElm.content;
|
|
2628
|
+
}
|
|
2629
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
2630
|
+
if (vnodes[startIdx]) {
|
|
2631
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
2632
|
+
if (childNode) {
|
|
2633
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
2634
|
+
insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
};
|
|
2639
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
2640
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
2641
|
+
const vnode = vnodes[index];
|
|
2642
|
+
if (vnode) {
|
|
2643
|
+
const elm = vnode.$elm$;
|
|
2644
|
+
nullifyVNodeRefs(vnode);
|
|
2645
|
+
if (elm) {
|
|
2646
|
+
if (BUILD.slotRelocation) {
|
|
2647
|
+
checkSlotFallbackVisibility = true;
|
|
2648
|
+
if (elm["s-ol"]) {
|
|
2649
|
+
elm["s-ol"].remove();
|
|
2650
|
+
} else {
|
|
2651
|
+
putBackInOriginalLocation(elm, true);
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
elm.remove();
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
};
|
|
2659
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
2660
|
+
let oldStartIdx = 0;
|
|
2661
|
+
let newStartIdx = 0;
|
|
2662
|
+
let idxInOld = 0;
|
|
2663
|
+
let i2 = 0;
|
|
2664
|
+
let oldEndIdx = oldCh.length - 1;
|
|
2665
|
+
let oldStartVnode = oldCh[0];
|
|
2666
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
2667
|
+
let newEndIdx = newCh.length - 1;
|
|
2668
|
+
let newStartVnode = newCh[0];
|
|
2669
|
+
let newEndVnode = newCh[newEndIdx];
|
|
2670
|
+
let node;
|
|
2671
|
+
let elmToMove;
|
|
2672
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
2673
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
2674
|
+
if (oldStartVnode == null) {
|
|
2675
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
2676
|
+
} else if (oldEndVnode == null) {
|
|
2677
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
2678
|
+
} else if (newStartVnode == null) {
|
|
2679
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2680
|
+
} else if (newEndVnode == null) {
|
|
2681
|
+
newEndVnode = newCh[--newEndIdx];
|
|
2682
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
2683
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
2684
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
2685
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2686
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
2687
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
2688
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
2689
|
+
newEndVnode = newCh[--newEndIdx];
|
|
2690
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
2691
|
+
if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
2692
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
2693
|
+
}
|
|
2694
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
2695
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
2696
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
2697
|
+
newEndVnode = newCh[--newEndIdx];
|
|
2698
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
2699
|
+
if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
2700
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
2701
|
+
}
|
|
2702
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
2703
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
2704
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
2705
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2706
|
+
} else {
|
|
2707
|
+
idxInOld = -1;
|
|
2708
|
+
if (BUILD.vdomKey) {
|
|
2709
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
2710
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
2711
|
+
idxInOld = i2;
|
|
2712
|
+
break;
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
if (BUILD.vdomKey && idxInOld >= 0) {
|
|
2717
|
+
elmToMove = oldCh[idxInOld];
|
|
2718
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
2719
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
2720
|
+
} else {
|
|
2721
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
2722
|
+
oldCh[idxInOld] = void 0;
|
|
2723
|
+
node = elmToMove.$elm$;
|
|
2724
|
+
}
|
|
2725
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2726
|
+
} else {
|
|
2727
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
2728
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2729
|
+
}
|
|
2730
|
+
if (node) {
|
|
2731
|
+
if (BUILD.slotRelocation) {
|
|
2732
|
+
insertBefore(
|
|
2733
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
2734
|
+
node,
|
|
2735
|
+
referenceNode(oldStartVnode.$elm$)
|
|
2736
|
+
);
|
|
2737
|
+
} else {
|
|
2738
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
if (oldStartIdx > oldEndIdx) {
|
|
2744
|
+
addVnodes(
|
|
2745
|
+
parentElm,
|
|
2746
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
2747
|
+
newVNode2,
|
|
2748
|
+
newCh,
|
|
2749
|
+
newStartIdx,
|
|
2750
|
+
newEndIdx
|
|
2751
|
+
);
|
|
2752
|
+
} else if (BUILD.updatable && newStartIdx > newEndIdx) {
|
|
2753
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
2754
|
+
}
|
|
2755
|
+
};
|
|
2756
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
2757
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
2758
|
+
if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
|
|
2759
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
2760
|
+
}
|
|
2761
|
+
if (BUILD.vdomKey && !isInitialRender) {
|
|
2762
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
2763
|
+
}
|
|
2764
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
2765
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
2766
|
+
}
|
|
2767
|
+
return true;
|
|
2768
|
+
}
|
|
2769
|
+
return false;
|
|
2770
|
+
};
|
|
2771
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
2772
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
2773
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
2774
|
+
const oldChildren = oldVNode.$children$;
|
|
2775
|
+
const newChildren = newVNode2.$children$;
|
|
2776
|
+
const tag = newVNode2.$tag$;
|
|
2777
|
+
const text = newVNode2.$text$;
|
|
2778
|
+
let defaultHolder;
|
|
2779
|
+
if (!BUILD.vdomText || text == null) {
|
|
2780
|
+
if (BUILD.svg) {
|
|
2781
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
2782
|
+
}
|
|
2783
|
+
if (BUILD.vdomAttribute || BUILD.reflect) {
|
|
2784
|
+
if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
|
|
2785
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
2786
|
+
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
2787
|
+
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
2791
|
+
}
|
|
2792
|
+
if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
|
|
2793
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
2794
|
+
} else if (newChildren !== null) {
|
|
2795
|
+
if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
|
|
2796
|
+
elm.textContent = "";
|
|
2797
|
+
}
|
|
2798
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
2799
|
+
} else if (
|
|
2800
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
2801
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2802
|
+
) {
|
|
2803
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2804
|
+
} else if (BUILD.hydrateClientSide && isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2805
|
+
newVNode2.$children$ = oldChildren;
|
|
2806
|
+
}
|
|
2807
|
+
if (BUILD.svg && isSvgMode && tag === "svg") {
|
|
2808
|
+
isSvgMode = false;
|
|
2809
|
+
}
|
|
2810
|
+
} else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
|
|
2811
|
+
defaultHolder.parentNode.textContent = text;
|
|
2812
|
+
} else if (BUILD.vdomText && oldVNode.$text$ !== text) {
|
|
2813
|
+
elm.data = text;
|
|
2814
|
+
}
|
|
2815
|
+
};
|
|
2816
|
+
var relocateNodes = [];
|
|
2817
|
+
var markSlotContentForRelocation = (elm) => {
|
|
2818
|
+
let node;
|
|
2819
|
+
let hostContentNodes;
|
|
2820
|
+
let j;
|
|
2821
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
2822
|
+
for (const childNode of children) {
|
|
2823
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
2824
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
2825
|
+
const slotName = childNode["s-sn"];
|
|
2826
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2827
|
+
node = hostContentNodes[j];
|
|
2828
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
2829
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
2830
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2831
|
+
checkSlotFallbackVisibility = true;
|
|
2832
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
2833
|
+
if (relocateNodeData) {
|
|
2834
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
2835
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
2836
|
+
} else {
|
|
2837
|
+
node["s-sh"] = childNode["s-hn"];
|
|
2838
|
+
relocateNodes.push({
|
|
2839
|
+
$slotRefNode$: childNode,
|
|
2840
|
+
$nodeToRelocate$: node
|
|
2841
|
+
});
|
|
2842
|
+
}
|
|
2843
|
+
if (node["s-sr"]) {
|
|
2844
|
+
relocateNodes.map((relocateNode) => {
|
|
2845
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
2846
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2847
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
2848
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
});
|
|
2852
|
+
}
|
|
2853
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
2854
|
+
relocateNodes.push({
|
|
2855
|
+
$nodeToRelocate$: node
|
|
2856
|
+
});
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
2862
|
+
markSlotContentForRelocation(childNode);
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
2867
|
+
if (BUILD.vdomRef) {
|
|
2868
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
2869
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
2870
|
+
}
|
|
2871
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
2872
|
+
}
|
|
2873
|
+
};
|
|
2874
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
2875
|
+
if (BUILD.vdomRef) {
|
|
2876
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
var flushQueuedRefCallbacks = () => {
|
|
2880
|
+
if (BUILD.vdomRef) {
|
|
2881
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
2882
|
+
refCallbacksToRemove.length = 0;
|
|
2883
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
2884
|
+
refCallbacksToAttach.length = 0;
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2888
|
+
if (BUILD.slotRelocation) {
|
|
2889
|
+
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
2890
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2891
|
+
} else if (typeof newNode["s-sn"] === "string") {
|
|
2892
|
+
if (BUILD.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
2893
|
+
patchParentNode(newNode);
|
|
2894
|
+
}
|
|
2895
|
+
parent.insertBefore(newNode, reference);
|
|
2896
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
2897
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
2898
|
+
return newNode;
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
if (parent.__insertBefore) {
|
|
2902
|
+
return parent.__insertBefore(newNode, reference);
|
|
2903
|
+
} else {
|
|
2904
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2907
|
+
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
2908
|
+
var _a, _b;
|
|
2909
|
+
let scopeId2;
|
|
2910
|
+
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
2911
|
+
const scopeName = slotNode["s-sn"];
|
|
2912
|
+
const hostName = slotNode["s-hn"];
|
|
2913
|
+
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
2914
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
2915
|
+
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
2916
|
+
let found = false;
|
|
2917
|
+
while (child) {
|
|
2918
|
+
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
2919
|
+
found = true;
|
|
2920
|
+
break;
|
|
2921
|
+
}
|
|
2922
|
+
child = child.nextSibling;
|
|
2923
|
+
}
|
|
2924
|
+
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
2929
|
+
var _a, _b, _c, _d, _e;
|
|
2930
|
+
const hostElm = hostRef.$hostElement$;
|
|
2931
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
2932
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2933
|
+
const isHostElement = isHost(renderFnResults);
|
|
2934
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
2935
|
+
hostTagName = hostElm.tagName;
|
|
2936
|
+
if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
|
|
2937
|
+
throw new Error(`The <Host> must be the single root component.
|
|
2938
|
+
Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
|
|
2939
|
+
|
|
2940
|
+
The render() function should look like this instead:
|
|
2941
|
+
|
|
2942
|
+
render() {
|
|
2943
|
+
// Do not return an array
|
|
2944
|
+
return (
|
|
2945
|
+
<Host>{content}</Host>
|
|
2946
|
+
);
|
|
2947
|
+
}
|
|
2948
|
+
`);
|
|
2949
|
+
}
|
|
2950
|
+
if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
2951
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
2952
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
2953
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName)) {
|
|
2954
|
+
rootVnode.$attrs$[attribute] = hostRef.$serializerValues$.get(propName);
|
|
2955
|
+
} else {
|
|
2956
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
2957
|
+
}
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2960
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
2961
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
2962
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
2963
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
rootVnode.$tag$ = null;
|
|
2968
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
2969
|
+
hostRef.$vnode$ = rootVnode;
|
|
2970
|
+
rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
|
|
2971
|
+
if (BUILD.scoped || BUILD.shadowDom) {
|
|
2972
|
+
scopeId = hostElm["s-sc"];
|
|
2973
|
+
}
|
|
2974
|
+
useNativeShadowDom = supportsShadow && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
2975
|
+
if (BUILD.slotRelocation) {
|
|
2976
|
+
contentRef = hostElm["s-cr"];
|
|
2977
|
+
checkSlotFallbackVisibility = false;
|
|
2978
|
+
}
|
|
2979
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2980
|
+
if (BUILD.slotRelocation) {
|
|
2981
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2982
|
+
if (checkSlotRelocate) {
|
|
2983
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
2984
|
+
for (const relocateData of relocateNodes) {
|
|
2985
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2986
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
2987
|
+
const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : win.document.createTextNode("");
|
|
2988
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2989
|
+
insertBefore(
|
|
2990
|
+
nodeToRelocate.parentNode,
|
|
2991
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
2992
|
+
nodeToRelocate,
|
|
2993
|
+
isInitialLoad
|
|
2994
|
+
);
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
for (const relocateData of relocateNodes) {
|
|
2998
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2999
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
3000
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
3001
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
3002
|
+
}
|
|
3003
|
+
if (slotRefNode) {
|
|
3004
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
3005
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
3006
|
+
if (!BUILD.hydrateServerSide && insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
3007
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
3008
|
+
while (orgLocationNode) {
|
|
3009
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
3010
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
3011
|
+
refNode = refNode.nextSibling;
|
|
3012
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
3013
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
3014
|
+
}
|
|
3015
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
3016
|
+
insertBeforeNode = refNode;
|
|
3017
|
+
break;
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
3024
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
3025
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
3026
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
3027
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
3028
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
3029
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
3030
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
3031
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
3032
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
3033
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
3034
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
3035
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
3036
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
3037
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
3038
|
+
}
|
|
3039
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
3040
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
3045
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
3046
|
+
nodeToRelocate.hidden = true;
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
if (checkSlotFallbackVisibility) {
|
|
3051
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
3052
|
+
}
|
|
3053
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
3054
|
+
relocateNodes.length = 0;
|
|
3055
|
+
}
|
|
3056
|
+
if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
3057
|
+
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
3058
|
+
for (const childNode of children) {
|
|
3059
|
+
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
3060
|
+
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
3061
|
+
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
3062
|
+
}
|
|
3063
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
3064
|
+
childNode.hidden = true;
|
|
3065
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
3066
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
3067
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
3068
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
3069
|
+
childNode.parentNode.removeChild(childNode);
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
contentRef = void 0;
|
|
3075
|
+
flushQueuedRefCallbacks();
|
|
3076
|
+
};
|
|
3077
|
+
var slotReferenceDebugNode = (slotVNode) => {
|
|
3078
|
+
var _a;
|
|
3079
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
3080
|
+
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
3081
|
+
);
|
|
3082
|
+
};
|
|
3083
|
+
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
3084
|
+
var _a;
|
|
3085
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
3086
|
+
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
3087
|
+
);
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3090
|
+
// src/runtime/update-component.ts
|
|
3091
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
3092
|
+
if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
3093
|
+
const index = ancestorComponent["s-p"].push(
|
|
3094
|
+
new Promise(
|
|
3095
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
3096
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
3097
|
+
r();
|
|
3098
|
+
}
|
|
3099
|
+
)
|
|
3100
|
+
);
|
|
3101
|
+
}
|
|
3102
|
+
};
|
|
3103
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
3104
|
+
if (BUILD.taskQueue && BUILD.updatable) {
|
|
3105
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
3106
|
+
}
|
|
3107
|
+
if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
3108
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
3109
|
+
return;
|
|
3110
|
+
}
|
|
3111
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
3112
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
3113
|
+
if (isInitialLoad) {
|
|
3114
|
+
queueMicrotask(() => {
|
|
3115
|
+
dispatch();
|
|
3116
|
+
});
|
|
3117
|
+
return;
|
|
3118
|
+
}
|
|
3119
|
+
return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
|
|
3120
|
+
};
|
|
3121
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
3122
|
+
const elm = hostRef.$hostElement$;
|
|
3123
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
3124
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3125
|
+
if (!instance) {
|
|
3126
|
+
throw new Error(
|
|
3127
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
3128
|
+
);
|
|
3129
|
+
}
|
|
3130
|
+
let maybePromise;
|
|
3131
|
+
if (isInitialLoad) {
|
|
3132
|
+
if (BUILD.lazyLoad) {
|
|
3133
|
+
if (BUILD.slotRelocation && hostRef.$deferredConnectedCallback$) {
|
|
3134
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
3135
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
3136
|
+
}
|
|
3137
|
+
if (BUILD.hostListener) {
|
|
3138
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
3139
|
+
if (hostRef.$queuedListeners$) {
|
|
3140
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
3141
|
+
hostRef.$queuedListeners$ = void 0;
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
3145
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
emitLifecycleEvent(elm, "componentWillLoad");
|
|
3149
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
3150
|
+
} else {
|
|
3151
|
+
emitLifecycleEvent(elm, "componentWillUpdate");
|
|
3152
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
3153
|
+
}
|
|
3154
|
+
emitLifecycleEvent(elm, "componentWillRender");
|
|
3155
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
3156
|
+
endSchedule();
|
|
3157
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
3158
|
+
};
|
|
3159
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
3160
|
+
console.error(err);
|
|
3161
|
+
fn();
|
|
3162
|
+
}) : fn();
|
|
3163
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
3164
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
3165
|
+
var _a;
|
|
3166
|
+
const elm = hostRef.$hostElement$;
|
|
3167
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
3168
|
+
const rc = elm["s-rc"];
|
|
3169
|
+
if (BUILD.style && isInitialLoad) {
|
|
3170
|
+
attachStyles(hostRef);
|
|
3171
|
+
}
|
|
3172
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
3173
|
+
if (BUILD.isDev) {
|
|
3174
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
3175
|
+
}
|
|
3176
|
+
if (BUILD.hydrateServerSide) {
|
|
3177
|
+
await callRender(hostRef, instance, elm, isInitialLoad);
|
|
3178
|
+
} else {
|
|
3179
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
3180
|
+
}
|
|
3181
|
+
if (BUILD.isDev) {
|
|
3182
|
+
hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
|
|
3183
|
+
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
3184
|
+
}
|
|
3185
|
+
if (BUILD.hydrateServerSide) {
|
|
3186
|
+
try {
|
|
3187
|
+
serverSideConnected(elm);
|
|
3188
|
+
if (isInitialLoad) {
|
|
3189
|
+
if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3190
|
+
elm["s-en"] = "";
|
|
3191
|
+
} else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3192
|
+
elm["s-en"] = "c";
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
} catch (e) {
|
|
3196
|
+
consoleError(e, elm);
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
if (BUILD.asyncLoading && rc) {
|
|
3200
|
+
rc.map((cb) => cb());
|
|
3201
|
+
elm["s-rc"] = void 0;
|
|
3202
|
+
}
|
|
3203
|
+
endRender();
|
|
3204
|
+
endUpdate();
|
|
3205
|
+
if (BUILD.asyncLoading) {
|
|
3206
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
3207
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
|
3208
|
+
if (childrenPromises.length === 0) {
|
|
3209
|
+
postUpdate();
|
|
3210
|
+
} else {
|
|
3211
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
3212
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
3213
|
+
childrenPromises.length = 0;
|
|
3214
|
+
}
|
|
3215
|
+
} else {
|
|
3216
|
+
postUpdateComponent(hostRef);
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3219
|
+
var renderingRef = null;
|
|
3220
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
3221
|
+
const allRenderFn = BUILD.allRenderFn ? true : false;
|
|
3222
|
+
const lazyLoad = BUILD.lazyLoad ? true : false;
|
|
3223
|
+
const taskQueue = BUILD.taskQueue ? true : false;
|
|
3224
|
+
const updatable = BUILD.updatable ? true : false;
|
|
3225
|
+
try {
|
|
3226
|
+
renderingRef = instance;
|
|
3227
|
+
instance = allRenderFn ? instance.render() : instance.render && instance.render();
|
|
3228
|
+
if (updatable && taskQueue) {
|
|
3229
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
3230
|
+
}
|
|
3231
|
+
if (updatable || lazyLoad) {
|
|
3232
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
3233
|
+
}
|
|
3234
|
+
if (BUILD.hasRenderFn || BUILD.reflect) {
|
|
3235
|
+
if (BUILD.vdomRender || BUILD.reflect) {
|
|
3236
|
+
if (BUILD.hydrateServerSide) {
|
|
3237
|
+
return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
3238
|
+
} else {
|
|
3239
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
3240
|
+
}
|
|
3241
|
+
} else {
|
|
3242
|
+
const shadowRoot = elm.shadowRoot;
|
|
3243
|
+
if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3244
|
+
shadowRoot.textContent = instance;
|
|
3245
|
+
} else {
|
|
3246
|
+
elm.textContent = instance;
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
} catch (e) {
|
|
3251
|
+
consoleError(e, hostRef.$hostElement$);
|
|
3252
|
+
}
|
|
3253
|
+
renderingRef = null;
|
|
3254
|
+
return null;
|
|
3255
|
+
};
|
|
3256
|
+
var getRenderingRef = () => renderingRef;
|
|
3257
|
+
var postUpdateComponent = (hostRef) => {
|
|
3258
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
3259
|
+
const elm = hostRef.$hostElement$;
|
|
3260
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
|
3261
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3262
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
3263
|
+
if (BUILD.isDev) {
|
|
3264
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
3265
|
+
}
|
|
3266
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
3267
|
+
if (BUILD.isDev) {
|
|
3268
|
+
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
3269
|
+
}
|
|
3270
|
+
emitLifecycleEvent(elm, "componentDidRender");
|
|
3271
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
3272
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
3273
|
+
if (BUILD.asyncLoading && BUILD.cssAnnotations) {
|
|
3274
|
+
addHydratedFlag(elm);
|
|
3275
|
+
}
|
|
3276
|
+
if (BUILD.isDev) {
|
|
3277
|
+
hostRef.$flags$ |= 2048 /* devOnDidLoad */;
|
|
3278
|
+
}
|
|
3279
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
3280
|
+
if (BUILD.isDev) {
|
|
3281
|
+
hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
|
|
3282
|
+
}
|
|
3283
|
+
emitLifecycleEvent(elm, "componentDidLoad");
|
|
3284
|
+
endPostUpdate();
|
|
3285
|
+
if (BUILD.asyncLoading) {
|
|
3286
|
+
hostRef.$onReadyResolve$(elm);
|
|
3287
|
+
if (!ancestorComponent) {
|
|
3288
|
+
appDidLoad(tagName);
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
} else {
|
|
3292
|
+
if (BUILD.isDev) {
|
|
3293
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
3294
|
+
}
|
|
3295
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
3296
|
+
if (BUILD.isDev) {
|
|
3297
|
+
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
3298
|
+
}
|
|
3299
|
+
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
3300
|
+
endPostUpdate();
|
|
3301
|
+
}
|
|
3302
|
+
if (BUILD.method && BUILD.lazyLoad) {
|
|
3303
|
+
hostRef.$onInstanceResolve$(elm);
|
|
3304
|
+
}
|
|
3305
|
+
if (BUILD.asyncLoading) {
|
|
3306
|
+
if (hostRef.$onRenderResolve$) {
|
|
3307
|
+
hostRef.$onRenderResolve$();
|
|
3308
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
3309
|
+
}
|
|
3310
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
3311
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
|
3312
|
+
}
|
|
3313
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
3314
|
+
}
|
|
3315
|
+
};
|
|
3316
|
+
var forceUpdate = (ref) => {
|
|
3317
|
+
var _a;
|
|
3318
|
+
if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
|
|
3319
|
+
const hostRef = getHostRef(ref);
|
|
3320
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
3321
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
3322
|
+
scheduleUpdate(hostRef, false);
|
|
3323
|
+
}
|
|
3324
|
+
return isConnected;
|
|
3325
|
+
}
|
|
3326
|
+
return false;
|
|
3327
|
+
};
|
|
3328
|
+
var appDidLoad = (who) => {
|
|
3329
|
+
var _a;
|
|
3330
|
+
if (BUILD.asyncQueue) {
|
|
3331
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
3332
|
+
}
|
|
3333
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
3334
|
+
if (BUILD.hydrateClientSide) {
|
|
3335
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
3336
|
+
plt.$orgLocNodes$.clear();
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
if (BUILD.profile && performance.measure) {
|
|
3340
|
+
performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
3341
|
+
}
|
|
3342
|
+
};
|
|
3343
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
3344
|
+
if (instance && instance[method]) {
|
|
3345
|
+
try {
|
|
3346
|
+
return instance[method](arg);
|
|
3347
|
+
} catch (e) {
|
|
3348
|
+
consoleError(e, elm);
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
return void 0;
|
|
3352
|
+
};
|
|
3353
|
+
var emitLifecycleEvent = (elm, lifecycleName) => {
|
|
3354
|
+
if (BUILD.lifecycleDOMEvents) {
|
|
3355
|
+
emitEvent(elm, "stencil_" + lifecycleName, {
|
|
3356
|
+
bubbles: true,
|
|
3357
|
+
composed: true,
|
|
3358
|
+
detail: {
|
|
3359
|
+
namespace: NAMESPACE
|
|
3360
|
+
}
|
|
3361
|
+
});
|
|
3362
|
+
}
|
|
3363
|
+
};
|
|
3364
|
+
var addHydratedFlag = (elm) => {
|
|
3365
|
+
var _a, _b;
|
|
3366
|
+
return BUILD.hydratedClass ? elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") : BUILD.hydratedAttribute ? elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
|
|
3367
|
+
};
|
|
3368
|
+
var serverSideConnected = (elm) => {
|
|
3369
|
+
const children = elm.children;
|
|
3370
|
+
if (children != null) {
|
|
3371
|
+
for (let i2 = 0, ii = children.length; i2 < ii; i2++) {
|
|
3372
|
+
const childElm = children[i2];
|
|
3373
|
+
if (typeof childElm.connectedCallback === "function") {
|
|
3374
|
+
childElm.connectedCallback();
|
|
3375
|
+
}
|
|
3376
|
+
serverSideConnected(childElm);
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3381
|
+
// src/runtime/set-value.ts
|
|
3382
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
3383
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
3384
|
+
const hostRef = getHostRef(ref);
|
|
3385
|
+
if (!hostRef) {
|
|
3386
|
+
return;
|
|
3387
|
+
}
|
|
3388
|
+
if (BUILD.lazyLoad && !hostRef) {
|
|
3389
|
+
throw new Error(
|
|
3390
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
3391
|
+
);
|
|
3392
|
+
}
|
|
3393
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newVal) {
|
|
3394
|
+
return;
|
|
3395
|
+
}
|
|
3396
|
+
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
|
|
3397
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
3398
|
+
const flags = hostRef.$flags$;
|
|
3399
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3400
|
+
newVal = parsePropertyValue(
|
|
3401
|
+
newVal,
|
|
3402
|
+
cmpMeta.$members$[propName][0],
|
|
3403
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3404
|
+
);
|
|
3405
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
3406
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
3407
|
+
if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
3408
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
|
3409
|
+
if (BUILD.serializer && BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
3410
|
+
if (cmpMeta.$serializers$ && cmpMeta.$serializers$[propName]) {
|
|
3411
|
+
const runSerializer = (inst) => {
|
|
3412
|
+
let attrVal = newVal;
|
|
3413
|
+
for (const serializer of cmpMeta.$serializers$[propName]) {
|
|
3414
|
+
const [[methodName]] = Object.entries(serializer);
|
|
3415
|
+
attrVal = inst[methodName](attrVal, propName);
|
|
3416
|
+
}
|
|
3417
|
+
hostRef.$serializerValues$.set(propName, attrVal);
|
|
3418
|
+
};
|
|
3419
|
+
if (instance) {
|
|
3420
|
+
runSerializer(instance);
|
|
3421
|
+
} else {
|
|
3422
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3423
|
+
runSerializer(hostRef.$lazyInstance$);
|
|
3424
|
+
});
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
if (BUILD.isDev) {
|
|
3429
|
+
if (hostRef.$flags$ & 1024 /* devOnRender */) {
|
|
3430
|
+
consoleDevWarn(
|
|
3431
|
+
`The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,
|
|
3432
|
+
"\nElement",
|
|
3433
|
+
elm,
|
|
3434
|
+
"\nNew value",
|
|
3435
|
+
newVal,
|
|
3436
|
+
"\nOld value",
|
|
3437
|
+
oldVal
|
|
3438
|
+
);
|
|
3439
|
+
} else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
|
|
3440
|
+
consoleDevWarn(
|
|
3441
|
+
`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
|
|
3442
|
+
"\nElement",
|
|
3443
|
+
elm,
|
|
3444
|
+
"\nNew value",
|
|
3445
|
+
newVal,
|
|
3446
|
+
"\nOld value",
|
|
3447
|
+
oldVal
|
|
3448
|
+
);
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
if (BUILD.propChangeCallback && cmpMeta.$watchers$) {
|
|
3452
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
3453
|
+
if (watchMethods) {
|
|
3454
|
+
watchMethods.map((watcher) => {
|
|
3455
|
+
try {
|
|
3456
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
3457
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
3458
|
+
if (!instance) {
|
|
3459
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3460
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
3461
|
+
});
|
|
3462
|
+
} else {
|
|
3463
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
} catch (e) {
|
|
3467
|
+
consoleError(e, elm);
|
|
3468
|
+
}
|
|
3469
|
+
});
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
if (BUILD.updatable && flags & 2 /* hasRendered */) {
|
|
3473
|
+
if (instance.componentShouldUpdate) {
|
|
3474
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
3475
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
3476
|
+
return;
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
3480
|
+
scheduleUpdate(hostRef, false);
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3486
|
+
// src/runtime/proxy-component.ts
|
|
3487
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
3488
|
+
var _a, _b;
|
|
3489
|
+
const prototype = Cstr.prototype;
|
|
3490
|
+
if (BUILD.isTesting) {
|
|
3491
|
+
if (prototype.__stencilAugmented) {
|
|
3492
|
+
return;
|
|
3493
|
+
}
|
|
3494
|
+
prototype.__stencilAugmented = true;
|
|
3495
|
+
}
|
|
3496
|
+
if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
|
|
3497
|
+
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
|
|
3498
|
+
const originalFormAssociatedCallback = prototype[cbName];
|
|
3499
|
+
Object.defineProperty(prototype, cbName, {
|
|
3500
|
+
value(...args) {
|
|
3501
|
+
var _a2;
|
|
3502
|
+
const hostRef = getHostRef(this);
|
|
3503
|
+
const instance = BUILD.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;
|
|
3504
|
+
if (!instance) {
|
|
3505
|
+
(_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
|
|
3506
|
+
const cb = asyncInstance[cbName];
|
|
3507
|
+
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
3508
|
+
});
|
|
3509
|
+
} else {
|
|
3510
|
+
const cb = BUILD.lazyLoad ? instance[cbName] : originalFormAssociatedCallback;
|
|
3511
|
+
typeof cb === "function" && cb.call(instance, ...args);
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
});
|
|
3515
|
+
});
|
|
3516
|
+
}
|
|
3517
|
+
if (BUILD.member && cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
3518
|
+
if (BUILD.propChangeCallback) {
|
|
3519
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
3520
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
3521
|
+
}
|
|
3522
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
3523
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
3524
|
+
}
|
|
3525
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
3526
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
3530
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
3531
|
+
if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
3532
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
3533
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
3534
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
3535
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
3536
|
+
Object.defineProperty(prototype, memberName, {
|
|
3537
|
+
get() {
|
|
3538
|
+
if (BUILD.lazyLoad) {
|
|
3539
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
3540
|
+
return getValue(this, memberName);
|
|
3541
|
+
}
|
|
3542
|
+
const ref = getHostRef(this);
|
|
3543
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
3544
|
+
if (!instance) return;
|
|
3545
|
+
return instance[memberName];
|
|
3546
|
+
}
|
|
3547
|
+
if (!BUILD.lazyLoad) {
|
|
3548
|
+
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
3549
|
+
}
|
|
3550
|
+
},
|
|
3551
|
+
configurable: true,
|
|
3552
|
+
enumerable: true
|
|
3553
|
+
});
|
|
3554
|
+
}
|
|
3555
|
+
Object.defineProperty(prototype, memberName, {
|
|
3556
|
+
set(newValue) {
|
|
3557
|
+
const ref = getHostRef(this);
|
|
3558
|
+
if (!ref) {
|
|
3559
|
+
return;
|
|
3560
|
+
}
|
|
3561
|
+
if (BUILD.isDev) {
|
|
3562
|
+
if (
|
|
3563
|
+
// we are proxying the instance (not element)
|
|
3564
|
+
(flags & 1 /* isElementConstructor */) === 0 && // if the class has a setter, then the Element can update instance values, so ignore
|
|
3565
|
+
(cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0 && // the element is not constructing
|
|
3566
|
+
(ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop
|
|
3567
|
+
(memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable
|
|
3568
|
+
(memberFlags & 1024 /* Mutable */) === 0
|
|
3569
|
+
) {
|
|
3570
|
+
consoleDevWarn(
|
|
3571
|
+
`@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.
|
|
3572
|
+
More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
3573
|
+
);
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
if (origSetter) {
|
|
3577
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
3578
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
3579
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
3580
|
+
}
|
|
3581
|
+
origSetter.apply(this, [
|
|
3582
|
+
parsePropertyValue(
|
|
3583
|
+
newValue,
|
|
3584
|
+
memberFlags,
|
|
3585
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3586
|
+
)
|
|
3587
|
+
]);
|
|
3588
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
3589
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
3590
|
+
return;
|
|
3591
|
+
}
|
|
3592
|
+
if (!BUILD.lazyLoad) {
|
|
3593
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
3594
|
+
return;
|
|
3595
|
+
}
|
|
3596
|
+
if (BUILD.lazyLoad) {
|
|
3597
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
3598
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
3599
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
3600
|
+
ref.$fetchedCbList$.push(() => {
|
|
3601
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
3602
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
3603
|
+
}
|
|
3604
|
+
});
|
|
3605
|
+
}
|
|
3606
|
+
return;
|
|
3607
|
+
}
|
|
3608
|
+
const setterSetVal = () => {
|
|
3609
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
3610
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
3611
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
3612
|
+
}
|
|
3613
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
3614
|
+
newValue,
|
|
3615
|
+
memberFlags,
|
|
3616
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3617
|
+
);
|
|
3618
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
3619
|
+
};
|
|
3620
|
+
if (ref.$lazyInstance$) {
|
|
3621
|
+
setterSetVal();
|
|
3622
|
+
} else {
|
|
3623
|
+
ref.$fetchedCbList$.push(() => {
|
|
3624
|
+
setterSetVal();
|
|
3625
|
+
});
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
});
|
|
3630
|
+
} else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
3631
|
+
Object.defineProperty(prototype, memberName, {
|
|
3632
|
+
value(...args) {
|
|
3633
|
+
var _a2;
|
|
3634
|
+
const ref = getHostRef(this);
|
|
3635
|
+
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
|
3636
|
+
var _a3;
|
|
3637
|
+
return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
3638
|
+
});
|
|
3639
|
+
}
|
|
3640
|
+
});
|
|
3641
|
+
}
|
|
3642
|
+
});
|
|
3643
|
+
if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
|
|
3644
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
3645
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
3646
|
+
plt.jmp(() => {
|
|
3647
|
+
var _a2;
|
|
3648
|
+
const propName = attrNameToPropName.get(attrName);
|
|
3649
|
+
const hostRef = getHostRef(this);
|
|
3650
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {
|
|
3651
|
+
return;
|
|
3652
|
+
}
|
|
3653
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
3654
|
+
newValue = this[propName];
|
|
3655
|
+
delete this[propName];
|
|
3656
|
+
}
|
|
3657
|
+
if (BUILD.deserializer && cmpMeta.$deserializers$ && cmpMeta.$deserializers$[propName]) {
|
|
3658
|
+
const setVal = (methodName, instance) => {
|
|
3659
|
+
const deserializeVal = instance == null ? void 0 : instance[methodName](newValue, propName);
|
|
3660
|
+
if (deserializeVal !== this[propName]) {
|
|
3661
|
+
this[propName] = deserializeVal;
|
|
3662
|
+
}
|
|
3663
|
+
};
|
|
3664
|
+
for (const deserializer of cmpMeta.$deserializers$[propName]) {
|
|
3665
|
+
const [[methodName]] = Object.entries(deserializer);
|
|
3666
|
+
if (BUILD.lazyLoad) {
|
|
3667
|
+
if (hostRef.$lazyInstance$) {
|
|
3668
|
+
setVal(methodName, hostRef.$lazyInstance$);
|
|
3669
|
+
} else {
|
|
3670
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3671
|
+
setVal(methodName, hostRef.$lazyInstance$);
|
|
3672
|
+
});
|
|
3673
|
+
}
|
|
3674
|
+
} else {
|
|
3675
|
+
setVal(methodName, this);
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
return;
|
|
3679
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
3680
|
+
this[propName] == newValue) {
|
|
3681
|
+
return;
|
|
3682
|
+
} else if (propName == null) {
|
|
3683
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
3684
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
3685
|
+
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
3686
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3687
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
3688
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
3689
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
3690
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
3691
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
3692
|
+
}
|
|
3693
|
+
});
|
|
3694
|
+
}
|
|
3695
|
+
return;
|
|
3696
|
+
}
|
|
3697
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
3698
|
+
if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
|
|
3699
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
3700
|
+
}
|
|
3701
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
3702
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
3703
|
+
this[propName] = newValue;
|
|
3704
|
+
}
|
|
3705
|
+
});
|
|
3706
|
+
};
|
|
3707
|
+
Cstr.observedAttributes = Array.from(
|
|
3708
|
+
/* @__PURE__ */ new Set([
|
|
3709
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
3710
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
3711
|
+
var _a2;
|
|
3712
|
+
const attrName = m[1] || propName;
|
|
3713
|
+
attrNameToPropName.set(attrName, propName);
|
|
3714
|
+
if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
|
|
3715
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
3716
|
+
}
|
|
3717
|
+
return attrName;
|
|
3718
|
+
})
|
|
3719
|
+
])
|
|
3720
|
+
);
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
return Cstr;
|
|
3724
|
+
};
|
|
3725
|
+
|
|
3726
|
+
// src/runtime/initialize-component.ts
|
|
3727
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
3728
|
+
let Cstr;
|
|
3729
|
+
try {
|
|
3730
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
3731
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
3732
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
3733
|
+
if (BUILD.lazyLoad && bundleId) {
|
|
3734
|
+
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
3735
|
+
if (CstrImport && "then" in CstrImport) {
|
|
3736
|
+
const endLoad = uniqueTime(
|
|
3737
|
+
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
3738
|
+
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
3739
|
+
);
|
|
3740
|
+
Cstr = await CstrImport;
|
|
3741
|
+
endLoad();
|
|
3742
|
+
} else {
|
|
3743
|
+
Cstr = CstrImport;
|
|
3744
|
+
}
|
|
3745
|
+
if (!Cstr) {
|
|
3746
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
3747
|
+
}
|
|
3748
|
+
if (BUILD.member && !Cstr.isProxied) {
|
|
3749
|
+
if (BUILD.propChangeCallback) {
|
|
3750
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
3751
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
3752
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
3753
|
+
}
|
|
3754
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
3755
|
+
Cstr.isProxied = true;
|
|
3756
|
+
}
|
|
3757
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
3758
|
+
if (BUILD.member) {
|
|
3759
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
3760
|
+
}
|
|
3761
|
+
try {
|
|
3762
|
+
new Cstr(hostRef);
|
|
3763
|
+
} catch (e) {
|
|
3764
|
+
consoleError(e, elm);
|
|
3765
|
+
}
|
|
3766
|
+
if (BUILD.member) {
|
|
3767
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
3768
|
+
}
|
|
3769
|
+
if (BUILD.propChangeCallback) {
|
|
3770
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
3771
|
+
}
|
|
3772
|
+
endNewInstance();
|
|
3773
|
+
const needsDeferredCallback = BUILD.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
3774
|
+
if (!needsDeferredCallback) {
|
|
3775
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3776
|
+
} else {
|
|
3777
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
3778
|
+
}
|
|
3779
|
+
} else {
|
|
3780
|
+
Cstr = elm.constructor;
|
|
3781
|
+
const cmpTag = elm.localName;
|
|
3782
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
3783
|
+
}
|
|
3784
|
+
if (BUILD.style && Cstr && Cstr.style) {
|
|
3785
|
+
let style;
|
|
3786
|
+
if (typeof Cstr.style === "string") {
|
|
3787
|
+
style = Cstr.style;
|
|
3788
|
+
} else if (BUILD.mode && typeof Cstr.style !== "string") {
|
|
3789
|
+
hostRef.$modeName$ = computeMode(elm);
|
|
3790
|
+
if (hostRef.$modeName$) {
|
|
3791
|
+
style = Cstr.style[hostRef.$modeName$];
|
|
3792
|
+
}
|
|
3793
|
+
if (BUILD.hydrateServerSide && hostRef.$modeName$) {
|
|
3794
|
+
elm.setAttribute("s-mode", hostRef.$modeName$);
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
3798
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement && hmrVersionId) {
|
|
3799
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
3800
|
+
if (BUILD.hydrateServerSide && BUILD.shadowDom) {
|
|
3801
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
3802
|
+
style = scopeCss(style, scopeId2, true);
|
|
3803
|
+
} else if (needsScopedSSR()) {
|
|
3804
|
+
style = expandPartSelectors(style);
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
3808
|
+
endRegisterStyles();
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
3813
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
3814
|
+
if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
|
|
3815
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
3816
|
+
} else {
|
|
3817
|
+
schedule();
|
|
3818
|
+
}
|
|
3819
|
+
} catch (e) {
|
|
3820
|
+
consoleError(e, elm);
|
|
3821
|
+
if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
|
|
3822
|
+
hostRef.$onRenderResolve$();
|
|
3823
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
3824
|
+
}
|
|
3825
|
+
if (BUILD.asyncLoading && hostRef.$onReadyResolve$) {
|
|
3826
|
+
hostRef.$onReadyResolve$(elm);
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
};
|
|
3830
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
3831
|
+
if (BUILD.lazyLoad) {
|
|
3832
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
3833
|
+
}
|
|
3834
|
+
};
|
|
3835
|
+
|
|
3836
|
+
// src/runtime/connected-callback.ts
|
|
3837
|
+
var connectedCallback = (elm) => {
|
|
3838
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3839
|
+
const hostRef = getHostRef(elm);
|
|
3840
|
+
if (!hostRef) {
|
|
3841
|
+
return;
|
|
3842
|
+
}
|
|
3843
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
3844
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
3845
|
+
if (BUILD.hostListenerTargetParent) {
|
|
3846
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
|
|
3847
|
+
}
|
|
3848
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
3849
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
3850
|
+
let hostId;
|
|
3851
|
+
if (BUILD.hydrateClientSide) {
|
|
3852
|
+
hostId = elm.getAttribute(HYDRATE_ID);
|
|
3853
|
+
if (hostId) {
|
|
3854
|
+
if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3855
|
+
const scopeId2 = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(elm.shadowRoot, cmpMeta);
|
|
3856
|
+
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
3857
|
+
} else if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3858
|
+
const scopeId2 = getScopeId(cmpMeta, BUILD.mode ? elm.getAttribute("s-mode") : void 0);
|
|
3859
|
+
elm["s-sc"] = scopeId2;
|
|
3860
|
+
}
|
|
3861
|
+
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
if (BUILD.slotRelocation && !hostId) {
|
|
3865
|
+
if (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
3866
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
3867
|
+
setContentReference(elm);
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
if (BUILD.asyncLoading) {
|
|
3871
|
+
let ancestorComponent = elm;
|
|
3872
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
3873
|
+
if (BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
3874
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
3875
|
+
break;
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
|
|
3880
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
3881
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
3882
|
+
const value = elm[memberName];
|
|
3883
|
+
delete elm[memberName];
|
|
3884
|
+
elm[memberName] = value;
|
|
3885
|
+
}
|
|
3886
|
+
});
|
|
3887
|
+
}
|
|
3888
|
+
if (BUILD.initializeNextTick) {
|
|
3889
|
+
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
3890
|
+
} else {
|
|
3891
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
|
3892
|
+
}
|
|
3893
|
+
} else {
|
|
3894
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
|
|
3895
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
3896
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3897
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
3898
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
endConnected();
|
|
3902
|
+
}
|
|
3903
|
+
};
|
|
3904
|
+
var setContentReference = (elm) => {
|
|
3905
|
+
if (!win.document) {
|
|
3906
|
+
return;
|
|
3907
|
+
}
|
|
3908
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
3909
|
+
BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
|
|
3910
|
+
);
|
|
3911
|
+
contentRefElm["s-cn"] = true;
|
|
3912
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
3913
|
+
};
|
|
3914
|
+
var disconnectInstance = (instance, elm) => {
|
|
3915
|
+
if (BUILD.lazyLoad) {
|
|
3916
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
3917
|
+
}
|
|
3918
|
+
};
|
|
3919
|
+
var disconnectedCallback = async (elm) => {
|
|
3920
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3921
|
+
const hostRef = getHostRef(elm);
|
|
3922
|
+
if (BUILD.hostListener) {
|
|
3923
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
3924
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
3925
|
+
hostRef.$rmListeners$ = void 0;
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
if (!BUILD.lazyLoad) {
|
|
3929
|
+
disconnectInstance(elm);
|
|
3930
|
+
} else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
3931
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
3932
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
3933
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
if (rootAppliedStyles.has(elm)) {
|
|
3937
|
+
rootAppliedStyles.delete(elm);
|
|
3938
|
+
}
|
|
3939
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
3940
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
3941
|
+
}
|
|
3942
|
+
};
|
|
3943
|
+
|
|
3944
|
+
// src/runtime/bootstrap-custom-element.ts
|
|
3945
|
+
var defineCustomElement = (Cstr, compactMeta) => {
|
|
3946
|
+
customElements.define(
|
|
3947
|
+
transformTag(compactMeta[1]),
|
|
3948
|
+
proxyCustomElement(Cstr, compactMeta)
|
|
3949
|
+
);
|
|
3950
|
+
};
|
|
3951
|
+
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
3952
|
+
const cmpMeta = {
|
|
3953
|
+
$flags$: compactMeta[0],
|
|
3954
|
+
$tagName$: compactMeta[1]
|
|
3955
|
+
};
|
|
3956
|
+
try {
|
|
3957
|
+
if (BUILD.member) {
|
|
3958
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
3959
|
+
}
|
|
3960
|
+
if (BUILD.hostListener) {
|
|
3961
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
3962
|
+
}
|
|
3963
|
+
if (BUILD.propChangeCallback) {
|
|
3964
|
+
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
3965
|
+
cmpMeta.$deserializers$ = Cstr.$deserializers$;
|
|
3966
|
+
cmpMeta.$serializers$ = Cstr.$serializers$;
|
|
3967
|
+
}
|
|
3968
|
+
if (BUILD.reflect) {
|
|
3969
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
3970
|
+
}
|
|
3971
|
+
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3972
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3973
|
+
}
|
|
3974
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
3975
|
+
if (BUILD.experimentalSlotFixes) {
|
|
3976
|
+
patchPseudoShadowDom(Cstr.prototype);
|
|
3977
|
+
} else {
|
|
3978
|
+
if (BUILD.slotChildNodesFix) {
|
|
3979
|
+
patchChildSlotNodes(Cstr.prototype);
|
|
3980
|
+
}
|
|
3981
|
+
if (BUILD.cloneNodeFix) {
|
|
3982
|
+
patchCloneNode(Cstr.prototype);
|
|
3983
|
+
}
|
|
3984
|
+
if (BUILD.appendChildSlotFix) {
|
|
3985
|
+
patchSlotAppendChild(Cstr.prototype);
|
|
3986
|
+
}
|
|
3987
|
+
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3988
|
+
patchTextContent(Cstr.prototype);
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
3991
|
+
} else if (BUILD.cloneNodeFix) {
|
|
3992
|
+
patchCloneNode(Cstr.prototype);
|
|
3993
|
+
}
|
|
3994
|
+
if (BUILD.hydrateClientSide && BUILD.shadowDom) {
|
|
3995
|
+
hydrateScopedToShadow();
|
|
3996
|
+
}
|
|
3997
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
3998
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
3999
|
+
Object.assign(Cstr.prototype, {
|
|
4000
|
+
__hasHostListenerAttached: false,
|
|
4001
|
+
__registerHost() {
|
|
4002
|
+
registerHost(this, cmpMeta);
|
|
4003
|
+
},
|
|
4004
|
+
connectedCallback() {
|
|
4005
|
+
if (!this.__hasHostListenerAttached) {
|
|
4006
|
+
const hostRef = getHostRef(this);
|
|
4007
|
+
if (!hostRef) {
|
|
4008
|
+
return;
|
|
4009
|
+
}
|
|
4010
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
4011
|
+
this.__hasHostListenerAttached = true;
|
|
4012
|
+
}
|
|
4013
|
+
connectedCallback(this);
|
|
4014
|
+
if (originalConnectedCallback) {
|
|
4015
|
+
originalConnectedCallback.call(this);
|
|
4016
|
+
}
|
|
4017
|
+
},
|
|
4018
|
+
disconnectedCallback() {
|
|
4019
|
+
disconnectedCallback(this);
|
|
4020
|
+
if (originalDisconnectedCallback) {
|
|
4021
|
+
originalDisconnectedCallback.call(this);
|
|
4022
|
+
}
|
|
4023
|
+
},
|
|
4024
|
+
__attachShadow() {
|
|
4025
|
+
if (supportsShadow) {
|
|
4026
|
+
if (!this.shadowRoot) {
|
|
4027
|
+
createShadowRoot.call(this, cmpMeta);
|
|
4028
|
+
} else {
|
|
4029
|
+
if (this.shadowRoot.mode !== "open") {
|
|
4030
|
+
throw new Error(
|
|
4031
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
4032
|
+
);
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
} else {
|
|
4036
|
+
this.shadowRoot = this;
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
});
|
|
4040
|
+
Object.defineProperty(Cstr, "is", {
|
|
4041
|
+
value: cmpMeta.$tagName$,
|
|
4042
|
+
configurable: true
|
|
4043
|
+
});
|
|
4044
|
+
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
|
4045
|
+
} catch (e) {
|
|
4046
|
+
consoleError(e);
|
|
4047
|
+
return Cstr;
|
|
4048
|
+
}
|
|
4049
|
+
};
|
|
4050
|
+
var forceModeUpdate = (elm) => {
|
|
4051
|
+
if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
|
|
4052
|
+
const mode = computeMode(elm);
|
|
4053
|
+
const hostRef = getHostRef(elm);
|
|
4054
|
+
if (hostRef && hostRef.$modeName$ !== mode) {
|
|
4055
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
4056
|
+
const oldScopeId = elm["s-sc"];
|
|
4057
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
4058
|
+
const style = elm.constructor.style[mode];
|
|
4059
|
+
const flags = cmpMeta.$flags$;
|
|
4060
|
+
if (style) {
|
|
4061
|
+
if (!styles.has(scopeId2)) {
|
|
4062
|
+
registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));
|
|
4063
|
+
}
|
|
4064
|
+
hostRef.$modeName$ = mode;
|
|
4065
|
+
elm.classList.remove(oldScopeId + "-h", oldScopeId + "-s");
|
|
4066
|
+
attachStyles(hostRef);
|
|
4067
|
+
forceUpdate(elm);
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
};
|
|
4072
|
+
|
|
4073
|
+
// src/runtime/hmr-component.ts
|
|
4074
|
+
var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
4075
|
+
const hostRef = getHostRef(hostElement);
|
|
4076
|
+
if (!hostRef) {
|
|
4077
|
+
return;
|
|
4078
|
+
}
|
|
4079
|
+
hostRef.$flags$ = 1 /* hasConnected */;
|
|
4080
|
+
initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
|
|
4081
|
+
};
|
|
4082
|
+
|
|
4083
|
+
// src/runtime/bootstrap-lazy.ts
|
|
4084
|
+
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
4085
|
+
var _a;
|
|
4086
|
+
if (BUILD.profile && performance.mark) {
|
|
4087
|
+
performance.mark("st:app:start");
|
|
4088
|
+
}
|
|
4089
|
+
installDevTools();
|
|
4090
|
+
if (!win.document) {
|
|
4091
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
4092
|
+
return;
|
|
4093
|
+
}
|
|
4094
|
+
const endBootstrap = createTime("bootstrapLazy");
|
|
4095
|
+
const cmpTags = [];
|
|
4096
|
+
const exclude = options.exclude || [];
|
|
4097
|
+
const customElements2 = win.customElements;
|
|
4098
|
+
const head = win.document.head;
|
|
4099
|
+
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
4100
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
4101
|
+
const deferredConnectedCallbacks = [];
|
|
4102
|
+
let appLoadFallback;
|
|
4103
|
+
let isBootstrapping = true;
|
|
4104
|
+
Object.assign(plt, options);
|
|
4105
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
4106
|
+
if (BUILD.asyncQueue) {
|
|
4107
|
+
if (options.syncQueue) {
|
|
4108
|
+
plt.$flags$ |= 4 /* queueSync */;
|
|
4109
|
+
}
|
|
4110
|
+
}
|
|
4111
|
+
if (BUILD.hydrateClientSide) {
|
|
4112
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
4113
|
+
}
|
|
4114
|
+
if (BUILD.hydrateClientSide && BUILD.shadowDom) {
|
|
4115
|
+
hydrateScopedToShadow();
|
|
4116
|
+
}
|
|
4117
|
+
let hasSlotRelocation = false;
|
|
4118
|
+
lazyBundles.map((lazyBundle) => {
|
|
4119
|
+
lazyBundle[1].map((compactMeta) => {
|
|
4120
|
+
var _a2, _b, _c;
|
|
4121
|
+
const cmpMeta = {
|
|
4122
|
+
$flags$: compactMeta[0],
|
|
4123
|
+
$tagName$: compactMeta[1],
|
|
4124
|
+
$members$: compactMeta[2],
|
|
4125
|
+
$listeners$: compactMeta[3]
|
|
4126
|
+
};
|
|
4127
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
4128
|
+
hasSlotRelocation = true;
|
|
4129
|
+
}
|
|
4130
|
+
if (BUILD.member) {
|
|
4131
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
4132
|
+
}
|
|
4133
|
+
if (BUILD.hostListener) {
|
|
4134
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
4135
|
+
}
|
|
4136
|
+
if (BUILD.reflect) {
|
|
4137
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
4138
|
+
}
|
|
4139
|
+
if (BUILD.propChangeCallback) {
|
|
4140
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
4141
|
+
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
4142
|
+
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
4143
|
+
}
|
|
4144
|
+
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
4145
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
4146
|
+
}
|
|
4147
|
+
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : transformTag(cmpMeta.$tagName$);
|
|
4148
|
+
const HostElement = class extends HTMLElement {
|
|
4149
|
+
["s-p"];
|
|
4150
|
+
["s-rc"];
|
|
4151
|
+
hasRegisteredEventListeners = false;
|
|
4152
|
+
// StencilLazyHost
|
|
4153
|
+
constructor(self) {
|
|
4154
|
+
super(self);
|
|
4155
|
+
self = this;
|
|
4156
|
+
registerHost(self, cmpMeta);
|
|
4157
|
+
if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
4158
|
+
if (supportsShadow) {
|
|
4159
|
+
if (!self.shadowRoot) {
|
|
4160
|
+
createShadowRoot.call(self, cmpMeta);
|
|
4161
|
+
} else {
|
|
4162
|
+
if (self.shadowRoot.mode !== "open") {
|
|
4163
|
+
throw new Error(
|
|
4164
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
4165
|
+
);
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
} else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
|
|
4169
|
+
self.shadowRoot = self;
|
|
4170
|
+
}
|
|
4171
|
+
}
|
|
4172
|
+
}
|
|
4173
|
+
connectedCallback() {
|
|
4174
|
+
const hostRef = getHostRef(this);
|
|
4175
|
+
if (!hostRef) {
|
|
4176
|
+
return;
|
|
4177
|
+
}
|
|
4178
|
+
if (!this.hasRegisteredEventListeners) {
|
|
4179
|
+
this.hasRegisteredEventListeners = true;
|
|
4180
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
4181
|
+
}
|
|
4182
|
+
if (appLoadFallback) {
|
|
4183
|
+
clearTimeout(appLoadFallback);
|
|
4184
|
+
appLoadFallback = null;
|
|
4185
|
+
}
|
|
4186
|
+
if (isBootstrapping) {
|
|
4187
|
+
deferredConnectedCallbacks.push(this);
|
|
4188
|
+
} else {
|
|
4189
|
+
plt.jmp(() => connectedCallback(this));
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
disconnectedCallback() {
|
|
4193
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
4194
|
+
plt.raf(() => {
|
|
4195
|
+
var _a3;
|
|
4196
|
+
const hostRef = getHostRef(this);
|
|
4197
|
+
if (!hostRef) {
|
|
4198
|
+
return;
|
|
4199
|
+
}
|
|
4200
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
4201
|
+
if (i2 > -1) {
|
|
4202
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
4203
|
+
}
|
|
4204
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
4205
|
+
delete hostRef.$vnode$.$elm$;
|
|
4206
|
+
}
|
|
4207
|
+
});
|
|
4208
|
+
}
|
|
4209
|
+
componentOnReady() {
|
|
4210
|
+
var _a3;
|
|
4211
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
4212
|
+
}
|
|
4213
|
+
};
|
|
4214
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
4215
|
+
if (BUILD.experimentalSlotFixes) {
|
|
4216
|
+
patchPseudoShadowDom(HostElement.prototype);
|
|
4217
|
+
} else {
|
|
4218
|
+
if (BUILD.slotChildNodesFix) {
|
|
4219
|
+
patchChildSlotNodes(HostElement.prototype);
|
|
4220
|
+
}
|
|
4221
|
+
if (BUILD.cloneNodeFix) {
|
|
4222
|
+
patchCloneNode(HostElement.prototype);
|
|
4223
|
+
}
|
|
4224
|
+
if (BUILD.appendChildSlotFix) {
|
|
4225
|
+
patchSlotAppendChild(HostElement.prototype);
|
|
4226
|
+
}
|
|
4227
|
+
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4228
|
+
patchTextContent(HostElement.prototype);
|
|
4229
|
+
}
|
|
4230
|
+
}
|
|
4231
|
+
} else if (BUILD.cloneNodeFix) {
|
|
4232
|
+
patchCloneNode(HostElement.prototype);
|
|
4233
|
+
}
|
|
4234
|
+
if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
|
|
4235
|
+
HostElement.formAssociated = true;
|
|
4236
|
+
}
|
|
4237
|
+
if (BUILD.hotModuleReplacement) {
|
|
4238
|
+
HostElement.prototype["s-hmr"] = function(hmrVersionId) {
|
|
4239
|
+
hmrStart(this, cmpMeta, hmrVersionId);
|
|
4240
|
+
};
|
|
4241
|
+
}
|
|
4242
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
4243
|
+
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
4244
|
+
cmpTags.push(tagName);
|
|
4245
|
+
customElements2.define(
|
|
4246
|
+
tagName,
|
|
4247
|
+
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
|
4248
|
+
);
|
|
4249
|
+
}
|
|
4250
|
+
});
|
|
4251
|
+
});
|
|
4252
|
+
if (cmpTags.length > 0) {
|
|
4253
|
+
if (BUILD.slotRelocation && hasSlotRelocation) {
|
|
4254
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
|
4255
|
+
}
|
|
4256
|
+
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
4257
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
4258
|
+
}
|
|
4259
|
+
if (dataStyles.innerHTML.length) {
|
|
4260
|
+
dataStyles.setAttribute("data-styles", "");
|
|
4261
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
4262
|
+
if (nonce != null) {
|
|
4263
|
+
dataStyles.setAttribute("nonce", nonce);
|
|
4264
|
+
}
|
|
4265
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
isBootstrapping = false;
|
|
4269
|
+
if (deferredConnectedCallbacks.length) {
|
|
4270
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
4271
|
+
} else {
|
|
4272
|
+
if (BUILD.profile) {
|
|
4273
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
|
|
4274
|
+
} else {
|
|
4275
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
endBootstrap();
|
|
4279
|
+
};
|
|
4280
|
+
|
|
4281
|
+
// src/runtime/fragment.ts
|
|
4282
|
+
var Fragment = (_, children) => children;
|
|
4283
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
4284
|
+
if (BUILD.hostListener && listeners && win.document) {
|
|
4285
|
+
if (BUILD.hostListenerTargetParent) {
|
|
4286
|
+
if (attachParentListeners) {
|
|
4287
|
+
listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
|
|
4288
|
+
} else {
|
|
4289
|
+
listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
listeners.map(([flags, name, method]) => {
|
|
4293
|
+
const target = BUILD.hostListenerTarget ? getHostListenerTarget(win.document, elm, flags) : elm;
|
|
4294
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
4295
|
+
const opts = hostListenerOpts(flags);
|
|
4296
|
+
plt.ael(target, name, handler, opts);
|
|
4297
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
4298
|
+
});
|
|
4299
|
+
}
|
|
4300
|
+
};
|
|
4301
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
4302
|
+
var _a;
|
|
4303
|
+
try {
|
|
4304
|
+
if (BUILD.lazyLoad) {
|
|
4305
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
4306
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
4307
|
+
} else {
|
|
4308
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
4309
|
+
}
|
|
4310
|
+
} else {
|
|
4311
|
+
hostRef.$hostElement$[methodName](ev);
|
|
4312
|
+
}
|
|
4313
|
+
} catch (e) {
|
|
4314
|
+
consoleError(e, hostRef.$hostElement$);
|
|
4315
|
+
}
|
|
4316
|
+
};
|
|
4317
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
4318
|
+
if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) {
|
|
4319
|
+
return doc;
|
|
4320
|
+
}
|
|
4321
|
+
if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) {
|
|
4322
|
+
return win;
|
|
4323
|
+
}
|
|
4324
|
+
if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) {
|
|
4325
|
+
return doc.body;
|
|
4326
|
+
}
|
|
4327
|
+
if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement) {
|
|
4328
|
+
return elm.parentElement;
|
|
4329
|
+
}
|
|
4330
|
+
return elm;
|
|
4331
|
+
};
|
|
4332
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
4333
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
|
4334
|
+
capture: (flags & 2 /* Capture */) !== 0
|
|
4335
|
+
} : (flags & 2 /* Capture */) !== 0;
|
|
4336
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
4337
|
+
} : globalThis.HTMLElement || class {
|
|
4338
|
+
};
|
|
4339
|
+
function Mixin(...mixins) {
|
|
4340
|
+
return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4343
|
+
// src/runtime/nonce.ts
|
|
4344
|
+
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
4345
|
+
|
|
4346
|
+
// src/runtime/platform-options.ts
|
|
4347
|
+
var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
4348
|
+
|
|
4349
|
+
// src/runtime/render.ts
|
|
4350
|
+
function render(vnode, container) {
|
|
4351
|
+
const cmpMeta = {
|
|
4352
|
+
$flags$: 0,
|
|
4353
|
+
$tagName$: container.tagName
|
|
4354
|
+
};
|
|
4355
|
+
const ref = {
|
|
4356
|
+
$flags$: 0,
|
|
4357
|
+
$cmpMeta$: cmpMeta,
|
|
4358
|
+
$hostElement$: container
|
|
4359
|
+
};
|
|
4360
|
+
renderVdom(ref, vnode);
|
|
4361
|
+
}
|
|
4362
|
+
|
|
4363
|
+
// src/runtime/tag-transform.ts
|
|
4364
|
+
var tagTransformer = void 0;
|
|
4365
|
+
function transformTag(tag) {
|
|
4366
|
+
if (!tagTransformer) return tag;
|
|
4367
|
+
return tagTransformer(tag);
|
|
4368
|
+
}
|
|
4369
|
+
function setTagTransformer(transformer) {
|
|
4370
|
+
if (tagTransformer) {
|
|
4371
|
+
console.warn(`
|
|
4372
|
+
A tagTransformer has already been set.
|
|
4373
|
+
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
4374
|
+
`);
|
|
4375
|
+
}
|
|
4376
|
+
tagTransformer = transformer;
|
|
4377
|
+
}
|
|
4378
|
+
|
|
4379
|
+
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
4380
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
4381
|
+
const propsObj = props || {};
|
|
4382
|
+
const { children, ...rest } = propsObj;
|
|
4383
|
+
let vnodeData = rest;
|
|
4384
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4385
|
+
vnodeData = { ...rest, key };
|
|
4386
|
+
}
|
|
4387
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4388
|
+
vnodeData = null;
|
|
4389
|
+
}
|
|
4390
|
+
if (children !== void 0) {
|
|
4391
|
+
if (Array.isArray(children)) {
|
|
4392
|
+
return h(type, vnodeData, ...children);
|
|
4393
|
+
}
|
|
4394
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4395
|
+
return h(type, vnodeData, children);
|
|
4396
|
+
}
|
|
4397
|
+
return h(type, vnodeData, children);
|
|
4398
|
+
}
|
|
4399
|
+
return h(type, vnodeData);
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
// src/runtime/vdom/jsx-runtime.ts
|
|
4403
|
+
function jsx(type, props, key) {
|
|
4404
|
+
const propsObj = props || {};
|
|
4405
|
+
const { children, ...rest } = propsObj;
|
|
4406
|
+
let vnodeData = rest;
|
|
4407
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4408
|
+
vnodeData = { ...rest, key };
|
|
4409
|
+
}
|
|
4410
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4411
|
+
vnodeData = null;
|
|
4412
|
+
}
|
|
4413
|
+
if (children !== void 0) {
|
|
4414
|
+
if (Array.isArray(children)) {
|
|
4415
|
+
return h(type, vnodeData, ...children);
|
|
4416
|
+
}
|
|
4417
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4418
|
+
return h(type, vnodeData, children);
|
|
4419
|
+
}
|
|
4420
|
+
return h(type, vnodeData, children);
|
|
4421
|
+
}
|
|
4422
|
+
return h(type, vnodeData);
|
|
4423
|
+
}
|
|
4424
|
+
function jsxs(type, props, key) {
|
|
4425
|
+
return jsx(type, props, key);
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
// src/runtime/vdom/vdom-annotations.ts
|
|
4429
|
+
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
4430
|
+
if (doc != null) {
|
|
4431
|
+
const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
|
|
4432
|
+
docData.staticComponents = new Set(staticComponents);
|
|
4433
|
+
const orgLocationNodes = [];
|
|
4434
|
+
parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
|
|
4435
|
+
orgLocationNodes.forEach((orgLocationNode) => {
|
|
4436
|
+
var _a;
|
|
4437
|
+
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
4438
|
+
const nodeRef = orgLocationNode["s-nr"];
|
|
4439
|
+
let hostId = nodeRef["s-host-id"];
|
|
4440
|
+
let nodeId = nodeRef["s-node-id"];
|
|
4441
|
+
let childId = `${hostId}.${nodeId}`;
|
|
4442
|
+
if (hostId == null) {
|
|
4443
|
+
hostId = 0;
|
|
4444
|
+
docData.rootLevelIds++;
|
|
4445
|
+
nodeId = docData.rootLevelIds;
|
|
4446
|
+
childId = `${hostId}.${nodeId}`;
|
|
4447
|
+
if (nodeRef.nodeType === 1 /* ElementNode */) {
|
|
4448
|
+
nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
|
|
4449
|
+
if (typeof nodeRef["s-sn"] === "string" && !nodeRef.getAttribute("slot")) {
|
|
4450
|
+
nodeRef.setAttribute("s-sn", nodeRef["s-sn"]);
|
|
4451
|
+
}
|
|
4452
|
+
} else if (nodeRef.nodeType === 3 /* TextNode */) {
|
|
4453
|
+
if (hostId === 0) {
|
|
4454
|
+
const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
|
|
4455
|
+
if (textContent === "") {
|
|
4456
|
+
orgLocationNode.remove();
|
|
4457
|
+
return;
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
4461
|
+
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
4462
|
+
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
4463
|
+
} else if (nodeRef.nodeType === 8 /* CommentNode */) {
|
|
4464
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
4465
|
+
commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
|
|
4466
|
+
nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
|
|
4470
|
+
const orgLocationParentNode = orgLocationNode.parentElement;
|
|
4471
|
+
if (orgLocationParentNode) {
|
|
4472
|
+
if (orgLocationParentNode["s-en"] === "") {
|
|
4473
|
+
orgLocationNodeId += `.`;
|
|
4474
|
+
} else if (orgLocationParentNode["s-en"] === "c") {
|
|
4475
|
+
orgLocationNodeId += `.c`;
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
orgLocationNode.nodeValue = orgLocationNodeId;
|
|
4479
|
+
}
|
|
4480
|
+
});
|
|
4481
|
+
}
|
|
4482
|
+
};
|
|
4483
|
+
var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
4484
|
+
var _a;
|
|
4485
|
+
if (node == null) {
|
|
4486
|
+
return;
|
|
4487
|
+
}
|
|
4488
|
+
if (node["s-nr"] != null) {
|
|
4489
|
+
orgLocationNodes.push(node);
|
|
4490
|
+
}
|
|
4491
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
4492
|
+
const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
|
|
4493
|
+
childNodes.forEach((childNode) => {
|
|
4494
|
+
const hostRef = getHostRef(childNode);
|
|
4495
|
+
if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
|
|
4496
|
+
const cmpData = {
|
|
4497
|
+
nodeIds: 0
|
|
4498
|
+
};
|
|
4499
|
+
insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
|
|
4500
|
+
}
|
|
4501
|
+
parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
|
|
4502
|
+
});
|
|
4503
|
+
}
|
|
4504
|
+
};
|
|
4505
|
+
var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
|
|
4506
|
+
if (vnode != null) {
|
|
4507
|
+
const hostId = ++docData.hostIds;
|
|
4508
|
+
hostElm.setAttribute(HYDRATE_ID, hostId);
|
|
4509
|
+
if (hostElm["s-cr"] != null) {
|
|
4510
|
+
hostElm["s-cr"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
|
|
4511
|
+
}
|
|
4512
|
+
if (vnode.$children$ != null) {
|
|
4513
|
+
const depth = 0;
|
|
4514
|
+
vnode.$children$.forEach((vnodeChild, index) => {
|
|
4515
|
+
insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
|
|
4516
|
+
});
|
|
4517
|
+
}
|
|
4518
|
+
if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
|
|
4519
|
+
const parent = hostElm.parentElement;
|
|
4520
|
+
if (parent && parent.childNodes) {
|
|
4521
|
+
const parentChildNodes = Array.from(parent.childNodes);
|
|
4522
|
+
const comment = parentChildNodes.find(
|
|
4523
|
+
(node) => node.nodeType === 8 /* CommentNode */ && node["s-sr"]
|
|
4524
|
+
);
|
|
4525
|
+
if (comment) {
|
|
4526
|
+
const index = parentChildNodes.indexOf(hostElm) - 1;
|
|
4527
|
+
vnode.$elm$.setAttribute(
|
|
4528
|
+
HYDRATE_CHILD_ID,
|
|
4529
|
+
`${comment["s-host-id"]}.${comment["s-node-id"]}.0.${index}`
|
|
4530
|
+
);
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
}
|
|
4534
|
+
}
|
|
4535
|
+
};
|
|
4536
|
+
var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
|
|
4537
|
+
const childElm = vnodeChild.$elm$;
|
|
4538
|
+
if (childElm == null) {
|
|
4539
|
+
return;
|
|
4540
|
+
}
|
|
4541
|
+
const nodeId = cmpData.nodeIds++;
|
|
4542
|
+
const childId = `${hostId}.${nodeId}.${depth}.${index}`;
|
|
4543
|
+
childElm["s-host-id"] = hostId;
|
|
4544
|
+
childElm["s-node-id"] = nodeId;
|
|
4545
|
+
if (childElm.nodeType === 1 /* ElementNode */) {
|
|
4546
|
+
childElm.setAttribute(HYDRATE_CHILD_ID, childId);
|
|
4547
|
+
if (typeof childElm["s-sn"] === "string" && !childElm.getAttribute("slot")) {
|
|
4548
|
+
childElm.setAttribute("s-sn", childElm["s-sn"]);
|
|
4549
|
+
}
|
|
4550
|
+
} else if (childElm.nodeType === 3 /* TextNode */) {
|
|
4551
|
+
const parentNode = childElm.parentNode;
|
|
4552
|
+
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
4553
|
+
if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
|
|
4554
|
+
const textNodeId = `${TEXT_NODE_ID}.${childId}`;
|
|
4555
|
+
const commentBeforeTextNode = doc.createComment(textNodeId);
|
|
4556
|
+
insertBefore(parentNode, commentBeforeTextNode, childElm);
|
|
4557
|
+
}
|
|
4558
|
+
} else if (childElm.nodeType === 8 /* CommentNode */) {
|
|
4559
|
+
if (childElm["s-sr"]) {
|
|
4560
|
+
const slotName = childElm["s-sn"] || "";
|
|
4561
|
+
const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
|
|
4562
|
+
childElm.nodeValue = slotNodeId;
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
if (vnodeChild.$children$ != null) {
|
|
4566
|
+
const childDepth = depth + 1;
|
|
4567
|
+
vnodeChild.$children$.forEach((vnode, index2) => {
|
|
4568
|
+
insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);
|
|
4569
|
+
});
|
|
4570
|
+
}
|
|
4571
|
+
};
|
|
4572
|
+
|
|
4573
|
+
export { BUILD as B, H, NAMESPACE as N, bootstrapLazy as b, consoleDevInfo as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s, win as w };
|
|
4574
|
+
//# sourceMappingURL=index-C9gbKL_s.js.map
|
|
4575
|
+
|
|
4576
|
+
//# sourceMappingURL=index-C9gbKL_s.js.map
|