@eui/ecl 21.0.0-alpha.11 → 21.0.0-alpha.12
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/docs/changelog.html +42 -2
- package/docs/classes/EclAccordionToggleEvent.html +18 -0
- package/docs/classes/EclAppLanguageDismissEvent.html +18 -0
- package/docs/classes/EclAreaChangeEvent.html +18 -0
- package/docs/classes/EclBaseEvent.html +18 -0
- package/docs/classes/EclBreadcrumbSegmentClickEvent.html +18 -0
- package/docs/classes/EclCategoryFilterItemSelectEvent.html +18 -0
- package/docs/classes/EclDatePickerDatePickedEvent.html +18 -0
- package/docs/classes/EclDomEvent.html +18 -0
- package/docs/classes/EclExpandableToggleEvent.html +18 -0
- package/docs/classes/EclFileItemsToggleEvent.html +18 -0
- package/docs/classes/EclFileUploadFileSelectedEvent.html +18 -0
- package/docs/classes/EclGalleryFullScreenEvent.html +18 -0
- package/docs/classes/EclGalleryHideEvent.html +18 -0
- package/docs/classes/EclGalleryItemClickEvent.html +18 -0
- package/docs/classes/EclGalleryItemEvent.html +18 -0
- package/docs/classes/EclGalleryMediaSource.html +18 -0
- package/docs/classes/EclGalleryMediaTrack.html +18 -0
- package/docs/classes/EclGalleryPictureImage.html +18 -0
- package/docs/classes/EclGalleryPictureSource.html +18 -0
- package/docs/classes/EclGalleryShareEvent.html +18 -0
- package/docs/classes/EclGalleryShowEvent.html +18 -0
- package/docs/classes/EclGalleryToggleItemsEvent.html +18 -0
- package/docs/classes/EclInpageNavigationItemClickEvent.html +18 -0
- package/docs/classes/EclInpageNavigationSectionEnterEvent.html +18 -0
- package/docs/classes/EclLanguageService.html +18 -0
- package/docs/classes/EclMenuItemCaretEvent.html +18 -0
- package/docs/classes/EclMenuItemFocusEvent.html +18 -0
- package/docs/classes/EclMenuItemHoverEvent.html +18 -0
- package/docs/classes/EclMenuItemHoverOutEvent.html +18 -0
- package/docs/classes/EclMenuItemKeydownEvent.html +18 -0
- package/docs/classes/EclMenuItemParentFocusEvent.html +18 -0
- package/docs/classes/EclMenuItemSelectEvent.html +18 -0
- package/docs/classes/EclModalCloseEvent.html +18 -0
- package/docs/classes/EclModalOpenEvent.html +18 -0
- package/docs/classes/EclMultiselectMainInputClickEvent.html +18 -0
- package/docs/classes/EclMultiselectOptionClickEvent.html +18 -0
- package/docs/classes/EclMultiselectOptionKeydownEvent.html +18 -0
- package/docs/classes/EclNewsTickerItemEvent.html +18 -0
- package/docs/classes/EclNotificationCloseEvent.html +18 -0
- package/docs/classes/EclPaginationEvent.html +18 -0
- package/docs/classes/EclPaginationItemClickEvent.html +18 -0
- package/docs/classes/EclRangeEvent.html +18 -0
- package/docs/classes/EclRatingChangeEvent.html +18 -0
- package/docs/classes/EclSearchFormEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLanguageClickEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLanguageCloseEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLanguageSelectedEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLoginBoxToggleEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLoginEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLogoClickEvent.html +18 -0
- package/docs/classes/EclSiteHeaderSearchEvent.html +18 -0
- package/docs/classes/EclSiteHeaderSearchToggleEvent.html +18 -0
- package/docs/classes/EclSlideEvent.html +18 -0
- package/docs/classes/EclSocialMediaFollowItemClickEvent.html +18 -0
- package/docs/classes/EclSocialMediaShareItemClickEvent.html +18 -0
- package/docs/classes/EclSortTableEvent.html +18 -0
- package/docs/classes/EclTabSelectEvent.html +18 -0
- package/docs/classes/EclTagRemoveEvent.html +18 -0
- package/docs/classes/EclTimelineItemToggleEvent.html +18 -0
- package/docs/components/EclAccordionComponent.html +18 -0
- package/docs/components/EclAccordionItemComponent.html +18 -0
- package/docs/components/EclAppComponent.html +18 -0
- package/docs/components/EclBannerComponent.html +18 -0
- package/docs/components/EclBlockquoteComponent.html +18 -0
- package/docs/components/EclBreadcrumbComponent.html +18 -0
- package/docs/components/EclBreadcrumbSegmentComponent.html +18 -0
- package/docs/components/EclButtonComponent.html +18 -0
- package/docs/components/EclCardBodyComponent.html +18 -0
- package/docs/components/EclCardComponent.html +18 -0
- package/docs/components/EclCarouselComponent.html +18 -0
- package/docs/components/EclCarouselItemComponent.html +18 -0
- package/docs/components/EclCategoryFilterComponent.html +18 -0
- package/docs/components/EclCategoryFilterItemComponent.html +18 -0
- package/docs/components/EclCategoryFilterListComponent.html +18 -0
- package/docs/components/EclCheckboxHelpComponent.html +18 -0
- package/docs/components/EclCheckboxLabelComponent.html +18 -0
- package/docs/components/EclContentBlockComponent.html +18 -0
- package/docs/components/EclContentItemComponent.html +18 -0
- package/docs/components/EclDateBlockComponent.html +18 -0
- package/docs/components/EclDescriptionListDefinitionComponent.html +18 -0
- package/docs/components/EclExpandableComponent.html +18 -0
- package/docs/components/EclFactFiguresComponent.html +18 -0
- package/docs/components/EclFactFiguresDescriptionComponent.html +18 -0
- package/docs/components/EclFactFiguresItemComponent.html +18 -0
- package/docs/components/EclFactFiguresTitleComponent.html +18 -0
- package/docs/components/EclFactFiguresValueComponent.html +18 -0
- package/docs/components/EclFactFiguresViewAllComponent.html +18 -0
- package/docs/components/EclFeaturedComponent.html +18 -0
- package/docs/components/EclFeaturedItemComponent.html +18 -0
- package/docs/components/EclFeaturedItemDescriptionComponent.html +18 -0
- package/docs/components/EclFeaturedItemFooterComponent.html +18 -0
- package/docs/components/EclFileComponent.html +18 -0
- package/docs/components/EclFileItemComponent.html +18 -0
- package/docs/components/EclFileItemsComponent.html +18 -0
- package/docs/components/EclFileTaxonomyComponent.html +18 -0
- package/docs/components/EclFormGroupComponent.html +18 -0
- package/docs/components/EclFormLabelComponent.html +18 -0
- package/docs/components/EclGalleryComponent.html +18 -0
- package/docs/components/EclGalleryFooterComponent.html +18 -0
- package/docs/components/EclGalleryItemComponent.html +18 -0
- package/docs/components/EclIconComponent.html +18 -0
- package/docs/components/EclInpageNavigationComponent.html +18 -0
- package/docs/components/EclInpageNavigationItemComponent.html +18 -0
- package/docs/components/EclListIllustrationComponent.html +18 -0
- package/docs/components/EclListIllustrationItemComponent.html +18 -0
- package/docs/components/EclLoadingIndicatorComponent.html +18 -0
- package/docs/components/EclMediaContainerComponent.html +18 -0
- package/docs/components/EclMegaMenuComponent.html +18 -0
- package/docs/components/EclMegaMenuFeaturedComponent.html +18 -0
- package/docs/components/EclMegaMenuInfoComponent.html +18 -0
- package/docs/components/EclMegaMenuItemComponent.html +18 -0
- package/docs/components/EclMegaMenuSubitemComponent.html +18 -0
- package/docs/components/EclMenuComponent.html +18 -0
- package/docs/components/EclMenuItemComponent.html +18 -0
- package/docs/components/EclMenuMegaComponent.html +18 -0
- package/docs/components/EclMenuMegaItemComponent.html +18 -0
- package/docs/components/EclModalBodyComponent.html +18 -0
- package/docs/components/EclModalComponent.html +18 -0
- package/docs/components/EclModalFooterComponent.html +18 -0
- package/docs/components/EclModalHeaderComponent.html +18 -0
- package/docs/components/EclMultiselectComponent.html +19 -3
- package/docs/components/EclMultiselectDropdownComponent.html +19 -3
- package/docs/components/EclMultiselectInputComponent.html +18 -0
- package/docs/components/EclMultiselectOptgroupComponent.html +18 -0
- package/docs/components/EclMultiselectOptionComponent.html +18 -0
- package/docs/components/EclNavigationListComponent.html +18 -0
- package/docs/components/EclNavigationListItemComponent.html +18 -0
- package/docs/components/EclNewsTickerComponent.html +18 -0
- package/docs/components/EclNewsTickerItemComponent.html +18 -0
- package/docs/components/EclNotificationComponent.html +18 -0
- package/docs/components/EclPageHeaderComponent.html +18 -0
- package/docs/components/EclPaginationComponent.html +18 -0
- package/docs/components/EclPaginationItemComponent.html +18 -0
- package/docs/components/EclPopoverComponent.html +18 -0
- package/docs/components/EclRadioHelpComponent.html +18 -0
- package/docs/components/EclRadioLabelComponent.html +18 -0
- package/docs/components/EclRangeBubbleComponent.html +18 -0
- package/docs/components/EclRangeValueComponent.html +18 -0
- package/docs/components/EclRatingFieldComponent.html +18 -0
- package/docs/components/EclSearchFormComponent.html +18 -0
- package/docs/components/EclSelectContainerComponent.html +18 -0
- package/docs/components/EclSiteFooterComponent.html +18 -0
- package/docs/components/EclSiteFooterFixedContentECComponent.html +18 -0
- package/docs/components/EclSiteFooterFixedContentEUComponent.html +18 -0
- package/docs/components/EclSiteHeaderActionComponent.html +18 -0
- package/docs/components/EclSiteHeaderBannerTopComponent.html +18 -0
- package/docs/components/EclSiteHeaderComponent.html +18 -0
- package/docs/components/EclSiteHeaderCustomActionComponent.html +18 -0
- package/docs/components/EclSiteHeaderEnvironmentComponent.html +18 -0
- package/docs/components/EclSiteHeaderLanguageComponent.html +18 -0
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +18 -0
- package/docs/components/EclSiteHeaderLoginComponent.html +18 -0
- package/docs/components/EclSiteHeaderNotificationComponent.html +18 -0
- package/docs/components/EclSiteHeaderSearchComponent.html +18 -0
- package/docs/components/EclSocialMediaFollowComponent.html +18 -0
- package/docs/components/EclSocialMediaFollowItemComponent.html +18 -0
- package/docs/components/EclSocialMediaShareComponent.html +18 -0
- package/docs/components/EclSocialMediaShareItemComponent.html +18 -0
- package/docs/components/EclSplashPageComponent.html +18 -0
- package/docs/components/EclSplashPageLanguageCategoryComponent.html +18 -0
- package/docs/components/EclSplashPageLanguageContainerComponent.html +18 -0
- package/docs/components/EclSplashPageLanguageLinkComponent.html +18 -0
- package/docs/components/EclStickyContainerComponent.html +18 -0
- package/docs/components/EclTabComponent.html +18 -0
- package/docs/components/EclTabLabelComponent.html +18 -0
- package/docs/components/EclTabMoreComponent.html +18 -0
- package/docs/components/EclTableSortButtonComponent.html +18 -0
- package/docs/components/EclTabsComponent.html +18 -0
- package/docs/components/EclTagComponent.html +18 -0
- package/docs/components/EclTimelineComponent.html +18 -0
- package/docs/components/EclTimelineItemComponent.html +18 -0
- package/docs/components/EclTimelineItemTogglerComponent.html +18 -0
- package/docs/dependencies.html +18 -0
- package/docs/directives/ECLBaseDirective.html +18 -0
- package/docs/directives/ECLClickOutsideDirective.html +18 -0
- package/docs/directives/ECLFormLabelOptionalDirective.html +18 -0
- package/docs/directives/EclBannerDescriptionDirective.html +18 -0
- package/docs/directives/EclBannerDescriptionLinkDirective.html +18 -0
- package/docs/directives/EclBannerDescriptionTextDirective.html +18 -0
- package/docs/directives/EclBannerImageDirective.html +18 -0
- package/docs/directives/EclBannerPictureDirective.html +18 -0
- package/docs/directives/EclBannerTitleDirective.html +18 -0
- package/docs/directives/EclBannerTitleLinkDirective.html +18 -0
- package/docs/directives/EclBannerTitleTextDirective.html +18 -0
- package/docs/directives/EclBannerVideoDirective.html +18 -0
- package/docs/directives/EclBlockquoteImageDirective.html +18 -0
- package/docs/directives/EclBlockquotePictureDirective.html +18 -0
- package/docs/directives/EclBreadcrumbContainerDirective.html +18 -0
- package/docs/directives/EclButtonIconContainerDirective.html +18 -0
- package/docs/directives/EclButtonLabelDirective.html +18 -0
- package/docs/directives/EclCardImageDirective.html +18 -0
- package/docs/directives/EclCardPictureDirective.html +18 -0
- package/docs/directives/EclCheckboxDirective.html +18 -0
- package/docs/directives/EclCheckboxInputDirective.html +18 -0
- package/docs/directives/EclContentBlockDescriptionDirective.html +18 -0
- package/docs/directives/EclContentBlockLabelDirective.html +18 -0
- package/docs/directives/EclContentBlockLabelsDirective.html +18 -0
- package/docs/directives/EclContentBlockLinkDirective.html +18 -0
- package/docs/directives/EclContentBlockLinksContainerDirective.html +18 -0
- package/docs/directives/EclContentBlockLinksDirective.html +18 -0
- package/docs/directives/EclContentBlockListContainerDirective.html +18 -0
- package/docs/directives/EclContentBlockListDirective.html +18 -0
- package/docs/directives/EclContentBlockPrimaryMetaDirective.html +18 -0
- package/docs/directives/EclContentBlockPrimaryMetasDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetaDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetaIconDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetaLabelDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetasDirective.html +18 -0
- package/docs/directives/EclContentBlockTagDirective.html +18 -0
- package/docs/directives/EclContentBlockTagsDirective.html +18 -0
- package/docs/directives/EclContentBlockTitleDirective.html +18 -0
- package/docs/directives/EclContentItemImageDirective.html +18 -0
- package/docs/directives/EclContentItemPictureDirective.html +18 -0
- package/docs/directives/EclDatePickerDirective.html +18 -0
- package/docs/directives/EclDescriptionListDefinitionItemDirective.html +18 -0
- package/docs/directives/EclDescriptionListDefinitionListDirective.html +18 -0
- package/docs/directives/EclDescriptionListDirective.html +18 -0
- package/docs/directives/EclDescriptionListTermDirective.html +18 -0
- package/docs/directives/EclFeaturedItemFooterLinkDirective.html +18 -0
- package/docs/directives/EclFeaturedItemFooterPictureDirective.html +18 -0
- package/docs/directives/EclFeaturedItemLinkDirective.html +18 -0
- package/docs/directives/EclFeedbackMessageDirective.html +18 -0
- package/docs/directives/EclFileDownloadDirective.html +18 -0
- package/docs/directives/EclFileImageDirective.html +18 -0
- package/docs/directives/EclFilePictureDirective.html +18 -0
- package/docs/directives/EclFilePreviewDirective.html +18 -0
- package/docs/directives/EclFileTitleDirective.html +18 -0
- package/docs/directives/EclFileTranslationDownloadDirective.html +18 -0
- package/docs/directives/EclFileUploadDirective.html +18 -0
- package/docs/directives/EclGalleryMediaDirective.html +18 -0
- package/docs/directives/EclGalleryPictureDirective.html +18 -0
- package/docs/directives/EclGalleryThumbnailDirective.html +18 -0
- package/docs/directives/EclHelpBlockDirective.html +18 -0
- package/docs/directives/EclHiddenDirective.html +18 -0
- package/docs/directives/EclIndicatorDirective-1.html +18 -0
- package/docs/directives/EclIndicatorDirective.html +18 -0
- package/docs/directives/EclInpageNavigationListDirective.html +18 -0
- package/docs/directives/EclLabelDirective.html +18 -0
- package/docs/directives/EclLinkDirective.html +18 -0
- package/docs/directives/EclLinkIconContainerDirective.html +18 -0
- package/docs/directives/EclLinkLabelDirective.html +18 -0
- package/docs/directives/EclListIllustrationIconDirective.html +18 -0
- package/docs/directives/EclListIllustrationImageDirective.html +18 -0
- package/docs/directives/EclListIllustrationPictureDirective.html +18 -0
- package/docs/directives/EclLoadingIndicatorLabelDirective.html +18 -0
- package/docs/directives/EclLoadingIndicatorOverlayDirective.html +18 -0
- package/docs/directives/EclMediaContainerIframeDirective.html +18 -0
- package/docs/directives/EclMediaContainerItemAudioDescriptionDirective.html +18 -0
- package/docs/directives/EclMediaContainerItemDirective.html +18 -0
- package/docs/directives/EclMediaContainerPictureDirective.html +18 -0
- package/docs/directives/EclMegaMenuContainerDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedImageDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedListDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedListItemDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedPictureDirective.html +18 -0
- package/docs/directives/EclMegaMenuListDirective.html +18 -0
- package/docs/directives/EclMegaMenuSpacerDirective.html +18 -0
- package/docs/directives/EclMegaMenuSublistDirective.html +18 -0
- package/docs/directives/EclModalBodyFixedContentDirective.html +18 -0
- package/docs/directives/EclModalCloseDirective.html +18 -0
- package/docs/directives/EclModalTriggerDirective.html +18 -0
- package/docs/directives/EclMultiselectOptionDirective.html +18 -0
- package/docs/directives/EclNavigationListImageDirective.html +18 -0
- package/docs/directives/EclNavigationListPictureDirective.html +18 -0
- package/docs/directives/EclNewsTickerIconDirective.html +18 -0
- package/docs/directives/EclNotificationTitleDirective.html +18 -0
- package/docs/directives/EclOrderedListDirective.html +18 -0
- package/docs/directives/EclOrderedListItemDirective.html +18 -0
- package/docs/directives/EclPageHeaderBackgroundImageDirective.html +18 -0
- package/docs/directives/EclPageHeaderBackgroundPictureDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionContainerDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionPictureDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionThumbnailDirective.html +18 -0
- package/docs/directives/EclPageHeaderInfoDirective.html +18 -0
- package/docs/directives/EclPageHeaderMetaDirective.html +18 -0
- package/docs/directives/EclPageHeaderMetaItemDirective.html +18 -0
- package/docs/directives/EclPageHeaderTitleDirective.html +18 -0
- package/docs/directives/EclPaginationListDirective.html +18 -0
- package/docs/directives/EclPopoverContentDirective.html +18 -0
- package/docs/directives/EclPopoverToggleDirective.html +18 -0
- package/docs/directives/EclRadioDirective.html +18 -0
- package/docs/directives/EclRadioInputDirective.html +18 -0
- package/docs/directives/EclRangeDirective.html +18 -0
- package/docs/directives/EclSelectDirective.html +18 -0
- package/docs/directives/EclSeparatorDirective.html +18 -0
- package/docs/directives/EclSiteFooterColumnDirective.html +18 -0
- package/docs/directives/EclSiteFooterContentDirective.html +18 -0
- package/docs/directives/EclSiteFooterDescriptionDirective.html +18 -0
- package/docs/directives/EclSiteFooterLinkDirective.html +18 -0
- package/docs/directives/EclSiteFooterListDirective.html +18 -0
- package/docs/directives/EclSiteFooterListItemDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoImageDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoItemDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoLinkDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoListDirective.html +18 -0
- package/docs/directives/EclSiteFooterPictureDirective.html +18 -0
- package/docs/directives/EclSiteFooterRowDirective.html +18 -0
- package/docs/directives/EclSiteFooterSectionDirective.html +18 -0
- package/docs/directives/EclSiteFooterTitleDirective.html +18 -0
- package/docs/directives/EclSiteFooterTitleLinkDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCtaDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCustomActionContentDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCustomActionLinkDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCustomActionTitleDirective.html +18 -0
- package/docs/directives/EclSiteHeaderImageDirective.html +18 -0
- package/docs/directives/EclSiteHeaderLinkDirective.html +18 -0
- package/docs/directives/EclSiteHeaderLoginDescriptionDirective.html +18 -0
- package/docs/directives/EclSiteHeaderLoginSeparatorDirective.html +18 -0
- package/docs/directives/EclSiteHeaderPictureDirective.html +18 -0
- package/docs/directives/EclSocialMediaFollowLinkDirective.html +18 -0
- package/docs/directives/EclSocialMediaShareLinkDirective.html +18 -0
- package/docs/directives/EclSplashPageLanguageItemDirective.html +18 -0
- package/docs/directives/EclSplashPageLanguageListDirective.html +18 -0
- package/docs/directives/EclSplashPageLogoImageDirective.html +18 -0
- package/docs/directives/EclSplashPageLogoLinkDirective.html +18 -0
- package/docs/directives/EclSplashPagePictureDirective.html +18 -0
- package/docs/directives/EclTableBodyDirective.html +18 -0
- package/docs/directives/EclTableCaptionDirective.html +18 -0
- package/docs/directives/EclTableCellDirective.html +18 -0
- package/docs/directives/EclTableCellGroupDirective.html +18 -0
- package/docs/directives/EclTableDirective.html +18 -0
- package/docs/directives/EclTableHeadDirective.html +18 -0
- package/docs/directives/EclTableHeaderDirective.html +18 -0
- package/docs/directives/EclTableResponsiveDirective.html +18 -0
- package/docs/directives/EclTableRowDirective.html +18 -0
- package/docs/directives/EclTagIconExternalDirective.html +18 -0
- package/docs/directives/EclTagSetDirective.html +18 -0
- package/docs/directives/EclTagSetItemDirective.html +18 -0
- package/docs/directives/EclTextAreaDirective.html +18 -0
- package/docs/directives/EclTextInputDirective.html +18 -0
- package/docs/directives/EclTimelineItemLabelDirective.html +18 -0
- package/docs/directives/EclTimelineItemTitleDirective.html +18 -0
- package/docs/directives/EclUnorderedListDirective.html +18 -0
- package/docs/directives/EclUnorderedListItemDirective.html +18 -0
- package/docs/index.html +20 -2
- package/docs/injectables/EclAreaDataService.html +18 -0
- package/docs/injectables/EclDefaultLanguageService.html +18 -0
- package/docs/injectables/EclHeaderMenuComunicationService.html +18 -0
- package/docs/injectables/EclInpageNavigationService.html +18 -0
- package/docs/injectables/EclMegaMenuDataService.html +18 -0
- package/docs/injectables/EclMegaMenuService.html +18 -0
- package/docs/injectables/EclRtlService.html +18 -0
- package/docs/injectables/EclThemeService.html +18 -0
- package/docs/injectables/EclUserDeviceService.html +18 -0
- package/docs/interfaces/EclBreadcrumb.html +18 -0
- package/docs/interfaces/EclCarouselItem.html +18 -0
- package/docs/interfaces/EclCategoryFilterItem.html +18 -0
- package/docs/interfaces/EclFileUpload.html +18 -0
- package/docs/interfaces/EclGalleryItem.html +18 -0
- package/docs/interfaces/EclLanguage.html +18 -0
- package/docs/interfaces/EclMegaMenuItem.html +18 -0
- package/docs/interfaces/EclMenuItem.html +18 -0
- package/docs/interfaces/EclModalResult.html +18 -0
- package/docs/interfaces/EclMultiselectOption.html +18 -0
- package/docs/interfaces/EclTab.html +18 -0
- package/docs/js/libs/bootstrap-native.js +1 -1
- package/docs/js/libs/jszip.min.js +13 -0
- package/docs/js/libs/svg-pan-zoom.min.js +3 -3
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +3 -3
- package/docs/js/menu-wc.js +30 -20
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/routes/routes_index.js +1 -0
- package/docs/js/routes.js +15 -8
- package/docs/js/search/search_index.js +2 -2
- package/docs/license.html +20 -2
- package/docs/miscellaneous/enumerations.html +18 -0
- package/docs/miscellaneous/variables.html +18 -0
- package/docs/modules/EclAccordionModule.html +18 -0
- package/docs/modules/EclAllModule.html +27 -0
- package/docs/modules/EclAppModule.html +18 -0
- package/docs/modules/EclBannerModule.html +18 -0
- package/docs/modules/EclBlockquoteModule.html +18 -0
- package/docs/modules/EclBreadcrumbModule.html +18 -0
- package/docs/modules/EclButtonModule.html +18 -0
- package/docs/modules/EclCardModule.html +18 -0
- package/docs/modules/EclCarouselModule.html +18 -0
- package/docs/modules/EclCategoryFilterModule.html +18 -0
- package/docs/modules/EclCheckboxModule.html +18 -0
- package/docs/modules/EclContentBlockModule.html +18 -0
- package/docs/modules/EclContentItemModule.html +18 -0
- package/docs/modules/EclDateBlockModule.html +18 -0
- package/docs/modules/EclDatePickerModule.html +18 -0
- package/docs/modules/EclExpandableModule.html +18 -0
- package/docs/modules/EclFactFiguresModule.html +18 -0
- package/docs/modules/EclFeaturedModule.html +18 -0
- package/docs/modules/EclFeedbackMessageModule.html +18 -0
- package/docs/modules/EclFileModule.html +18 -0
- package/docs/modules/EclFileUploadModule.html +18 -0
- package/docs/modules/EclFormGroupModule.html +18 -0
- package/docs/modules/EclFormLabelModule.html +18 -0
- package/docs/modules/EclGalleryModule.html +18 -0
- package/docs/modules/EclHelpBlockModule.html +18 -0
- package/docs/modules/EclHiddenModule.html +18 -0
- package/docs/modules/EclIconModule.html +18 -0
- package/docs/modules/EclInpageNavigationModule.html +18 -0
- package/docs/modules/EclLabelModule.html +18 -0
- package/docs/modules/EclLinkModule.html +18 -0
- package/docs/modules/EclListIllustrationModule.html +18 -0
- package/docs/modules/EclListModule.html +18 -0
- package/docs/modules/EclLoadingIndicatorModule.html +18 -0
- package/docs/modules/EclMediaContainerModule.html +18 -0
- package/docs/modules/EclMegaMenuModule.html +18 -0
- package/docs/modules/EclMenuModule.html +18 -0
- package/docs/modules/EclModalModule.html +18 -0
- package/docs/modules/EclMultiselectModule.html +18 -0
- package/docs/modules/EclNavigationListModule.html +18 -0
- package/docs/modules/EclNewsTickerModule.html +18 -0
- package/docs/modules/EclNotificationModule.html +18 -0
- package/docs/modules/EclPageHeaderModule.html +18 -0
- package/docs/modules/EclPaginationModule.html +18 -0
- package/docs/modules/EclPopoverModule.html +18 -0
- package/docs/modules/EclRadioModule.html +18 -0
- package/docs/modules/EclRangeModule.html +18 -0
- package/docs/modules/EclRatingFieldModule.html +18 -0
- package/docs/modules/EclSearchFormModule.html +18 -0
- package/docs/modules/EclSelectModule.html +18 -0
- package/docs/modules/EclSeparatorModule.html +18 -0
- package/docs/modules/EclSiteFooterModule.html +18 -0
- package/docs/modules/EclSiteHeaderModule.html +18 -0
- package/docs/modules/EclSocialMediaFollowModule.html +18 -0
- package/docs/modules/EclSocialMediaShareModule.html +18 -0
- package/docs/modules/EclSplashPageModule.html +18 -0
- package/docs/modules/EclStickyContainerModule.html +18 -0
- package/docs/modules/EclTableModule.html +18 -0
- package/docs/modules/EclTabsModule.html +18 -0
- package/docs/modules/EclTagModule.html +18 -0
- package/docs/modules/EclTextAreaModule.html +18 -0
- package/docs/modules/EclTextInputModule.html +18 -0
- package/docs/modules/EclTimelineModule.html +18 -0
- package/docs/modules.html +18 -0
- package/docs/overview.html +28 -0
- package/docs/pipes/BoldTextPipe.html +18 -0
- package/docs/properties.html +19 -1
- package/docs/routes.html +204 -0
- package/docs/template-playground/default-templates.json +192 -0
- package/docs/template-playground/hbs-render.service.ts +212 -0
- package/docs/template-playground/main.ts +9 -0
- package/docs/template-playground/template-editor.service.ts +173 -0
- package/docs/template-playground/template-playground.component.ts +614 -0
- package/docs/template-playground/template-playground.module.ts +29 -0
- package/docs/template-playground/zip-export.service.ts +86 -0
- package/docs/template-playground-app/app.js +1389 -0
- package/docs/template-playground-app/index.html +462 -0
- package/package.json +27 -27
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"templates": [
|
|
3
|
+
{
|
|
4
|
+
"name": "page.hbs",
|
|
5
|
+
"path": "page.hbs",
|
|
6
|
+
"description": "Main page template - the base layout for all documentation pages",
|
|
7
|
+
"type": "hbs",
|
|
8
|
+
"category": "core",
|
|
9
|
+
"content": "<!-- This will be populated with the actual page.hbs content -->"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "component.hbs",
|
|
13
|
+
"path": "partials/component.hbs",
|
|
14
|
+
"description": "Component detail template - displays Angular component documentation",
|
|
15
|
+
"type": "hbs",
|
|
16
|
+
"category": "partials",
|
|
17
|
+
"content": "<!-- This will be populated with the actual component.hbs content -->"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "module.hbs",
|
|
21
|
+
"path": "partials/module.hbs",
|
|
22
|
+
"description": "Module detail template - displays Angular module documentation",
|
|
23
|
+
"type": "hbs",
|
|
24
|
+
"category": "partials",
|
|
25
|
+
"content": "<!-- This will be populated with the actual module.hbs content -->"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "overview.hbs",
|
|
29
|
+
"path": "partials/overview.hbs",
|
|
30
|
+
"description": "Overview template - displays the main overview page",
|
|
31
|
+
"type": "hbs",
|
|
32
|
+
"category": "partials",
|
|
33
|
+
"content": "<!-- This will be populated with the actual overview.hbs content -->"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "class.hbs",
|
|
37
|
+
"path": "partials/class.hbs",
|
|
38
|
+
"description": "Class detail template - displays TypeScript class documentation",
|
|
39
|
+
"type": "hbs",
|
|
40
|
+
"category": "partials",
|
|
41
|
+
"content": "<!-- This will be populated with the actual class.hbs content -->"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "interface.hbs",
|
|
45
|
+
"path": "partials/interface.hbs",
|
|
46
|
+
"description": "Interface detail template - displays TypeScript interface documentation",
|
|
47
|
+
"type": "hbs",
|
|
48
|
+
"category": "partials",
|
|
49
|
+
"content": "<!-- This will be populated with the actual interface.hbs content -->"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "injectable.hbs",
|
|
53
|
+
"path": "partials/injectable.hbs",
|
|
54
|
+
"description": "Injectable service template - displays Angular service documentation",
|
|
55
|
+
"type": "hbs",
|
|
56
|
+
"category": "partials",
|
|
57
|
+
"content": "<!-- This will be populated with the actual injectable.hbs content -->"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "directive.hbs",
|
|
61
|
+
"path": "partials/directive.hbs",
|
|
62
|
+
"description": "Directive template - displays Angular directive documentation",
|
|
63
|
+
"type": "hbs",
|
|
64
|
+
"category": "partials",
|
|
65
|
+
"content": "<!-- This will be populated with the actual directive.hbs content -->"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "pipe.hbs",
|
|
69
|
+
"path": "partials/pipe.hbs",
|
|
70
|
+
"description": "Pipe template - displays Angular pipe documentation",
|
|
71
|
+
"type": "hbs",
|
|
72
|
+
"category": "partials",
|
|
73
|
+
"content": "<!-- This will be populated with the actual pipe.hbs content -->"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "guard.hbs",
|
|
77
|
+
"path": "partials/guard.hbs",
|
|
78
|
+
"description": "Guard template - displays Angular guard documentation",
|
|
79
|
+
"type": "hbs",
|
|
80
|
+
"category": "partials",
|
|
81
|
+
"content": "<!-- This will be populated with the actual guard.hbs content -->"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "interceptor.hbs",
|
|
85
|
+
"path": "partials/interceptor.hbs",
|
|
86
|
+
"description": "Interceptor template - displays Angular interceptor documentation",
|
|
87
|
+
"type": "hbs",
|
|
88
|
+
"category": "partials",
|
|
89
|
+
"content": "<!-- This will be populated with the actual interceptor.hbs content -->"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "menu.hbs",
|
|
93
|
+
"path": "partials/menu.hbs",
|
|
94
|
+
"description": "Navigation menu template - displays the sidebar navigation",
|
|
95
|
+
"type": "hbs",
|
|
96
|
+
"category": "partials",
|
|
97
|
+
"content": "<!-- This will be populated with the actual menu.hbs content -->"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"styles": [
|
|
101
|
+
{
|
|
102
|
+
"name": "compodoc.css",
|
|
103
|
+
"path": "styles/compodoc.css",
|
|
104
|
+
"description": "Main stylesheet - contains the core styles for Compodoc",
|
|
105
|
+
"type": "css",
|
|
106
|
+
"category": "core",
|
|
107
|
+
"content": "/* This will be populated with the actual compodoc.css content */"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "bootstrap.min.css",
|
|
111
|
+
"path": "styles/bootstrap.min.css",
|
|
112
|
+
"description": "Bootstrap CSS framework - provides base styling components",
|
|
113
|
+
"type": "css",
|
|
114
|
+
"category": "vendor",
|
|
115
|
+
"content": "/* This will be populated with the actual bootstrap.min.css content */"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "dark.css",
|
|
119
|
+
"path": "styles/dark.css",
|
|
120
|
+
"description": "Dark mode styles - contains dark theme styling",
|
|
121
|
+
"type": "css",
|
|
122
|
+
"category": "theme",
|
|
123
|
+
"content": "/* This will be populated with the actual dark.css content */"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "gitbook.css",
|
|
127
|
+
"path": "styles/gitbook.css",
|
|
128
|
+
"description": "GitBook theme styles - alternative theme styling",
|
|
129
|
+
"type": "css",
|
|
130
|
+
"category": "theme",
|
|
131
|
+
"content": "/* This will be populated with the actual gitbook.css content */"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "material.css",
|
|
135
|
+
"path": "styles/material.css",
|
|
136
|
+
"description": "Material design theme styles - Material theme styling",
|
|
137
|
+
"type": "css",
|
|
138
|
+
"category": "theme",
|
|
139
|
+
"content": "/* This will be populated with the actual material.css content */"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"scripts": [
|
|
143
|
+
{
|
|
144
|
+
"name": "compodoc.js",
|
|
145
|
+
"path": "js/compodoc.js",
|
|
146
|
+
"description": "Main JavaScript file - contains core Compodoc functionality",
|
|
147
|
+
"type": "js",
|
|
148
|
+
"category": "core",
|
|
149
|
+
"content": "// This will be populated with the actual compodoc.js content"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "menu.js",
|
|
153
|
+
"path": "js/menu.js",
|
|
154
|
+
"description": "Menu functionality - handles navigation menu interactions",
|
|
155
|
+
"type": "js",
|
|
156
|
+
"category": "core",
|
|
157
|
+
"content": "// This will be populated with the actual menu.js content"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "tabs.js",
|
|
161
|
+
"path": "js/tabs.js",
|
|
162
|
+
"description": "Tab functionality - handles tab navigation in documentation pages",
|
|
163
|
+
"type": "js",
|
|
164
|
+
"category": "core",
|
|
165
|
+
"content": "// This will be populated with the actual tabs.js content"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "search.js",
|
|
169
|
+
"path": "js/search/search.js",
|
|
170
|
+
"description": "Search functionality - handles documentation search features",
|
|
171
|
+
"type": "js",
|
|
172
|
+
"category": "feature",
|
|
173
|
+
"content": "// This will be populated with the actual search.js content"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "sourceCode.js",
|
|
177
|
+
"path": "js/sourceCode.js",
|
|
178
|
+
"description": "Source code display - handles syntax highlighting and code display",
|
|
179
|
+
"type": "js",
|
|
180
|
+
"category": "feature",
|
|
181
|
+
"content": "// This will be populated with the actual sourceCode.js content"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "lazy-load-graphs.js",
|
|
185
|
+
"path": "js/lazy-load-graphs.js",
|
|
186
|
+
"description": "Graph loading - handles lazy loading of dependency graphs",
|
|
187
|
+
"type": "js",
|
|
188
|
+
"category": "feature",
|
|
189
|
+
"content": "// This will be populated with the actual lazy-load-graphs.js content"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const Handlebars: any;
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root'
|
|
7
|
+
})
|
|
8
|
+
export class HbsRenderService {
|
|
9
|
+
private handlebarsInstance: any;
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
this.initializeHandlebars();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
private initializeHandlebars() {
|
|
16
|
+
// Create a new Handlebars instance for the playground
|
|
17
|
+
this.handlebarsInstance = Handlebars.create();
|
|
18
|
+
|
|
19
|
+
// Register common helpers used in Compodoc templates
|
|
20
|
+
this.registerHelpers();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
private registerHelpers() {
|
|
24
|
+
// Register the 'compare' helper
|
|
25
|
+
this.handlebarsInstance.registerHelper('compare', (left: any, operator: string, right: any, options: any) => {
|
|
26
|
+
let result;
|
|
27
|
+
switch (operator) {
|
|
28
|
+
case '===':
|
|
29
|
+
result = left === right;
|
|
30
|
+
break;
|
|
31
|
+
case '!==':
|
|
32
|
+
result = left !== right;
|
|
33
|
+
break;
|
|
34
|
+
case '<':
|
|
35
|
+
result = left < right;
|
|
36
|
+
break;
|
|
37
|
+
case '>':
|
|
38
|
+
result = left > right;
|
|
39
|
+
break;
|
|
40
|
+
case '<=':
|
|
41
|
+
result = left <= right;
|
|
42
|
+
break;
|
|
43
|
+
case '>=':
|
|
44
|
+
result = left >= right;
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
result = false;
|
|
48
|
+
}
|
|
49
|
+
return result ? options.fn(this) : options.inverse(this);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// Register the 'unless' helper
|
|
53
|
+
this.handlebarsInstance.registerHelper('unless', (conditional: any, options: any) => {
|
|
54
|
+
return !conditional ? options.fn(this) : options.inverse(this);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// Register the 'each' helper with index
|
|
58
|
+
this.handlebarsInstance.registerHelper('each', (context: any, options: any) => {
|
|
59
|
+
let ret = '';
|
|
60
|
+
for (let i = 0; i < context.length; i++) {
|
|
61
|
+
ret += options.fn(context[i], { data: { index: i } });
|
|
62
|
+
}
|
|
63
|
+
return ret;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// Register the 'if' helper
|
|
67
|
+
this.handlebarsInstance.registerHelper('if', (conditional: any, options: any) => {
|
|
68
|
+
return conditional ? options.fn(this) : options.inverse(this);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// Register the 'relativeURL' helper
|
|
72
|
+
this.handlebarsInstance.registerHelper('relativeURL', (depth: number, page?: string) => {
|
|
73
|
+
let url = '';
|
|
74
|
+
for (let i = 0; i < depth; i++) {
|
|
75
|
+
url += '../';
|
|
76
|
+
}
|
|
77
|
+
return url + (page || '');
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// Register the 't' helper for translations
|
|
81
|
+
this.handlebarsInstance.registerHelper('t', (key: string) => {
|
|
82
|
+
// Simple translation mapping for preview
|
|
83
|
+
const translations: { [key: string]: string } = {
|
|
84
|
+
'info': 'Information',
|
|
85
|
+
'source': 'Source',
|
|
86
|
+
'example': 'Example',
|
|
87
|
+
'template': 'Template',
|
|
88
|
+
'styles': 'Styles',
|
|
89
|
+
'component': 'Component',
|
|
90
|
+
'module': 'Module',
|
|
91
|
+
'overview': 'Overview',
|
|
92
|
+
'components': 'Components',
|
|
93
|
+
'modules': 'Modules',
|
|
94
|
+
'file': 'File',
|
|
95
|
+
'description': 'Description',
|
|
96
|
+
'selector': 'Selector',
|
|
97
|
+
'properties': 'Properties',
|
|
98
|
+
'methods': 'Methods',
|
|
99
|
+
'inputs': 'Inputs',
|
|
100
|
+
'outputs': 'Outputs'
|
|
101
|
+
};
|
|
102
|
+
return translations[key] || key;
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// Register the 'orLength' helper
|
|
106
|
+
this.handlebarsInstance.registerHelper('orLength', (...args: any[]) => {
|
|
107
|
+
const options = args[args.length - 1];
|
|
108
|
+
const values = args.slice(0, -1);
|
|
109
|
+
|
|
110
|
+
for (const value of values) {
|
|
111
|
+
if (value && value.length && value.length > 0) {
|
|
112
|
+
return options.fn(this);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return options.inverse(this);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// Register the 'isTabEnabled' helper
|
|
119
|
+
this.handlebarsInstance.registerHelper('isTabEnabled', (navTabs: any[], tabId: string, options: any) => {
|
|
120
|
+
const tab = navTabs && navTabs.find((t: any) => t.id === tabId);
|
|
121
|
+
return tab ? options.fn(this) : options.inverse(this);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
// Register the 'isInitialTab' helper
|
|
125
|
+
this.handlebarsInstance.registerHelper('isInitialTab', (navTabs: any[], tabId: string, options: any) => {
|
|
126
|
+
const isInitial = navTabs && navTabs.length > 0 && navTabs[0].id === tabId;
|
|
127
|
+
return isInitial ? options.fn(this) : options.inverse(this);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
renderTemplate(templateContent: string, data: any): string {
|
|
132
|
+
try {
|
|
133
|
+
// Create a complete HTML document for preview
|
|
134
|
+
const template = this.handlebarsInstance.compile(templateContent);
|
|
135
|
+
const rendered = template({ data });
|
|
136
|
+
|
|
137
|
+
// Wrap in a basic HTML structure for preview
|
|
138
|
+
return `
|
|
139
|
+
<!DOCTYPE html>
|
|
140
|
+
<html>
|
|
141
|
+
<head>
|
|
142
|
+
<meta charset="utf-8">
|
|
143
|
+
<title>Template Preview</title>
|
|
144
|
+
<style>
|
|
145
|
+
body { font-family: Arial, sans-serif; margin: 20px; }
|
|
146
|
+
.preview-wrapper { border: 1px solid #ddd; padding: 20px; }
|
|
147
|
+
.preview-notice { background: #f0f8ff; padding: 10px; margin-bottom: 20px; border-left: 4px solid #007bff; }
|
|
148
|
+
</style>
|
|
149
|
+
</head>
|
|
150
|
+
<body>
|
|
151
|
+
<div class="preview-notice">
|
|
152
|
+
<strong>Template Preview:</strong> This is a live preview of your template with mock data.
|
|
153
|
+
</div>
|
|
154
|
+
<div class="preview-wrapper">
|
|
155
|
+
${rendered}
|
|
156
|
+
</div>
|
|
157
|
+
</body>
|
|
158
|
+
</html>
|
|
159
|
+
`;
|
|
160
|
+
} catch (error) {
|
|
161
|
+
return `
|
|
162
|
+
<!DOCTYPE html>
|
|
163
|
+
<html>
|
|
164
|
+
<head>
|
|
165
|
+
<meta charset="utf-8">
|
|
166
|
+
<title>Template Preview - Error</title>
|
|
167
|
+
<style>
|
|
168
|
+
body { font-family: Arial, sans-serif; margin: 20px; }
|
|
169
|
+
.error { color: red; background: #fff5f5; padding: 20px; border: 1px solid #red; }
|
|
170
|
+
</style>
|
|
171
|
+
</head>
|
|
172
|
+
<body>
|
|
173
|
+
<div class="error">
|
|
174
|
+
<h3>Template Error</h3>
|
|
175
|
+
<p><strong>Error:</strong> ${error.message}</p>
|
|
176
|
+
<p>Please check your template syntax and try again.</p>
|
|
177
|
+
</div>
|
|
178
|
+
</body>
|
|
179
|
+
</html>
|
|
180
|
+
`;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
getMockData(): any {
|
|
185
|
+
return {
|
|
186
|
+
documentationMainName: 'Sample Documentation',
|
|
187
|
+
depth: 0,
|
|
188
|
+
context: 'component',
|
|
189
|
+
components: [
|
|
190
|
+
{
|
|
191
|
+
name: 'SampleComponent',
|
|
192
|
+
selector: 'app-sample',
|
|
193
|
+
file: 'src/app/sample/sample.component.ts',
|
|
194
|
+
description: 'A sample component for demonstration',
|
|
195
|
+
properties: [
|
|
196
|
+
{ name: 'title', type: 'string', description: 'The component title' },
|
|
197
|
+
{ name: 'isVisible', type: 'boolean', description: 'Whether the component is visible' }
|
|
198
|
+
],
|
|
199
|
+
methods: [
|
|
200
|
+
{ name: 'ngOnInit', description: 'Lifecycle hook', signature: 'ngOnInit(): void' },
|
|
201
|
+
{ name: 'onClick', description: 'Handle click events', signature: 'onClick(event: MouseEvent): void' }
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
navTabs: [
|
|
206
|
+
{ id: 'info', label: 'Info', href: '#info' },
|
|
207
|
+
{ id: 'source', label: 'Source', href: '#source' },
|
|
208
|
+
{ id: 'example', label: 'Example', href: '#example' }
|
|
209
|
+
]
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
2
|
+
import { TemplatePlaygroundModule } from './template-playground.module';
|
|
3
|
+
|
|
4
|
+
// Bootstrap the Angular application when the DOM is ready
|
|
5
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
6
|
+
platformBrowserDynamic()
|
|
7
|
+
.bootstrapModule(TemplatePlaygroundModule)
|
|
8
|
+
.catch(err => console.error('Error starting template playground:', err));
|
|
9
|
+
});
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const monaco: any;
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root'
|
|
7
|
+
})
|
|
8
|
+
export class TemplateEditorService {
|
|
9
|
+
private editor: any;
|
|
10
|
+
private onChangeCallback: ((value: string) => void) | null = null;
|
|
11
|
+
|
|
12
|
+
initializeEditor(container: HTMLElement) {
|
|
13
|
+
// Initialize Monaco Editor
|
|
14
|
+
this.editor = monaco.editor.create(container, {
|
|
15
|
+
value: '',
|
|
16
|
+
language: 'html',
|
|
17
|
+
theme: 'vs-dark',
|
|
18
|
+
automaticLayout: true,
|
|
19
|
+
minimap: {
|
|
20
|
+
enabled: true
|
|
21
|
+
},
|
|
22
|
+
scrollBeyondLastLine: false,
|
|
23
|
+
fontSize: 14,
|
|
24
|
+
wordWrap: 'on',
|
|
25
|
+
lineNumbers: 'on',
|
|
26
|
+
roundedSelection: false,
|
|
27
|
+
scrollbar: {
|
|
28
|
+
horizontal: 'visible',
|
|
29
|
+
vertical: 'visible'
|
|
30
|
+
},
|
|
31
|
+
overviewRulerLanes: 2,
|
|
32
|
+
quickSuggestions: {
|
|
33
|
+
other: true,
|
|
34
|
+
comments: true,
|
|
35
|
+
strings: true
|
|
36
|
+
},
|
|
37
|
+
parameterHints: {
|
|
38
|
+
enabled: true
|
|
39
|
+
},
|
|
40
|
+
autoClosingBrackets: 'always',
|
|
41
|
+
autoClosingQuotes: 'always',
|
|
42
|
+
suggestOnTriggerCharacters: true,
|
|
43
|
+
acceptSuggestionOnEnter: 'on',
|
|
44
|
+
tabCompletion: 'on',
|
|
45
|
+
wordBasedSuggestions: false
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// Set up change listener
|
|
49
|
+
this.editor.onDidChangeModelContent(() => {
|
|
50
|
+
if (this.onChangeCallback) {
|
|
51
|
+
this.onChangeCallback(this.editor.getValue());
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Register custom language definitions
|
|
56
|
+
this.registerHandlebarsLanguage();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
setEditorContent(content: string, fileType: string) {
|
|
60
|
+
if (this.editor) {
|
|
61
|
+
const language = this.getLanguageFromFileType(fileType);
|
|
62
|
+
const model = monaco.editor.createModel(content, language);
|
|
63
|
+
this.editor.setModel(model);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
setOnChangeCallback(callback: (value: string) => void) {
|
|
68
|
+
this.onChangeCallback = callback;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private getLanguageFromFileType(fileType: string): string {
|
|
72
|
+
switch (fileType) {
|
|
73
|
+
case 'hbs':
|
|
74
|
+
return 'handlebars';
|
|
75
|
+
case 'css':
|
|
76
|
+
case 'scss':
|
|
77
|
+
return 'css';
|
|
78
|
+
case 'js':
|
|
79
|
+
return 'javascript';
|
|
80
|
+
case 'ts':
|
|
81
|
+
return 'typescript';
|
|
82
|
+
default:
|
|
83
|
+
return 'html';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private registerHandlebarsLanguage() {
|
|
88
|
+
// Register Handlebars language for Monaco Editor
|
|
89
|
+
if (monaco.languages.getLanguages().find((lang: any) => lang.id === 'handlebars')) {
|
|
90
|
+
return; // Already registered
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
monaco.languages.register({ id: 'handlebars' });
|
|
94
|
+
|
|
95
|
+
monaco.languages.setMonarchTokensProvider('handlebars', {
|
|
96
|
+
tokenizer: {
|
|
97
|
+
root: [
|
|
98
|
+
[/\{\{\{/, { token: 'keyword', next: '@handlebars_unescaped' }],
|
|
99
|
+
[/\{\{/, { token: 'keyword', next: '@handlebars' }],
|
|
100
|
+
[/<!DOCTYPE/, 'metatag', '@doctype'],
|
|
101
|
+
[/<!--/, 'comment', '@comment'],
|
|
102
|
+
[/(<)(\w+)/, ['delimiter', { token: 'tag', next: '@tag' }]],
|
|
103
|
+
[/(<\/)(\w+)/, ['delimiter', { token: 'tag', next: '@tag' }]],
|
|
104
|
+
[/</, 'delimiter'],
|
|
105
|
+
[/[^<]+/]
|
|
106
|
+
],
|
|
107
|
+
|
|
108
|
+
handlebars_unescaped: [
|
|
109
|
+
[/\}\}\}/, { token: 'keyword', next: '@pop' }],
|
|
110
|
+
[/[^}]+/, 'variable']
|
|
111
|
+
],
|
|
112
|
+
|
|
113
|
+
handlebars: [
|
|
114
|
+
[/\}\}/, { token: 'keyword', next: '@pop' }],
|
|
115
|
+
[/#if|#unless|#each|#with|\/if|\/unless|\/each|\/with/, 'keyword'],
|
|
116
|
+
[/[a-zA-Z_][\w]*/, 'variable'],
|
|
117
|
+
[/[^}]+/, 'variable']
|
|
118
|
+
],
|
|
119
|
+
|
|
120
|
+
comment: [
|
|
121
|
+
[/-->/, 'comment', '@pop'],
|
|
122
|
+
[/[^-]+/, 'comment'],
|
|
123
|
+
[/./, 'comment']
|
|
124
|
+
],
|
|
125
|
+
|
|
126
|
+
doctype: [
|
|
127
|
+
[/[^>]+/, 'metatag.content'],
|
|
128
|
+
[/>/, 'metatag', '@pop']
|
|
129
|
+
],
|
|
130
|
+
|
|
131
|
+
tag: [
|
|
132
|
+
[/[ \t\r\n]+/, 'white'],
|
|
133
|
+
[/(\w+)(\s*=\s*)("([^"]*)")/, ['attribute.name', 'delimiter', 'attribute.value', 'attribute.value']],
|
|
134
|
+
[/(\w+)(\s*=\s*)('([^']*)')/, ['attribute.name', 'delimiter', 'attribute.value', 'attribute.value']],
|
|
135
|
+
[/\w+/, 'attribute.name'],
|
|
136
|
+
[/>/, 'delimiter', '@pop']
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
monaco.languages.setLanguageConfiguration('handlebars', {
|
|
142
|
+
comments: {
|
|
143
|
+
blockComment: ['<!--', '-->']
|
|
144
|
+
},
|
|
145
|
+
brackets: [
|
|
146
|
+
['<', '>'],
|
|
147
|
+
['{{', '}}'],
|
|
148
|
+
['{{{', '}}}']
|
|
149
|
+
],
|
|
150
|
+
autoClosingPairs: [
|
|
151
|
+
{ open: '<', close: '>' },
|
|
152
|
+
{ open: '{{', close: '}}' },
|
|
153
|
+
{ open: '{{{', close: '}}}' },
|
|
154
|
+
{ open: '"', close: '"' },
|
|
155
|
+
{ open: "'", close: "'" }
|
|
156
|
+
],
|
|
157
|
+
surroundingPairs: [
|
|
158
|
+
{ open: '<', close: '>' },
|
|
159
|
+
{ open: '{{', close: '}}' },
|
|
160
|
+
{ open: '{{{', close: '}}}' },
|
|
161
|
+
{ open: '"', close: '"' },
|
|
162
|
+
{ open: "'", close: "'" }
|
|
163
|
+
]
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
destroy() {
|
|
168
|
+
if (this.editor) {
|
|
169
|
+
this.editor.dispose();
|
|
170
|
+
this.editor = null;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|