@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
|
@@ -1,347 +1,792 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Button } from '@ngstarter-ui/components/button';
|
|
7
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, input, model, numberAttribute, output } from "@angular/core";
|
|
3
|
+
import { Icon } from "@ngstarter-ui/components/icon";
|
|
4
|
+
import { Button } from "@ngstarter-ui/components/button";
|
|
5
|
+
import { ProgressBar } from "@ngstarter-ui/components/progress-bar";
|
|
8
6
|
var Colors;
|
|
9
|
-
(function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
(function(Colors) {
|
|
8
|
+
Colors["primary"] = "primary";
|
|
9
|
+
Colors["accent"] = "accent";
|
|
10
|
+
Colors["warn"] = "warn";
|
|
11
|
+
Colors["success"] = "green";
|
|
14
12
|
})(Colors || (Colors = {}));
|
|
15
|
-
|
|
16
13
|
var Criteria;
|
|
17
|
-
(function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
(function(Criteria) {
|
|
15
|
+
Criteria["at_least_eight_chars"] = "minChar";
|
|
16
|
+
Criteria["at_least_one_lower_case_char"] = "lowerCase";
|
|
17
|
+
Criteria["at_least_one_upper_case_char"] = "upperCase";
|
|
18
|
+
Criteria["at_least_one_digit_char"] = "digit";
|
|
19
|
+
Criteria["at_least_one_special_char"] = " specialChar";
|
|
20
|
+
Criteria["at_custom_chars"] = "customChars";
|
|
24
21
|
})(Criteria || (Criteria = {}));
|
|
25
|
-
|
|
26
|
-
class PasswordStrengthValidator {
|
|
27
|
-
isUndefinedOrEmpty(control) {
|
|
28
|
-
if (!control || !control.value || control.value.length === 0) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
validate(criteria, regex) {
|
|
33
|
-
const validator = (control) => {
|
|
34
|
-
this.isUndefinedOrEmpty(control);
|
|
35
|
-
if (!regex.test(control.value)) {
|
|
36
|
-
const failed = {};
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
failed[criteria] = {
|
|
39
|
-
actualValue: control.value,
|
|
40
|
-
requiredPattern: regex
|
|
41
|
-
};
|
|
42
|
-
return failed;
|
|
43
|
-
}
|
|
44
|
-
return undefined;
|
|
45
|
-
};
|
|
46
|
-
return validator;
|
|
47
|
-
}
|
|
48
|
-
confirm(password) {
|
|
49
|
-
const validator = (control) => {
|
|
50
|
-
this.isUndefinedOrEmpty(control);
|
|
51
|
-
if (control.value !== password) {
|
|
52
|
-
return {
|
|
53
|
-
notConfirmed: {
|
|
54
|
-
password: password,
|
|
55
|
-
passwordConfirmation: control.value
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return undefined;
|
|
60
|
-
};
|
|
61
|
-
return validator;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
22
|
const RegExpValidator = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
23
|
+
"lowerCase": RegExp(/^(?=.*?[a-z])/),
|
|
24
|
+
"upperCase": RegExp(/^(?=.*?[A-Z])/),
|
|
25
|
+
"digit": RegExp(/^(?=.*?[0-9])/),
|
|
26
|
+
"specialChar": RegExp(/^(?=.*?[" !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"])/)
|
|
27
|
+
};
|
|
28
|
+
var PasswordStrength = class PasswordStrength {
|
|
29
|
+
password = input.required(...ngDevMode ? [{ debugName: "password" }] : /* istanbul ignore next */ []);
|
|
30
|
+
externalError = input(false, {
|
|
31
|
+
...ngDevMode ? { debugName: "externalError" } : /* istanbul ignore next */ {},
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
});
|
|
34
|
+
enableLengthRule = input(true, {
|
|
35
|
+
...ngDevMode ? { debugName: "enableLengthRule" } : /* istanbul ignore next */ {},
|
|
36
|
+
transform: booleanAttribute
|
|
37
|
+
});
|
|
38
|
+
enableLowerCaseLetterRule = input(true, {
|
|
39
|
+
...ngDevMode ? { debugName: "enableLowerCaseLetterRule" } : /* istanbul ignore next */ {},
|
|
40
|
+
transform: booleanAttribute
|
|
41
|
+
});
|
|
42
|
+
enableUpperCaseLetterRule = input(true, {
|
|
43
|
+
...ngDevMode ? { debugName: "enableUpperCaseLetterRule" } : /* istanbul ignore next */ {},
|
|
44
|
+
transform: booleanAttribute
|
|
45
|
+
});
|
|
46
|
+
enableDigitRule = input(true, {
|
|
47
|
+
...ngDevMode ? { debugName: "enableDigitRule" } : /* istanbul ignore next */ {},
|
|
48
|
+
transform: booleanAttribute
|
|
49
|
+
});
|
|
50
|
+
enableSpecialCharRule = input(true, {
|
|
51
|
+
...ngDevMode ? { debugName: "enableSpecialCharRule" } : /* istanbul ignore next */ {},
|
|
52
|
+
transform: booleanAttribute
|
|
53
|
+
});
|
|
54
|
+
min = input(8, {
|
|
55
|
+
...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
|
|
56
|
+
transform: (value) => value == null ? 8 : numberAttribute(value)
|
|
57
|
+
});
|
|
58
|
+
max = input(30, {
|
|
59
|
+
...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
|
|
60
|
+
transform: (value) => value == null ? 30 : numberAttribute(value)
|
|
61
|
+
});
|
|
62
|
+
customValidator = input(...ngDevMode ? [void 0, { debugName: "customValidator" }] : /* istanbul ignore next */ []);
|
|
63
|
+
warnThreshold = input(21, {
|
|
64
|
+
...ngDevMode ? { debugName: "warnThreshold" } : /* istanbul ignore next */ {},
|
|
65
|
+
transform: numberAttribute
|
|
66
|
+
});
|
|
67
|
+
accentThreshold = input(81, {
|
|
68
|
+
...ngDevMode ? { debugName: "accentThreshold" } : /* istanbul ignore next */ {},
|
|
69
|
+
transform: numberAttribute
|
|
70
|
+
});
|
|
71
|
+
strengthChanged = output();
|
|
72
|
+
criteriaMap = /* @__PURE__ */ new Map();
|
|
73
|
+
containAtLeastMinChars;
|
|
74
|
+
containAtLeastOneLowerCaseLetter;
|
|
75
|
+
containAtLeastOneUpperCaseLetter;
|
|
76
|
+
containAtLeastOneDigit;
|
|
77
|
+
containAtLeastOneSpecialChar;
|
|
78
|
+
containAtCustomChars;
|
|
79
|
+
value = model(0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
80
|
+
get strength() {
|
|
81
|
+
return this.value() ?? 0;
|
|
82
|
+
}
|
|
83
|
+
get isLow() {
|
|
84
|
+
return this.strength === 20;
|
|
85
|
+
}
|
|
86
|
+
get isWeak() {
|
|
87
|
+
return this.strength === 40;
|
|
88
|
+
}
|
|
89
|
+
get isMedium() {
|
|
90
|
+
return this.strength === 60;
|
|
91
|
+
}
|
|
92
|
+
get isStrong() {
|
|
93
|
+
return this.strength === 80;
|
|
94
|
+
}
|
|
95
|
+
get isVeryStrong() {
|
|
96
|
+
return this.strength === 100;
|
|
97
|
+
}
|
|
98
|
+
ngOnInit() {
|
|
99
|
+
this.setRulesAndValidators();
|
|
100
|
+
}
|
|
101
|
+
ngOnChanges(changes) {
|
|
102
|
+
if (changes["externalError"] && changes["externalError"].firstChange || changes["password"] && changes["password"].firstChange) return;
|
|
103
|
+
else if (changes["externalError"] && changes["externalError"].currentValue) return;
|
|
104
|
+
else if (changes["password"] && changes["password"].previousValue === changes["password"].currentValue && !changes["password"].firstChange) this.calculatePasswordStrength();
|
|
105
|
+
else this.password && this.password.length > 0 ? this.calculatePasswordStrength() : this.reset();
|
|
106
|
+
}
|
|
107
|
+
setRulesAndValidators() {
|
|
108
|
+
this.criteriaMap = /* @__PURE__ */ new Map();
|
|
109
|
+
if (this.enableLengthRule()) this.criteriaMap.set(Criteria.at_least_eight_chars, RegExp(`^.{${this.min() ?? 8},${this.max() ?? 30}}$`));
|
|
110
|
+
if (this.enableLowerCaseLetterRule()) this.criteriaMap.set(Criteria.at_least_one_lower_case_char, RegExpValidator.lowerCase);
|
|
111
|
+
if (this.enableUpperCaseLetterRule()) this.criteriaMap.set(Criteria.at_least_one_upper_case_char, RegExpValidator.upperCase);
|
|
112
|
+
if (this.enableDigitRule()) this.criteriaMap.set(Criteria.at_least_one_digit_char, RegExpValidator.digit);
|
|
113
|
+
if (this.enableSpecialCharRule()) this.criteriaMap.set(Criteria.at_least_one_special_char, RegExpValidator.specialChar);
|
|
114
|
+
if (this.customValidator()) this.criteriaMap.set(Criteria.at_custom_chars, this.customValidator());
|
|
115
|
+
}
|
|
116
|
+
calculatePasswordStrength() {
|
|
117
|
+
const requirements = [];
|
|
118
|
+
const unit = 100 / this.criteriaMap.size;
|
|
119
|
+
requirements.push(this.enableLengthRule() ? this._containAtLeastMinChars() : false, this.enableLowerCaseLetterRule() ? this._containAtLeastOneLowerCaseLetter() : false, this.enableUpperCaseLetterRule() ? this._containAtLeastOneUpperCaseLetter() : false, this.enableDigitRule() ? this._containAtLeastOneDigit() : false, this.enableSpecialCharRule() ? this._containAtLeastOneSpecialChar() : false, this.customValidator() ? this._containCustomChars() : false);
|
|
120
|
+
this.value.set(this.criteriaMap.size ? requirements.filter(Boolean).length * unit : 0);
|
|
121
|
+
this.strengthChanged.emit(this.strength);
|
|
122
|
+
}
|
|
123
|
+
reset() {
|
|
124
|
+
this.value.set(0);
|
|
125
|
+
this.containAtLeastMinChars = false;
|
|
126
|
+
this.containAtLeastOneLowerCaseLetter = false;
|
|
127
|
+
this.containAtLeastOneUpperCaseLetter = false;
|
|
128
|
+
this.containAtLeastOneDigit = false;
|
|
129
|
+
this.containAtCustomChars = false;
|
|
130
|
+
this.containAtLeastOneSpecialChar = false;
|
|
131
|
+
}
|
|
132
|
+
_containAtLeastMinChars() {
|
|
133
|
+
this.containAtLeastMinChars = this.password().length >= (this.min() ?? 8);
|
|
134
|
+
return this.containAtLeastMinChars;
|
|
135
|
+
}
|
|
136
|
+
_containAtLeastOneLowerCaseLetter() {
|
|
137
|
+
this.containAtLeastOneLowerCaseLetter = this.criteriaMap.get(Criteria.at_least_one_lower_case_char).test(this.password());
|
|
138
|
+
return this.containAtLeastOneLowerCaseLetter;
|
|
139
|
+
}
|
|
140
|
+
_containAtLeastOneUpperCaseLetter() {
|
|
141
|
+
this.containAtLeastOneUpperCaseLetter = this.criteriaMap.get(Criteria.at_least_one_upper_case_char).test(this.password());
|
|
142
|
+
return this.containAtLeastOneUpperCaseLetter;
|
|
143
|
+
}
|
|
144
|
+
_containAtLeastOneDigit() {
|
|
145
|
+
this.containAtLeastOneDigit = this.criteriaMap.get(Criteria.at_least_one_digit_char).test(this.password());
|
|
146
|
+
return this.containAtLeastOneDigit;
|
|
147
|
+
}
|
|
148
|
+
_containAtLeastOneSpecialChar() {
|
|
149
|
+
this.containAtLeastOneSpecialChar = this.criteriaMap.get(Criteria.at_least_one_special_char).test(this.password());
|
|
150
|
+
return this.containAtLeastOneSpecialChar;
|
|
151
|
+
}
|
|
152
|
+
_containCustomChars() {
|
|
153
|
+
this.containAtCustomChars = this.criteriaMap.get(Criteria.at_custom_chars).test(this.password());
|
|
154
|
+
return this.containAtCustomChars;
|
|
155
|
+
}
|
|
156
|
+
ngAfterContentChecked() {
|
|
157
|
+
if (this.password()) this.calculatePasswordStrength();
|
|
158
|
+
}
|
|
159
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
160
|
+
minVersion: "12.0.0",
|
|
161
|
+
version: "22.3.0",
|
|
162
|
+
ngImport: i0,
|
|
163
|
+
type: PasswordStrength,
|
|
164
|
+
deps: [],
|
|
165
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
166
|
+
});
|
|
167
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
168
|
+
minVersion: "17.1.0",
|
|
169
|
+
version: "22.3.0",
|
|
170
|
+
type: PasswordStrength,
|
|
171
|
+
isStandalone: true,
|
|
172
|
+
selector: "ngs-password-strength",
|
|
173
|
+
inputs: {
|
|
174
|
+
password: {
|
|
175
|
+
classPropertyName: "password",
|
|
176
|
+
publicName: "password",
|
|
177
|
+
isSignal: true,
|
|
178
|
+
isRequired: true,
|
|
179
|
+
transformFunction: null
|
|
180
|
+
},
|
|
181
|
+
externalError: {
|
|
182
|
+
classPropertyName: "externalError",
|
|
183
|
+
publicName: "externalError",
|
|
184
|
+
isSignal: true,
|
|
185
|
+
isRequired: false,
|
|
186
|
+
transformFunction: null
|
|
187
|
+
},
|
|
188
|
+
enableLengthRule: {
|
|
189
|
+
classPropertyName: "enableLengthRule",
|
|
190
|
+
publicName: "enableLengthRule",
|
|
191
|
+
isSignal: true,
|
|
192
|
+
isRequired: false,
|
|
193
|
+
transformFunction: null
|
|
194
|
+
},
|
|
195
|
+
enableLowerCaseLetterRule: {
|
|
196
|
+
classPropertyName: "enableLowerCaseLetterRule",
|
|
197
|
+
publicName: "enableLowerCaseLetterRule",
|
|
198
|
+
isSignal: true,
|
|
199
|
+
isRequired: false,
|
|
200
|
+
transformFunction: null
|
|
201
|
+
},
|
|
202
|
+
enableUpperCaseLetterRule: {
|
|
203
|
+
classPropertyName: "enableUpperCaseLetterRule",
|
|
204
|
+
publicName: "enableUpperCaseLetterRule",
|
|
205
|
+
isSignal: true,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
transformFunction: null
|
|
208
|
+
},
|
|
209
|
+
enableDigitRule: {
|
|
210
|
+
classPropertyName: "enableDigitRule",
|
|
211
|
+
publicName: "enableDigitRule",
|
|
212
|
+
isSignal: true,
|
|
213
|
+
isRequired: false,
|
|
214
|
+
transformFunction: null
|
|
215
|
+
},
|
|
216
|
+
enableSpecialCharRule: {
|
|
217
|
+
classPropertyName: "enableSpecialCharRule",
|
|
218
|
+
publicName: "enableSpecialCharRule",
|
|
219
|
+
isSignal: true,
|
|
220
|
+
isRequired: false,
|
|
221
|
+
transformFunction: null
|
|
222
|
+
},
|
|
223
|
+
min: {
|
|
224
|
+
classPropertyName: "min",
|
|
225
|
+
publicName: "min",
|
|
226
|
+
isSignal: true,
|
|
227
|
+
isRequired: false,
|
|
228
|
+
transformFunction: null
|
|
229
|
+
},
|
|
230
|
+
max: {
|
|
231
|
+
classPropertyName: "max",
|
|
232
|
+
publicName: "max",
|
|
233
|
+
isSignal: true,
|
|
234
|
+
isRequired: false,
|
|
235
|
+
transformFunction: null
|
|
236
|
+
},
|
|
237
|
+
customValidator: {
|
|
238
|
+
classPropertyName: "customValidator",
|
|
239
|
+
publicName: "customValidator",
|
|
240
|
+
isSignal: true,
|
|
241
|
+
isRequired: false,
|
|
242
|
+
transformFunction: null
|
|
243
|
+
},
|
|
244
|
+
warnThreshold: {
|
|
245
|
+
classPropertyName: "warnThreshold",
|
|
246
|
+
publicName: "warnThreshold",
|
|
247
|
+
isSignal: true,
|
|
248
|
+
isRequired: false,
|
|
249
|
+
transformFunction: null
|
|
250
|
+
},
|
|
251
|
+
accentThreshold: {
|
|
252
|
+
classPropertyName: "accentThreshold",
|
|
253
|
+
publicName: "accentThreshold",
|
|
254
|
+
isSignal: true,
|
|
255
|
+
isRequired: false,
|
|
256
|
+
transformFunction: null
|
|
257
|
+
},
|
|
258
|
+
value: {
|
|
259
|
+
classPropertyName: "value",
|
|
260
|
+
publicName: "value",
|
|
261
|
+
isSignal: true,
|
|
262
|
+
isRequired: false,
|
|
263
|
+
transformFunction: null
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
outputs: {
|
|
267
|
+
strengthChanged: "strengthChanged",
|
|
268
|
+
value: "valueChange"
|
|
269
|
+
},
|
|
270
|
+
host: {
|
|
271
|
+
properties: {
|
|
272
|
+
"class.low": "isLow",
|
|
273
|
+
"class.weak": "isWeak",
|
|
274
|
+
"class.medium": "isMedium",
|
|
275
|
+
"class.strong": "isStrong",
|
|
276
|
+
"class.very-strong": "isVeryStrong"
|
|
277
|
+
},
|
|
278
|
+
classAttribute: "ngs-password-strength"
|
|
279
|
+
},
|
|
280
|
+
exportAs: ["ngsPasswordStrength"],
|
|
281
|
+
usesOnChanges: true,
|
|
282
|
+
ngImport: i0,
|
|
283
|
+
template: "<ngs-progress-bar [value]=\"strength\" mode=\"determinate\"/>\n",
|
|
284
|
+
styles: [":host{margin-top:var(--spacing, .25rem);display:block;--ngs-progress-bar-track-height: calc(var(--spacing, .25rem) * 2);--ngs-progress-bar-active-indicator-height: calc(var(--spacing, .25rem) * 2)}:host ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: transparent}:host.low ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-danger)}:host.weak ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-warning)}:host.medium ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.very-strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
285
|
+
dependencies: [{
|
|
286
|
+
kind: "component",
|
|
287
|
+
type: ProgressBar,
|
|
288
|
+
selector: "ngs-progress-bar",
|
|
289
|
+
inputs: [
|
|
290
|
+
"color",
|
|
291
|
+
"value",
|
|
292
|
+
"bufferValue",
|
|
293
|
+
"mode"
|
|
294
|
+
],
|
|
295
|
+
outputs: ["animationEnd"],
|
|
296
|
+
exportAs: ["ngsProgressBar"]
|
|
297
|
+
}],
|
|
298
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
302
|
+
minVersion: "12.0.0",
|
|
303
|
+
version: "22.3.0",
|
|
304
|
+
ngImport: i0,
|
|
305
|
+
type: PasswordStrength,
|
|
306
|
+
decorators: [{
|
|
307
|
+
type: Component,
|
|
308
|
+
args: [{
|
|
309
|
+
selector: "ngs-password-strength",
|
|
310
|
+
exportAs: "ngsPasswordStrength",
|
|
311
|
+
imports: [ProgressBar],
|
|
312
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
313
|
+
host: {
|
|
314
|
+
"class": "ngs-password-strength",
|
|
315
|
+
"[class.low]": "isLow",
|
|
316
|
+
"[class.weak]": "isWeak",
|
|
317
|
+
"[class.medium]": "isMedium",
|
|
318
|
+
"[class.strong]": "isStrong",
|
|
319
|
+
"[class.very-strong]": "isVeryStrong"
|
|
320
|
+
},
|
|
321
|
+
template: "<ngs-progress-bar [value]=\"strength\" mode=\"determinate\"/>\n",
|
|
322
|
+
styles: [":host{margin-top:var(--spacing, .25rem);display:block;--ngs-progress-bar-track-height: calc(var(--spacing, .25rem) * 2);--ngs-progress-bar-active-indicator-height: calc(var(--spacing, .25rem) * 2)}:host ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: transparent}:host.low ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-danger)}:host.weak ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-warning)}:host.medium ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.very-strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
323
|
+
}]
|
|
324
|
+
}],
|
|
325
|
+
propDecorators: {
|
|
326
|
+
password: [{
|
|
327
|
+
type: i0.Input,
|
|
328
|
+
args: [{
|
|
329
|
+
isSignal: true,
|
|
330
|
+
alias: "password",
|
|
331
|
+
required: true
|
|
332
|
+
}]
|
|
333
|
+
}],
|
|
334
|
+
externalError: [{
|
|
335
|
+
type: i0.Input,
|
|
336
|
+
args: [{
|
|
337
|
+
isSignal: true,
|
|
338
|
+
alias: "externalError",
|
|
339
|
+
required: false
|
|
340
|
+
}]
|
|
341
|
+
}],
|
|
342
|
+
enableLengthRule: [{
|
|
343
|
+
type: i0.Input,
|
|
344
|
+
args: [{
|
|
345
|
+
isSignal: true,
|
|
346
|
+
alias: "enableLengthRule",
|
|
347
|
+
required: false
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
enableLowerCaseLetterRule: [{
|
|
351
|
+
type: i0.Input,
|
|
352
|
+
args: [{
|
|
353
|
+
isSignal: true,
|
|
354
|
+
alias: "enableLowerCaseLetterRule",
|
|
355
|
+
required: false
|
|
356
|
+
}]
|
|
357
|
+
}],
|
|
358
|
+
enableUpperCaseLetterRule: [{
|
|
359
|
+
type: i0.Input,
|
|
360
|
+
args: [{
|
|
361
|
+
isSignal: true,
|
|
362
|
+
alias: "enableUpperCaseLetterRule",
|
|
363
|
+
required: false
|
|
364
|
+
}]
|
|
365
|
+
}],
|
|
366
|
+
enableDigitRule: [{
|
|
367
|
+
type: i0.Input,
|
|
368
|
+
args: [{
|
|
369
|
+
isSignal: true,
|
|
370
|
+
alias: "enableDigitRule",
|
|
371
|
+
required: false
|
|
372
|
+
}]
|
|
373
|
+
}],
|
|
374
|
+
enableSpecialCharRule: [{
|
|
375
|
+
type: i0.Input,
|
|
376
|
+
args: [{
|
|
377
|
+
isSignal: true,
|
|
378
|
+
alias: "enableSpecialCharRule",
|
|
379
|
+
required: false
|
|
380
|
+
}]
|
|
381
|
+
}],
|
|
382
|
+
min: [{
|
|
383
|
+
type: i0.Input,
|
|
384
|
+
args: [{
|
|
385
|
+
isSignal: true,
|
|
386
|
+
alias: "min",
|
|
387
|
+
required: false
|
|
388
|
+
}]
|
|
389
|
+
}],
|
|
390
|
+
max: [{
|
|
391
|
+
type: i0.Input,
|
|
392
|
+
args: [{
|
|
393
|
+
isSignal: true,
|
|
394
|
+
alias: "max",
|
|
395
|
+
required: false
|
|
396
|
+
}]
|
|
397
|
+
}],
|
|
398
|
+
customValidator: [{
|
|
399
|
+
type: i0.Input,
|
|
400
|
+
args: [{
|
|
401
|
+
isSignal: true,
|
|
402
|
+
alias: "customValidator",
|
|
403
|
+
required: false
|
|
404
|
+
}]
|
|
405
|
+
}],
|
|
406
|
+
warnThreshold: [{
|
|
407
|
+
type: i0.Input,
|
|
408
|
+
args: [{
|
|
409
|
+
isSignal: true,
|
|
410
|
+
alias: "warnThreshold",
|
|
411
|
+
required: false
|
|
412
|
+
}]
|
|
413
|
+
}],
|
|
414
|
+
accentThreshold: [{
|
|
415
|
+
type: i0.Input,
|
|
416
|
+
args: [{
|
|
417
|
+
isSignal: true,
|
|
418
|
+
alias: "accentThreshold",
|
|
419
|
+
required: false
|
|
420
|
+
}]
|
|
421
|
+
}],
|
|
422
|
+
strengthChanged: [{
|
|
423
|
+
type: i0.Output,
|
|
424
|
+
args: ["strengthChanged"]
|
|
425
|
+
}],
|
|
426
|
+
value: [{
|
|
427
|
+
type: i0.Input,
|
|
428
|
+
args: [{
|
|
429
|
+
isSignal: true,
|
|
430
|
+
alias: "value",
|
|
431
|
+
required: false
|
|
432
|
+
}]
|
|
433
|
+
}, {
|
|
434
|
+
type: i0.Output,
|
|
435
|
+
args: ["valueChange"]
|
|
436
|
+
}]
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
var PassToggleVisibility = class PassToggleVisibility {
|
|
440
|
+
visible = input(false, {
|
|
441
|
+
...ngDevMode ? { debugName: "visible" } : /* istanbul ignore next */ {},
|
|
442
|
+
transform: booleanAttribute
|
|
443
|
+
});
|
|
444
|
+
tabindex = input("", ...ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []);
|
|
445
|
+
_visible = this.visible();
|
|
446
|
+
get type() {
|
|
447
|
+
return this._visible ? "text" : "password";
|
|
448
|
+
}
|
|
449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
450
|
+
minVersion: "12.0.0",
|
|
451
|
+
version: "22.3.0",
|
|
452
|
+
ngImport: i0,
|
|
453
|
+
type: PassToggleVisibility,
|
|
454
|
+
deps: [],
|
|
455
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
456
|
+
});
|
|
457
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
458
|
+
minVersion: "17.0.0",
|
|
459
|
+
version: "22.3.0",
|
|
460
|
+
type: PassToggleVisibility,
|
|
461
|
+
isStandalone: true,
|
|
462
|
+
selector: "ngs-pass-toggle-visibility",
|
|
463
|
+
inputs: {
|
|
464
|
+
visible: {
|
|
465
|
+
classPropertyName: "visible",
|
|
466
|
+
publicName: "visible",
|
|
467
|
+
isSignal: true,
|
|
468
|
+
isRequired: false,
|
|
469
|
+
transformFunction: null
|
|
470
|
+
},
|
|
471
|
+
tabindex: {
|
|
472
|
+
classPropertyName: "tabindex",
|
|
473
|
+
publicName: "tabindex",
|
|
474
|
+
isSignal: true,
|
|
475
|
+
isRequired: false,
|
|
476
|
+
transformFunction: null
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
host: { classAttribute: "ngs-pass-toggle-visibility" },
|
|
480
|
+
exportAs: ["ngsPassToggleVisibility"],
|
|
481
|
+
ngImport: i0,
|
|
482
|
+
template: "<button (click)=\"_visible = !_visible\" ngsIconButton\n [attr.tabindex]=\"tabindex() ? tabindex() : null\" type=\"button\">\n @if (_visible) {\n <ngs-icon name=\"fluent:eye-24-regular\"/>\n } @else {\n <ngs-icon name=\"fluent:eye-off-24-regular\"/>\n }\n</button>\n",
|
|
483
|
+
styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
484
|
+
dependencies: [{
|
|
485
|
+
kind: "component",
|
|
486
|
+
type: Icon,
|
|
487
|
+
selector: "ngs-icon",
|
|
488
|
+
inputs: ["name"],
|
|
489
|
+
exportAs: ["ngsIcon"]
|
|
490
|
+
}, {
|
|
491
|
+
kind: "component",
|
|
492
|
+
type: Button,
|
|
493
|
+
selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
|
|
494
|
+
inputs: [
|
|
495
|
+
"ngsButton",
|
|
496
|
+
"ngsIconButton",
|
|
497
|
+
"loading",
|
|
498
|
+
"disabled",
|
|
499
|
+
"disabledInteractive",
|
|
500
|
+
"disableRipple",
|
|
501
|
+
"reverse",
|
|
502
|
+
"fullWidth",
|
|
503
|
+
"hideTextOnMobile"
|
|
504
|
+
],
|
|
505
|
+
exportAs: ["ngsButton"]
|
|
506
|
+
}],
|
|
507
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
511
|
+
minVersion: "12.0.0",
|
|
512
|
+
version: "22.3.0",
|
|
513
|
+
ngImport: i0,
|
|
514
|
+
type: PassToggleVisibility,
|
|
515
|
+
decorators: [{
|
|
516
|
+
type: Component,
|
|
517
|
+
args: [{
|
|
518
|
+
selector: "ngs-pass-toggle-visibility",
|
|
519
|
+
exportAs: "ngsPassToggleVisibility",
|
|
520
|
+
imports: [Icon, Button],
|
|
521
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
522
|
+
host: { "class": "ngs-pass-toggle-visibility" },
|
|
523
|
+
template: "<button (click)=\"_visible = !_visible\" ngsIconButton\n [attr.tabindex]=\"tabindex() ? tabindex() : null\" type=\"button\">\n @if (_visible) {\n <ngs-icon name=\"fluent:eye-24-regular\"/>\n } @else {\n <ngs-icon name=\"fluent:eye-off-24-regular\"/>\n }\n</button>\n",
|
|
524
|
+
styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
525
|
+
}]
|
|
526
|
+
}],
|
|
527
|
+
propDecorators: {
|
|
528
|
+
visible: [{
|
|
529
|
+
type: i0.Input,
|
|
530
|
+
args: [{
|
|
531
|
+
isSignal: true,
|
|
532
|
+
alias: "visible",
|
|
533
|
+
required: false
|
|
534
|
+
}]
|
|
535
|
+
}],
|
|
536
|
+
tabindex: [{
|
|
537
|
+
type: i0.Input,
|
|
538
|
+
args: [{
|
|
539
|
+
isSignal: true,
|
|
540
|
+
alias: "tabindex",
|
|
541
|
+
required: false
|
|
542
|
+
}]
|
|
543
|
+
}]
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
var PasswordStrengthInfo = class PasswordStrengthInfo {
|
|
547
|
+
passwordComponent = input.required(...ngDevMode ? [{ debugName: "passwordComponent" }] : /* istanbul ignore next */ []);
|
|
548
|
+
enableScoreInfo = input(false, {
|
|
549
|
+
...ngDevMode ? { debugName: "enableScoreInfo" } : /* istanbul ignore next */ {},
|
|
550
|
+
transform: booleanAttribute
|
|
551
|
+
});
|
|
552
|
+
lowerCaseCriteriaMessage = input("contains at least one lower character", ...ngDevMode ? [{ debugName: "lowerCaseCriteriaMessage" }] : /* istanbul ignore next */ []);
|
|
553
|
+
upperCaseCriteriaMessage = input("contains at least one upper character", ...ngDevMode ? [{ debugName: "upperCaseCriteriaMessage" }] : /* istanbul ignore next */ []);
|
|
554
|
+
digitsCriteriaMessage = input("contains at least one digit character", ...ngDevMode ? [{ debugName: "digitsCriteriaMessage" }] : /* istanbul ignore next */ []);
|
|
555
|
+
specialCharsCriteriaMessage = input("contains at least one special character", ...ngDevMode ? [{ debugName: "specialCharsCriteriaMessage" }] : /* istanbul ignore next */ []);
|
|
556
|
+
customCharsCriteriaMessage = input("contains at least one custom character", ...ngDevMode ? [{ debugName: "customCharsCriteriaMessage" }] : /* istanbul ignore next */ []);
|
|
557
|
+
minCharsCriteriaMessage = input(`contains at least minimum characters`, ...ngDevMode ? [{ debugName: "minCharsCriteriaMessage" }] : /* istanbul ignore next */ []);
|
|
558
|
+
ngsIconDone = input("checkmark-24-regular", ...ngDevMode ? [{ debugName: "ngsIconDone" }] : /* istanbul ignore next */ []);
|
|
559
|
+
ngsIconError = input("error-circle-24-regular", ...ngDevMode ? [{ debugName: "ngsIconError" }] : /* istanbul ignore next */ []);
|
|
560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
561
|
+
minVersion: "12.0.0",
|
|
562
|
+
version: "22.3.0",
|
|
563
|
+
ngImport: i0,
|
|
564
|
+
type: PasswordStrengthInfo,
|
|
565
|
+
deps: [],
|
|
566
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
567
|
+
});
|
|
568
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
569
|
+
minVersion: "17.0.0",
|
|
570
|
+
version: "22.3.0",
|
|
571
|
+
type: PasswordStrengthInfo,
|
|
572
|
+
isStandalone: true,
|
|
573
|
+
selector: "ngs-password-strength-info",
|
|
574
|
+
inputs: {
|
|
575
|
+
passwordComponent: {
|
|
576
|
+
classPropertyName: "passwordComponent",
|
|
577
|
+
publicName: "passwordComponent",
|
|
578
|
+
isSignal: true,
|
|
579
|
+
isRequired: true,
|
|
580
|
+
transformFunction: null
|
|
581
|
+
},
|
|
582
|
+
enableScoreInfo: {
|
|
583
|
+
classPropertyName: "enableScoreInfo",
|
|
584
|
+
publicName: "enableScoreInfo",
|
|
585
|
+
isSignal: true,
|
|
586
|
+
isRequired: false,
|
|
587
|
+
transformFunction: null
|
|
588
|
+
},
|
|
589
|
+
lowerCaseCriteriaMessage: {
|
|
590
|
+
classPropertyName: "lowerCaseCriteriaMessage",
|
|
591
|
+
publicName: "lowerCaseCriteriaMessage",
|
|
592
|
+
isSignal: true,
|
|
593
|
+
isRequired: false,
|
|
594
|
+
transformFunction: null
|
|
595
|
+
},
|
|
596
|
+
upperCaseCriteriaMessage: {
|
|
597
|
+
classPropertyName: "upperCaseCriteriaMessage",
|
|
598
|
+
publicName: "upperCaseCriteriaMessage",
|
|
599
|
+
isSignal: true,
|
|
600
|
+
isRequired: false,
|
|
601
|
+
transformFunction: null
|
|
602
|
+
},
|
|
603
|
+
digitsCriteriaMessage: {
|
|
604
|
+
classPropertyName: "digitsCriteriaMessage",
|
|
605
|
+
publicName: "digitsCriteriaMessage",
|
|
606
|
+
isSignal: true,
|
|
607
|
+
isRequired: false,
|
|
608
|
+
transformFunction: null
|
|
609
|
+
},
|
|
610
|
+
specialCharsCriteriaMessage: {
|
|
611
|
+
classPropertyName: "specialCharsCriteriaMessage",
|
|
612
|
+
publicName: "specialCharsCriteriaMessage",
|
|
613
|
+
isSignal: true,
|
|
614
|
+
isRequired: false,
|
|
615
|
+
transformFunction: null
|
|
616
|
+
},
|
|
617
|
+
customCharsCriteriaMessage: {
|
|
618
|
+
classPropertyName: "customCharsCriteriaMessage",
|
|
619
|
+
publicName: "customCharsCriteriaMessage",
|
|
620
|
+
isSignal: true,
|
|
621
|
+
isRequired: false,
|
|
622
|
+
transformFunction: null
|
|
623
|
+
},
|
|
624
|
+
minCharsCriteriaMessage: {
|
|
625
|
+
classPropertyName: "minCharsCriteriaMessage",
|
|
626
|
+
publicName: "minCharsCriteriaMessage",
|
|
627
|
+
isSignal: true,
|
|
628
|
+
isRequired: false,
|
|
629
|
+
transformFunction: null
|
|
630
|
+
},
|
|
631
|
+
ngsIconDone: {
|
|
632
|
+
classPropertyName: "ngsIconDone",
|
|
633
|
+
publicName: "ngsIconDone",
|
|
634
|
+
isSignal: true,
|
|
635
|
+
isRequired: false,
|
|
636
|
+
transformFunction: null
|
|
637
|
+
},
|
|
638
|
+
ngsIconError: {
|
|
639
|
+
classPropertyName: "ngsIconError",
|
|
640
|
+
publicName: "ngsIconError",
|
|
641
|
+
isSignal: true,
|
|
642
|
+
isRequired: false,
|
|
643
|
+
transformFunction: null
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
host: { classAttribute: "ngs-password-strength-info" },
|
|
647
|
+
exportAs: ["ngsPasswordStrengthInfo"],
|
|
648
|
+
ngImport: i0,
|
|
649
|
+
template: "<div class=\"flex flex-col gap-1.5 mt-4\">\n @if (passwordComponent().enableLowerCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneLowerCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ lowerCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableUpperCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneUpperCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ upperCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableDigitRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneDigit) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ digitsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableSpecialCharRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneSpecialChar) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ specialCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableLengthRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastMinChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ minCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().customValidator()) {\n <div class=\"row\">\n @if (passwordComponent().containAtCustomChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ customCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (enableScoreInfo()) {\n <div class=\"row\">\n @if (passwordComponent().strength === 100) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span>Password's strength = {{ passwordComponent().strength }} %100</span>\n </div>\n }\n</div>\n",
|
|
650
|
+
styles: [".row{flex-direction:row;display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
651
|
+
dependencies: [{
|
|
652
|
+
kind: "component",
|
|
653
|
+
type: Icon,
|
|
654
|
+
selector: "ngs-icon",
|
|
655
|
+
inputs: ["name"],
|
|
656
|
+
exportAs: ["ngsIcon"]
|
|
657
|
+
}],
|
|
658
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
659
|
+
});
|
|
660
|
+
};
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
662
|
+
minVersion: "12.0.0",
|
|
663
|
+
version: "22.3.0",
|
|
664
|
+
ngImport: i0,
|
|
665
|
+
type: PasswordStrengthInfo,
|
|
666
|
+
decorators: [{
|
|
667
|
+
type: Component,
|
|
668
|
+
args: [{
|
|
669
|
+
selector: "ngs-password-strength-info",
|
|
670
|
+
exportAs: "ngsPasswordStrengthInfo",
|
|
671
|
+
imports: [Icon],
|
|
672
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
673
|
+
host: { "class": "ngs-password-strength-info" },
|
|
674
|
+
template: "<div class=\"flex flex-col gap-1.5 mt-4\">\n @if (passwordComponent().enableLowerCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneLowerCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ lowerCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableUpperCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneUpperCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ upperCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableDigitRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneDigit) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ digitsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableSpecialCharRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneSpecialChar) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ specialCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableLengthRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastMinChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ minCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().customValidator()) {\n <div class=\"row\">\n @if (passwordComponent().containAtCustomChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ customCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (enableScoreInfo()) {\n <div class=\"row\">\n @if (passwordComponent().strength === 100) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span>Password's strength = {{ passwordComponent().strength }} %100</span>\n </div>\n }\n</div>\n",
|
|
675
|
+
styles: [".row{flex-direction:row;display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
676
|
+
}]
|
|
677
|
+
}],
|
|
678
|
+
propDecorators: {
|
|
679
|
+
passwordComponent: [{
|
|
680
|
+
type: i0.Input,
|
|
681
|
+
args: [{
|
|
682
|
+
isSignal: true,
|
|
683
|
+
alias: "passwordComponent",
|
|
684
|
+
required: true
|
|
685
|
+
}]
|
|
686
|
+
}],
|
|
687
|
+
enableScoreInfo: [{
|
|
688
|
+
type: i0.Input,
|
|
689
|
+
args: [{
|
|
690
|
+
isSignal: true,
|
|
691
|
+
alias: "enableScoreInfo",
|
|
692
|
+
required: false
|
|
693
|
+
}]
|
|
694
|
+
}],
|
|
695
|
+
lowerCaseCriteriaMessage: [{
|
|
696
|
+
type: i0.Input,
|
|
697
|
+
args: [{
|
|
698
|
+
isSignal: true,
|
|
699
|
+
alias: "lowerCaseCriteriaMessage",
|
|
700
|
+
required: false
|
|
701
|
+
}]
|
|
702
|
+
}],
|
|
703
|
+
upperCaseCriteriaMessage: [{
|
|
704
|
+
type: i0.Input,
|
|
705
|
+
args: [{
|
|
706
|
+
isSignal: true,
|
|
707
|
+
alias: "upperCaseCriteriaMessage",
|
|
708
|
+
required: false
|
|
709
|
+
}]
|
|
710
|
+
}],
|
|
711
|
+
digitsCriteriaMessage: [{
|
|
712
|
+
type: i0.Input,
|
|
713
|
+
args: [{
|
|
714
|
+
isSignal: true,
|
|
715
|
+
alias: "digitsCriteriaMessage",
|
|
716
|
+
required: false
|
|
717
|
+
}]
|
|
718
|
+
}],
|
|
719
|
+
specialCharsCriteriaMessage: [{
|
|
720
|
+
type: i0.Input,
|
|
721
|
+
args: [{
|
|
722
|
+
isSignal: true,
|
|
723
|
+
alias: "specialCharsCriteriaMessage",
|
|
724
|
+
required: false
|
|
725
|
+
}]
|
|
726
|
+
}],
|
|
727
|
+
customCharsCriteriaMessage: [{
|
|
728
|
+
type: i0.Input,
|
|
729
|
+
args: [{
|
|
730
|
+
isSignal: true,
|
|
731
|
+
alias: "customCharsCriteriaMessage",
|
|
732
|
+
required: false
|
|
733
|
+
}]
|
|
734
|
+
}],
|
|
735
|
+
minCharsCriteriaMessage: [{
|
|
736
|
+
type: i0.Input,
|
|
737
|
+
args: [{
|
|
738
|
+
isSignal: true,
|
|
739
|
+
alias: "minCharsCriteriaMessage",
|
|
740
|
+
required: false
|
|
741
|
+
}]
|
|
742
|
+
}],
|
|
743
|
+
ngsIconDone: [{
|
|
744
|
+
type: i0.Input,
|
|
745
|
+
args: [{
|
|
746
|
+
isSignal: true,
|
|
747
|
+
alias: "ngsIconDone",
|
|
748
|
+
required: false
|
|
749
|
+
}]
|
|
750
|
+
}],
|
|
751
|
+
ngsIconError: [{
|
|
752
|
+
type: i0.Input,
|
|
753
|
+
args: [{
|
|
754
|
+
isSignal: true,
|
|
755
|
+
alias: "ngsIconError",
|
|
756
|
+
required: false
|
|
757
|
+
}]
|
|
758
|
+
}]
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
var PasswordStrengthValidator = class {
|
|
762
|
+
isUndefinedOrEmpty(control) {
|
|
763
|
+
if (!control || !control.value || control.value.length === 0) return;
|
|
764
|
+
}
|
|
765
|
+
validate(criteria, regex) {
|
|
766
|
+
const validator = (control) => {
|
|
767
|
+
this.isUndefinedOrEmpty(control);
|
|
768
|
+
if (!regex.test(control.value)) {
|
|
769
|
+
const failed = {};
|
|
770
|
+
failed[criteria] = {
|
|
771
|
+
actualValue: control.value,
|
|
772
|
+
requiredPattern: regex
|
|
773
|
+
};
|
|
774
|
+
return failed;
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
return validator;
|
|
778
|
+
}
|
|
779
|
+
confirm(password) {
|
|
780
|
+
const validator = (control) => {
|
|
781
|
+
this.isUndefinedOrEmpty(control);
|
|
782
|
+
if (control.value !== password) return { notConfirmed: {
|
|
783
|
+
password,
|
|
784
|
+
passwordConfirmation: control.value
|
|
785
|
+
} };
|
|
786
|
+
};
|
|
787
|
+
return validator;
|
|
788
|
+
}
|
|
70
789
|
};
|
|
71
|
-
|
|
72
|
-
class PasswordStrength {
|
|
73
|
-
password = input.required(/* @ts-ignore */
|
|
74
|
-
...(ngDevMode ? [{ debugName: "password" }] : /* istanbul ignore next */ []));
|
|
75
|
-
externalError = input(false, { ...(ngDevMode ? { debugName: "externalError" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
76
|
-
enableLengthRule = input(true, { ...(ngDevMode ? { debugName: "enableLengthRule" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
77
|
-
enableLowerCaseLetterRule = input(true, { ...(ngDevMode ? { debugName: "enableLowerCaseLetterRule" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
78
|
-
enableUpperCaseLetterRule = input(true, { ...(ngDevMode ? { debugName: "enableUpperCaseLetterRule" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
79
|
-
enableDigitRule = input(true, { ...(ngDevMode ? { debugName: "enableDigitRule" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
80
|
-
enableSpecialCharRule = input(true, { ...(ngDevMode ? { debugName: "enableSpecialCharRule" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
81
|
-
min = input(8, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
82
|
-
max = input(30, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
83
|
-
customValidator = input(/* @ts-ignore */
|
|
84
|
-
...(ngDevMode ? [undefined, { debugName: "customValidator" }] : /* istanbul ignore next */ []));
|
|
85
|
-
warnThreshold = input(21, { ...(ngDevMode ? { debugName: "warnThreshold" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
86
|
-
accentThreshold = input(81, { ...(ngDevMode ? { debugName: "accentThreshold" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
87
|
-
strengthChanged = output();
|
|
88
|
-
criteriaMap = new Map();
|
|
89
|
-
containAtLeastMinChars;
|
|
90
|
-
containAtLeastOneLowerCaseLetter;
|
|
91
|
-
containAtLeastOneUpperCaseLetter;
|
|
92
|
-
containAtLeastOneDigit;
|
|
93
|
-
containAtLeastOneSpecialChar;
|
|
94
|
-
containAtCustomChars;
|
|
95
|
-
// TO ACCESS VIA CONTENT CHILD
|
|
96
|
-
passwordFormControl = new UntypedFormControl();
|
|
97
|
-
passwordConfirmationFormControl = new UntypedFormControl();
|
|
98
|
-
validatorsArray = [];
|
|
99
|
-
Validators;
|
|
100
|
-
passwordStrengthValidator = new PasswordStrengthValidator();
|
|
101
|
-
_strength = 0;
|
|
102
|
-
get strength() {
|
|
103
|
-
return this._strength ? this._strength : 0;
|
|
104
|
-
}
|
|
105
|
-
get isLow() {
|
|
106
|
-
return this.strength === 20;
|
|
107
|
-
}
|
|
108
|
-
get isWeak() {
|
|
109
|
-
return this.strength === 40;
|
|
110
|
-
}
|
|
111
|
-
get isMedium() {
|
|
112
|
-
return this.strength === 60;
|
|
113
|
-
}
|
|
114
|
-
get isStrong() {
|
|
115
|
-
return this.strength === 80;
|
|
116
|
-
}
|
|
117
|
-
get isVeryStrong() {
|
|
118
|
-
return this.strength === 100;
|
|
119
|
-
}
|
|
120
|
-
propagateChange = (_) => {
|
|
121
|
-
};
|
|
122
|
-
ngOnInit() {
|
|
123
|
-
this.setRulesAndValidators();
|
|
124
|
-
}
|
|
125
|
-
ngOnChanges(changes) {
|
|
126
|
-
if ((changes['externalError'] && changes['externalError'].firstChange) || (changes['password'] && changes['password'].firstChange)) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
else if (changes['externalError'] && changes['externalError'].currentValue) {
|
|
130
|
-
// this._color = 'weak';
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
else if (changes['password'] && changes['password'].previousValue === changes['password'].currentValue && !changes['password'].firstChange) {
|
|
134
|
-
this.calculatePasswordStrength();
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
this.password && this.password.length > 0 ?
|
|
138
|
-
this.calculatePasswordStrength() : this.reset();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
setRulesAndValidators() {
|
|
142
|
-
this.validatorsArray = [];
|
|
143
|
-
this.criteriaMap = new Map();
|
|
144
|
-
this.passwordConfirmationFormControl
|
|
145
|
-
// @ts-ignore
|
|
146
|
-
.setValidators(Validators.compose([
|
|
147
|
-
Validators.required, this.passwordStrengthValidator.confirm(this.password())
|
|
148
|
-
]));
|
|
149
|
-
this.validatorsArray.push(Validators.required);
|
|
150
|
-
if (this.enableLengthRule()) {
|
|
151
|
-
this.criteriaMap.set(Criteria.at_least_eight_chars, RegExp(`^.{${this.min()},${this.max()}}$`));
|
|
152
|
-
this.validatorsArray.push(Validators.minLength(this.min()));
|
|
153
|
-
this.validatorsArray.push(Validators.maxLength(this.max()));
|
|
154
|
-
}
|
|
155
|
-
if (this.enableLowerCaseLetterRule()) {
|
|
156
|
-
this.criteriaMap.set(Criteria.at_least_one_lower_case_char, RegExpValidator.lowerCase);
|
|
157
|
-
this.validatorsArray.push(Validators.pattern(RegExpValidator.lowerCase));
|
|
158
|
-
}
|
|
159
|
-
if (this.enableUpperCaseLetterRule()) {
|
|
160
|
-
this.criteriaMap.set(Criteria.at_least_one_upper_case_char, RegExpValidator.upperCase);
|
|
161
|
-
this.validatorsArray.push(Validators.pattern(RegExpValidator.upperCase));
|
|
162
|
-
}
|
|
163
|
-
if (this.enableDigitRule()) {
|
|
164
|
-
this.criteriaMap.set(Criteria.at_least_one_digit_char, RegExpValidator.digit);
|
|
165
|
-
this.validatorsArray.push(Validators.pattern(RegExpValidator.digit));
|
|
166
|
-
}
|
|
167
|
-
if (this.enableSpecialCharRule()) {
|
|
168
|
-
this.criteriaMap.set(Criteria.at_least_one_special_char, RegExpValidator.specialChar);
|
|
169
|
-
this.validatorsArray.push(Validators.pattern(RegExpValidator.specialChar));
|
|
170
|
-
}
|
|
171
|
-
if (this.customValidator()) {
|
|
172
|
-
this.criteriaMap.set(Criteria.at_custom_chars, this.customValidator());
|
|
173
|
-
this.validatorsArray.push(Validators.pattern(this.customValidator()));
|
|
174
|
-
}
|
|
175
|
-
this.criteriaMap.forEach((value, key) => {
|
|
176
|
-
// @ts-ignore
|
|
177
|
-
this.validatorsArray.push(this.passwordStrengthValidator.validate(key, value));
|
|
178
|
-
});
|
|
179
|
-
this.passwordFormControl.setValidators(Validators.compose([...this.validatorsArray]));
|
|
180
|
-
this.Validators = Validators.compose([...this.validatorsArray]);
|
|
181
|
-
}
|
|
182
|
-
calculatePasswordStrength() {
|
|
183
|
-
const requirements = [];
|
|
184
|
-
const unit = 100 / this.criteriaMap.size;
|
|
185
|
-
requirements.push(this.enableLengthRule() ? this._containAtLeastMinChars() : false, this.enableLowerCaseLetterRule() ? this._containAtLeastOneLowerCaseLetter() : false, this.enableUpperCaseLetterRule() ? this._containAtLeastOneUpperCaseLetter() : false, this.enableDigitRule() ? this._containAtLeastOneDigit() : false, this.enableSpecialCharRule() ? this._containAtLeastOneSpecialChar() : false, this.customValidator() ? this._containCustomChars() : false);
|
|
186
|
-
this._strength = requirements.filter(v => v).length * unit;
|
|
187
|
-
this.propagateChange(this.strength);
|
|
188
|
-
this.strengthChanged.emit(this.strength);
|
|
189
|
-
this.setRulesAndValidators();
|
|
190
|
-
}
|
|
191
|
-
reset() {
|
|
192
|
-
this._strength = 0;
|
|
193
|
-
this.containAtLeastMinChars = false;
|
|
194
|
-
this.containAtLeastOneLowerCaseLetter = false;
|
|
195
|
-
this.containAtLeastOneUpperCaseLetter = false;
|
|
196
|
-
this.containAtLeastOneDigit = false;
|
|
197
|
-
this.containAtCustomChars = false;
|
|
198
|
-
this.containAtLeastOneSpecialChar = false;
|
|
199
|
-
}
|
|
200
|
-
writeValue(obj) {
|
|
201
|
-
if (obj) {
|
|
202
|
-
this._strength = obj;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
registerOnChange(fn) {
|
|
206
|
-
this.propagateChange = fn;
|
|
207
|
-
}
|
|
208
|
-
registerOnTouched(fn) {
|
|
209
|
-
// throw new Error("Method not implemented.");
|
|
210
|
-
}
|
|
211
|
-
setDisabledState(isDisabled) {
|
|
212
|
-
// throw new Error("Method not implemented.");
|
|
213
|
-
}
|
|
214
|
-
_containAtLeastMinChars() {
|
|
215
|
-
this.containAtLeastMinChars = this.password().length >= this.min();
|
|
216
|
-
return this.containAtLeastMinChars;
|
|
217
|
-
}
|
|
218
|
-
_containAtLeastOneLowerCaseLetter() {
|
|
219
|
-
// @ts-ignore
|
|
220
|
-
this.containAtLeastOneLowerCaseLetter = this.criteriaMap
|
|
221
|
-
.get(Criteria.at_least_one_lower_case_char)
|
|
222
|
-
.test(this.password());
|
|
223
|
-
return this.containAtLeastOneLowerCaseLetter;
|
|
224
|
-
}
|
|
225
|
-
_containAtLeastOneUpperCaseLetter() {
|
|
226
|
-
// @ts-ignore
|
|
227
|
-
this.containAtLeastOneUpperCaseLetter = this.criteriaMap
|
|
228
|
-
.get(Criteria.at_least_one_upper_case_char)
|
|
229
|
-
.test(this.password());
|
|
230
|
-
return this.containAtLeastOneUpperCaseLetter;
|
|
231
|
-
}
|
|
232
|
-
_containAtLeastOneDigit() {
|
|
233
|
-
// @ts-ignore
|
|
234
|
-
this.containAtLeastOneDigit = this.criteriaMap
|
|
235
|
-
.get(Criteria.at_least_one_digit_char)
|
|
236
|
-
.test(this.password());
|
|
237
|
-
return this.containAtLeastOneDigit;
|
|
238
|
-
}
|
|
239
|
-
_containAtLeastOneSpecialChar() {
|
|
240
|
-
// @ts-ignore
|
|
241
|
-
this.containAtLeastOneSpecialChar = this.criteriaMap
|
|
242
|
-
.get(Criteria.at_least_one_special_char)
|
|
243
|
-
.test(this.password());
|
|
244
|
-
return this.containAtLeastOneSpecialChar;
|
|
245
|
-
}
|
|
246
|
-
_containCustomChars() {
|
|
247
|
-
// @ts-ignore
|
|
248
|
-
this.containAtCustomChars = this.criteriaMap
|
|
249
|
-
.get(Criteria.at_custom_chars)
|
|
250
|
-
.test(this.password());
|
|
251
|
-
return this.containAtCustomChars;
|
|
252
|
-
}
|
|
253
|
-
ngAfterContentChecked() {
|
|
254
|
-
if (this.password()) {
|
|
255
|
-
this.calculatePasswordStrength();
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: PasswordStrength, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
259
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: PasswordStrength, isStandalone: true, selector: "ngs-password-strength", inputs: { password: { classPropertyName: "password", publicName: "password", isSignal: true, isRequired: true, transformFunction: null }, externalError: { classPropertyName: "externalError", publicName: "externalError", isSignal: true, isRequired: false, transformFunction: null }, enableLengthRule: { classPropertyName: "enableLengthRule", publicName: "enableLengthRule", isSignal: true, isRequired: false, transformFunction: null }, enableLowerCaseLetterRule: { classPropertyName: "enableLowerCaseLetterRule", publicName: "enableLowerCaseLetterRule", isSignal: true, isRequired: false, transformFunction: null }, enableUpperCaseLetterRule: { classPropertyName: "enableUpperCaseLetterRule", publicName: "enableUpperCaseLetterRule", isSignal: true, isRequired: false, transformFunction: null }, enableDigitRule: { classPropertyName: "enableDigitRule", publicName: "enableDigitRule", isSignal: true, isRequired: false, transformFunction: null }, enableSpecialCharRule: { classPropertyName: "enableSpecialCharRule", publicName: "enableSpecialCharRule", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, customValidator: { classPropertyName: "customValidator", publicName: "customValidator", isSignal: true, isRequired: false, transformFunction: null }, warnThreshold: { classPropertyName: "warnThreshold", publicName: "warnThreshold", isSignal: true, isRequired: false, transformFunction: null }, accentThreshold: { classPropertyName: "accentThreshold", publicName: "accentThreshold", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { strengthChanged: "strengthChanged" }, host: { properties: { "class.low": "isLow", "class.weak": "isWeak", "class.medium": "isMedium", "class.strong": "isStrong", "class.very-strong": "isVeryStrong" }, classAttribute: "ngs-password-strength" }, providers: [
|
|
260
|
-
{
|
|
261
|
-
provide: NG_VALUE_ACCESSOR,
|
|
262
|
-
useExisting: forwardRef(() => PasswordStrength),
|
|
263
|
-
multi: true
|
|
264
|
-
}
|
|
265
|
-
], exportAs: ["ngsPasswordStrength"], usesOnChanges: true, ngImport: i0, template: "<ngs-progress-bar [value]=\"strength\" mode=\"determinate\"/>\n", styles: [":host{margin-top:var(--spacing, .25rem);display:block;--ngs-progress-bar-track-height: calc(var(--spacing, .25rem) * 2);--ngs-progress-bar-active-indicator-height: calc(var(--spacing, .25rem) * 2)}:host ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: transparent}:host.low ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-danger)}:host.weak ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-warning)}:host.medium ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.very-strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: ProgressBar, selector: "ngs-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["ngsProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
266
|
-
}
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: PasswordStrength, decorators: [{
|
|
268
|
-
type: Component,
|
|
269
|
-
args: [{ selector: 'ngs-password-strength', exportAs: 'ngsPasswordStrength', imports: [
|
|
270
|
-
ProgressBar
|
|
271
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
272
|
-
{
|
|
273
|
-
provide: NG_VALUE_ACCESSOR,
|
|
274
|
-
useExisting: forwardRef(() => PasswordStrength),
|
|
275
|
-
multi: true
|
|
276
|
-
}
|
|
277
|
-
], host: {
|
|
278
|
-
'class': 'ngs-password-strength',
|
|
279
|
-
'[class.low]': 'isLow',
|
|
280
|
-
'[class.weak]': 'isWeak',
|
|
281
|
-
'[class.medium]': 'isMedium',
|
|
282
|
-
'[class.strong]': 'isStrong',
|
|
283
|
-
'[class.very-strong]': 'isVeryStrong',
|
|
284
|
-
}, template: "<ngs-progress-bar [value]=\"strength\" mode=\"determinate\"/>\n", styles: [":host{margin-top:var(--spacing, .25rem);display:block;--ngs-progress-bar-track-height: calc(var(--spacing, .25rem) * 2);--ngs-progress-bar-active-indicator-height: calc(var(--spacing, .25rem) * 2)}:host ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: transparent}:host.low ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-danger)}:host.weak ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-warning)}:host.medium ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}:host.very-strong ::ng-deep .mdc-linear-progress__bar-inner{--ngs-progress-bar-active-indicator-color: var(--ngs-color-green-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
285
|
-
}], propDecorators: { password: [{ type: i0.Input, args: [{ isSignal: true, alias: "password", required: true }] }], externalError: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalError", required: false }] }], enableLengthRule: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableLengthRule", required: false }] }], enableLowerCaseLetterRule: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableLowerCaseLetterRule", required: false }] }], enableUpperCaseLetterRule: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableUpperCaseLetterRule", required: false }] }], enableDigitRule: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableDigitRule", required: false }] }], enableSpecialCharRule: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableSpecialCharRule", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], customValidator: [{ type: i0.Input, args: [{ isSignal: true, alias: "customValidator", required: false }] }], warnThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "warnThreshold", required: false }] }], accentThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "accentThreshold", required: false }] }], strengthChanged: [{ type: i0.Output, args: ["strengthChanged"] }] } });
|
|
286
|
-
|
|
287
|
-
class PassToggleVisibility {
|
|
288
|
-
visible = input(false, { ...(ngDevMode ? { debugName: "visible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
289
|
-
tabindex = input('', /* @ts-ignore */
|
|
290
|
-
...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
|
|
291
|
-
_visible = this.visible();
|
|
292
|
-
get type() {
|
|
293
|
-
return this._visible ? 'text' : 'password';
|
|
294
|
-
}
|
|
295
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: PassToggleVisibility, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
296
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: PassToggleVisibility, isStandalone: true, selector: "ngs-pass-toggle-visibility", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "ngs-pass-toggle-visibility" }, exportAs: ["ngsPassToggleVisibility"], ngImport: i0, template: "<button (click)=\"_visible = !_visible\" ngsIconButton\n [attr.tabindex]=\"tabindex() ? tabindex() : null\" type=\"button\">\n @if (_visible) {\n <ngs-icon name=\"fluent:eye-24-regular\"/>\n } @else {\n <ngs-icon name=\"fluent:eye-off-24-regular\"/>\n }\n</button>\n", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
297
|
-
}
|
|
298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: PassToggleVisibility, decorators: [{
|
|
299
|
-
type: Component,
|
|
300
|
-
args: [{ selector: 'ngs-pass-toggle-visibility', exportAs: 'ngsPassToggleVisibility', imports: [
|
|
301
|
-
Icon,
|
|
302
|
-
Button
|
|
303
|
-
], changeDetection: ChangeDetectionStrategy.Eager, host: {
|
|
304
|
-
'class': 'ngs-pass-toggle-visibility',
|
|
305
|
-
}, template: "<button (click)=\"_visible = !_visible\" ngsIconButton\n [attr.tabindex]=\"tabindex() ? tabindex() : null\" type=\"button\">\n @if (_visible) {\n <ngs-icon name=\"fluent:eye-24-regular\"/>\n } @else {\n <ngs-icon name=\"fluent:eye-off-24-regular\"/>\n }\n</button>\n", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
306
|
-
}], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
|
|
307
|
-
|
|
308
|
-
class PasswordStrengthInfo {
|
|
309
|
-
passwordComponent = input.required(/* @ts-ignore */
|
|
310
|
-
...(ngDevMode ? [{ debugName: "passwordComponent" }] : /* istanbul ignore next */ []));
|
|
311
|
-
enableScoreInfo = input(false, { ...(ngDevMode ? { debugName: "enableScoreInfo" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
312
|
-
lowerCaseCriteriaMessage = input('contains at least one lower character', /* @ts-ignore */
|
|
313
|
-
...(ngDevMode ? [{ debugName: "lowerCaseCriteriaMessage" }] : /* istanbul ignore next */ []));
|
|
314
|
-
upperCaseCriteriaMessage = input('contains at least one upper character', /* @ts-ignore */
|
|
315
|
-
...(ngDevMode ? [{ debugName: "upperCaseCriteriaMessage" }] : /* istanbul ignore next */ []));
|
|
316
|
-
digitsCriteriaMessage = input('contains at least one digit character', /* @ts-ignore */
|
|
317
|
-
...(ngDevMode ? [{ debugName: "digitsCriteriaMessage" }] : /* istanbul ignore next */ []));
|
|
318
|
-
specialCharsCriteriaMessage = input('contains at least one special character', /* @ts-ignore */
|
|
319
|
-
...(ngDevMode ? [{ debugName: "specialCharsCriteriaMessage" }] : /* istanbul ignore next */ []));
|
|
320
|
-
customCharsCriteriaMessage = input('contains at least one custom character', /* @ts-ignore */
|
|
321
|
-
...(ngDevMode ? [{ debugName: "customCharsCriteriaMessage" }] : /* istanbul ignore next */ []));
|
|
322
|
-
minCharsCriteriaMessage = input(`contains at least minimum characters`, /* @ts-ignore */
|
|
323
|
-
...(ngDevMode ? [{ debugName: "minCharsCriteriaMessage" }] : /* istanbul ignore next */ []));
|
|
324
|
-
ngsIconDone = input('checkmark-24-regular', /* @ts-ignore */
|
|
325
|
-
...(ngDevMode ? [{ debugName: "ngsIconDone" }] : /* istanbul ignore next */ []));
|
|
326
|
-
ngsIconError = input('error-circle-24-regular', /* @ts-ignore */
|
|
327
|
-
...(ngDevMode ? [{ debugName: "ngsIconError" }] : /* istanbul ignore next */ []));
|
|
328
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: PasswordStrengthInfo, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
329
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: PasswordStrengthInfo, isStandalone: true, selector: "ngs-password-strength-info", inputs: { passwordComponent: { classPropertyName: "passwordComponent", publicName: "passwordComponent", isSignal: true, isRequired: true, transformFunction: null }, enableScoreInfo: { classPropertyName: "enableScoreInfo", publicName: "enableScoreInfo", isSignal: true, isRequired: false, transformFunction: null }, lowerCaseCriteriaMessage: { classPropertyName: "lowerCaseCriteriaMessage", publicName: "lowerCaseCriteriaMessage", isSignal: true, isRequired: false, transformFunction: null }, upperCaseCriteriaMessage: { classPropertyName: "upperCaseCriteriaMessage", publicName: "upperCaseCriteriaMessage", isSignal: true, isRequired: false, transformFunction: null }, digitsCriteriaMessage: { classPropertyName: "digitsCriteriaMessage", publicName: "digitsCriteriaMessage", isSignal: true, isRequired: false, transformFunction: null }, specialCharsCriteriaMessage: { classPropertyName: "specialCharsCriteriaMessage", publicName: "specialCharsCriteriaMessage", isSignal: true, isRequired: false, transformFunction: null }, customCharsCriteriaMessage: { classPropertyName: "customCharsCriteriaMessage", publicName: "customCharsCriteriaMessage", isSignal: true, isRequired: false, transformFunction: null }, minCharsCriteriaMessage: { classPropertyName: "minCharsCriteriaMessage", publicName: "minCharsCriteriaMessage", isSignal: true, isRequired: false, transformFunction: null }, ngsIconDone: { classPropertyName: "ngsIconDone", publicName: "ngsIconDone", isSignal: true, isRequired: false, transformFunction: null }, ngsIconError: { classPropertyName: "ngsIconError", publicName: "ngsIconError", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "ngs-password-strength-info" }, exportAs: ["ngsPasswordStrengthInfo"], ngImport: i0, template: "<div class=\"flex flex-col gap-1.5 mt-4\">\n @if (passwordComponent().enableLowerCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneLowerCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ lowerCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableUpperCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneUpperCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ upperCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableDigitRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneDigit) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ digitsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableSpecialCharRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneSpecialChar) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ specialCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableLengthRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastMinChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ minCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().customValidator()) {\n <div class=\"row\">\n @if (passwordComponent().containAtCustomChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ customCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (enableScoreInfo()) {\n <div class=\"row\">\n @if (passwordComponent().strength === 100) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span>Password's strength = {{ passwordComponent().strength }} %100</span>\n </div>\n }\n</div>\n", styles: [".row{flex-direction:row;display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
330
|
-
}
|
|
331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: PasswordStrengthInfo, decorators: [{
|
|
332
|
-
type: Component,
|
|
333
|
-
args: [{ selector: 'ngs-password-strength-info', exportAs: 'ngsPasswordStrengthInfo', imports: [
|
|
334
|
-
Icon
|
|
335
|
-
], changeDetection: ChangeDetectionStrategy.Eager, host: {
|
|
336
|
-
'class': 'ngs-password-strength-info',
|
|
337
|
-
}, template: "<div class=\"flex flex-col gap-1.5 mt-4\">\n @if (passwordComponent().enableLowerCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneLowerCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ lowerCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableUpperCaseLetterRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneUpperCaseLetter) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ upperCaseCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableDigitRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneDigit) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ digitsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableSpecialCharRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastOneSpecialChar) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ specialCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().enableLengthRule()) {\n <div class=\"row\">\n @if (passwordComponent().containAtLeastMinChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ minCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (passwordComponent().customValidator()) {\n <div class=\"row\">\n @if (passwordComponent().containAtCustomChars) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span class=\"text-tiny\">{{ customCharsCriteriaMessage() }}</span>\n </div>\n }\n\n @if (enableScoreInfo()) {\n <div class=\"row\">\n @if (passwordComponent().strength === 100) {\n <ngs-icon name=\"fluent:{{ ngsIconDone() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n } @else {\n <ngs-icon name=\"fluent:{{ ngsIconError() }}\" class=\"font-icon !text-xl !h-7 !w-5\"/>\n }\n\n <span>Password's strength = {{ passwordComponent().strength }} %100</span>\n </div>\n }\n</div>\n", styles: [".row{flex-direction:row;display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
338
|
-
}], propDecorators: { passwordComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordComponent", required: true }] }], enableScoreInfo: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableScoreInfo", required: false }] }], lowerCaseCriteriaMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowerCaseCriteriaMessage", required: false }] }], upperCaseCriteriaMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "upperCaseCriteriaMessage", required: false }] }], digitsCriteriaMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "digitsCriteriaMessage", required: false }] }], specialCharsCriteriaMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "specialCharsCriteriaMessage", required: false }] }], customCharsCriteriaMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCharsCriteriaMessage", required: false }] }], minCharsCriteriaMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "minCharsCriteriaMessage", required: false }] }], ngsIconDone: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsIconDone", required: false }] }], ngsIconError: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsIconError", required: false }] }] } });
|
|
339
|
-
|
|
340
|
-
// validator
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Generated bundle index. Do not edit.
|
|
344
|
-
*/
|
|
345
|
-
|
|
346
790
|
export { PassToggleVisibility, PasswordStrength, PasswordStrengthInfo, PasswordStrengthValidator, RegExpValidator };
|
|
347
|
-
|
|
791
|
+
|
|
792
|
+
//# sourceMappingURL=ngstarter-ui-components-password-strength.mjs.map
|