@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-calendar.mjs","sources":["../../../projects/components/calendar/src/calendar/calendar.ts","../../../projects/components/calendar/src/calendar/calendar.html","../../../projects/components/calendar/ngstarter-ui-components-calendar.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Icon } from '@ngstarter-ui/components/icon';\n\nexport type CalendarDateInput = Date | string | number;\n\nexport type CalendarEventColor =\n | 'primary'\n | 'success'\n | 'warning'\n | 'danger'\n | 'info'\n | 'neutral'\n | 'green'\n | 'rose'\n | 'blue';\n\nexport interface CalendarEvent {\n readonly id?: string | number;\n readonly date: CalendarDateInput;\n readonly title?: string;\n readonly color?: CalendarEventColor;\n}\n\ninterface CalendarCell {\n readonly date: Date;\n readonly key: string;\n readonly label: string;\n readonly ariaLabel: string;\n readonly inCurrentMonth: boolean;\n readonly visible: boolean;\n readonly today: boolean;\n readonly selected: boolean;\n readonly disabled: boolean;\n readonly events: readonly CalendarEvent[];\n readonly markers: readonly CalendarEventColor[];\n}\n\n@Component({\n selector: 'ngs-calendar',\n exportAs: 'ngsCalendar',\n imports: [Button, Icon],\n templateUrl: './calendar.html',\n styleUrl: './calendar.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ngs-calendar',\n },\n})\nexport class Calendar {\n readonly startAt = input<CalendarDateInput | null>(null);\n readonly selected = input<CalendarDateInput | null>(null);\n readonly minDate = input<CalendarDateInput | null>(null);\n readonly maxDate = input<CalendarDateInput | null>(null);\n readonly events = input<readonly CalendarEvent[]>([]);\n readonly locale = input<string | undefined>(undefined);\n readonly firstDayOfWeek = input(0, { transform: numberAttribute });\n readonly showAdjacentDays = input(true, { transform: booleanAttribute });\n readonly showTodayButton = input(true, { transform: booleanAttribute });\n readonly showEventTitles = input(false, { transform: booleanAttribute });\n\n readonly selectedChange = output<Date>();\n readonly monthChange = output<Date>();\n readonly eventSelected = output<CalendarEvent>();\n\n protected readonly activeMonth = signal(this.getInitialActiveMonth());\n protected readonly selectedDate = signal<Date | null>(this.normalizeDateInput(this.selected()));\n\n protected readonly normalizedMinDate = computed(() => this.normalizeDateInput(this.minDate()));\n protected readonly normalizedMaxDate = computed(() => this.normalizeDateInput(this.maxDate()));\n\n protected readonly periodLabel = computed(() =>\n new Intl.DateTimeFormat(this.locale(), {\n month: 'long',\n year: 'numeric',\n }).format(this.activeMonth()),\n );\n\n protected readonly weekdayLabels = computed(() => {\n const formatter = new Intl.DateTimeFormat(this.locale(), { weekday: 'short' });\n const labels: string[] = [];\n const weekStart = this.normalizedFirstDayOfWeek();\n\n for (let index = 0; index < 7; index++) {\n const date = new Date(2024, 0, 7 + weekStart + index);\n labels.push(formatter.format(date));\n }\n\n return labels;\n });\n\n protected readonly calendarCells = computed<readonly CalendarCell[]>(() => {\n const activeMonth = this.activeMonth();\n const selectedDate = this.selectedDate();\n const minDate = this.normalizedMinDate();\n const maxDate = this.normalizedMaxDate();\n const showAdjacentDays = this.showAdjacentDays();\n const monthStart = this.startOfMonth(activeMonth);\n const weekStart = this.normalizedFirstDayOfWeek();\n const firstDayOffset = (monthStart.getDay() - weekStart + 7) % 7;\n const gridStart = this.addDays(monthStart, -firstDayOffset);\n const today = this.startOfDay(new Date());\n const eventMap = this.eventsByDate();\n const cells: CalendarCell[] = [];\n\n for (let index = 0; index < 42; index++) {\n const date = this.addDays(gridStart, index);\n const inCurrentMonth = this.sameMonth(date, activeMonth);\n const events = eventMap.get(this.dateKey(date)) ?? [];\n const visible = inCurrentMonth || showAdjacentDays;\n\n cells.push({\n date,\n key: this.dateKey(date),\n label: visible ? String(date.getDate()) : '',\n ariaLabel: this.formatFullDate(date),\n inCurrentMonth,\n visible,\n today: this.sameDate(date, today),\n selected: !!selectedDate && this.sameDate(date, selectedDate),\n disabled: this.isDisabled(date, minDate, maxDate) || !visible,\n events,\n markers: this.uniqueEventColors(events),\n });\n }\n\n return cells;\n });\n\n constructor() {\n effect(() => {\n const selected = this.normalizeDateInput(this.selected());\n\n this.selectedDate.set(selected);\n\n if (selected) {\n this.activeMonth.set(this.startOfMonth(selected));\n }\n });\n\n effect(() => {\n const startAt = this.normalizeDateInput(this.startAt());\n\n if (startAt) {\n this.activeMonth.set(this.startOfMonth(startAt));\n }\n });\n }\n\n protected previousMonth(): void {\n this.setActiveMonth(this.addMonths(this.activeMonth(), -1));\n }\n\n protected nextMonth(): void {\n this.setActiveMonth(this.addMonths(this.activeMonth(), 1));\n }\n\n protected selectToday(): void {\n const today = this.startOfDay(new Date());\n\n this.setActiveMonth(today);\n\n if (!this.isDisabled(today, this.normalizedMinDate(), this.normalizedMaxDate())) {\n this.selectDate(today);\n }\n }\n\n protected selectCell(cell: CalendarCell): void {\n if (cell.disabled) {\n return;\n }\n\n if (!cell.inCurrentMonth) {\n this.setActiveMonth(cell.date);\n }\n\n this.selectDate(cell.date);\n }\n\n protected selectEvent(event: CalendarEvent, domEvent: MouseEvent): void {\n domEvent.stopPropagation();\n this.eventSelected.emit(event);\n }\n\n protected markerClass(color: CalendarEventColor): string {\n return `ngs-calendar-event-${color}`;\n }\n\n private selectDate(date: Date): void {\n const value = this.startOfDay(date);\n\n this.selectedDate.set(value);\n this.selectedChange.emit(this.cloneDate(value));\n }\n\n private setActiveMonth(date: Date): void {\n const month = this.startOfMonth(date);\n\n this.activeMonth.set(month);\n this.monthChange.emit(this.cloneDate(month));\n }\n\n private getInitialActiveMonth(): Date {\n return this.startOfMonth(\n this.normalizeDateInput(this.selected()) ??\n this.normalizeDateInput(this.startAt()) ??\n new Date(),\n );\n }\n\n private eventsByDate(): Map<string, CalendarEvent[]> {\n const map = new Map<string, CalendarEvent[]>();\n\n for (const event of this.events()) {\n const date = this.normalizeDateInput(event.date);\n\n if (!date) {\n continue;\n }\n\n const key = this.dateKey(date);\n const events = map.get(key) ?? [];\n events.push(event);\n map.set(key, events);\n }\n\n return map;\n }\n\n private uniqueEventColors(events: readonly CalendarEvent[]): readonly CalendarEventColor[] {\n const colors = new Set<CalendarEventColor>();\n\n for (const event of events) {\n colors.add(event.color ?? 'primary');\n }\n\n return [...colors].slice(0, 3);\n }\n\n private normalizedFirstDayOfWeek(): number {\n const value = this.firstDayOfWeek();\n\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return ((Math.trunc(value) % 7) + 7) % 7;\n }\n\n private normalizeDateInput(value: CalendarDateInput | null | undefined): Date | null {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n\n if (value instanceof Date) {\n return Number.isNaN(value.getTime()) ? null : this.startOfDay(value);\n }\n\n if (typeof value === 'string') {\n const dateOnly = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(value);\n\n if (dateOnly) {\n const year = Number(dateOnly[1]);\n const month = Number(dateOnly[2]) - 1;\n const day = Number(dateOnly[3]);\n const date = new Date(year, month, day);\n\n return Number.isNaN(date.getTime()) ? null : this.startOfDay(date);\n }\n }\n\n const date = new Date(value);\n\n return Number.isNaN(date.getTime()) ? null : this.startOfDay(date);\n }\n\n private isDisabled(date: Date, minDate: Date | null, maxDate: Date | null): boolean {\n return (\n (!!minDate && this.compareDate(date, minDate) < 0) ||\n (!!maxDate && this.compareDate(date, maxDate) > 0)\n );\n }\n\n private formatFullDate(date: Date): string {\n return new Intl.DateTimeFormat(this.locale(), {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n }).format(date);\n }\n\n private addMonths(date: Date, months: number): Date {\n return new Date(date.getFullYear(), date.getMonth() + months, 1);\n }\n\n private addDays(date: Date, days: number): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate() + days);\n }\n\n private startOfMonth(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), 1);\n }\n\n private startOfDay(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate());\n }\n\n private cloneDate(date: Date): Date {\n return new Date(date.getTime());\n }\n\n private sameMonth(first: Date, second: Date): boolean {\n return first.getFullYear() === second.getFullYear() && first.getMonth() === second.getMonth();\n }\n\n private sameDate(first: Date, second: Date): boolean {\n return this.compareDate(first, second) === 0;\n }\n\n private compareDate(first: Date, second: Date): number {\n return (\n first.getFullYear() - second.getFullYear() ||\n first.getMonth() - second.getMonth() ||\n first.getDate() - second.getDate()\n );\n }\n\n private dateKey(date: Date): string {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n\n return `${year}-${month}-${day}`;\n }\n}\n","<div class=\"ngs-calendar-header\">\n <button\n ngsIconButton\n type=\"button\"\n class=\"ngs-calendar-previous-button\"\n aria-label=\"Previous month\"\n (click)=\"previousMonth()\"\n >\n <ngs-icon name=\"fluent:chevron-left-24-regular\" />\n </button>\n\n <div class=\"ngs-calendar-period\" aria-live=\"polite\">{{ periodLabel() }}</div>\n\n <div class=\"ngs-calendar-actions\">\n @if (showTodayButton()) {\n <button ngsButton type=\"button\" class=\"ngs-calendar-today-button\" (click)=\"selectToday()\">\n Today\n </button>\n }\n\n <button\n ngsIconButton\n type=\"button\"\n class=\"ngs-calendar-next-button\"\n aria-label=\"Next month\"\n (click)=\"nextMonth()\"\n >\n <ngs-icon name=\"fluent:chevron-right-24-regular\" />\n </button>\n </div>\n</div>\n\n<div class=\"ngs-calendar-weekdays\" role=\"row\">\n @for (weekday of weekdayLabels(); track weekday) {\n <div class=\"ngs-calendar-weekday\" role=\"columnheader\">{{ weekday }}</div>\n }\n</div>\n\n<div class=\"ngs-calendar-grid\" role=\"grid\" [attr.aria-label]=\"periodLabel()\">\n @for (cell of calendarCells(); track cell.key) {\n <button\n ngsButton\n type=\"button\"\n class=\"ngs-calendar-day\"\n [class.ngs-calendar-day-hidden]=\"!cell.visible\"\n [class.ngs-calendar-day-muted]=\"!cell.inCurrentMonth\"\n [class.ngs-calendar-day-today]=\"cell.today\"\n [class.ngs-calendar-day-selected]=\"cell.selected\"\n [class.ngs-calendar-day-has-events]=\"cell.events.length > 0\"\n [disabled]=\"cell.disabled\"\n [attr.aria-label]=\"cell.ariaLabel\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.data-date]=\"cell.key\"\n role=\"gridcell\"\n (click)=\"selectCell(cell)\"\n >\n <span class=\"ngs-calendar-day-number\">{{ cell.label }}</span>\n\n @if (cell.markers.length > 0) {\n <span class=\"ngs-calendar-event-markers\" aria-hidden=\"true\">\n @for (marker of cell.markers; track marker) {\n <span class=\"ngs-calendar-event-marker {{ markerClass(marker) }}\"></span>\n }\n </span>\n }\n\n @if (showEventTitles() && cell.events.length > 0) {\n <span class=\"ngs-calendar-event-list\">\n @for (event of cell.events.slice(0, 2); track event.id ?? event.title ?? $index) {\n <span class=\"ngs-calendar-event-title\" (click)=\"selectEvent(event, $event)\">\n {{ event.title }}\n </span>\n }\n </span>\n }\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA2Da,QAAQ,CAAA;IACV,OAAO,GAAG,KAAK,CAA2B,IAAI;gFAAC;IAC/C,QAAQ,GAAG,KAAK,CAA2B,IAAI;iFAAC;IAChD,OAAO,GAAG,KAAK,CAA2B,IAAI;gFAAC;IAC/C,OA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A,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,cAAA,EAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3DrB,yiFA8EA,EAAA,MAAA,EAAA,CAAA,qhMAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED3BY,MAAM,0SAAE,IAAI,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAQX,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAXpB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EAAA,QAAA,EACd,aAAa,EAAA,OAAA,EACd,CAAC,MAAM,EAAE,IAAI,CAAC,EAAA,eAAA,EAGN,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,KAAK,EAAE,cAAc;AACtB,qBAAA,EAAA,QAAA,EAAA,yiFAAA,EAAA,MAAA,EAAA,CAAA,qhMAAA,CAAA,EAAA;;;AEzDH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-calendar.mjs","names":[],"sources":["../../../projects/components/calendar/src/calendar/calendar.ts","../../../projects/components/calendar/src/calendar/calendar.html"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Icon } from '@ngstarter-ui/components/icon';\n\nexport type CalendarDateInput = Date | string | number;\n\nexport type CalendarEventColor =\n | 'primary'\n | 'success'\n | 'warning'\n | 'danger'\n | 'info'\n | 'neutral'\n | 'green'\n | 'rose'\n | 'blue';\n\nexport interface CalendarEvent {\n readonly id?: string | number;\n readonly date: CalendarDateInput;\n readonly title?: string;\n readonly color?: CalendarEventColor;\n}\n\ninterface CalendarCell {\n readonly date: Date;\n readonly key: string;\n readonly label: string;\n readonly ariaLabel: string;\n readonly inCurrentMonth: boolean;\n readonly visible: boolean;\n readonly today: boolean;\n readonly selected: boolean;\n readonly disabled: boolean;\n readonly events: readonly CalendarEvent[];\n readonly markers: readonly CalendarEventColor[];\n}\n\n@Component({\n selector: 'ngs-calendar',\n exportAs: 'ngsCalendar',\n imports: [Button, Icon],\n templateUrl: './calendar.html',\n styleUrl: './calendar.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ngs-calendar',\n },\n})\nexport class Calendar {\n readonly startAt = input<CalendarDateInput | null>(null);\n readonly selected = input<CalendarDateInput | null>(null);\n readonly minDate = input<CalendarDateInput | null>(null);\n readonly maxDate = input<CalendarDateInput | null>(null);\n readonly events = input<readonly CalendarEvent[]>([]);\n readonly locale = input<string | undefined>(undefined);\n readonly firstDayOfWeek = input(0, { transform: numberAttribute });\n readonly showAdjacentDays = input(true, { transform: booleanAttribute });\n readonly showTodayButton = input(true, { transform: booleanAttribute });\n readonly showEventTitles = input(false, { transform: booleanAttribute });\n\n readonly selectedChange = output<Date>();\n readonly monthChange = output<Date>();\n readonly eventSelected = output<CalendarEvent>();\n\n protected readonly activeMonth = signal(this.getInitialActiveMonth());\n protected readonly selectedDate = signal<Date | null>(this.normalizeDateInput(this.selected()));\n\n protected readonly normalizedMinDate = computed(() => this.normalizeDateInput(this.minDate()));\n protected readonly normalizedMaxDate = computed(() => this.normalizeDateInput(this.maxDate()));\n\n protected readonly periodLabel = computed(() =>\n new Intl.DateTimeFormat(this.locale(), {\n month: 'long',\n year: 'numeric',\n }).format(this.activeMonth()),\n );\n\n protected readonly weekdayLabels = computed(() => {\n const formatter = new Intl.DateTimeFormat(this.locale(), { weekday: 'short' });\n const labels: string[] = [];\n const weekStart = this.normalizedFirstDayOfWeek();\n\n for (let index = 0; index < 7; index++) {\n const date = new Date(2024, 0, 7 + weekStart + index);\n labels.push(formatter.format(date));\n }\n\n return labels;\n });\n\n protected readonly calendarCells = computed<readonly CalendarCell[]>(() => {\n const activeMonth = this.activeMonth();\n const selectedDate = this.selectedDate();\n const minDate = this.normalizedMinDate();\n const maxDate = this.normalizedMaxDate();\n const showAdjacentDays = this.showAdjacentDays();\n const monthStart = this.startOfMonth(activeMonth);\n const weekStart = this.normalizedFirstDayOfWeek();\n const firstDayOffset = (monthStart.getDay() - weekStart + 7) % 7;\n const gridStart = this.addDays(monthStart, -firstDayOffset);\n const today = this.startOfDay(new Date());\n const eventMap = this.eventsByDate();\n const cells: CalendarCell[] = [];\n\n for (let index = 0; index < 42; index++) {\n const date = this.addDays(gridStart, index);\n const inCurrentMonth = this.sameMonth(date, activeMonth);\n const events = eventMap.get(this.dateKey(date)) ?? [];\n const visible = inCurrentMonth || showAdjacentDays;\n\n cells.push({\n date,\n key: this.dateKey(date),\n label: visible ? String(date.getDate()) : '',\n ariaLabel: this.formatFullDate(date),\n inCurrentMonth,\n visible,\n today: this.sameDate(date, today),\n selected: !!selectedDate && this.sameDate(date, selectedDate),\n disabled: this.isDisabled(date, minDate, maxDate) || !visible,\n events,\n markers: this.uniqueEventColors(events),\n });\n }\n\n return cells;\n });\n\n constructor() {\n effect(() => {\n const selected = this.normalizeDateInput(this.selected());\n\n this.selectedDate.set(selected);\n\n if (selected) {\n this.activeMonth.set(this.startOfMonth(selected));\n }\n });\n\n effect(() => {\n const startAt = this.normalizeDateInput(this.startAt());\n\n if (startAt) {\n this.activeMonth.set(this.startOfMonth(startAt));\n }\n });\n }\n\n protected previousMonth(): void {\n this.setActiveMonth(this.addMonths(this.activeMonth(), -1));\n }\n\n protected nextMonth(): void {\n this.setActiveMonth(this.addMonths(this.activeMonth(), 1));\n }\n\n protected selectToday(): void {\n const today = this.startOfDay(new Date());\n\n this.setActiveMonth(today);\n\n if (!this.isDisabled(today, this.normalizedMinDate(), this.normalizedMaxDate())) {\n this.selectDate(today);\n }\n }\n\n protected selectCell(cell: CalendarCell): void {\n if (cell.disabled) {\n return;\n }\n\n if (!cell.inCurrentMonth) {\n this.setActiveMonth(cell.date);\n }\n\n this.selectDate(cell.date);\n }\n\n protected selectEvent(event: CalendarEvent, domEvent: MouseEvent): void {\n domEvent.stopPropagation();\n this.eventSelected.emit(event);\n }\n\n protected markerClass(color: CalendarEventColor): string {\n return `ngs-calendar-event-${color}`;\n }\n\n private selectDate(date: Date): void {\n const value = this.startOfDay(date);\n\n this.selectedDate.set(value);\n this.selectedChange.emit(this.cloneDate(value));\n }\n\n private setActiveMonth(date: Date): void {\n const month = this.startOfMonth(date);\n\n this.activeMonth.set(month);\n this.monthChange.emit(this.cloneDate(month));\n }\n\n private getInitialActiveMonth(): Date {\n return this.startOfMonth(\n this.normalizeDateInput(this.selected()) ??\n this.normalizeDateInput(this.startAt()) ??\n new Date(),\n );\n }\n\n private eventsByDate(): Map<string, CalendarEvent[]> {\n const map = new Map<string, CalendarEvent[]>();\n\n for (const event of this.events()) {\n const date = this.normalizeDateInput(event.date);\n\n if (!date) {\n continue;\n }\n\n const key = this.dateKey(date);\n const events = map.get(key) ?? [];\n events.push(event);\n map.set(key, events);\n }\n\n return map;\n }\n\n private uniqueEventColors(events: readonly CalendarEvent[]): readonly CalendarEventColor[] {\n const colors = new Set<CalendarEventColor>();\n\n for (const event of events) {\n colors.add(event.color ?? 'primary');\n }\n\n return [...colors].slice(0, 3);\n }\n\n private normalizedFirstDayOfWeek(): number {\n const value = this.firstDayOfWeek();\n\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return ((Math.trunc(value) % 7) + 7) % 7;\n }\n\n private normalizeDateInput(value: CalendarDateInput | null | undefined): Date | null {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n\n if (value instanceof Date) {\n return Number.isNaN(value.getTime()) ? null : this.startOfDay(value);\n }\n\n if (typeof value === 'string') {\n const dateOnly = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(value);\n\n if (dateOnly) {\n const year = Number(dateOnly[1]);\n const month = Number(dateOnly[2]) - 1;\n const day = Number(dateOnly[3]);\n const date = new Date(year, month, day);\n\n return Number.isNaN(date.getTime()) ? null : this.startOfDay(date);\n }\n }\n\n const date = new Date(value);\n\n return Number.isNaN(date.getTime()) ? null : this.startOfDay(date);\n }\n\n private isDisabled(date: Date, minDate: Date | null, maxDate: Date | null): boolean {\n return (\n (!!minDate && this.compareDate(date, minDate) < 0) ||\n (!!maxDate && this.compareDate(date, maxDate) > 0)\n );\n }\n\n private formatFullDate(date: Date): string {\n return new Intl.DateTimeFormat(this.locale(), {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n }).format(date);\n }\n\n private addMonths(date: Date, months: number): Date {\n return new Date(date.getFullYear(), date.getMonth() + months, 1);\n }\n\n private addDays(date: Date, days: number): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate() + days);\n }\n\n private startOfMonth(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), 1);\n }\n\n private startOfDay(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate());\n }\n\n private cloneDate(date: Date): Date {\n return new Date(date.getTime());\n }\n\n private sameMonth(first: Date, second: Date): boolean {\n return first.getFullYear() === second.getFullYear() && first.getMonth() === second.getMonth();\n }\n\n private sameDate(first: Date, second: Date): boolean {\n return this.compareDate(first, second) === 0;\n }\n\n private compareDate(first: Date, second: Date): number {\n return (\n first.getFullYear() - second.getFullYear() ||\n first.getMonth() - second.getMonth() ||\n first.getDate() - second.getDate()\n );\n }\n\n private dateKey(date: Date): string {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n\n return `${year}-${month}-${day}`;\n }\n}\n","<div class=\"ngs-calendar-header\">\n <button\n ngsIconButton\n type=\"button\"\n class=\"ngs-calendar-previous-button\"\n aria-label=\"Previous month\"\n (click)=\"previousMonth()\"\n >\n <ngs-icon name=\"fluent:chevron-left-24-regular\" />\n </button>\n\n <div class=\"ngs-calendar-period\" aria-live=\"polite\">{{ periodLabel() }}</div>\n\n <div class=\"ngs-calendar-actions\">\n @if (showTodayButton()) {\n <button ngsButton type=\"button\" class=\"ngs-calendar-today-button\" (click)=\"selectToday()\">\n Today\n </button>\n }\n\n <button\n ngsIconButton\n type=\"button\"\n class=\"ngs-calendar-next-button\"\n aria-label=\"Next month\"\n (click)=\"nextMonth()\"\n >\n <ngs-icon name=\"fluent:chevron-right-24-regular\" />\n </button>\n </div>\n</div>\n\n<div class=\"ngs-calendar-weekdays\" role=\"row\">\n @for (weekday of weekdayLabels(); track weekday) {\n <div class=\"ngs-calendar-weekday\" role=\"columnheader\">{{ weekday }}</div>\n }\n</div>\n\n<div class=\"ngs-calendar-grid\" role=\"grid\" [attr.aria-label]=\"periodLabel()\">\n @for (cell of calendarCells(); track cell.key) {\n <button\n ngsButton\n type=\"button\"\n class=\"ngs-calendar-day\"\n [class.ngs-calendar-day-hidden]=\"!cell.visible\"\n [class.ngs-calendar-day-muted]=\"!cell.inCurrentMonth\"\n [class.ngs-calendar-day-today]=\"cell.today\"\n [class.ngs-calendar-day-selected]=\"cell.selected\"\n [class.ngs-calendar-day-has-events]=\"cell.events.length > 0\"\n [disabled]=\"cell.disabled\"\n [attr.aria-label]=\"cell.ariaLabel\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.data-date]=\"cell.key\"\n role=\"gridcell\"\n (click)=\"selectCell(cell)\"\n >\n <span class=\"ngs-calendar-day-number\">{{ cell.label }}</span>\n\n @if (cell.markers.length > 0) {\n <span class=\"ngs-calendar-event-markers\" aria-hidden=\"true\">\n @for (marker of cell.markers; track marker) {\n <span class=\"ngs-calendar-event-marker {{ markerClass(marker) }}\"></span>\n }\n </span>\n }\n\n @if (showEventTitles() && cell.events.length > 0) {\n <span class=\"ngs-calendar-event-list\">\n @for (event of cell.events.slice(0, 2); track event.id ?? event.title ?? $index) {\n <span class=\"ngs-calendar-event-title\" (click)=\"selectEvent(event, $event)\">\n {{ event.title }}\n </span>\n }\n </span>\n }\n </button>\n }\n</div>\n"],"mappings":";;;;AA2DA,IAAa,WAAb,MAAa,SAAQ;CACV,UAAU,MAAgC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,WAAW,MAAgC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAChD,UAAU,MAAgC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,UAAU,MAAgC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,SAAS,MAAgC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,SAAS,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,iBAAiB,MAAM,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CACtD,mBAAmB,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,mBAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAC5D,kBAAkB,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,kBAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAC3D,kBAAkB,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,kBAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAE5D,i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|
|
46
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, ElementRef, Renderer2, booleanAttribute, inject, input } from "@angular/core";
|
|
3
|
+
var CardOverlay = class CardOverlay {
|
|
4
|
+
withTranslate = input(false, {
|
|
5
|
+
...ngDevMode ? { debugName: "withTranslate" } : /* istanbul ignore next */ {},
|
|
6
|
+
transform: booleanAttribute
|
|
7
|
+
});
|
|
8
|
+
withBlur = input(false, {
|
|
9
|
+
...ngDevMode ? { debugName: "withBlur" } : /* istanbul ignore next */ {},
|
|
10
|
+
transform: booleanAttribute
|
|
11
|
+
});
|
|
12
|
+
disabled = input(false, {
|
|
13
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
14
|
+
transform: booleanAttribute
|
|
15
|
+
});
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
17
|
+
minVersion: "12.0.0",
|
|
18
|
+
version: "22.3.0",
|
|
19
|
+
ngImport: i0,
|
|
20
|
+
type: CardOverlay,
|
|
21
|
+
deps: [],
|
|
22
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
23
|
+
});
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
25
|
+
minVersion: "17.1.0",
|
|
26
|
+
version: "22.3.0",
|
|
27
|
+
type: CardOverlay,
|
|
28
|
+
isStandalone: true,
|
|
29
|
+
selector: "ngs-card-overlay",
|
|
30
|
+
inputs: {
|
|
31
|
+
withTranslate: {
|
|
32
|
+
classPropertyName: "withTranslate",
|
|
33
|
+
publicName: "withTranslate",
|
|
34
|
+
isSignal: true,
|
|
35
|
+
isRequired: false,
|
|
36
|
+
transformFunction: null
|
|
37
|
+
},
|
|
38
|
+
withBlur: {
|
|
39
|
+
classPropertyName: "withBlur",
|
|
40
|
+
publicName: "withBlur",
|
|
41
|
+
isSignal: true,
|
|
42
|
+
isRequired: false,
|
|
43
|
+
transformFunction: null
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
classPropertyName: "disabled",
|
|
47
|
+
publicName: "disabled",
|
|
48
|
+
isSignal: true,
|
|
49
|
+
isRequired: false,
|
|
50
|
+
transformFunction: null
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
host: {
|
|
54
|
+
properties: {
|
|
55
|
+
"class.with-translate": "withTranslate()",
|
|
56
|
+
"class.with-blur": "withBlur()",
|
|
57
|
+
"class.is-disabled": "disabled()"
|
|
58
|
+
},
|
|
59
|
+
classAttribute: "ngs-card-overlay"
|
|
60
|
+
},
|
|
61
|
+
exportAs: ["ngsCardOverlay"],
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
template: "<div class=\"background\"></div>\n<div class=\"content\">\n <ng-content/>\n</div>\n",
|
|
64
|
+
styles: [":host{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;z-index:1;border-radius:inherit}:host .background{background:#0000004d;position:absolute;inset:0;z-index:0;opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-radius:inherit}:host .content{z-index:1;opacity:0;border-radius:inherit}:host.with-translate .background{transition:all .15s cubic-bezier(.4,0,.2,1)}:host.with-blur .background{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}:host.is-disabled{z-index:-1}:host-context(.ngs-card-overlay-container:hover):not(.is-disabled) .background,:host-context(.ngs-card-overlay-container:hover):not(.is-disabled) .content{opacity:100%}:host-context(.ngs-card-overlay-container:hover):not(.is-disabled).with-translate .background{transition:all .15s cubic-bezier(.4,0,.2,1)}:host-context(html.dark) .background{background:#fff3}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
65
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
69
|
+
minVersion: "12.0.0",
|
|
70
|
+
version: "22.3.0",
|
|
71
|
+
ngImport: i0,
|
|
72
|
+
type: CardOverlay,
|
|
73
|
+
decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: "ngs-card-overlay",
|
|
77
|
+
exportAs: "ngsCardOverlay",
|
|
78
|
+
imports: [],
|
|
79
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
80
|
+
host: {
|
|
81
|
+
"class": "ngs-card-overlay",
|
|
82
|
+
"[class.with-translate]": "withTranslate()",
|
|
83
|
+
"[class.with-blur]": "withBlur()",
|
|
84
|
+
"[class.is-disabled]": "disabled()"
|
|
85
|
+
},
|
|
86
|
+
template: "<div class=\"background\"></div>\n<div class=\"content\">\n <ng-content/>\n</div>\n",
|
|
87
|
+
styles: [":host{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;z-index:1;border-radius:inherit}:host .background{background:#0000004d;position:absolute;inset:0;z-index:0;opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-radius:inherit}:host .content{z-index:1;opacity:0;border-radius:inherit}:host.with-translate .background{transition:all .15s cubic-bezier(.4,0,.2,1)}:host.with-blur .background{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}:host.is-disabled{z-index:-1}:host-context(.ngs-card-overlay-container:hover):not(.is-disabled) .background,:host-context(.ngs-card-overlay-container:hover):not(.is-disabled) .content{opacity:100%}:host-context(.ngs-card-overlay-container:hover):not(.is-disabled).with-translate .background{transition:all .15s cubic-bezier(.4,0,.2,1)}:host-context(html.dark) .background{background:#fff3}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
88
|
+
}]
|
|
89
|
+
}],
|
|
90
|
+
propDecorators: {
|
|
91
|
+
withTranslate: [{
|
|
92
|
+
type: i0.Input,
|
|
93
|
+
args: [{
|
|
94
|
+
isSignal: true,
|
|
95
|
+
alias: "withTranslate",
|
|
96
|
+
required: false
|
|
97
|
+
}]
|
|
98
|
+
}],
|
|
99
|
+
withBlur: [{
|
|
100
|
+
type: i0.Input,
|
|
101
|
+
args: [{
|
|
102
|
+
isSignal: true,
|
|
103
|
+
alias: "withBlur",
|
|
104
|
+
required: false
|
|
105
|
+
}]
|
|
106
|
+
}],
|
|
107
|
+
disabled: [{
|
|
108
|
+
type: i0.Input,
|
|
109
|
+
args: [{
|
|
110
|
+
isSignal: true,
|
|
111
|
+
alias: "disabled",
|
|
112
|
+
required: false
|
|
113
|
+
}]
|
|
114
|
+
}]
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
var CardOverlayContainerDirective = class CardOverlayContainerDirective {
|
|
118
|
+
_elementRef = inject(ElementRef);
|
|
119
|
+
_renderer = inject(Renderer2);
|
|
120
|
+
ngOnInit() {
|
|
121
|
+
const nativeElement = this._elementRef.nativeElement;
|
|
122
|
+
this._renderer.setStyle(nativeElement, "position", "relative");
|
|
123
|
+
this._renderer.setStyle(nativeElement, "overflow", "hidden");
|
|
124
|
+
}
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
126
|
+
minVersion: "12.0.0",
|
|
127
|
+
version: "22.3.0",
|
|
128
|
+
ngImport: i0,
|
|
129
|
+
type: CardOverlayContainerDirective,
|
|
130
|
+
deps: [],
|
|
131
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
132
|
+
});
|
|
133
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
134
|
+
minVersion: "14.0.0",
|
|
135
|
+
version: "22.3.0",
|
|
136
|
+
type: CardOverlayContainerDirective,
|
|
137
|
+
isStandalone: true,
|
|
138
|
+
selector: "[ngsCardOverlayContainer]",
|
|
139
|
+
host: { classAttribute: "ngs-card-overlay-container" },
|
|
140
|
+
exportAs: ["ngsCardOverlayContainer"],
|
|
141
|
+
ngImport: i0
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
145
|
+
minVersion: "12.0.0",
|
|
146
|
+
version: "22.3.0",
|
|
147
|
+
ngImport: i0,
|
|
148
|
+
type: CardOverlayContainerDirective,
|
|
149
|
+
decorators: [{
|
|
150
|
+
type: Directive,
|
|
151
|
+
args: [{
|
|
152
|
+
selector: "[ngsCardOverlayContainer]",
|
|
153
|
+
exportAs: "ngsCardOverlayContainer",
|
|
154
|
+
host: { "class": "ngs-card-overlay-container" }
|
|
155
|
+
}]
|
|
156
|
+
}]
|
|
157
|
+
});
|
|
47
158
|
export { CardOverlay, CardOverlayContainerDirective };
|
|
48
|
-
|
|
159
|
+
|
|
160
|
+
//# sourceMappingURL=ngstarter-ui-components-card-overlay.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-card-overlay.mjs","sources":["../../../projects/components/card-overlay/src/card-overlay/card-overlay.ts","../../../projects/components/card-overlay/src/card-overlay/card-overlay.html","../../../projects/components/card-overlay/src/card-overlay-container.directive.ts"
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-card-overlay.mjs","names":[],"sources":["../../../projects/components/card-overlay/src/card-overlay/card-overlay.ts","../../../projects/components/card-overlay/src/card-overlay/card-overlay.html","../../../projects/components/card-overlay/src/card-overlay-container.directive.ts"],"sourcesContent":["import { booleanAttribute, Component, input, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'ngs-card-overlay',\n exportAs: 'ngsCardOverlay',\n imports: [],\n templateUrl: './card-overlay.html',\n styleUrl: './card-overlay.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-card-overlay',\n '[class.with-translate]': 'withTranslate()',\n '[class.with-blur]': 'withBlur()',\n '[class.is-disabled]': 'disabled()',\n }\n})\nexport class CardOverlay {\n withTranslate = input(false, {\n transform: booleanAttribute\n });\n withBlur = input(false, {\n transform: booleanAttribute\n });\n disabled = input(false, {\n transform: booleanAttribute\n });\n}\n","<div class=\"background\"></div>\n<div class=\"content\">\n <ng-content/>\n</div>\n","import { Directive, ElementRef, inject, OnInit, Renderer2 } from '@angular/core';\n\n@Directive({\n selector: '[ngsCardOverlayContainer]',\n exportAs: 'ngsCardOverlayContainer',\n host: {\n 'class': 'ngs-card-overlay-container',\n }\n})\nexport class CardOverlayContainerDirective implements OnInit {\n private _elementRef = inject(ElementRef);\n private _renderer = inject(Renderer2);\n\n ngOnInit() {\n const nativeElement = this._elementRef.nativeElement as HTMLElement;\n this._renderer.setStyle(nativeElement, 'position', 'relative');\n this._renderer.setStyle(nativeElement, 'overflow', 'hidden');\n }\n}\n"],"mappings":";;AAgBA,IAAa,cAAb,MAAa,YAAW;CACtB,gBAAgB,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,gBAAA,+BAAA,CAAA;EACzB,WAAW;CAAgB,CAAA;CAE7B,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EACpB,WAAW;CAAgB,CAAA;CAE7B,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EACpB,WAAW;CAAgB,CAAA;CARlB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAX,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAW,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,eAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,MAAA;GAAA,YAAA;IAAA,wBAAA;IAAA,mBAAA;IAAA,qBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA,CAAA,gBAAA;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