@ngstarter-ui/components 22.3.6 → 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-BgKuFsDy.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.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-Bo3irEeG.mjs +0 -375
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.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-laP7DTyq.mjs +0 -134
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.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
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { ContentEditorUploadBlockBase } from "./ngstarter-ui-components-content-editor.mjs";
|
|
2
|
+
import { t as ContentEditorUploadStatus } from "./upload-status-tZ0x0BUB.mjs";
|
|
3
|
+
import { r as CONTENT_EDITOR_BLOCK } from "./content-builder.store-D622mHxt.mjs";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { ChangeDetectionStrategy, Component, effect, forwardRef, model, signal, untracked, viewChild } from "@angular/core";
|
|
6
|
+
import { FormField, Label } from "@ngstarter-ui/components/form-field";
|
|
7
|
+
import * as i1 from "@angular/forms";
|
|
8
|
+
import { FormsModule } from "@angular/forms";
|
|
9
|
+
import { Input as Input$1 } from "@ngstarter-ui/components/input";
|
|
10
|
+
import { UploadArea, UploadTriggerDirective } from "@ngstarter-ui/components/upload";
|
|
11
|
+
import { ResizableContainer } from "@ngstarter-ui/components/resizable-container";
|
|
12
|
+
var VideoBlockComponent = class VideoBlockComponent extends ContentEditorUploadBlockBase {
|
|
13
|
+
_src = signal("", ...ngDevMode ? [{ debugName: "_src" }] : /* istanbul ignore next */ []);
|
|
14
|
+
_caption = model("", ...ngDevMode ? [{ debugName: "_caption" }] : /* istanbul ignore next */ []);
|
|
15
|
+
_orientation = signal("landscape", ...ngDevMode ? [{ debugName: "_orientation" }] : /* istanbul ignore next */ []);
|
|
16
|
+
_settings = model({}, ...ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []);
|
|
17
|
+
videoElement = viewChild("videoPlayer", ...ngDevMode ? [{ debugName: "videoElement" }] : /* istanbul ignore next */ []);
|
|
18
|
+
_aspectRatio = 16 / 9;
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
effect(() => {
|
|
22
|
+
const content = this.content();
|
|
23
|
+
const settings = this.settings();
|
|
24
|
+
untracked(() => {
|
|
25
|
+
this._src.set(content.src);
|
|
26
|
+
this._caption.set(content.caption);
|
|
27
|
+
this._orientation.set(content.orientation || "landscape");
|
|
28
|
+
this._settings.set({ ...settings });
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
this._src.set(this.content().src);
|
|
34
|
+
this._caption.set(this.content().caption);
|
|
35
|
+
this._orientation.set(this.content().orientation || "landscape");
|
|
36
|
+
this._settings.set(this.settings() || {});
|
|
37
|
+
}
|
|
38
|
+
focus() {
|
|
39
|
+
if (this._src()) this.builder.focusBlock(this.id());
|
|
40
|
+
}
|
|
41
|
+
getData() {
|
|
42
|
+
return {
|
|
43
|
+
content: {
|
|
44
|
+
src: this._src(),
|
|
45
|
+
caption: this._caption(),
|
|
46
|
+
orientation: this._orientation()
|
|
47
|
+
},
|
|
48
|
+
settings: { ...this._settings() }
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
isEmpty() {
|
|
52
|
+
const src = this.getData().content.src;
|
|
53
|
+
return typeof src === "string" ? src.trim().length === 0 : !src;
|
|
54
|
+
}
|
|
55
|
+
onFileSelected(event) {
|
|
56
|
+
return this.uploadFiles("video", {
|
|
57
|
+
files: event.files.slice(0, 1),
|
|
58
|
+
accept: (file) => file.type.startsWith("video/"),
|
|
59
|
+
apply: (results) => {
|
|
60
|
+
this._src.set(results[0].url);
|
|
61
|
+
this.update();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
_onCaptionChange() {
|
|
66
|
+
this.update();
|
|
67
|
+
}
|
|
68
|
+
_onVideoResized(event) {
|
|
69
|
+
let width = event.width;
|
|
70
|
+
if (width > 704) width = 704;
|
|
71
|
+
const height = Math.round(width / this._aspectRatio);
|
|
72
|
+
this._settings.update((s) => ({
|
|
73
|
+
...s,
|
|
74
|
+
width,
|
|
75
|
+
height
|
|
76
|
+
}));
|
|
77
|
+
this.update();
|
|
78
|
+
}
|
|
79
|
+
_onVideoLoaded(event) {
|
|
80
|
+
const video = event.target;
|
|
81
|
+
this._aspectRatio = video.videoWidth / video.videoHeight;
|
|
82
|
+
}
|
|
83
|
+
handleKeyPress(event) {
|
|
84
|
+
if (event.key === "Enter") {
|
|
85
|
+
event.preventDefault();
|
|
86
|
+
event.stopPropagation();
|
|
87
|
+
this.builder.insertEmptyBlock(this.index());
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
update() {
|
|
91
|
+
this.store.updateBlock(this.id(), {
|
|
92
|
+
...this.getData(),
|
|
93
|
+
isEmpty: this.isEmpty()
|
|
94
|
+
});
|
|
95
|
+
this.builder.emitContentChangeEvent();
|
|
96
|
+
}
|
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
98
|
+
minVersion: "12.0.0",
|
|
99
|
+
version: "22.3.0",
|
|
100
|
+
ngImport: i0,
|
|
101
|
+
type: VideoBlockComponent,
|
|
102
|
+
deps: [],
|
|
103
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
104
|
+
});
|
|
105
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
106
|
+
minVersion: "17.0.0",
|
|
107
|
+
version: "22.3.0",
|
|
108
|
+
type: VideoBlockComponent,
|
|
109
|
+
isStandalone: true,
|
|
110
|
+
selector: "ngs-video-block",
|
|
111
|
+
inputs: {
|
|
112
|
+
_caption: {
|
|
113
|
+
classPropertyName: "_caption",
|
|
114
|
+
publicName: "_caption",
|
|
115
|
+
isSignal: true,
|
|
116
|
+
isRequired: false,
|
|
117
|
+
transformFunction: null
|
|
118
|
+
},
|
|
119
|
+
_settings: {
|
|
120
|
+
classPropertyName: "_settings",
|
|
121
|
+
publicName: "_settings",
|
|
122
|
+
isSignal: true,
|
|
123
|
+
isRequired: false,
|
|
124
|
+
transformFunction: null
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
outputs: {
|
|
128
|
+
_caption: "_captionChange",
|
|
129
|
+
_settings: "_settingsChange"
|
|
130
|
+
},
|
|
131
|
+
host: {
|
|
132
|
+
listeners: { "keypress": "handleKeyPress($event)" },
|
|
133
|
+
classAttribute: "block"
|
|
134
|
+
},
|
|
135
|
+
providers: [{
|
|
136
|
+
provide: CONTENT_EDITOR_BLOCK,
|
|
137
|
+
useExisting: forwardRef(() => VideoBlockComponent),
|
|
138
|
+
multi: true
|
|
139
|
+
}],
|
|
140
|
+
viewQueries: [{
|
|
141
|
+
propertyName: "videoElement",
|
|
142
|
+
first: true,
|
|
143
|
+
predicate: ["videoPlayer"],
|
|
144
|
+
descendants: true,
|
|
145
|
+
isSignal: true
|
|
146
|
+
}],
|
|
147
|
+
usesInheritance: true,
|
|
148
|
+
ngImport: i0,
|
|
149
|
+
template: "<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"flex items-center justify-center overflow-hidden\">\n <ngs-resizable-container (resized)=\"_onVideoResized($event)\"\n [style.width.px]=\"_settings().width || null\"\n [style.height.px]=\"_settings().height || null\"\n [class.max-w-full]=\"!_settings().width\">\n <video #videoPlayer\n [src]=\"_src()\"\n class=\"w-full h-auto block\"\n (loadedmetadata)=\"_onVideoLoaded($event)\"\n controls></video>\n </ngs-resizable-container>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Caption</ngs-label>\n <input ngsInput [(ngModel)]=\"_caption\" (ngModelChange)=\"_onCaptionChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"video/*\"\n (fileSelected)=\"onFileSelected($event)\" multiple=\"false\"\n class=\"cursor-pointer hover:outline-2 hover:outline-[var(--color-primary)]\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop video here or click to upload\n } @else {\n <div class=\"font-medium\">Drop video here</div>\n }\n </ngs-upload-area>\n}\n",
|
|
150
|
+
styles: [":host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
151
|
+
dependencies: [
|
|
152
|
+
{
|
|
153
|
+
kind: "component",
|
|
154
|
+
type: ContentEditorUploadStatus,
|
|
155
|
+
selector: "ngs-content-editor-upload-status",
|
|
156
|
+
inputs: ["task"]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
kind: "component",
|
|
160
|
+
type: UploadArea,
|
|
161
|
+
selector: "ngs-upload-area",
|
|
162
|
+
inputs: [
|
|
163
|
+
"accept",
|
|
164
|
+
"allowHover",
|
|
165
|
+
"multiple"
|
|
166
|
+
],
|
|
167
|
+
outputs: ["fileSelected"],
|
|
168
|
+
exportAs: ["ngsUploadArea"]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
kind: "directive",
|
|
172
|
+
type: UploadTriggerDirective,
|
|
173
|
+
selector: "[ngsUploadTrigger]",
|
|
174
|
+
inputs: ["accept", "multiple"],
|
|
175
|
+
outputs: ["fileSelected"],
|
|
176
|
+
exportAs: ["ngsUploadTrigger"]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
kind: "component",
|
|
180
|
+
type: FormField,
|
|
181
|
+
selector: "ngs-form-field",
|
|
182
|
+
inputs: [
|
|
183
|
+
"labelMode",
|
|
184
|
+
"subscriptHiddenIfEmpty",
|
|
185
|
+
"sameHeightAsButton"
|
|
186
|
+
],
|
|
187
|
+
exportAs: ["ngsFormField"]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
kind: "directive",
|
|
191
|
+
type: Input$1,
|
|
192
|
+
selector: "input[ngsInput], textarea[ngsInput]",
|
|
193
|
+
inputs: [
|
|
194
|
+
"id",
|
|
195
|
+
"placeholder",
|
|
196
|
+
"required",
|
|
197
|
+
"disabled",
|
|
198
|
+
"readonly",
|
|
199
|
+
"errorStateMatcher"
|
|
200
|
+
],
|
|
201
|
+
exportAs: ["ngsInput"]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
kind: "ngmodule",
|
|
205
|
+
type: FormsModule
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
kind: "directive",
|
|
209
|
+
type: i1.DefaultValueAccessor,
|
|
210
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
kind: "directive",
|
|
214
|
+
type: i1.NgControlStatus,
|
|
215
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
kind: "directive",
|
|
219
|
+
type: i1.NgModel,
|
|
220
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
221
|
+
inputs: [
|
|
222
|
+
"name",
|
|
223
|
+
"disabled",
|
|
224
|
+
"ngModel",
|
|
225
|
+
"ngModelOptions"
|
|
226
|
+
],
|
|
227
|
+
outputs: ["ngModelChange"],
|
|
228
|
+
exportAs: ["ngModel"]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
kind: "component",
|
|
232
|
+
type: Label,
|
|
233
|
+
selector: "ngs-label"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
kind: "component",
|
|
237
|
+
type: ResizableContainer,
|
|
238
|
+
selector: "ngs-resizable-container",
|
|
239
|
+
inputs: ["minWidth"],
|
|
240
|
+
outputs: ["resized"],
|
|
241
|
+
exportAs: ["ngsResizableContainer"]
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
248
|
+
minVersion: "12.0.0",
|
|
249
|
+
version: "22.3.0",
|
|
250
|
+
ngImport: i0,
|
|
251
|
+
type: VideoBlockComponent,
|
|
252
|
+
decorators: [{
|
|
253
|
+
type: Component,
|
|
254
|
+
args: [{
|
|
255
|
+
selector: "ngs-video-block",
|
|
256
|
+
imports: [
|
|
257
|
+
ContentEditorUploadStatus,
|
|
258
|
+
UploadArea,
|
|
259
|
+
UploadTriggerDirective,
|
|
260
|
+
FormField,
|
|
261
|
+
Input$1,
|
|
262
|
+
FormsModule,
|
|
263
|
+
Label,
|
|
264
|
+
ResizableContainer
|
|
265
|
+
],
|
|
266
|
+
providers: [{
|
|
267
|
+
provide: CONTENT_EDITOR_BLOCK,
|
|
268
|
+
useExisting: forwardRef(() => VideoBlockComponent),
|
|
269
|
+
multi: true
|
|
270
|
+
}],
|
|
271
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
272
|
+
host: {
|
|
273
|
+
"(keypress)": "handleKeyPress($event)",
|
|
274
|
+
"class": "block"
|
|
275
|
+
},
|
|
276
|
+
template: "<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"flex items-center justify-center overflow-hidden\">\n <ngs-resizable-container (resized)=\"_onVideoResized($event)\"\n [style.width.px]=\"_settings().width || null\"\n [style.height.px]=\"_settings().height || null\"\n [class.max-w-full]=\"!_settings().width\">\n <video #videoPlayer\n [src]=\"_src()\"\n class=\"w-full h-auto block\"\n (loadedmetadata)=\"_onVideoLoaded($event)\"\n controls></video>\n </ngs-resizable-container>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Caption</ngs-label>\n <input ngsInput [(ngModel)]=\"_caption\" (ngModelChange)=\"_onCaptionChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"video/*\"\n (fileSelected)=\"onFileSelected($event)\" multiple=\"false\"\n class=\"cursor-pointer hover:outline-2 hover:outline-[var(--color-primary)]\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop video here or click to upload\n } @else {\n <div class=\"font-medium\">Drop video here</div>\n }\n </ngs-upload-area>\n}\n",
|
|
277
|
+
styles: [":host{display:block}:host ngs-upload-area{--ngs-upload-area-padding: calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 10)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
278
|
+
}]
|
|
279
|
+
}],
|
|
280
|
+
ctorParameters: () => [],
|
|
281
|
+
propDecorators: {
|
|
282
|
+
_caption: [{
|
|
283
|
+
type: i0.Input,
|
|
284
|
+
args: [{
|
|
285
|
+
isSignal: true,
|
|
286
|
+
alias: "_caption",
|
|
287
|
+
required: false
|
|
288
|
+
}]
|
|
289
|
+
}, {
|
|
290
|
+
type: i0.Output,
|
|
291
|
+
args: ["_captionChange"]
|
|
292
|
+
}],
|
|
293
|
+
_settings: [{
|
|
294
|
+
type: i0.Input,
|
|
295
|
+
args: [{
|
|
296
|
+
isSignal: true,
|
|
297
|
+
alias: "_settings",
|
|
298
|
+
required: false
|
|
299
|
+
}]
|
|
300
|
+
}, {
|
|
301
|
+
type: i0.Output,
|
|
302
|
+
args: ["_settingsChange"]
|
|
303
|
+
}],
|
|
304
|
+
videoElement: [{
|
|
305
|
+
type: i0.ViewChild,
|
|
306
|
+
args: ["videoPlayer", { isSignal: true }]
|
|
307
|
+
}]
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
export { VideoBlockComponent };
|
|
311
|
+
|
|
312
|
+
//# sourceMappingURL=video-block.component-CpAXibm6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-block.component-CpAXibm6.mjs","names":["Input"],"sources":["../../../projects/components/content-editor/src/_builder/video-block/video-block.component.ts","../../../projects/components/content-editor/src/_builder/video-block/video-block.component.html"],"sourcesContent":["import { ContentEditorUploadBlockBase } from '../upload-block-base';\nimport { ContentEditorUploadStatus } from '../upload-status/upload-status';\nimport { ChangeDetectionStrategy, Component, effect, untracked, forwardRef, model, OnInit, signal, viewChild, ElementRef } from '@angular/core';\nimport { UploadArea, UploadFileSelectedEvent, UploadTriggerDirective } from '@ngstarter-ui/components/upload';\nimport {\n CONTENT_EDITOR_BLOCK,\n ContentEditorVideoBlockSettings,\n ContentEditorVideoContent\n} from '../../types';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormsModule } from '@angular/forms';\nimport { ResizableContainer } from '@ngstarter-ui/components/resizable-container';\n\n@Component({\n selector: 'ngs-video-block',\n imports: [\n ContentEditorUploadStatus,\n UploadArea,\n UploadTriggerDirective,\n FormField,\n Input,\n FormsModule,\n Label,\n ResizableContainer\n ],\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: forwardRef(() => VideoBlockComponent),\n multi: true\n }\n ],\n templateUrl: './video-block.component.html',\n styleUrl: './video-block.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(keypress)': 'handleKeyPress($event)',\n 'class': 'block'\n }\n})\nexport class VideoBlockComponent extends ContentEditorUploadBlockBase<ContentEditorVideoContent, ContentEditorVideoBlockSettings> implements OnInit {\n\n protected _src = signal<string>('');\n protected _caption = model<string>('');\n protected _orientation = signal<'portrait' | 'landscape'>('landscape');\n protected _settings = model<ContentEditorVideoBlockSettings>({});\n\n readonly videoElement = viewChild<ElementRef<HTMLVideoElement>>('videoPlayer');\n\n private _aspectRatio = 16 / 9;\n\n constructor() {\n super();\n effect(() => {\n const content = this.content();\n const settings = this.settings();\n untracked(() => {\n this._src.set(content.src);\n this._caption.set(content.caption);\n this._orientation.set(content.orientation || 'landscape');\n this._settings.set({ ...settings });\n });\n });\n }\n\n ngOnInit() {\n this._src.set(this.content().src);\n this._caption.set(this.content().caption);\n this._orientation.set(this.content().orientation || 'landscape');\n this._settings.set(this.settings() || {});\n }\n\n override focus() {\n if (this._src()) {\n this.builder.focusBlock(this.id());\n }\n }\n\n override getData(): any {\n return {\n content: {\n src: this._src(),\n caption: this._caption(),\n orientation: this._orientation()\n },\n settings: {\n ...this._settings(),\n }\n };\n }\n\n override isEmpty(): boolean {\n const src = this.getData().content.src;\n return typeof src === 'string' ? src.trim().length === 0 : !src;\n }\n\n protected onFileSelected(event: UploadFileSelectedEvent): Promise<void> {\n return this.uploadFiles('video', { files: event.files.slice(0, 1), accept: file => file.type.startsWith('video/'), apply: results => {\n this._src.set(results[0].url);\n this.update();\n } });\n }\n\n protected _onCaptionChange() {\n this.update();\n }\n\n protected _onVideoResized(event: { width: number }) {\n let width = event.width;\n if (width > 704) {\n width = 704;\n }\n const height = Math.round(width / this._aspectRatio);\n\n this._settings.update(s => ({\n ...s,\n width,\n height\n }));\n\n this.update();\n }\n\n protected _onVideoLoaded(event: any) {\n const video = event.target as HTMLVideoElement;\n this._aspectRatio = video.videoWidth / video.videoHeight;\n }\n\n protected handleKeyPress(event: KeyboardEvent) {\n if (event.key === 'Enter') {\n event.preventDefault();\n event.stopPropagation();\n this.builder.insertEmptyBlock(this.index());\n }\n }\n\n private update() {\n this.store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this.builder.emitContentChangeEvent();\n }\n}\n","<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"flex items-center justify-center overflow-hidden\">\n <ngs-resizable-container (resized)=\"_onVideoResized($event)\"\n [style.width.px]=\"_settings().width || null\"\n [style.height.px]=\"_settings().height || null\"\n [class.max-w-full]=\"!_settings().width\">\n <video #videoPlayer\n [src]=\"_src()\"\n class=\"w-full h-auto block\"\n (loadedmetadata)=\"_onVideoLoaded($event)\"\n controls></video>\n </ngs-resizable-container>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Caption</ngs-label>\n <input ngsInput [(ngModel)]=\"_caption\" (ngModelChange)=\"_onCaptionChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"video/*\"\n (fileSelected)=\"onFileSelected($event)\" multiple=\"false\"\n class=\"cursor-pointer hover:outline-2 hover:outline-[var(--color-primary)]\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop video here or click to upload\n } @else {\n <div class=\"font-medium\">Drop video here</div>\n }\n </ngs-upload-area>\n}\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@ngstarter-ui/components",
|
|
3
2
|
"description": "NgStarter - AI-friendly Enterprise Angular UI Components and Admin Panel",
|
|
4
|
-
"version": "22.3.6",
|
|
5
3
|
"repository": {
|
|
6
4
|
"type": "git",
|
|
7
5
|
"url": "https://github.com/elementarlabsdev/ngstarter.git"
|
|
@@ -69,7 +67,6 @@
|
|
|
69
67
|
"rxjs": "~7.8.0",
|
|
70
68
|
"shiki": "^3.12.0",
|
|
71
69
|
"tailwindcss": "^4.2.2",
|
|
72
|
-
"tslib": "^2.3.0",
|
|
73
70
|
"uuid": "^11.0.3",
|
|
74
71
|
"video.js": "^8.23.7"
|
|
75
72
|
},
|
|
@@ -78,15 +75,18 @@
|
|
|
78
75
|
"access": "public",
|
|
79
76
|
"registry": "https://registry.npmjs.org/"
|
|
80
77
|
},
|
|
78
|
+
"name": "@ngstarter-ui/components",
|
|
79
|
+
"type": "module",
|
|
80
|
+
"main": "./fesm2022/ngstarter-ui-components.mjs",
|
|
81
|
+
"module": "./fesm2022/ngstarter-ui-components.mjs",
|
|
82
|
+
"typings": "./types/ngstarter-ui-components.d.ts",
|
|
83
|
+
"types": "./types/ngstarter-ui-components.d.ts",
|
|
81
84
|
"exports": {
|
|
82
85
|
"./content-editor/document.schema.json": "./content-editor/document.schema.json",
|
|
83
86
|
"./content-editor/BLOCK_FORMAT.md": "./content-editor/BLOCK_FORMAT.md",
|
|
84
87
|
"./ai/*": "./ai/*",
|
|
85
88
|
"./styles/*": "./styles/*",
|
|
86
89
|
"./styles/themes/*": "./styles/themes/*",
|
|
87
|
-
"./package.json": {
|
|
88
|
-
"default": "./package.json"
|
|
89
|
-
},
|
|
90
90
|
".": {
|
|
91
91
|
"types": "./types/ngstarter-ui-components.d.ts",
|
|
92
92
|
"default": "./fesm2022/ngstarter-ui-components.mjs"
|
|
@@ -598,9 +598,10 @@
|
|
|
598
598
|
"./whiteboard": {
|
|
599
599
|
"types": "./types/ngstarter-ui-components-whiteboard.d.ts",
|
|
600
600
|
"default": "./fesm2022/ngstarter-ui-components-whiteboard.mjs"
|
|
601
|
+
},
|
|
602
|
+
"./package.json": {
|
|
603
|
+
"default": "./package.json"
|
|
601
604
|
}
|
|
602
605
|
},
|
|
603
|
-
"
|
|
604
|
-
|
|
605
|
-
"type": "module"
|
|
606
|
-
}
|
|
606
|
+
"version": "22.4.1"
|
|
607
|
+
}
|
package/styles/_tokens.scss
CHANGED
|
@@ -207,6 +207,7 @@
|
|
|
207
207
|
--ngs-dropdown-shadow: var(--ngs-shadow-md);
|
|
208
208
|
--ngs-dropdown-radius: 0.5rem;
|
|
209
209
|
--ngs-dropdown-border: 1px solid var(--ngs-color-border);
|
|
210
|
+
--ngs-select-panel-gap: 2px;
|
|
210
211
|
--ngs-dropdown-max-height: 16rem;
|
|
211
212
|
--ngs-dropdown-height: 2.25rem;
|
|
212
213
|
--ngs-dropdown-padding-x: --spacing(2);
|
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ActionRequired {
|
|
3
|
+
actionText: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
+
iconName: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
+
description: import("@angular/core").InputSignal<string>;
|
|
6
|
+
buttonText: import("@angular/core").InputSignal<string>;
|
|
7
|
+
readonly buttonClicked: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
protected getIconName(iconName: string): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionRequired, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionRequired, "ngs-action-required", ["ngsActionRequired"], {
|
|
11
|
+
"actionText": {
|
|
12
|
+
"alias": "actionText";
|
|
13
|
+
"required": false;
|
|
14
|
+
"isSignal": true;
|
|
15
|
+
};
|
|
16
|
+
"iconName": {
|
|
17
|
+
"alias": "iconName";
|
|
18
|
+
"required": false;
|
|
19
|
+
"isSignal": true;
|
|
20
|
+
};
|
|
21
|
+
"description": {
|
|
22
|
+
"alias": "description";
|
|
23
|
+
"required": true;
|
|
24
|
+
"isSignal": true;
|
|
25
|
+
};
|
|
26
|
+
"buttonText": {
|
|
27
|
+
"alias": "buttonText";
|
|
28
|
+
"required": true;
|
|
29
|
+
"isSignal": true;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
"buttonClicked": "buttonClicked";
|
|
33
|
+
}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -1,50 +1,59 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertIconDirective, "[ngsAlertIcon]", ["ngsAlertIcon"], {}, {}, never, never, true, never>;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { InjectionToken, TemplateRef } from "@angular/core";
|
|
3
|
+
export declare class AlertIconDirective {
|
|
4
|
+
readonly templateRef: TemplateRef<any> | null;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertIconDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertIconDirective, "[ngsAlertIcon]", ["ngsAlertIcon"], {}, {}, never, never, true, never>;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
export declare class Alert {
|
|
9
|
+
private _renderer;
|
|
10
|
+
private _elementRef;
|
|
11
|
+
readonly iconRef: import("@angular/core").Signal<AlertIconDirective | undefined>;
|
|
12
|
+
autoClose: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
13
|
+
bordered: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
variant: import("@angular/core").InputSignal<string>;
|
|
15
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
16
|
+
private _autoCloseTimeout;
|
|
17
|
+
constructor();
|
|
18
|
+
get api(): {
|
|
19
|
+
close: () => void;
|
|
20
|
+
};
|
|
21
|
+
protected get iconRefTemplate(): TemplateRef<any>;
|
|
22
|
+
private _close;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "ngs-alert", ["ngsAlert"], {
|
|
25
|
+
"autoClose": {
|
|
26
|
+
"alias": "autoClose";
|
|
27
|
+
"required": false;
|
|
28
|
+
"isSignal": true;
|
|
22
29
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
"bordered": {
|
|
31
|
+
"alias": "bordered";
|
|
32
|
+
"required": false;
|
|
33
|
+
"isSignal": true;
|
|
34
|
+
};
|
|
35
|
+
"variant": {
|
|
36
|
+
"alias": "variant";
|
|
37
|
+
"required": false;
|
|
38
|
+
"isSignal": true;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
"closed": "closed";
|
|
42
|
+
}, ["iconRef"], ["[ngsAlertIcon]", "ngs-alert-title,[ngsAlertTitle]", "*", "[ngsAlertAction]"], true, never>;
|
|
27
43
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertTitleDirective, "ngs-alert-title,[ngsAlertTitle]", ["ngsAlertTitle"], {}, {}, never, never, true, never>;
|
|
44
|
+
export declare class AlertTitleDirective {
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertTitleDirective, never>;
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertTitleDirective, "ngs-alert-title,[ngsAlertTitle]", ["ngsAlertTitle"], {}, {}, never, never, true, never>;
|
|
32
47
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertCloseDirective, "[ngsAlertClose]", ["ngsAlertClose"], {}, {}, never, never, true, never>;
|
|
48
|
+
export declare class AlertCloseDirective {
|
|
49
|
+
private _alert;
|
|
50
|
+
protected _handleClick(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertCloseDirective, never>;
|
|
52
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertCloseDirective, "[ngsAlertClose]", ["ngsAlertClose"], {}, {}, never, never, true, never>;
|
|
39
53
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertActionDirective, "[ngsAlertAction]", ["ngsAlertAction"], {}, {}, never, never, true, never>;
|
|
54
|
+
export declare class AlertActionDirective {
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertActionDirective, never>;
|
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertActionDirective, "[ngsAlertAction]", ["ngsAlertAction"], {}, {}, never, never, true, never>;
|
|
44
57
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
type AlertVariant = 'default' | 'secondary' | 'positive' | 'informative' | 'negative' | 'notice' | string;
|
|
48
|
-
|
|
49
|
-
export { ALERT, Alert, AlertActionDirective, AlertCloseDirective, AlertIconDirective, AlertTitleDirective };
|
|
50
|
-
export type { AlertVariant };
|
|
58
|
+
export declare const ALERT: InjectionToken<unknown>;
|
|
59
|
+
export type AlertVariant = 'default' | 'secondary' | 'positive' | 'informative' | 'negative' | 'notice' | string;
|