@tectra-ng/ui 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +26 -2
- package/amount/README.md +28 -0
- package/autocomplete/README.md +82 -0
- package/avatar/README.md +43 -0
- package/badge/README.md +19 -0
- package/button/README.md +46 -0
- package/button-group/README.md +8 -0
- package/card/README.md +30 -0
- package/cascade-select/README.md +49 -0
- package/checkbox/README.md +64 -0
- package/chip/README.md +38 -0
- package/chips-input/README.md +47 -0
- package/color-picker/README.md +43 -0
- package/confirm/README.md +46 -0
- package/country/README.md +23 -0
- package/country-select/README.md +39 -0
- package/dialog/README.md +84 -0
- package/divider/README.md +24 -0
- package/drawer/README.md +54 -0
- package/email-suggestion/README.md +20 -0
- package/fesm2022/tectra-ng-ui-amount.mjs +415 -0
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +730 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-avatar.mjs +670 -0
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-badge.mjs +191 -0
- package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-button-group.mjs +50 -0
- package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-button.mjs +725 -0
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-card.mjs +210 -0
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +887 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-checkbox.mjs +1150 -0
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-chip.mjs +344 -0
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-chips-input.mjs +649 -0
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-color-picker.mjs +828 -0
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-confirm.mjs +489 -0
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs +545 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country.mjs +313 -0
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs +1539 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-divider.mjs +194 -0
- package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-drawer.mjs +540 -0
- package/fesm2022/tectra-ng-ui-drawer.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs +341 -0
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs +492 -0
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs +258 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-highlight-text.mjs +246 -0
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs +478 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +113 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-mask.mjs +413 -0
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-number.mjs +1045 -0
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-otp.mjs +553 -0
- package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input.mjs +260 -0
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-key-filter.mjs +185 -0
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-knob.mjs +630 -0
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-label.mjs +271 -0
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-link.mjs +699 -0
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-listbox.mjs +484 -0
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +717 -0
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-menu.mjs +1484 -0
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-message.mjs +975 -0
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +569 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs +345 -0
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-paginator.mjs +849 -0
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-panel.mjs +317 -0
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-password-generator.mjs +292 -0
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-password.mjs +871 -0
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-pill.mjs +361 -0
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-popover.mjs +742 -0
- package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-progress-bar.mjs +440 -0
- package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs +265 -0
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-radio-button.mjs +817 -0
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-rating.mjs +584 -0
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2478 -0
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-skeleton.mjs +548 -0
- package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-slider.mjs +630 -0
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +669 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-split-button.mjs +614 -0
- package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-status-icon.mjs +295 -0
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +5997 -0
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tag.mjs +422 -0
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +482 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toast.mjs +668 -0
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +416 -0
- package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +560 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tooltip.mjs +835 -0
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +986 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui.mjs +4 -0
- package/fesm2022/tectra-ng-ui.mjs.map +1 -0
- package/field/README.md +43 -0
- package/fieldset/README.md +36 -0
- package/highlight-text/README.md +20 -0
- package/icon-field/README.md +30 -0
- package/input/README.md +22 -0
- package/input-group/README.md +21 -0
- package/input-mask/README.md +30 -0
- package/input-number/README.md +61 -0
- package/input-otp/README.md +44 -0
- package/key-filter/README.md +31 -0
- package/knob/README.md +50 -0
- package/label/README.md +29 -0
- package/link/README.md +47 -0
- package/listbox/README.md +68 -0
- package/mention-textarea/README.md +47 -0
- package/menu/README.md +65 -0
- package/message/README.md +58 -0
- package/multiselect/README.md +85 -0
- package/overlay-badge/README.md +30 -0
- package/package.json +301 -3
- package/paginator/README.md +60 -0
- package/panel/README.md +45 -0
- package/password/README.md +60 -0
- package/password-generator/README.md +34 -0
- package/pill/README.md +42 -0
- package/popover/README.md +67 -0
- package/progress-bar/README.md +32 -0
- package/progress-spinner/README.md +22 -0
- package/radio-button/README.md +54 -0
- package/rating/README.md +49 -0
- package/select/README.md +78 -0
- package/skeleton/README.md +27 -0
- package/slider/README.md +48 -0
- package/speed-dial/README.md +49 -0
- package/split-button/README.md +45 -0
- package/status-icon/README.md +22 -0
- package/table/README.md +178 -0
- package/tag/README.md +42 -0
- package/textarea/README.md +37 -0
- package/toast/README.md +52 -0
- package/toggle-button/README.md +34 -0
- package/toggle-switch/README.md +49 -0
- package/tooltip/README.md +60 -0
- package/tree-select/README.md +49 -0
- package/types/tectra-ng-ui-amount.d.ts +135 -0
- package/types/tectra-ng-ui-amount.d.ts.map +1 -0
- package/types/tectra-ng-ui-autocomplete.d.ts +250 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -0
- package/types/tectra-ng-ui-avatar.d.ts +289 -0
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -0
- package/types/tectra-ng-ui-badge.d.ts +119 -0
- package/types/tectra-ng-ui-badge.d.ts.map +1 -0
- package/types/tectra-ng-ui-button-group.d.ts +6 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -0
- package/types/tectra-ng-ui-button.d.ts +466 -0
- package/types/tectra-ng-ui-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-card.d.ts +71 -0
- package/types/tectra-ng-ui-card.d.ts.map +1 -0
- package/types/tectra-ng-ui-cascade-select.d.ts +244 -0
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-checkbox.d.ts +450 -0
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -0
- package/types/tectra-ng-ui-chip.d.ts +106 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -0
- package/types/tectra-ng-ui-chips-input.d.ts +187 -0
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -0
- package/types/tectra-ng-ui-color-picker.d.ts +237 -0
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -0
- package/types/tectra-ng-ui-confirm.d.ts +80 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -0
- package/types/tectra-ng-ui-country-select.d.ts +235 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-country.d.ts +105 -0
- package/types/tectra-ng-ui-country.d.ts.map +1 -0
- package/types/tectra-ng-ui-dialog.d.ts +453 -0
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -0
- package/types/tectra-ng-ui-divider.d.ts +70 -0
- package/types/tectra-ng-ui-divider.d.ts.map +1 -0
- package/types/tectra-ng-ui-drawer.d.ts +188 -0
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts +84 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -0
- package/types/tectra-ng-ui-field.d.ts +139 -0
- package/types/tectra-ng-ui-field.d.ts.map +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts +74 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -0
- package/types/tectra-ng-ui-highlight-text.d.ts +75 -0
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -0
- package/types/tectra-ng-ui-icon-field.d.ts +77 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-group.d.ts +18 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-mask.d.ts +91 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-number.d.ts +326 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-otp.d.ts +173 -0
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -0
- package/types/tectra-ng-ui-input.d.ts +113 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -0
- package/types/tectra-ng-ui-key-filter.d.ts +43 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -0
- package/types/tectra-ng-ui-knob.d.ts +207 -0
- package/types/tectra-ng-ui-knob.d.ts.map +1 -0
- package/types/tectra-ng-ui-label.d.ts +53 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -0
- package/types/tectra-ng-ui-link.d.ts +223 -0
- package/types/tectra-ng-ui-link.d.ts.map +1 -0
- package/types/tectra-ng-ui-listbox.d.ts +131 -0
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts +169 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -0
- package/types/tectra-ng-ui-menu.d.ts +512 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-message.d.ts +390 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -0
- package/types/tectra-ng-ui-multiselect.d.ts +216 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts +104 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -0
- package/types/tectra-ng-ui-paginator.d.ts +293 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel.d.ts +133 -0
- package/types/tectra-ng-ui-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-password-generator.d.ts +80 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -0
- package/types/tectra-ng-ui-password.d.ts +271 -0
- package/types/tectra-ng-ui-password.d.ts.map +1 -0
- package/types/tectra-ng-ui-pill.d.ts +167 -0
- package/types/tectra-ng-ui-pill.d.ts.map +1 -0
- package/types/tectra-ng-ui-popover.d.ts +244 -0
- package/types/tectra-ng-ui-popover.d.ts.map +1 -0
- package/types/tectra-ng-ui-progress-bar.d.ts +151 -0
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts +95 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -0
- package/types/tectra-ng-ui-radio-button.d.ts +380 -0
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-rating.d.ts +195 -0
- package/types/tectra-ng-ui-rating.d.ts.map +1 -0
- package/types/tectra-ng-ui-select.d.ts +761 -0
- package/types/tectra-ng-ui-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-skeleton.d.ts +182 -0
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -0
- package/types/tectra-ng-ui-slider.d.ts +220 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -0
- package/types/tectra-ng-ui-speed-dial.d.ts +175 -0
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -0
- package/types/tectra-ng-ui-split-button.d.ts +139 -0
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-status-icon.d.ts +105 -0
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +1301 -0
- package/types/tectra-ng-ui-table.d.ts.map +1 -0
- package/types/tectra-ng-ui-tag.d.ts +157 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +146 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -0
- package/types/tectra-ng-ui-toast.d.ts +268 -0
- package/types/tectra-ng-ui-toast.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-button.d.ts +184 -0
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts +226 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -0
- package/types/tectra-ng-ui-tooltip.d.ts +275 -0
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-select.d.ts +339 -0
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -0
- package/types/tectra-ng-ui.d.ts +2 -0
- package/types/tectra-ng-ui.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-password.mjs","names":[],"sources":["../../../../packages/ui/password/src/password-templates.directive.ts","../../../../packages/ui/password/src/password.component.ts","../../../../packages/ui/password/src/password.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPasswordTemplateContext } from './password.types';\n\n@Directive({ selector: 'ng-template[txPasswordHeader]' })\nexport class TxPasswordHeaderTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txPasswordContent]' })\nexport class TxPasswordContentTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txPasswordFooter]' })\nexport class TxPasswordFooterTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxOverlay, TxOverlayRef } from '@tectra-ng/core/overlay';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPasswordTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxPasswordContentTemplate, TxPasswordFooterTemplate, TxPasswordHeaderTemplate } from './password-templates.directive';\nimport { TxPasswordPart, TxPasswordSize, TxPasswordStrength, TxPasswordVariant } from './password.types';\n\nconst MEDIUM = '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})';\nconst STRONG = '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})';\n\n@Component({\n selector: 'tx-password',\n imports: [TxInput, TxIcon, NgTemplateOutlet],\n templateUrl: './password.component.html',\n styleUrl: './password.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxPassword), multi: true }],\n host: {\n class: 'tx-password',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-password--fluid]': 'isFluid()',\n '[class.tx-password--filled]': 'hasValue()',\n '[class.tx-password--invalid]': 'isInvalid()',\n '[class.tx-password--disabled]': 'isDisabled()',\n },\n})\nexport class TxPassword extends TxFormControlBase<string> {\n private overlay = inject(TxOverlay);\n private viewContainerRef = inject(ViewContainerRef);\n private generatedId = uniqueId('tx-password');\n private panelRef: TxOverlayRef | null = null;\n\n readonly feedback = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly toggleMask = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<string | undefined>(undefined);\n readonly promptLabel = input<string | undefined>(undefined);\n readonly weakLabel = input<string | undefined>(undefined);\n readonly mediumLabel = input<string | undefined>(undefined);\n readonly strongLabel = input<string | undefined>(undefined);\n readonly mediumRegex = input<string | RegExp>(MEDIUM);\n readonly strongRegex = input<string | RegExp>(STRONG);\n readonly autocomplete = input<string>('current-password');\n readonly size = input<TxPasswordSize>('medium');\n readonly variant = input<TxPasswordVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly maxlength = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraPasswordTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPasswordPart, TxPassword> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly strengthChange = output<TxPasswordStrength | null>();\n readonly cleared = output<void>();\n\n readonly headerTemplate = contentChild(TxPasswordHeaderTemplate);\n readonly contentTemplate = contentChild(TxPasswordContentTemplate);\n readonly footerTemplate = contentChild(TxPasswordFooterTemplate);\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n readonly panelTemplate = viewChild.required<TemplateRef<unknown>>('panel');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('password', this, this.pt, this.ptOptions);\n\n readonly isMasked = signal(true);\n readonly isFocused = signal(false);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly infoId = `${this.generatedId}-info`;\n readonly text = computed(() => this.value() ?? '');\n readonly hasValue = computed(() => this.text() !== '');\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly strength = computed<TxPasswordStrength | null>(() => {\n const value = this.text();\n if (!value) {\n return null;\n }\n if (toRegExp(this.strongRegex()).test(value)) {\n return 'strong';\n }\n return toRegExp(this.mediumRegex()).test(value) ? 'medium' : 'weak';\n });\n readonly info = computed(() => {\n const t = this.translations();\n switch (this.strength()) {\n case 'strong':\n return this.strongLabel() ?? t.passwordStrong;\n case 'medium':\n return this.mediumLabel() ?? t.passwordMedium;\n case 'weak':\n return this.weakLabel() ?? t.passwordWeak;\n default:\n return this.promptLabel() ?? t.passwordPrompt;\n }\n });\n readonly actionCount = computed(() => Number(this.toggleMask()) + Number(this.showClear() && this.hasValue() && this.isEditable()));\n readonly templateContext = computed(() => ({ $implicit: this.strength(), value: this.text() }));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-password'),\n '--tx-password-actions': String(this.actionCount()),\n ...this.passThrough().root?.style,\n }));\n\n constructor() {\n super();\n let previous: TxPasswordStrength | null = null;\n effect(() => {\n const strength = this.strength();\n if (strength !== previous) {\n previous = strength;\n this.strengthChange.emit(strength);\n }\n });\n inject(DestroyRef).onDestroy(() => this.panelRef?.close());\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInput(event: Event): void {\n this.updateValue((event.target as HTMLInputElement).value);\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n if (this.feedback() && this.isEditable() && !this.panelRef) {\n this.panelRef = this.overlay.open(this.panelTemplate(), {\n origin: this.inputRef().nativeElement,\n viewContainerRef: this.viewContainerRef,\n placement: 'bottom-start',\n matchWidth: true,\n closeOnOutsideClick: false,\n restoreFocus: false,\n panelClass: 'tx-password-overlay',\n });\n this.panelRef.closed.subscribe(() => (this.panelRef = null));\n }\n }\n\n onBlur(): void {\n this.isFocused.set(false);\n this.markTouched();\n this.panelRef?.close();\n }\n\n fill(value: string, reveal = true): void {\n this.updateValue(value);\n if (reveal) {\n this.isMasked.set(false);\n }\n }\n\n toggleVisibility(): void {\n this.isMasked.update((masked) => !masked);\n this.focus();\n }\n\n clear(): void {\n this.updateValue('');\n this.cleared.emit();\n this.focus();\n }\n}\n\nfunction toRegExp(pattern: string | RegExp): RegExp {\n return typeof pattern === 'string' ? new RegExp(pattern) : pattern;\n}\n","<input\n #input\n txInput\n class=\"tx-password__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [type]=\"isMasked() ? 'password' : 'text'\"\n [value]=\"text()\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"feedback() && isFocused() ? infoId : null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n/>\n<span class=\"tx-password__actions\">\n @if (showClear() && hasValue() && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-password__action tx-password__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n @if (toggleMask()) {\n <button\n type=\"button\"\n class=\"tx-password__action tx-password__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-label]=\"translations().showPassword\"\n [attr.aria-pressed]=\"!isMasked()\"\n [attr.aria-controls]=\"resolvedId()\"\n [title]=\"isMasked() ? translations().showPassword : translations().hidePassword\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleVisibility()\"\n >\n <tx-icon [name]=\"isMasked() ? 'eye' : 'eye-slash'\" />\n </button>\n }\n</span>\n\n<ng-template #panel>\n <div class=\"tx-password__panel\" [attr.data-styled]=\"!isUnstyled() || null\" [style]=\"hostStyle()\" [class]=\"passThrough().panel?.class\">\n @if (headerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n <div class=\"tx-password__meter\" [attr.data-strength]=\"strength()\" [class]=\"passThrough().meter?.class\" [style]=\"passThrough().meter?.style\">\n <span class=\"tx-password__meter-bar\"></span>\n </div>\n <div class=\"tx-password__info\" aria-live=\"polite\" [id]=\"infoId\" [class]=\"passThrough().info?.class\" [style]=\"passThrough().info?.style\">\n {{ info() }}\n </div>\n @if (contentTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n @if (footerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA+C,WAAW;CADtE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAMxD,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,cAAc,OAA+C,WAAW;CADtE,OAAA,OAAA,GA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AAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACvB,yBAAyB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC1B,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACM,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACV,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA6G3E,SAAS,SAAS,SAAwB;CACxC,OAAO,OAAO,YAAY,WAAW,IAAI,OAAO,OAAO,IAAI;AAC7D"}
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input, output } from "@angular/core";
|
|
3
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
5
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
6
|
+
import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
|
|
7
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
8
|
+
var TxPill = class TxPill {
|
|
9
|
+
txIconRegistry = inject(TxIconRegistry);
|
|
10
|
+
value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
11
|
+
tone = input("neutral", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
12
|
+
variant = input("soft", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
13
|
+
size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
14
|
+
icon = input(void 0, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
15
|
+
dot = input(false, {
|
|
16
|
+
...ngDevMode ? { debugName: "dot" } : /* istanbul ignore next */ {},
|
|
17
|
+
transform: booleanAttribute
|
|
18
|
+
});
|
|
19
|
+
removable = input(false, {
|
|
20
|
+
...ngDevMode ? { debugName: "removable" } : /* istanbul ignore next */ {},
|
|
21
|
+
transform: booleanAttribute
|
|
22
|
+
});
|
|
23
|
+
removeLabel = input(void 0, ...ngDevMode ? [{ debugName: "removeLabel" }] : /* istanbul ignore next */ []);
|
|
24
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
25
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
26
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
27
|
+
unstyled = input(void 0, {
|
|
28
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
29
|
+
transform: optionalBoolean
|
|
30
|
+
});
|
|
31
|
+
removed = output();
|
|
32
|
+
translations = injectTranslations();
|
|
33
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
34
|
+
passThrough = injectPassThrough("pill", this, this.pt, this.ptOptions);
|
|
35
|
+
resolvedSize = computed(() => this.size() === "normal" ? "medium" : this.size(), ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
|
|
36
|
+
iconName = computed(() => {
|
|
37
|
+
const icon = this.icon();
|
|
38
|
+
return icon && this.txIconRegistry.has(icon) ? icon : null;
|
|
39
|
+
}, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
40
|
+
hostStyle = computed(() => ({
|
|
41
|
+
...toStyleObject(this.dt(), "--tx-pill"),
|
|
42
|
+
...this.passThrough().root?.style
|
|
43
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
44
|
+
remove(event) {
|
|
45
|
+
event.preventDefault();
|
|
46
|
+
event.stopPropagation();
|
|
47
|
+
this.removed.emit(event);
|
|
48
|
+
}
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
50
|
+
minVersion: "12.0.0",
|
|
51
|
+
version: "22.2.3",
|
|
52
|
+
ngImport: i0,
|
|
53
|
+
type: TxPill,
|
|
54
|
+
deps: [],
|
|
55
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
56
|
+
});
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
58
|
+
minVersion: "17.0.0",
|
|
59
|
+
version: "22.2.3",
|
|
60
|
+
type: TxPill,
|
|
61
|
+
isStandalone: true,
|
|
62
|
+
selector: "tx-pill",
|
|
63
|
+
inputs: {
|
|
64
|
+
value: {
|
|
65
|
+
classPropertyName: "value",
|
|
66
|
+
publicName: "value",
|
|
67
|
+
isSignal: true,
|
|
68
|
+
isRequired: false,
|
|
69
|
+
transformFunction: null
|
|
70
|
+
},
|
|
71
|
+
tone: {
|
|
72
|
+
classPropertyName: "tone",
|
|
73
|
+
publicName: "tone",
|
|
74
|
+
isSignal: true,
|
|
75
|
+
isRequired: false,
|
|
76
|
+
transformFunction: null
|
|
77
|
+
},
|
|
78
|
+
variant: {
|
|
79
|
+
classPropertyName: "variant",
|
|
80
|
+
publicName: "variant",
|
|
81
|
+
isSignal: true,
|
|
82
|
+
isRequired: false,
|
|
83
|
+
transformFunction: null
|
|
84
|
+
},
|
|
85
|
+
size: {
|
|
86
|
+
classPropertyName: "size",
|
|
87
|
+
publicName: "size",
|
|
88
|
+
isSignal: true,
|
|
89
|
+
isRequired: false,
|
|
90
|
+
transformFunction: null
|
|
91
|
+
},
|
|
92
|
+
icon: {
|
|
93
|
+
classPropertyName: "icon",
|
|
94
|
+
publicName: "icon",
|
|
95
|
+
isSignal: true,
|
|
96
|
+
isRequired: false,
|
|
97
|
+
transformFunction: null
|
|
98
|
+
},
|
|
99
|
+
dot: {
|
|
100
|
+
classPropertyName: "dot",
|
|
101
|
+
publicName: "dot",
|
|
102
|
+
isSignal: true,
|
|
103
|
+
isRequired: false,
|
|
104
|
+
transformFunction: null
|
|
105
|
+
},
|
|
106
|
+
removable: {
|
|
107
|
+
classPropertyName: "removable",
|
|
108
|
+
publicName: "removable",
|
|
109
|
+
isSignal: true,
|
|
110
|
+
isRequired: false,
|
|
111
|
+
transformFunction: null
|
|
112
|
+
},
|
|
113
|
+
removeLabel: {
|
|
114
|
+
classPropertyName: "removeLabel",
|
|
115
|
+
publicName: "removeLabel",
|
|
116
|
+
isSignal: true,
|
|
117
|
+
isRequired: false,
|
|
118
|
+
transformFunction: null
|
|
119
|
+
},
|
|
120
|
+
dt: {
|
|
121
|
+
classPropertyName: "dt",
|
|
122
|
+
publicName: "dt",
|
|
123
|
+
isSignal: true,
|
|
124
|
+
isRequired: false,
|
|
125
|
+
transformFunction: null
|
|
126
|
+
},
|
|
127
|
+
pt: {
|
|
128
|
+
classPropertyName: "pt",
|
|
129
|
+
publicName: "pt",
|
|
130
|
+
isSignal: true,
|
|
131
|
+
isRequired: false,
|
|
132
|
+
transformFunction: null
|
|
133
|
+
},
|
|
134
|
+
ptOptions: {
|
|
135
|
+
classPropertyName: "ptOptions",
|
|
136
|
+
publicName: "ptOptions",
|
|
137
|
+
isSignal: true,
|
|
138
|
+
isRequired: false,
|
|
139
|
+
transformFunction: null
|
|
140
|
+
},
|
|
141
|
+
unstyled: {
|
|
142
|
+
classPropertyName: "unstyled",
|
|
143
|
+
publicName: "unstyled",
|
|
144
|
+
isSignal: true,
|
|
145
|
+
isRequired: false,
|
|
146
|
+
transformFunction: null
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
outputs: { removed: "removed" },
|
|
150
|
+
host: {
|
|
151
|
+
properties: {
|
|
152
|
+
"class": "passThrough().root?.class",
|
|
153
|
+
"style": "hostStyle()",
|
|
154
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
155
|
+
"attr.data-tone": "tone()",
|
|
156
|
+
"attr.data-variant": "variant()",
|
|
157
|
+
"attr.data-size": "resolvedSize()"
|
|
158
|
+
},
|
|
159
|
+
classAttribute: "tx-pill"
|
|
160
|
+
},
|
|
161
|
+
ngImport: i0,
|
|
162
|
+
template: `
|
|
163
|
+
@if (dot()) {
|
|
164
|
+
<span class="tx-pill__dot" aria-hidden="true"></span>
|
|
165
|
+
} @else if (icon(); as icon) {
|
|
166
|
+
<span class="tx-pill__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
|
|
167
|
+
@if (iconName(); as name) {
|
|
168
|
+
<tx-icon [name]="name" />
|
|
169
|
+
} @else {
|
|
170
|
+
<span [class]="icon"></span>
|
|
171
|
+
}
|
|
172
|
+
</span>
|
|
173
|
+
}
|
|
174
|
+
<ng-content select="[txPillLeading]" />
|
|
175
|
+
<span class="tx-pill__label" [class]="passThrough().label?.class" [style]="passThrough().label?.style">{{ value() }}<ng-content /></span>
|
|
176
|
+
@if (removable()) {
|
|
177
|
+
<button
|
|
178
|
+
type="button"
|
|
179
|
+
class="tx-pill__remove"
|
|
180
|
+
[class]="passThrough().remove?.class"
|
|
181
|
+
[style]="passThrough().remove?.style"
|
|
182
|
+
[attr.aria-label]="removeLabel() ?? translations().remove"
|
|
183
|
+
[title]="removeLabel() ?? translations().remove"
|
|
184
|
+
(click)="remove($event)"
|
|
185
|
+
(keydown.delete)="remove($event)"
|
|
186
|
+
(keydown.backspace)="remove($event)"
|
|
187
|
+
>
|
|
188
|
+
<tx-icon [name]="'times'" />
|
|
189
|
+
</button>
|
|
190
|
+
}
|
|
191
|
+
`,
|
|
192
|
+
isInline: true,
|
|
193
|
+
styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-pill__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-pill__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-pill-neutral-color);--_solid-background: var(--tx-pill-neutral-solid-background);--_solid-color: var(--tx-pill-neutral-solid-color);flex-shrink:0;gap:var(--tx-pill-gap);box-sizing:border-box;padding:var(--tx-pill-padding-y) var(--tx-pill-padding-x);border-radius:var(--tx-pill-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-pill-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-pill-font-size);font-weight:var(--tx-pill-font-weight);line-height:var(--tx-pill-line-height);font-variant-numeric:tabular-nums}:host([data-styled][data-tone=primary]){--_tone: var(--tx-pill-primary-color);--_solid-background: var(--tx-pill-primary-solid-background);--_solid-color: var(--tx-pill-primary-solid-color)}:host([data-styled][data-tone=success]){--_tone: var(--tx-pill-success-color);--_solid-background: var(--tx-pill-success-solid-background);--_solid-color: var(--tx-pill-success-solid-color)}:host([data-styled][data-tone=info]){--_tone: var(--tx-pill-info-color);--_solid-background: var(--tx-pill-info-solid-background);--_solid-color: var(--tx-pill-info-solid-color)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-pill-warn-color);--_solid-background: var(--tx-pill-warn-solid-background);--_solid-color: var(--tx-pill-warn-solid-color)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-pill-danger-color);--_solid-background: var(--tx-pill-danger-solid-background);--_solid-color: var(--tx-pill-danger-solid-color)}:host([data-styled][data-tone=help]){--_tone: var(--tx-pill-help-color);--_solid-background: var(--tx-pill-help-solid-background);--_solid-color: var(--tx-pill-help-solid-color)}:host([data-styled][data-tone=contrast]){--_tone: var(--tx-pill-contrast-color);--_solid-background: var(--tx-pill-contrast-solid-background);--_solid-color: var(--tx-pill-contrast-solid-color)}:host([data-styled][data-size=small]){padding:var(--tx-pill-sm-padding-y) var(--tx-pill-sm-padding-x);font-size:var(--tx-pill-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-pill-lg-padding-y) var(--tx-pill-lg-padding-x);font-size:var(--tx-pill-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-pill-lg-gap)}:host([data-styled][data-variant=solid]){background:var(--_solid-background);color:var(--_solid-color)}:host([data-styled][data-variant=outline]){background:transparent;box-shadow:inset 0 0 0 1px var(--tx-pill-outline-border-color);color:var(--tx-pill-outline-color)}:host([data-styled][data-variant=outline]) .tx-pill__icon,:host([data-styled][data-variant=outline]) .tx-pill__dot{color:var(--_tone)}:host([data-styled]) .tx-pill__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-pill-icon-size)}:host([data-styled]) .tx-pill__dot{flex-shrink:0;width:var(--tx-pill-dot-size);height:var(--tx-pill-dot-size);border-radius:50%;background:currentColor}:host([data-styled]) ::ng-deep>[txPillLeading]{flex-shrink:0;margin-inline-start:calc(var(--tx-pill-padding-x) * -.5)}:host([data-styled]) .tx-pill__remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-pill-remove-size);height:var(--tx-pill-remove-size);margin-inline-end:-4px;padding:0;border:none;border-radius:50%;background:transparent;color:inherit;font-size:.8em;opacity:.7;cursor:pointer;transition:opacity var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-pill__remove:hover{background:color-mix(in srgb,currentColor 18%,transparent);opacity:1}:host([data-styled]) .tx-pill__remove:focus-visible{outline:2px solid var(--tx-pill-focus-ring-color);outline-offset:1px;opacity:1}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-pill__remove{transition:none}}\n"],
|
|
194
|
+
dependencies: [{
|
|
195
|
+
kind: "component",
|
|
196
|
+
type: TxIcon,
|
|
197
|
+
selector: "tx-icon",
|
|
198
|
+
inputs: ["name"]
|
|
199
|
+
}],
|
|
200
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
204
|
+
minVersion: "12.0.0",
|
|
205
|
+
version: "22.2.3",
|
|
206
|
+
ngImport: i0,
|
|
207
|
+
type: TxPill,
|
|
208
|
+
decorators: [{
|
|
209
|
+
type: Component,
|
|
210
|
+
args: [{
|
|
211
|
+
selector: "tx-pill",
|
|
212
|
+
imports: [TxIcon],
|
|
213
|
+
template: `
|
|
214
|
+
@if (dot()) {
|
|
215
|
+
<span class="tx-pill__dot" aria-hidden="true"></span>
|
|
216
|
+
} @else if (icon(); as icon) {
|
|
217
|
+
<span class="tx-pill__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
|
|
218
|
+
@if (iconName(); as name) {
|
|
219
|
+
<tx-icon [name]="name" />
|
|
220
|
+
} @else {
|
|
221
|
+
<span [class]="icon"></span>
|
|
222
|
+
}
|
|
223
|
+
</span>
|
|
224
|
+
}
|
|
225
|
+
<ng-content select="[txPillLeading]" />
|
|
226
|
+
<span class="tx-pill__label" [class]="passThrough().label?.class" [style]="passThrough().label?.style">{{ value() }}<ng-content /></span>
|
|
227
|
+
@if (removable()) {
|
|
228
|
+
<button
|
|
229
|
+
type="button"
|
|
230
|
+
class="tx-pill__remove"
|
|
231
|
+
[class]="passThrough().remove?.class"
|
|
232
|
+
[style]="passThrough().remove?.style"
|
|
233
|
+
[attr.aria-label]="removeLabel() ?? translations().remove"
|
|
234
|
+
[title]="removeLabel() ?? translations().remove"
|
|
235
|
+
(click)="remove($event)"
|
|
236
|
+
(keydown.delete)="remove($event)"
|
|
237
|
+
(keydown.backspace)="remove($event)"
|
|
238
|
+
>
|
|
239
|
+
<tx-icon [name]="'times'" />
|
|
240
|
+
</button>
|
|
241
|
+
}
|
|
242
|
+
`,
|
|
243
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
244
|
+
host: {
|
|
245
|
+
class: "tx-pill",
|
|
246
|
+
"[class]": "passThrough().root?.class",
|
|
247
|
+
"[style]": "hostStyle()",
|
|
248
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
249
|
+
"[attr.data-tone]": "tone()",
|
|
250
|
+
"[attr.data-variant]": "variant()",
|
|
251
|
+
"[attr.data-size]": "resolvedSize()"
|
|
252
|
+
},
|
|
253
|
+
styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-pill__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-pill__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-pill-neutral-color);--_solid-background: var(--tx-pill-neutral-solid-background);--_solid-color: var(--tx-pill-neutral-solid-color);flex-shrink:0;gap:var(--tx-pill-gap);box-sizing:border-box;padding:var(--tx-pill-padding-y) var(--tx-pill-padding-x);border-radius:var(--tx-pill-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-pill-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-pill-font-size);font-weight:var(--tx-pill-font-weight);line-height:var(--tx-pill-line-height);font-variant-numeric:tabular-nums}:host([data-styled][data-tone=primary]){--_tone: var(--tx-pill-primary-color);--_solid-background: var(--tx-pill-primary-solid-background);--_solid-color: var(--tx-pill-primary-solid-color)}:host([data-styled][data-tone=success]){--_tone: var(--tx-pill-success-color);--_solid-background: var(--tx-pill-success-solid-background);--_solid-color: var(--tx-pill-success-solid-color)}:host([data-styled][data-tone=info]){--_tone: var(--tx-pill-info-color);--_solid-background: var(--tx-pill-info-solid-background);--_solid-color: var(--tx-pill-info-solid-color)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-pill-warn-color);--_solid-background: var(--tx-pill-warn-solid-background);--_solid-color: var(--tx-pill-warn-solid-color)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-pill-danger-color);--_solid-background: var(--tx-pill-danger-solid-background);--_solid-color: var(--tx-pill-danger-solid-color)}:host([data-styled][data-tone=help]){--_tone: var(--tx-pill-help-color);--_solid-background: var(--tx-pill-help-solid-background);--_solid-color: var(--tx-pill-help-solid-color)}:host([data-styled][data-tone=contrast]){--_tone: var(--tx-pill-contrast-color);--_solid-background: var(--tx-pill-contrast-solid-background);--_solid-color: var(--tx-pill-contrast-solid-color)}:host([data-styled][data-size=small]){padding:var(--tx-pill-sm-padding-y) var(--tx-pill-sm-padding-x);font-size:var(--tx-pill-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-pill-lg-padding-y) var(--tx-pill-lg-padding-x);font-size:var(--tx-pill-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-pill-lg-gap)}:host([data-styled][data-variant=solid]){background:var(--_solid-background);color:var(--_solid-color)}:host([data-styled][data-variant=outline]){background:transparent;box-shadow:inset 0 0 0 1px var(--tx-pill-outline-border-color);color:var(--tx-pill-outline-color)}:host([data-styled][data-variant=outline]) .tx-pill__icon,:host([data-styled][data-variant=outline]) .tx-pill__dot{color:var(--_tone)}:host([data-styled]) .tx-pill__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-pill-icon-size)}:host([data-styled]) .tx-pill__dot{flex-shrink:0;width:var(--tx-pill-dot-size);height:var(--tx-pill-dot-size);border-radius:50%;background:currentColor}:host([data-styled]) ::ng-deep>[txPillLeading]{flex-shrink:0;margin-inline-start:calc(var(--tx-pill-padding-x) * -.5)}:host([data-styled]) .tx-pill__remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-pill-remove-size);height:var(--tx-pill-remove-size);margin-inline-end:-4px;padding:0;border:none;border-radius:50%;background:transparent;color:inherit;font-size:.8em;opacity:.7;cursor:pointer;transition:opacity var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-pill__remove:hover{background:color-mix(in srgb,currentColor 18%,transparent);opacity:1}:host([data-styled]) .tx-pill__remove:focus-visible{outline:2px solid var(--tx-pill-focus-ring-color);outline-offset:1px;opacity:1}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-pill__remove{transition:none}}\n"]
|
|
254
|
+
}]
|
|
255
|
+
}],
|
|
256
|
+
propDecorators: {
|
|
257
|
+
value: [{
|
|
258
|
+
type: i0.Input,
|
|
259
|
+
args: [{
|
|
260
|
+
isSignal: true,
|
|
261
|
+
alias: "value",
|
|
262
|
+
required: false
|
|
263
|
+
}]
|
|
264
|
+
}],
|
|
265
|
+
tone: [{
|
|
266
|
+
type: i0.Input,
|
|
267
|
+
args: [{
|
|
268
|
+
isSignal: true,
|
|
269
|
+
alias: "tone",
|
|
270
|
+
required: false
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
variant: [{
|
|
274
|
+
type: i0.Input,
|
|
275
|
+
args: [{
|
|
276
|
+
isSignal: true,
|
|
277
|
+
alias: "variant",
|
|
278
|
+
required: false
|
|
279
|
+
}]
|
|
280
|
+
}],
|
|
281
|
+
size: [{
|
|
282
|
+
type: i0.Input,
|
|
283
|
+
args: [{
|
|
284
|
+
isSignal: true,
|
|
285
|
+
alias: "size",
|
|
286
|
+
required: false
|
|
287
|
+
}]
|
|
288
|
+
}],
|
|
289
|
+
icon: [{
|
|
290
|
+
type: i0.Input,
|
|
291
|
+
args: [{
|
|
292
|
+
isSignal: true,
|
|
293
|
+
alias: "icon",
|
|
294
|
+
required: false
|
|
295
|
+
}]
|
|
296
|
+
}],
|
|
297
|
+
dot: [{
|
|
298
|
+
type: i0.Input,
|
|
299
|
+
args: [{
|
|
300
|
+
isSignal: true,
|
|
301
|
+
alias: "dot",
|
|
302
|
+
required: false
|
|
303
|
+
}]
|
|
304
|
+
}],
|
|
305
|
+
removable: [{
|
|
306
|
+
type: i0.Input,
|
|
307
|
+
args: [{
|
|
308
|
+
isSignal: true,
|
|
309
|
+
alias: "removable",
|
|
310
|
+
required: false
|
|
311
|
+
}]
|
|
312
|
+
}],
|
|
313
|
+
removeLabel: [{
|
|
314
|
+
type: i0.Input,
|
|
315
|
+
args: [{
|
|
316
|
+
isSignal: true,
|
|
317
|
+
alias: "removeLabel",
|
|
318
|
+
required: false
|
|
319
|
+
}]
|
|
320
|
+
}],
|
|
321
|
+
dt: [{
|
|
322
|
+
type: i0.Input,
|
|
323
|
+
args: [{
|
|
324
|
+
isSignal: true,
|
|
325
|
+
alias: "dt",
|
|
326
|
+
required: false
|
|
327
|
+
}]
|
|
328
|
+
}],
|
|
329
|
+
pt: [{
|
|
330
|
+
type: i0.Input,
|
|
331
|
+
args: [{
|
|
332
|
+
isSignal: true,
|
|
333
|
+
alias: "pt",
|
|
334
|
+
required: false
|
|
335
|
+
}]
|
|
336
|
+
}],
|
|
337
|
+
ptOptions: [{
|
|
338
|
+
type: i0.Input,
|
|
339
|
+
args: [{
|
|
340
|
+
isSignal: true,
|
|
341
|
+
alias: "ptOptions",
|
|
342
|
+
required: false
|
|
343
|
+
}]
|
|
344
|
+
}],
|
|
345
|
+
unstyled: [{
|
|
346
|
+
type: i0.Input,
|
|
347
|
+
args: [{
|
|
348
|
+
isSignal: true,
|
|
349
|
+
alias: "unstyled",
|
|
350
|
+
required: false
|
|
351
|
+
}]
|
|
352
|
+
}],
|
|
353
|
+
removed: [{
|
|
354
|
+
type: i0.Output,
|
|
355
|
+
args: ["removed"]
|
|
356
|
+
}]
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
export { TxPill };
|
|
360
|
+
|
|
361
|
+
//# sourceMappingURL=tectra-ng-ui-pill.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input, output } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span class=\"tx-pill__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <ng-content select=\"[txPillLeading]\" />\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'tone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n})\nexport class TxPill {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAqDA,IAAa,SAAb,MAAa,OAAM;CACT,iBAAiB,OAAO,cAAc;CAErC,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,OAAO,MAAkB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,UAAU,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,MAAM,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAClE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAA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