@ngstarter-ui/components 22.3.5 → 22.4.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/README.md +27 -0
- package/ai/component-registry.json +186 -101
- package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
- package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
- package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
- package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
- package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
- package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
- package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
- package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
- package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
- package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
- package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
- package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
- package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
- package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
- package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
- package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
- package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
- package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
- package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
- package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
- package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
- package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
- package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
- package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
- package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
- package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
- package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
- package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
- package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
- package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
- package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
- package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
- package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
- package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
- package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
- package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
- package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
- package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
- package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
- package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
- package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
- package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
- package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
- package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
- package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
- package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
- package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
- package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
- package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
- package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
- package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
- package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
- package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
- package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
- package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
- package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
- package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
- package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
- package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
- package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
- package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
- package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
- package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
- package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
- package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
- package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
- package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
- package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
- package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
- package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
- package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
- package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
- package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
- package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
- package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
- package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
- package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
- package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
- package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
- package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
- package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
- package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
- package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components.mjs +3 -5
- package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
- package/package.json +11 -10
- package/styles/_tokens.scss +1 -0
- package/types/ngstarter-ui-components-action-required.d.ts +34 -14
- package/types/ngstarter-ui-components-alert.d.ts +53 -44
- package/types/ngstarter-ui-components-announcement.d.ts +74 -53
- package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
- package/types/ngstarter-ui-components-avatar.d.ts +113 -66
- package/types/ngstarter-ui-components-badge.d.ts +73 -37
- package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
- package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
- package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
- package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
- package/types/ngstarter-ui-components-button.d.ts +69 -27
- package/types/ngstarter-ui-components-calendar.d.ts +123 -71
- package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
- package/types/ngstarter-ui-components-card.d.ts +75 -71
- package/types/ngstarter-ui-components-carousel.d.ts +115 -69
- package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
- package/types/ngstarter-ui-components-chips.d.ts +288 -195
- package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
- package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
- package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
- package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
- package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
- package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
- package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
- package/types/ngstarter-ui-components-confirm.d.ts +24 -29
- package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
- package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
- package/types/ngstarter-ui-components-core.d.ts +513 -467
- package/types/ngstarter-ui-components-country-select.d.ts +170 -97
- package/types/ngstarter-ui-components-crop.d.ts +67 -52
- package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
- package/types/ngstarter-ui-components-data-view.d.ts +811 -567
- package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
- package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
- package/types/ngstarter-ui-components-dialog.d.ts +138 -116
- package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
- package/types/ngstarter-ui-components-divider.d.ts +29 -17
- package/types/ngstarter-ui-components-drawer.d.ts +39 -30
- package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
- package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
- package/types/ngstarter-ui-components-events.d.ts +73 -57
- package/types/ngstarter-ui-components-expand.d.ts +55 -25
- package/types/ngstarter-ui-components-expansion.d.ts +93 -64
- package/types/ngstarter-ui-components-file-type.d.ts +53 -27
- package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
- package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
- package/types/ngstarter-ui-components-form-field.d.ts +116 -105
- package/types/ngstarter-ui-components-gauge.d.ts +32 -20
- package/types/ngstarter-ui-components-grid.d.ts +66 -50
- package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
- package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
- package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
- package/types/ngstarter-ui-components-icon.d.ts +39 -38
- package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
- package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
- package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
- package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
- package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
- package/types/ngstarter-ui-components-incidents.d.ts +97 -104
- package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
- package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
- package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
- package/types/ngstarter-ui-components-input.d.ts +82 -54
- package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
- package/types/ngstarter-ui-components-kbd.d.ts +8 -12
- package/types/ngstarter-ui-components-layout.d.ts +131 -87
- package/types/ngstarter-ui-components-list.d.ts +123 -88
- package/types/ngstarter-ui-components-logo.d.ts +21 -21
- package/types/ngstarter-ui-components-marquee.d.ts +41 -34
- package/types/ngstarter-ui-components-menu.d.ts +329 -221
- package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
- package/types/ngstarter-ui-components-navigation.d.ts +186 -125
- package/types/ngstarter-ui-components-notifications.d.ts +104 -89
- package/types/ngstarter-ui-components-number-input.d.ts +138 -96
- package/types/ngstarter-ui-components-option.d.ts +102 -68
- package/types/ngstarter-ui-components-overlay.d.ts +7 -12
- package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
- package/types/ngstarter-ui-components-paginator.d.ts +171 -129
- package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
- package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
- package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
- package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
- package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
- package/types/ngstarter-ui-components-popover.d.ts +128 -89
- package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
- package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
- package/types/ngstarter-ui-components-radio.d.ts +100 -47
- package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
- package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
- package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
- package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
- package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
- package/types/ngstarter-ui-components-segmented.d.ts +93 -61
- package/types/ngstarter-ui-components-select.d.ts +366 -266
- package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
- package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
- package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
- package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
- package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
- package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
- package/types/ngstarter-ui-components-slider.d.ts +123 -82
- package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
- package/types/ngstarter-ui-components-sort.d.ts +99 -63
- package/types/ngstarter-ui-components-spinner.d.ts +49 -27
- package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
- package/types/ngstarter-ui-components-split.d.ts +276 -195
- package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
- package/types/ngstarter-ui-components-stepper.d.ts +57 -43
- package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
- package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
- package/types/ngstarter-ui-components-table.d.ts +256 -228
- package/types/ngstarter-ui-components-tabs.d.ts +231 -138
- package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
- package/types/ngstarter-ui-components-tiles.d.ts +166 -104
- package/types/ngstarter-ui-components-timeline.d.ts +45 -57
- package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
- package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
- package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
- package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
- package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
- package/types/ngstarter-ui-components-tree.d.ts +355 -229
- package/types/ngstarter-ui-components-upload.d.ts +216 -131
- package/types/ngstarter-ui-components-video-player.d.ts +130 -67
- package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
- package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
- package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
- package/types/ngstarter-ui-components.d.ts +2 -2
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs +0 -375
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs +0 -134
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
|
@@ -1,361 +1,523 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input, signal } from "@angular/core";
|
|
3
|
+
import { Icon } from "@ngstarter-ui/components/icon";
|
|
4
|
+
import { Button } from "@ngstarter-ui/components/button";
|
|
5
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
6
|
+
import { codeToHtml } from "shiki";
|
|
8
7
|
const removeDiffPrefix = (node) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
else if (firstChild.type === 'text' && (firstChild.value.startsWith('+') || firstChild.value.startsWith('-'))) {
|
|
22
|
-
firstChild.value = firstChild.value.slice(1);
|
|
23
|
-
if (firstChild.value === '') {
|
|
24
|
-
node.children.shift();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
8
|
+
if (!node.children || node.children.length === 0) return;
|
|
9
|
+
const firstChild = node.children[0];
|
|
10
|
+
if (firstChild.type === "element" && firstChild.children && firstChild.children.length > 0) {
|
|
11
|
+
const textNode = firstChild.children[0];
|
|
12
|
+
if (textNode.type === "text" && (textNode.value.startsWith("+") || textNode.value.startsWith("-"))) {
|
|
13
|
+
textNode.value = textNode.value.slice(1);
|
|
14
|
+
if (textNode.value === "" && firstChild.children.length === 1) node.children.shift();
|
|
15
|
+
}
|
|
16
|
+
} else if (firstChild.type === "text" && (firstChild.value.startsWith("+") || firstChild.value.startsWith("-"))) {
|
|
17
|
+
firstChild.value = firstChild.value.slice(1);
|
|
18
|
+
if (firstChild.value === "") node.children.shift();
|
|
19
|
+
}
|
|
27
20
|
};
|
|
28
|
-
const diffTransformer = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
21
|
+
const diffTransformer = { line(node, line) {
|
|
22
|
+
if (this.options.lang === "diff" || this.options.diff) {
|
|
23
|
+
const text = this.tokens[line - 1].map((token) => token.content).join("");
|
|
24
|
+
if (text.startsWith("+")) {
|
|
25
|
+
this.addClassToHast(node, "diff add");
|
|
26
|
+
removeDiffPrefix(node);
|
|
27
|
+
} else if (text.startsWith("-")) {
|
|
28
|
+
this.addClassToHast(node, "diff remove");
|
|
29
|
+
removeDiffPrefix(node);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
} };
|
|
33
|
+
var CodeHighlighter = class CodeHighlighter {
|
|
34
|
+
sanitizer = inject(DomSanitizer);
|
|
35
|
+
code = input.required(...ngDevMode ? [{ debugName: "code" }] : /* istanbul ignore next */ []);
|
|
36
|
+
language = input("none", ...ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []);
|
|
37
|
+
theme = input("github-light", ...ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []);
|
|
38
|
+
title = input(null, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
39
|
+
diff = input(false, ...ngDevMode ? [{ debugName: "diff" }] : /* istanbul ignore next */ []);
|
|
40
|
+
highlightLines = input([], ...ngDevMode ? [{ debugName: "highlightLines" }] : /* istanbul ignore next */ []);
|
|
41
|
+
showLanguage = input(false, {
|
|
42
|
+
...ngDevMode ? { debugName: "showLanguage" } : /* istanbul ignore next */ {},
|
|
43
|
+
transform: booleanAttribute
|
|
44
|
+
});
|
|
45
|
+
showCopyButton = input(false, {
|
|
46
|
+
...ngDevMode ? { debugName: "showCopyButton" } : /* istanbul ignore next */ {},
|
|
47
|
+
transform: booleanAttribute
|
|
48
|
+
});
|
|
49
|
+
disableOverflow = input(false, {
|
|
50
|
+
...ngDevMode ? { debugName: "disableOverflow" } : /* istanbul ignore next */ {},
|
|
51
|
+
transform: booleanAttribute
|
|
52
|
+
});
|
|
53
|
+
content = signal(null, ...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
|
|
54
|
+
isLoading = signal(false, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
|
|
55
|
+
displayedLanguage = computed(() => {
|
|
56
|
+
const lang = this.language();
|
|
57
|
+
if (!lang || lang === "none") return "";
|
|
58
|
+
return {
|
|
59
|
+
"1c": "1C",
|
|
60
|
+
"abap": "ABAP",
|
|
61
|
+
"actionscript-3": "ActionScript 3",
|
|
62
|
+
"ada": "Ada",
|
|
63
|
+
"apache": "Apache",
|
|
64
|
+
"apex": "Apex",
|
|
65
|
+
"apl": "APL",
|
|
66
|
+
"applescript": "AppleScript",
|
|
67
|
+
"ara": "Ara",
|
|
68
|
+
"asm": "Assembly",
|
|
69
|
+
"astro": "Astro",
|
|
70
|
+
"awk": "AWK",
|
|
71
|
+
"ballerina": "Ballerina",
|
|
72
|
+
"bash": "Bash",
|
|
73
|
+
"sh": "Bash",
|
|
74
|
+
"batch": "Batch",
|
|
75
|
+
"berry": "Berry",
|
|
76
|
+
"bibtex": "BibTeX",
|
|
77
|
+
"bicep": "Bicep",
|
|
78
|
+
"blade": "Blade",
|
|
79
|
+
"c": "C",
|
|
80
|
+
"cadence": "Cadence",
|
|
81
|
+
"clarity": "Clarity",
|
|
82
|
+
"clojure": "Clojure",
|
|
83
|
+
"clj": "Clojure",
|
|
84
|
+
"cmake": "CMake",
|
|
85
|
+
"cobol": "COBOL",
|
|
86
|
+
"codeql": "CodeQL",
|
|
87
|
+
"coffee": "CoffeeScript",
|
|
88
|
+
"cpp": "C++",
|
|
89
|
+
"csharp": "C#",
|
|
90
|
+
"cs": "C#",
|
|
91
|
+
"css": "CSS",
|
|
92
|
+
"cue": "CUE",
|
|
93
|
+
"cypher": "Cypher",
|
|
94
|
+
"d": "D",
|
|
95
|
+
"dart": "Dart",
|
|
96
|
+
"dax": "DAX",
|
|
97
|
+
"diff": "Diff",
|
|
98
|
+
"docker": "Docker",
|
|
99
|
+
"dockerfile": "Dockerfile",
|
|
100
|
+
"dream-maker": "Dream Maker",
|
|
101
|
+
"elixir": "Elixir",
|
|
102
|
+
"elm": "Elm",
|
|
103
|
+
"erb": "ERB",
|
|
104
|
+
"erlang": "Erlang",
|
|
105
|
+
"fish": "Fish",
|
|
106
|
+
"fsharp": "F#",
|
|
107
|
+
"fs": "F#",
|
|
108
|
+
"gdresource": "GDResource",
|
|
109
|
+
"gdscript": "GDScript",
|
|
110
|
+
"gdshader": "GDShader",
|
|
111
|
+
"gherkin": "Gherkin",
|
|
112
|
+
"git-commit": "Git Commit",
|
|
113
|
+
"git-rebase": "Git Rebase",
|
|
114
|
+
"glimmer-js": "Glimmer JS",
|
|
115
|
+
"gljs": "Glimmer JS",
|
|
116
|
+
"glsl": "GLSL",
|
|
117
|
+
"gnuplot": "Gnuplot",
|
|
118
|
+
"go": "Go",
|
|
119
|
+
"graphql": "GraphQL",
|
|
120
|
+
"groovy": "Groovy",
|
|
121
|
+
"hack": "Hack",
|
|
122
|
+
"haml": "Haml",
|
|
123
|
+
"handlebars": "Handlebars",
|
|
124
|
+
"hbs": "Handlebars",
|
|
125
|
+
"haskell": "Haskell",
|
|
126
|
+
"hs": "Haskell",
|
|
127
|
+
"hcl": "HCL",
|
|
128
|
+
"hjson": "Hjson",
|
|
129
|
+
"hlsl": "HLSL",
|
|
130
|
+
"html": "HTML",
|
|
131
|
+
"http": "HTTP",
|
|
132
|
+
"imba": "Imba",
|
|
133
|
+
"ini": "INI",
|
|
134
|
+
"java": "Java",
|
|
135
|
+
"javascript": "JavaScript",
|
|
136
|
+
"js": "JavaScript",
|
|
137
|
+
"jinja-html": "Jinja HTML",
|
|
138
|
+
"jjson": "JJSON",
|
|
139
|
+
"json": "JSON",
|
|
140
|
+
"json5": "JSON5",
|
|
141
|
+
"jsonc": "JSONC",
|
|
142
|
+
"jsonnet": "Jsonnet",
|
|
143
|
+
"jssm": "JSSM",
|
|
144
|
+
"jsx": "JSX",
|
|
145
|
+
"julia": "Julia",
|
|
146
|
+
"kotlin": "Kotlin",
|
|
147
|
+
"kt": "Kotlin",
|
|
148
|
+
"kts": "Kotlin",
|
|
149
|
+
"kusto": "Kusto",
|
|
150
|
+
"latex": "LaTeX",
|
|
151
|
+
"lat": "LaTeX",
|
|
152
|
+
"tex": "LaTeX",
|
|
153
|
+
"lean": "Lean",
|
|
154
|
+
"less": "Less",
|
|
155
|
+
"liquid": "Liquid",
|
|
156
|
+
"lisp": "Lisp",
|
|
157
|
+
"logo": "Logo",
|
|
158
|
+
"lua": "Lua",
|
|
159
|
+
"make": "Make",
|
|
160
|
+
"makefile": "Makefile",
|
|
161
|
+
"markdown": "Markdown",
|
|
162
|
+
"md": "Markdown",
|
|
163
|
+
"marko": "Marko",
|
|
164
|
+
"matlab": "MATLAB",
|
|
165
|
+
"mdx": "MDX",
|
|
166
|
+
"mermaid": "Mermaid",
|
|
167
|
+
"mipsasm": "MIPS Assembly",
|
|
168
|
+
"mips": "MIPS Assembly",
|
|
169
|
+
"mojolicious": "Mojolicious",
|
|
170
|
+
"move": "Move",
|
|
171
|
+
"narrat": "Narrat",
|
|
172
|
+
"nextflow": "Nextflow",
|
|
173
|
+
"nginx": "Nginx",
|
|
174
|
+
"nim": "Nim",
|
|
175
|
+
"nix": "Nix",
|
|
176
|
+
"objective-c": "Objective-C",
|
|
177
|
+
"objc": "Objective-C",
|
|
178
|
+
"objective-cpp": "Objective-C++",
|
|
179
|
+
"ocaml": "OCaml",
|
|
180
|
+
"pascal": "Pascal",
|
|
181
|
+
"perl": "Perl",
|
|
182
|
+
"pl": "Perl",
|
|
183
|
+
"php": "PHP",
|
|
184
|
+
"plsql": "PL/SQL",
|
|
185
|
+
"postcss": "PostCSS",
|
|
186
|
+
"powerquery": "PowerQuery",
|
|
187
|
+
"powershell": "PowerShell",
|
|
188
|
+
"ps1": "PowerShell",
|
|
189
|
+
"prisma": "Prisma",
|
|
190
|
+
"prolog": "Prolog",
|
|
191
|
+
"proto": "Protocol Buffers",
|
|
192
|
+
"pug": "Pug",
|
|
193
|
+
"jade": "Pug",
|
|
194
|
+
"puppet": "Puppet",
|
|
195
|
+
"purescript": "PureScript",
|
|
196
|
+
"python": "Python",
|
|
197
|
+
"py": "Python",
|
|
198
|
+
"r": "R",
|
|
199
|
+
"raku": "Raku",
|
|
200
|
+
"razor": "Razor",
|
|
201
|
+
"reg": "Registry",
|
|
202
|
+
"rel": "Rel",
|
|
203
|
+
"riscv": "RISC-V",
|
|
204
|
+
"rst": "reStructuredText",
|
|
205
|
+
"ruby": "Ruby",
|
|
206
|
+
"rb": "Ruby",
|
|
207
|
+
"rust": "Rust",
|
|
208
|
+
"rs": "Rust",
|
|
209
|
+
"sas": "SAS",
|
|
210
|
+
"sass": "Sass",
|
|
211
|
+
"scala": "Scala",
|
|
212
|
+
"scheme": "Scheme",
|
|
213
|
+
"scss": "SCSS",
|
|
214
|
+
"shaderlab": "ShaderLab",
|
|
215
|
+
"shader": "ShaderLab",
|
|
216
|
+
"shell": "Shell",
|
|
217
|
+
"shellscript": "Shell",
|
|
218
|
+
"smalltalk": "Smalltalk",
|
|
219
|
+
"solidity": "Solidity",
|
|
220
|
+
"sparql": "SPARQL",
|
|
221
|
+
"sql": "SQL",
|
|
222
|
+
"ssh-config": "SSH Config",
|
|
223
|
+
"stata": "Stata",
|
|
224
|
+
"stylus": "Stylus",
|
|
225
|
+
"styl": "Stylus",
|
|
226
|
+
"svelte": "Svelte",
|
|
227
|
+
"swift": "Swift",
|
|
228
|
+
"system-verilog": "SystemVerilog",
|
|
229
|
+
"tasl": "Tasl",
|
|
230
|
+
"tcl": "Tcl",
|
|
231
|
+
"terraform": "Terraform",
|
|
232
|
+
"tf": "Terraform",
|
|
233
|
+
"toml": "TOML",
|
|
234
|
+
"tsx": "TSX",
|
|
235
|
+
"turtle": "Turtle",
|
|
236
|
+
"twig": "Twig",
|
|
237
|
+
"typescript": "TypeScript",
|
|
238
|
+
"ts": "TypeScript",
|
|
239
|
+
"v": "V",
|
|
240
|
+
"vb": "Visual Basic",
|
|
241
|
+
"verilog": "Verilog",
|
|
242
|
+
"vhdl": "VHDL",
|
|
243
|
+
"viml": "VimL",
|
|
244
|
+
"vim": "VimL",
|
|
245
|
+
"vue": "Vue",
|
|
246
|
+
"vyper": "Vyper",
|
|
247
|
+
"wasm": "WebAssembly",
|
|
248
|
+
"wenyan": "Wenyan",
|
|
249
|
+
"wgsl": "WGSL",
|
|
250
|
+
"wolfram": "Wolfram",
|
|
251
|
+
"xml": "XML",
|
|
252
|
+
"xsl": "XSL",
|
|
253
|
+
"yaml": "YAML",
|
|
254
|
+
"yml": "YAML",
|
|
255
|
+
"zenscript": "ZenScript",
|
|
256
|
+
"zig": "Zig",
|
|
257
|
+
"zsh": "Zsh"
|
|
258
|
+
}[lang.toLowerCase()] || lang;
|
|
259
|
+
}, ...ngDevMode ? [{ debugName: "displayedLanguage" }] : /* istanbul ignore next */ []);
|
|
260
|
+
getHighlightTransformer() {
|
|
261
|
+
const highlights = this.highlightLines();
|
|
262
|
+
if (!highlights || Array.isArray(highlights) && highlights.length === 0) return {};
|
|
263
|
+
const isHighlighted = (line) => {
|
|
264
|
+
if (Array.isArray(highlights[0])) return highlights.some(([start, end]) => line >= start && line <= end);
|
|
265
|
+
else {
|
|
266
|
+
const [start, end] = highlights;
|
|
267
|
+
return line >= start && line <= end;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
return { line(node, line) {
|
|
271
|
+
if (isHighlighted(line)) this.addClassToHast(node, "highlighted");
|
|
272
|
+
} };
|
|
273
|
+
}
|
|
274
|
+
async ngOnChanges(changes) {
|
|
275
|
+
const code = this.code() ?? "";
|
|
276
|
+
if (code.length === 0) {
|
|
277
|
+
this.isLoading.set(false);
|
|
278
|
+
this.content.set(this.sanitizer.bypassSecurityTrustHtml("<pre class=\"shiki\"><code></code></pre>"));
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
this.isLoading.set(true);
|
|
282
|
+
try {
|
|
283
|
+
const highlighted = await codeToHtml(code, {
|
|
284
|
+
lang: this.language(),
|
|
285
|
+
theme: this.theme(),
|
|
286
|
+
colorReplacements: { "github-light": { "#fff": "light-dark(var(--ngs-code-highlighter-bg), #f6f8fa)" } },
|
|
287
|
+
transformers: [diffTransformer, this.getHighlightTransformer()],
|
|
288
|
+
diff: this.diff()
|
|
289
|
+
});
|
|
290
|
+
this.content.set(this.sanitizer.bypassSecurityTrustHtml(highlighted));
|
|
291
|
+
} catch (e) {
|
|
292
|
+
const fallback = `<pre class="shiki"><code>${code.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">")}</code></pre>`;
|
|
293
|
+
this.content.set(this.sanitizer.bypassSecurityTrustHtml(fallback));
|
|
294
|
+
console.error("CodeHighlighter error:", e);
|
|
295
|
+
} finally {
|
|
296
|
+
this.isLoading.set(false);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
copied = signal(false, ...ngDevMode ? [{ debugName: "copied" }] : /* istanbul ignore next */ []);
|
|
300
|
+
copyTimeout;
|
|
301
|
+
copyCode() {
|
|
302
|
+
if (this.code()) {
|
|
303
|
+
navigator.clipboard.writeText(this.code());
|
|
304
|
+
this.copied.set(true);
|
|
305
|
+
if (this.copyTimeout) clearTimeout(this.copyTimeout);
|
|
306
|
+
this.copyTimeout = setTimeout(() => {
|
|
307
|
+
this.copied.set(false);
|
|
308
|
+
this.copyTimeout = void 0;
|
|
309
|
+
}, 2e3);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
313
|
+
minVersion: "12.0.0",
|
|
314
|
+
version: "22.3.0",
|
|
315
|
+
ngImport: i0,
|
|
316
|
+
type: CodeHighlighter,
|
|
317
|
+
deps: [],
|
|
318
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
319
|
+
});
|
|
320
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
321
|
+
minVersion: "17.0.0",
|
|
322
|
+
version: "22.3.0",
|
|
323
|
+
type: CodeHighlighter,
|
|
324
|
+
isStandalone: true,
|
|
325
|
+
selector: "ngs-code-highlighter",
|
|
326
|
+
inputs: {
|
|
327
|
+
code: {
|
|
328
|
+
classPropertyName: "code",
|
|
329
|
+
publicName: "code",
|
|
330
|
+
isSignal: true,
|
|
331
|
+
isRequired: true,
|
|
332
|
+
transformFunction: null
|
|
333
|
+
},
|
|
334
|
+
language: {
|
|
335
|
+
classPropertyName: "language",
|
|
336
|
+
publicName: "language",
|
|
337
|
+
isSignal: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
transformFunction: null
|
|
340
|
+
},
|
|
341
|
+
theme: {
|
|
342
|
+
classPropertyName: "theme",
|
|
343
|
+
publicName: "theme",
|
|
344
|
+
isSignal: true,
|
|
345
|
+
isRequired: false,
|
|
346
|
+
transformFunction: null
|
|
347
|
+
},
|
|
348
|
+
title: {
|
|
349
|
+
classPropertyName: "title",
|
|
350
|
+
publicName: "title",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
diff: {
|
|
356
|
+
classPropertyName: "diff",
|
|
357
|
+
publicName: "diff",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
},
|
|
362
|
+
highlightLines: {
|
|
363
|
+
classPropertyName: "highlightLines",
|
|
364
|
+
publicName: "highlightLines",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
},
|
|
369
|
+
showLanguage: {
|
|
370
|
+
classPropertyName: "showLanguage",
|
|
371
|
+
publicName: "showLanguage",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
},
|
|
376
|
+
showCopyButton: {
|
|
377
|
+
classPropertyName: "showCopyButton",
|
|
378
|
+
publicName: "showCopyButton",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
disableOverflow: {
|
|
384
|
+
classPropertyName: "disableOverflow",
|
|
385
|
+
publicName: "disableOverflow",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
host: {
|
|
392
|
+
properties: { "class.overflow-disabled": "disableOverflow()" },
|
|
393
|
+
classAttribute: "ngs-code-highlighter not-prose"
|
|
394
|
+
},
|
|
395
|
+
exportAs: ["ngsCodeHighlighter"],
|
|
396
|
+
usesOnChanges: true,
|
|
397
|
+
ngImport: i0,
|
|
398
|
+
template: "<figure class=\"h-full\">\n @if (title()) {\n <figcaption>\n @if (title()) {\n <span class=\"title\">{{ title() }}</span>\n }\n </figcaption>\n }\n\n <div class=\"content relative h-full\">\n @if (showLanguage()) {\n <div class=\"languageName\">{{ displayedLanguage() }}</div>\n }\n\n @if (showCopyButton()) {\n <span class=\"absolute top-2 right-2\">\n <button\n ngsIconButton\n (click)=\"copyCode()\"\n >\n <ngs-icon\n [name]=\"copied() ? 'fluent:checkmark-24-regular' : 'fluent:copy-24-regular'\"\n [class.text-green-500]=\"copied()\"\n />\n </button>\n </span>\n }\n\n @if (content()) {\n <div class=\"code-output\" [innerHTML]=\"content()\"></div>\n } @else if (isLoading()) {\n <div class=\"loading\">Loading…</div>\n }\n </div>\n</figure>\n",
|
|
399
|
+
styles: [":host{--ngs-code-highlighter-bg: var(--ngs-color-surface-container, #f6f8fa);--ngs-code-highlighter-padding: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-margin: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-title-padding: calc(var(--spacing, .25rem) * 2) calc(var(--spacing, .25rem) * 3) var(--spacing, .25rem) calc(var(--spacing, .25rem) * 3);--ngs-code-highlighter-title-color: var(--ngs-color-neutral-500);display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:host figure{border-radius:var(--ngs-radius-lg, .75rem)}:host figcaption{border-radius:inherit;border-end-start-radius:0;border-end-end-radius:0;font-size:var(--ngs-font-size-xs);font-weight:500;padding:var(--ngs-code-highlighter-title-padding);background:var(--ngs-code-highlighter-bg);color:var(--ngs-code-highlighter-title-color);position:relative;z-index:1}:host figcaption:after{content:\"\";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--ngs-code-highlighter-bg)}:host .languageName{font-size:var(--ngs-font-size-sm);font-weight:600;padding:0 calc(var(--spacing, .25rem) * 6);width:max-content;margin-bottom:calc(var(--spacing, .25rem) * 4);margin-top:calc(var(--spacing, .25rem) * -1);position:relative}:host ::ng-deep pre{border-radius:inherit;padding:var(--ngs-code-highlighter-padding) 0;line-height:1.75;font-size:var(--ngs-font-size-sm);position:relative}:host ::ng-deep pre code{display:grid}:host ::ng-deep pre .line{padding-left:calc(var(--spacing, .25rem) * 6);padding-right:var(--ngs-code-highlighter-padding);min-height:1.75em}:host ::ng-deep pre .line.diff.remove{background-color:var(--ngs-color-danger);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.remove{background-color:color-mix(in srgb,var(--ngs-color-danger),transparent 85%)}}:host ::ng-deep pre .line.diff.remove:before{content:\"-\";color:var(--ngs-color-danger);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.diff.add{background-color:var(--ngs-color-success);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.add{background-color:color-mix(in srgb,var(--ngs-color-success),transparent 85%)}}:host ::ng-deep pre .line.diff.add:before{content:\"+\";color:var(--ngs-color-success);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.highlighted{background-color:var(--ngs-color-primary);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.highlighted{background-color:color-mix(in srgb,var(--ngs-color-primary),transparent 92%)}}:host ::ng-deep code{white-space:pre}:host .content{overflow:auto;border-radius:inherit;background:var(--ngs-code-highlighter-bg)}:host .content .code-output{border-radius:inherit}:host .content button{color:inherit}:host .content button ngs-icon.text-green-500{color:var(--ngs-color-success)!important}:host figcaption+.content{border-start-start-radius:0;border-start-end-radius:0}:host.overflow-disabled .content{overflow:visible}:host.overflow-disabled ::ng-deep pre,:host.overflow-disabled ::ng-deep code{width:max-content;min-width:100%}:host.loading{opacity:.6}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
400
|
+
dependencies: [{
|
|
401
|
+
kind: "component",
|
|
402
|
+
type: Button,
|
|
403
|
+
selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
|
|
404
|
+
inputs: [
|
|
405
|
+
"ngsButton",
|
|
406
|
+
"ngsIconButton",
|
|
407
|
+
"loading",
|
|
408
|
+
"disabled",
|
|
409
|
+
"disabledInteractive",
|
|
410
|
+
"disableRipple",
|
|
411
|
+
"reverse",
|
|
412
|
+
"fullWidth",
|
|
413
|
+
"hideTextOnMobile"
|
|
414
|
+
],
|
|
415
|
+
exportAs: ["ngsButton"]
|
|
416
|
+
}, {
|
|
417
|
+
kind: "component",
|
|
418
|
+
type: Icon,
|
|
419
|
+
selector: "ngs-icon",
|
|
420
|
+
inputs: ["name"],
|
|
421
|
+
exportAs: ["ngsIcon"]
|
|
422
|
+
}],
|
|
423
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
424
|
+
});
|
|
43
425
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
'hjson': 'Hjson',
|
|
140
|
-
'hlsl': 'HLSL',
|
|
141
|
-
'html': 'HTML',
|
|
142
|
-
'http': 'HTTP',
|
|
143
|
-
'imba': 'Imba',
|
|
144
|
-
'ini': 'INI',
|
|
145
|
-
'java': 'Java',
|
|
146
|
-
'javascript': 'JavaScript',
|
|
147
|
-
'js': 'JavaScript',
|
|
148
|
-
'jinja-html': 'Jinja HTML',
|
|
149
|
-
'jjson': 'JJSON',
|
|
150
|
-
'json': 'JSON',
|
|
151
|
-
'json5': 'JSON5',
|
|
152
|
-
'jsonc': 'JSONC',
|
|
153
|
-
'jsonnet': 'Jsonnet',
|
|
154
|
-
'jssm': 'JSSM',
|
|
155
|
-
'jsx': 'JSX',
|
|
156
|
-
'julia': 'Julia',
|
|
157
|
-
'kotlin': 'Kotlin',
|
|
158
|
-
'kt': 'Kotlin',
|
|
159
|
-
'kts': 'Kotlin',
|
|
160
|
-
'kusto': 'Kusto',
|
|
161
|
-
'latex': 'LaTeX',
|
|
162
|
-
'lat': 'LaTeX',
|
|
163
|
-
'tex': 'LaTeX',
|
|
164
|
-
'lean': 'Lean',
|
|
165
|
-
'less': 'Less',
|
|
166
|
-
'liquid': 'Liquid',
|
|
167
|
-
'lisp': 'Lisp',
|
|
168
|
-
'logo': 'Logo',
|
|
169
|
-
'lua': 'Lua',
|
|
170
|
-
'make': 'Make',
|
|
171
|
-
'makefile': 'Makefile',
|
|
172
|
-
'markdown': 'Markdown',
|
|
173
|
-
'md': 'Markdown',
|
|
174
|
-
'marko': 'Marko',
|
|
175
|
-
'matlab': 'MATLAB',
|
|
176
|
-
'mdx': 'MDX',
|
|
177
|
-
'mermaid': 'Mermaid',
|
|
178
|
-
'mipsasm': 'MIPS Assembly',
|
|
179
|
-
'mips': 'MIPS Assembly',
|
|
180
|
-
'mojolicious': 'Mojolicious',
|
|
181
|
-
'move': 'Move',
|
|
182
|
-
'narrat': 'Narrat',
|
|
183
|
-
'nextflow': 'Nextflow',
|
|
184
|
-
'nginx': 'Nginx',
|
|
185
|
-
'nim': 'Nim',
|
|
186
|
-
'nix': 'Nix',
|
|
187
|
-
'objective-c': 'Objective-C',
|
|
188
|
-
'objc': 'Objective-C',
|
|
189
|
-
'objective-cpp': 'Objective-C++',
|
|
190
|
-
'ocaml': 'OCaml',
|
|
191
|
-
'pascal': 'Pascal',
|
|
192
|
-
'perl': 'Perl',
|
|
193
|
-
'pl': 'Perl',
|
|
194
|
-
'php': 'PHP',
|
|
195
|
-
'plsql': 'PL/SQL',
|
|
196
|
-
'postcss': 'PostCSS',
|
|
197
|
-
'powerquery': 'PowerQuery',
|
|
198
|
-
'powershell': 'PowerShell',
|
|
199
|
-
'ps1': 'PowerShell',
|
|
200
|
-
'prisma': 'Prisma',
|
|
201
|
-
'prolog': 'Prolog',
|
|
202
|
-
'proto': 'Protocol Buffers',
|
|
203
|
-
'pug': 'Pug',
|
|
204
|
-
'jade': 'Pug',
|
|
205
|
-
'puppet': 'Puppet',
|
|
206
|
-
'purescript': 'PureScript',
|
|
207
|
-
'python': 'Python',
|
|
208
|
-
'py': 'Python',
|
|
209
|
-
'r': 'R',
|
|
210
|
-
'raku': 'Raku',
|
|
211
|
-
'razor': 'Razor',
|
|
212
|
-
'reg': 'Registry',
|
|
213
|
-
'rel': 'Rel',
|
|
214
|
-
'riscv': 'RISC-V',
|
|
215
|
-
'rst': 'reStructuredText',
|
|
216
|
-
'ruby': 'Ruby',
|
|
217
|
-
'rb': 'Ruby',
|
|
218
|
-
'rust': 'Rust',
|
|
219
|
-
'rs': 'Rust',
|
|
220
|
-
'sas': 'SAS',
|
|
221
|
-
'sass': 'Sass',
|
|
222
|
-
'scala': 'Scala',
|
|
223
|
-
'scheme': 'Scheme',
|
|
224
|
-
'scss': 'SCSS',
|
|
225
|
-
'shaderlab': 'ShaderLab',
|
|
226
|
-
'shader': 'ShaderLab',
|
|
227
|
-
'shell': 'Shell',
|
|
228
|
-
'shellscript': 'Shell',
|
|
229
|
-
'smalltalk': 'Smalltalk',
|
|
230
|
-
'solidity': 'Solidity',
|
|
231
|
-
'sparql': 'SPARQL',
|
|
232
|
-
'sql': 'SQL',
|
|
233
|
-
'ssh-config': 'SSH Config',
|
|
234
|
-
'stata': 'Stata',
|
|
235
|
-
'stylus': 'Stylus',
|
|
236
|
-
'styl': 'Stylus',
|
|
237
|
-
'svelte': 'Svelte',
|
|
238
|
-
'swift': 'Swift',
|
|
239
|
-
'system-verilog': 'SystemVerilog',
|
|
240
|
-
'tasl': 'Tasl',
|
|
241
|
-
'tcl': 'Tcl',
|
|
242
|
-
'terraform': 'Terraform',
|
|
243
|
-
'tf': 'Terraform',
|
|
244
|
-
'toml': 'TOML',
|
|
245
|
-
'tsx': 'TSX',
|
|
246
|
-
'turtle': 'Turtle',
|
|
247
|
-
'twig': 'Twig',
|
|
248
|
-
'typescript': 'TypeScript',
|
|
249
|
-
'ts': 'TypeScript',
|
|
250
|
-
'v': 'V',
|
|
251
|
-
'vb': 'Visual Basic',
|
|
252
|
-
'verilog': 'Verilog',
|
|
253
|
-
'vhdl': 'VHDL',
|
|
254
|
-
'viml': 'VimL',
|
|
255
|
-
'vim': 'VimL',
|
|
256
|
-
'vue': 'Vue',
|
|
257
|
-
'vyper': 'Vyper',
|
|
258
|
-
'wasm': 'WebAssembly',
|
|
259
|
-
'wenyan': 'Wenyan',
|
|
260
|
-
'wgsl': 'WGSL',
|
|
261
|
-
'wolfram': 'Wolfram',
|
|
262
|
-
'xml': 'XML',
|
|
263
|
-
'xsl': 'XSL',
|
|
264
|
-
'yaml': 'YAML',
|
|
265
|
-
'yml': 'YAML',
|
|
266
|
-
'zenscript': 'ZenScript',
|
|
267
|
-
'zig': 'Zig',
|
|
268
|
-
'zsh': 'Zsh',
|
|
269
|
-
};
|
|
270
|
-
return langMap[lang.toLowerCase()] || lang;
|
|
271
|
-
}, /* @ts-ignore */
|
|
272
|
-
...(ngDevMode ? [{ debugName: "displayedLanguage" }] : /* istanbul ignore next */ []));
|
|
273
|
-
getHighlightTransformer() {
|
|
274
|
-
const highlights = this.highlightLines();
|
|
275
|
-
if (!highlights || (Array.isArray(highlights) && highlights.length === 0)) {
|
|
276
|
-
return {};
|
|
277
|
-
}
|
|
278
|
-
const isHighlighted = (line) => {
|
|
279
|
-
if (Array.isArray(highlights[0])) {
|
|
280
|
-
return highlights.some(([start, end]) => line >= start && line <= end);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
const [start, end] = highlights;
|
|
284
|
-
return line >= start && line <= end;
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
return {
|
|
288
|
-
line(node, line) {
|
|
289
|
-
if (isHighlighted(line)) {
|
|
290
|
-
this.addClassToHast(node, 'highlighted');
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
async ngOnChanges(changes) {
|
|
296
|
-
const code = this.code() ?? '';
|
|
297
|
-
if (code.length === 0) {
|
|
298
|
-
this.isLoading.set(false);
|
|
299
|
-
this.content.set(this.sanitizer.bypassSecurityTrustHtml('<pre class="shiki"><code></code></pre>'));
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
this.isLoading.set(true);
|
|
303
|
-
try {
|
|
304
|
-
const highlighted = await codeToHtml(code, {
|
|
305
|
-
lang: this.language(),
|
|
306
|
-
theme: this.theme(),
|
|
307
|
-
transformers: [diffTransformer, this.getHighlightTransformer()],
|
|
308
|
-
diff: this.diff()
|
|
309
|
-
});
|
|
310
|
-
this.content.set(this.sanitizer.bypassSecurityTrustHtml(highlighted));
|
|
311
|
-
}
|
|
312
|
-
catch (e) {
|
|
313
|
-
// Fallback: raw code escaped inside pre
|
|
314
|
-
const escaped = code
|
|
315
|
-
.replace(/&/g, '&')
|
|
316
|
-
.replace(/</g, '<')
|
|
317
|
-
.replace(/>/g, '>');
|
|
318
|
-
const fallback = `<pre class="shiki"><code>${escaped}</code></pre>`;
|
|
319
|
-
this.content.set(this.sanitizer.bypassSecurityTrustHtml(fallback));
|
|
320
|
-
console.error('CodeHighlighter error:', e);
|
|
321
|
-
}
|
|
322
|
-
finally {
|
|
323
|
-
this.isLoading.set(false);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
copied = signal(false, /* @ts-ignore */
|
|
327
|
-
...(ngDevMode ? [{ debugName: "copied" }] : /* istanbul ignore next */ []));
|
|
328
|
-
copyTimeout;
|
|
329
|
-
copyCode() {
|
|
330
|
-
if (this.code()) {
|
|
331
|
-
navigator.clipboard.writeText(this.code());
|
|
332
|
-
this.copied.set(true);
|
|
333
|
-
if (this.copyTimeout) {
|
|
334
|
-
clearTimeout(this.copyTimeout);
|
|
335
|
-
}
|
|
336
|
-
this.copyTimeout = setTimeout(() => {
|
|
337
|
-
this.copied.set(false);
|
|
338
|
-
this.copyTimeout = undefined;
|
|
339
|
-
}, 2000);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CodeHighlighter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
343
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: CodeHighlighter, isStandalone: true, selector: "ngs-code-highlighter", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: true, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, diff: { classPropertyName: "diff", publicName: "diff", isSignal: true, isRequired: false, transformFunction: null }, highlightLines: { classPropertyName: "highlightLines", publicName: "highlightLines", isSignal: true, isRequired: false, transformFunction: null }, showLanguage: { classPropertyName: "showLanguage", publicName: "showLanguage", isSignal: true, isRequired: false, transformFunction: null }, showCopyButton: { classPropertyName: "showCopyButton", publicName: "showCopyButton", isSignal: true, isRequired: false, transformFunction: null }, disableOverflow: { classPropertyName: "disableOverflow", publicName: "disableOverflow", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.overflow-disabled": "disableOverflow()" }, classAttribute: "ngs-code-highlighter not-prose" }, exportAs: ["ngsCodeHighlighter"], usesOnChanges: true, ngImport: i0, template: "<figure class=\"h-full\">\n @if (title()) {\n <figcaption>\n @if (title()) {\n <span class=\"title\">{{ title() }}</span>\n }\n </figcaption>\n }\n\n <div class=\"content relative h-full\">\n @if (showLanguage()) {\n <div class=\"languageName\">{{ displayedLanguage() }}</div>\n }\n\n @if (showCopyButton()) {\n <span class=\"absolute top-2 right-2\">\n <button\n ngsIconButton\n (click)=\"copyCode()\"\n >\n <ngs-icon\n [name]=\"copied() ? 'fluent:checkmark-24-regular' : 'fluent:copy-24-regular'\"\n [class.text-green-500]=\"copied()\"\n />\n </button>\n </span>\n }\n\n <div>\n @if (content()) {\n <div [innerHTML]=\"content()\"></div>\n } @else if (isLoading()) {\n <div class=\"loading\">Loading\u2026</div>\n }\n </div>\n </div>\n</figure>\n", styles: [":host{--ngs-code-highlighter-bg: var(--ngs-color-background);--ngs-code-highlighter-padding: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-margin: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-title-padding: calc(var(--spacing, .25rem) * 2) calc(var(--spacing, .25rem) * 3) var(--spacing, .25rem) calc(var(--spacing, .25rem) * 3);--ngs-code-highlighter-title-color: var(--ngs-color-neutral-500);display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:host figcaption{font-size:var(--ngs-font-size-xs);font-weight:500;padding:var(--ngs-code-highlighter-title-padding);background:var(--ngs-code-highlighter-bg);color:var(--ngs-code-highlighter-title-color);position:relative;z-index:1}:host figcaption:after{content:\"\";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--ngs-code-highlighter-bg)}:host .languageName{font-size:var(--ngs-font-size-sm);font-weight:600;padding:0 calc(var(--spacing, .25rem) * 6);width:max-content;margin-bottom:calc(var(--spacing, .25rem) * 4);margin-top:calc(var(--spacing, .25rem) * -1);position:relative}:host ::ng-deep pre{padding:var(--ngs-code-highlighter-padding) 0;line-height:1.75;font-size:var(--ngs-font-size-sm);position:relative}:host ::ng-deep pre code{display:grid}:host ::ng-deep pre .line{padding-left:calc(var(--spacing, .25rem) * 6);padding-right:var(--ngs-code-highlighter-padding);min-height:1.75em}:host ::ng-deep pre .line.diff.remove{background-color:var(--ngs-color-danger);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.remove{background-color:color-mix(in srgb,var(--ngs-color-danger),transparent 85%)}}:host ::ng-deep pre .line.diff.remove:before{content:\"-\";color:var(--ngs-color-danger);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.diff.add{background-color:var(--ngs-color-success);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.add{background-color:color-mix(in srgb,var(--ngs-color-success),transparent 85%)}}:host ::ng-deep pre .line.diff.add:before{content:\"+\";color:var(--ngs-color-success);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.highlighted{background-color:var(--ngs-color-primary);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.highlighted{background-color:color-mix(in srgb,var(--ngs-color-primary),transparent 92%)}}:host ::ng-deep code{white-space:pre}:host .content{overflow:auto;background:var(--ngs-code-highlighter-bg)}:host .content button{color:inherit}:host .content button ngs-icon.text-green-500{color:var(--ngs-color-success)!important}:host.overflow-disabled .content{overflow:visible}:host.overflow-disabled ::ng-deep pre,:host.overflow-disabled ::ng-deep code{width:max-content;min-width:100%}:host.loading{opacity:.6}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
344
|
-
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CodeHighlighter, decorators: [{
|
|
346
|
-
type: Component,
|
|
347
|
-
args: [{ selector: 'ngs-code-highlighter', exportAs: 'ngsCodeHighlighter', imports: [
|
|
348
|
-
Button,
|
|
349
|
-
Icon
|
|
350
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
351
|
-
'class': 'ngs-code-highlighter not-prose',
|
|
352
|
-
'[class.overflow-disabled]': 'disableOverflow()',
|
|
353
|
-
}, template: "<figure class=\"h-full\">\n @if (title()) {\n <figcaption>\n @if (title()) {\n <span class=\"title\">{{ title() }}</span>\n }\n </figcaption>\n }\n\n <div class=\"content relative h-full\">\n @if (showLanguage()) {\n <div class=\"languageName\">{{ displayedLanguage() }}</div>\n }\n\n @if (showCopyButton()) {\n <span class=\"absolute top-2 right-2\">\n <button\n ngsIconButton\n (click)=\"copyCode()\"\n >\n <ngs-icon\n [name]=\"copied() ? 'fluent:checkmark-24-regular' : 'fluent:copy-24-regular'\"\n [class.text-green-500]=\"copied()\"\n />\n </button>\n </span>\n }\n\n <div>\n @if (content()) {\n <div [innerHTML]=\"content()\"></div>\n } @else if (isLoading()) {\n <div class=\"loading\">Loading\u2026</div>\n }\n </div>\n </div>\n</figure>\n", styles: [":host{--ngs-code-highlighter-bg: var(--ngs-color-background);--ngs-code-highlighter-padding: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-margin: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-title-padding: calc(var(--spacing, .25rem) * 2) calc(var(--spacing, .25rem) * 3) var(--spacing, .25rem) calc(var(--spacing, .25rem) * 3);--ngs-code-highlighter-title-color: var(--ngs-color-neutral-500);display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:host figcaption{font-size:var(--ngs-font-size-xs);font-weight:500;padding:var(--ngs-code-highlighter-title-padding);background:var(--ngs-code-highlighter-bg);color:var(--ngs-code-highlighter-title-color);position:relative;z-index:1}:host figcaption:after{content:\"\";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--ngs-code-highlighter-bg)}:host .languageName{font-size:var(--ngs-font-size-sm);font-weight:600;padding:0 calc(var(--spacing, .25rem) * 6);width:max-content;margin-bottom:calc(var(--spacing, .25rem) * 4);margin-top:calc(var(--spacing, .25rem) * -1);position:relative}:host ::ng-deep pre{padding:var(--ngs-code-highlighter-padding) 0;line-height:1.75;font-size:var(--ngs-font-size-sm);position:relative}:host ::ng-deep pre code{display:grid}:host ::ng-deep pre .line{padding-left:calc(var(--spacing, .25rem) * 6);padding-right:var(--ngs-code-highlighter-padding);min-height:1.75em}:host ::ng-deep pre .line.diff.remove{background-color:var(--ngs-color-danger);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.remove{background-color:color-mix(in srgb,var(--ngs-color-danger),transparent 85%)}}:host ::ng-deep pre .line.diff.remove:before{content:\"-\";color:var(--ngs-color-danger);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.diff.add{background-color:var(--ngs-color-success);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.add{background-color:color-mix(in srgb,var(--ngs-color-success),transparent 85%)}}:host ::ng-deep pre .line.diff.add:before{content:\"+\";color:var(--ngs-color-success);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.highlighted{background-color:var(--ngs-color-primary);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.highlighted{background-color:color-mix(in srgb,var(--ngs-color-primary),transparent 92%)}}:host ::ng-deep code{white-space:pre}:host .content{overflow:auto;background:var(--ngs-code-highlighter-bg)}:host .content button{color:inherit}:host .content button ngs-icon.text-green-500{color:var(--ngs-color-success)!important}:host.overflow-disabled .content{overflow:visible}:host.overflow-disabled ::ng-deep pre,:host.overflow-disabled ::ng-deep code{width:max-content;min-width:100%}:host.loading{opacity:.6}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
354
|
-
}], propDecorators: { code: [{ type: i0.Input, args: [{ isSignal: true, alias: "code", required: true }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], diff: [{ type: i0.Input, args: [{ isSignal: true, alias: "diff", required: false }] }], highlightLines: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightLines", required: false }] }], showLanguage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLanguage", required: false }] }], showCopyButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCopyButton", required: false }] }], disableOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableOverflow", required: false }] }] } });
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Generated bundle index. Do not edit.
|
|
358
|
-
*/
|
|
359
|
-
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
427
|
+
minVersion: "12.0.0",
|
|
428
|
+
version: "22.3.0",
|
|
429
|
+
ngImport: i0,
|
|
430
|
+
type: CodeHighlighter,
|
|
431
|
+
decorators: [{
|
|
432
|
+
type: Component,
|
|
433
|
+
args: [{
|
|
434
|
+
selector: "ngs-code-highlighter",
|
|
435
|
+
exportAs: "ngsCodeHighlighter",
|
|
436
|
+
imports: [Button, Icon],
|
|
437
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
438
|
+
host: {
|
|
439
|
+
"class": "ngs-code-highlighter not-prose",
|
|
440
|
+
"[class.overflow-disabled]": "disableOverflow()"
|
|
441
|
+
},
|
|
442
|
+
template: "<figure class=\"h-full\">\n @if (title()) {\n <figcaption>\n @if (title()) {\n <span class=\"title\">{{ title() }}</span>\n }\n </figcaption>\n }\n\n <div class=\"content relative h-full\">\n @if (showLanguage()) {\n <div class=\"languageName\">{{ displayedLanguage() }}</div>\n }\n\n @if (showCopyButton()) {\n <span class=\"absolute top-2 right-2\">\n <button\n ngsIconButton\n (click)=\"copyCode()\"\n >\n <ngs-icon\n [name]=\"copied() ? 'fluent:checkmark-24-regular' : 'fluent:copy-24-regular'\"\n [class.text-green-500]=\"copied()\"\n />\n </button>\n </span>\n }\n\n @if (content()) {\n <div class=\"code-output\" [innerHTML]=\"content()\"></div>\n } @else if (isLoading()) {\n <div class=\"loading\">Loading…</div>\n }\n </div>\n</figure>\n",
|
|
443
|
+
styles: [":host{--ngs-code-highlighter-bg: var(--ngs-color-surface-container, #f6f8fa);--ngs-code-highlighter-padding: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-margin: calc(var(--spacing, .25rem) * 5);--ngs-code-highlighter-title-padding: calc(var(--spacing, .25rem) * 2) calc(var(--spacing, .25rem) * 3) var(--spacing, .25rem) calc(var(--spacing, .25rem) * 3);--ngs-code-highlighter-title-color: var(--ngs-color-neutral-500);display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:host figure{border-radius:var(--ngs-radius-lg, .75rem)}:host figcaption{border-radius:inherit;border-end-start-radius:0;border-end-end-radius:0;font-size:var(--ngs-font-size-xs);font-weight:500;padding:var(--ngs-code-highlighter-title-padding);background:var(--ngs-code-highlighter-bg);color:var(--ngs-code-highlighter-title-color);position:relative;z-index:1}:host figcaption:after{content:\"\";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--ngs-code-highlighter-bg)}:host .languageName{font-size:var(--ngs-font-size-sm);font-weight:600;padding:0 calc(var(--spacing, .25rem) * 6);width:max-content;margin-bottom:calc(var(--spacing, .25rem) * 4);margin-top:calc(var(--spacing, .25rem) * -1);position:relative}:host ::ng-deep pre{border-radius:inherit;padding:var(--ngs-code-highlighter-padding) 0;line-height:1.75;font-size:var(--ngs-font-size-sm);position:relative}:host ::ng-deep pre code{display:grid}:host ::ng-deep pre .line{padding-left:calc(var(--spacing, .25rem) * 6);padding-right:var(--ngs-code-highlighter-padding);min-height:1.75em}:host ::ng-deep pre .line.diff.remove{background-color:var(--ngs-color-danger);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.remove{background-color:color-mix(in srgb,var(--ngs-color-danger),transparent 85%)}}:host ::ng-deep pre .line.diff.remove:before{content:\"-\";color:var(--ngs-color-danger);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.diff.add{background-color:var(--ngs-color-success);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.diff.add{background-color:color-mix(in srgb,var(--ngs-color-success),transparent 85%)}}:host ::ng-deep pre .line.diff.add:before{content:\"+\";color:var(--ngs-color-success);position:absolute;left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep pre .line.highlighted{background-color:var(--ngs-color-primary);display:inline-block;width:100%}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep pre .line.highlighted{background-color:color-mix(in srgb,var(--ngs-color-primary),transparent 92%)}}:host ::ng-deep code{white-space:pre}:host .content{overflow:auto;border-radius:inherit;background:var(--ngs-code-highlighter-bg)}:host .content .code-output{border-radius:inherit}:host .content button{color:inherit}:host .content button ngs-icon.text-green-500{color:var(--ngs-color-success)!important}:host figcaption+.content{border-start-start-radius:0;border-start-end-radius:0}:host.overflow-disabled .content{overflow:visible}:host.overflow-disabled ::ng-deep pre,:host.overflow-disabled ::ng-deep code{width:max-content;min-width:100%}:host.loading{opacity:.6}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
444
|
+
}]
|
|
445
|
+
}],
|
|
446
|
+
propDecorators: {
|
|
447
|
+
code: [{
|
|
448
|
+
type: i0.Input,
|
|
449
|
+
args: [{
|
|
450
|
+
isSignal: true,
|
|
451
|
+
alias: "code",
|
|
452
|
+
required: true
|
|
453
|
+
}]
|
|
454
|
+
}],
|
|
455
|
+
language: [{
|
|
456
|
+
type: i0.Input,
|
|
457
|
+
args: [{
|
|
458
|
+
isSignal: true,
|
|
459
|
+
alias: "language",
|
|
460
|
+
required: false
|
|
461
|
+
}]
|
|
462
|
+
}],
|
|
463
|
+
theme: [{
|
|
464
|
+
type: i0.Input,
|
|
465
|
+
args: [{
|
|
466
|
+
isSignal: true,
|
|
467
|
+
alias: "theme",
|
|
468
|
+
required: false
|
|
469
|
+
}]
|
|
470
|
+
}],
|
|
471
|
+
title: [{
|
|
472
|
+
type: i0.Input,
|
|
473
|
+
args: [{
|
|
474
|
+
isSignal: true,
|
|
475
|
+
alias: "title",
|
|
476
|
+
required: false
|
|
477
|
+
}]
|
|
478
|
+
}],
|
|
479
|
+
diff: [{
|
|
480
|
+
type: i0.Input,
|
|
481
|
+
args: [{
|
|
482
|
+
isSignal: true,
|
|
483
|
+
alias: "diff",
|
|
484
|
+
required: false
|
|
485
|
+
}]
|
|
486
|
+
}],
|
|
487
|
+
highlightLines: [{
|
|
488
|
+
type: i0.Input,
|
|
489
|
+
args: [{
|
|
490
|
+
isSignal: true,
|
|
491
|
+
alias: "highlightLines",
|
|
492
|
+
required: false
|
|
493
|
+
}]
|
|
494
|
+
}],
|
|
495
|
+
showLanguage: [{
|
|
496
|
+
type: i0.Input,
|
|
497
|
+
args: [{
|
|
498
|
+
isSignal: true,
|
|
499
|
+
alias: "showLanguage",
|
|
500
|
+
required: false
|
|
501
|
+
}]
|
|
502
|
+
}],
|
|
503
|
+
showCopyButton: [{
|
|
504
|
+
type: i0.Input,
|
|
505
|
+
args: [{
|
|
506
|
+
isSignal: true,
|
|
507
|
+
alias: "showCopyButton",
|
|
508
|
+
required: false
|
|
509
|
+
}]
|
|
510
|
+
}],
|
|
511
|
+
disableOverflow: [{
|
|
512
|
+
type: i0.Input,
|
|
513
|
+
args: [{
|
|
514
|
+
isSignal: true,
|
|
515
|
+
alias: "disableOverflow",
|
|
516
|
+
required: false
|
|
517
|
+
}]
|
|
518
|
+
}]
|
|
519
|
+
}
|
|
520
|
+
});
|
|
360
521
|
export { CodeHighlighter };
|
|
361
|
-
|
|
522
|
+
|
|
523
|
+
//# sourceMappingURL=ngstarter-ui-components-code-highlighter.mjs.map
|