@aeris-ui/core 22.0.0-alpha.7 → 22.0.0-alpha.9
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 +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +730 -110
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +455 -258
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +430 -117
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +819 -310
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +934 -572
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1339 -514
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -103
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -112
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +477 -145
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +596 -196
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +894 -247
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +892 -386
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +502 -225
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1794 -643
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +868 -404
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +918 -257
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +1984 -865
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1258 -1413
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -147
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +855 -615
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +861 -842
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +28 -16
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +3 -3
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +12 -16
- package/styles/controls.css +1 -1
- package/types/aeris-ui-core-accordion.d.ts +166 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
- package/types/aeris-ui-core-auto-complete.d.ts +326 -149
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -47
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -64
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +197 -117
- package/types/aeris-ui-core-cascade-select.d.ts +252 -131
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -55
- package/types/aeris-ui-core-chip.d.ts +116 -51
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-color-picker.d.ts +347 -150
- package/types/aeris-ui-core-compare.d.ts +224 -101
- package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
- package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
- package/types/aeris-ui-core-context-menu.d.ts +262 -150
- package/types/aeris-ui-core-date-picker.d.ts +488 -226
- package/types/aeris-ui-core-dialog.d.ts +288 -121
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -116
- package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
- package/types/aeris-ui-core-editor.d.ts +243 -124
- package/types/aeris-ui-core-file-upload.d.ts +366 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +158 -62
- package/types/aeris-ui-core-galleria.d.ts +589 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -34
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -35
- package/types/aeris-ui-core-input-mask.d.ts +194 -71
- package/types/aeris-ui-core-input-number.d.ts +272 -90
- package/types/aeris-ui-core-input-otp.d.ts +190 -82
- package/types/aeris-ui-core-input-text.d.ts +185 -62
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +174 -123
- package/types/aeris-ui-core-menu.d.ts +275 -172
- package/types/aeris-ui-core-menubar.d.ts +272 -160
- package/types/aeris-ui-core-message.d.ts +132 -61
- package/types/aeris-ui-core-meter-group.d.ts +162 -90
- package/types/aeris-ui-core-multi-select.d.ts +435 -187
- package/types/aeris-ui-core-order-list.d.ts +143 -66
- package/types/aeris-ui-core-organization-chart.d.ts +132 -77
- package/types/aeris-ui-core-paginator.d.ts +92 -46
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +257 -108
- package/types/aeris-ui-core-pick-list.d.ts +373 -179
- package/types/aeris-ui-core-popover.d.ts +218 -107
- package/types/aeris-ui-core-progress-bar.d.ts +156 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -51
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +64 -29
- package/types/aeris-ui-core-select.d.ts +474 -226
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -116
- package/types/aeris-ui-core-speed-dial.d.ts +240 -112
- package/types/aeris-ui-core-split-button.d.ts +265 -115
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +183 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +595 -308
- package/types/aeris-ui-core-tabs.d.ts +163 -90
- package/types/aeris-ui-core-textarea.d.ts +261 -81
- package/types/aeris-ui-core-theme-builder.d.ts +466 -451
- package/types/aeris-ui-core-theming.d.ts +42 -49
- package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
- package/types/aeris-ui-core-timeline.d.ts +108 -71
- package/types/aeris-ui-core-toast.d.ts +219 -155
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -92
- package/types/aeris-ui-core-tree-select.d.ts +359 -179
- package/types/aeris-ui-core-tree-table.d.ts +565 -290
- package/types/aeris-ui-core-tree.d.ts +269 -165
- package/types/aeris-ui-core.d.ts +161 -125
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-progress-spinner.mjs","sources":["../../../projects/aeris-ui/progress-spinner/aeris-progress-spinner.ts","../../../projects/aeris-ui/progress-spinner/aeris-ui-core-progress-spinner.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n} from '@angular/core';\n\nexport type AerisProgressSpinnerSize = 'sm' | 'md' | 'lg';\nexport type AerisProgressSpinnerTone =\n | 'primary'\n | 'secondary'\n | 'success'\n | 'info'\n | 'warning'\n | 'danger'\n | 'neutral'\n | 'contrast';\n\nexport interface AerisProgressSpinnerValueContext {\n readonly $implicit: number;\n readonly value: number;\n readonly min: number;\n readonly max: number;\n readonly percent: number;\n}\n\n@Directive({ selector: 'ng-template[aerisProgressSpinnerValue]' })\nexport class AerisProgressSpinnerValueTemplate {\n readonly template = inject<TemplateRef<AerisProgressSpinnerValueContext>>(TemplateRef);\n}\n\nfunction nullableNumberAttribute(value: unknown): number | null {\n if (value === null || value === undefined || value === '') return null;\n const numeric = Number(value);\n return Number.isFinite(numeric) ? numeric : null;\n}\n\n@Component({\n selector: 'aeris-progress-spinner',\n imports: [NgTemplateOutlet],\n template: `\n <svg\n class=\"aeris-progress-spinner__graphic\"\n viewBox=\"0 0 48 48\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n @if (showTrack()) {\n <circle\n class=\"aeris-progress-spinner__track\"\n cx=\"24\"\n cy=\"24\"\n r=\"20\"\n fill=\"none\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n />\n }\n <circle\n class=\"aeris-progress-spinner__indicator\"\n cx=\"24\"\n cy=\"24\"\n r=\"20\"\n fill=\"none\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n [attr.stroke-linecap]=\"rounded() ? 'round' : 'butt'\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"determinate() ? dashOffset() : null\"\n />\n </svg>\n\n @if (determinate() && showValue()) {\n <span class=\"aeris-progress-spinner__value\" aria-hidden=\"true\">\n @if (valueTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"valueContext()\"\n />\n } @else {\n {{ valueText() }}\n }\n </span>\n }\n `,\n styleUrl: './aeris-progress-spinner.scss',\n host: {\n class: 'aeris-progress-spinner',\n role: 'progressbar',\n '[attr.aria-valuemin]': 'determinate() ? normalizedMin() : null',\n '[attr.aria-valuemax]': 'determinate() ? normalizedMax() : null',\n '[attr.aria-valuenow]': 'determinate() ? clampedValue() : null',\n '[attr.aria-valuetext]': 'resolvedAriaValueText()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.data-mode]': 'determinate() ? \"determinate\" : \"indeterminate\"',\n '[attr.data-size]': 'size()',\n '[attr.data-tone]': 'tone()',\n '[attr.data-track]': 'showTrack() || null',\n '[attr.data-rounded]': 'rounded() || null',\n },\n})\nexport class AerisProgressSpinner {\n protected readonly circumference = 2 * Math.PI * 20;\n protected readonly valueTemplate = contentChild(AerisProgressSpinnerValueTemplate);\n\n readonly value = input<number | null>(null, { transform: nullableNumberAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly size = input<AerisProgressSpinnerSize>('md');\n readonly tone = input<AerisProgressSpinnerTone>('primary');\n readonly strokeWidth = input(4, { transform: numberAttribute });\n readonly showTrack = input(true, { transform: booleanAttribute });\n readonly showValue = input(true, { transform: booleanAttribute });\n readonly rounded = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Loading');\n readonly ariaLabelledBy = input('');\n readonly ariaValueText = input('');\n readonly valueFormatter = input<((context: AerisProgressSpinnerValueContext) => string) | null>(\n null,\n );\n\n protected readonly determinate = computed(() => this.value() !== null);\n\n protected readonly normalizedMin = computed(() => {\n const min = this.min();\n return Number.isFinite(min) ? min : 0;\n });\n\n protected readonly normalizedMax = computed(() => {\n const min = this.normalizedMin();\n const max = this.max();\n return Number.isFinite(max) && max > min ? max : min + 100;\n });\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n if (value === null || !Number.isFinite(value)) return min;\n return Math.min(max, Math.max(min, value));\n });\n\n protected readonly percent = computed(() => {\n const range = this.normalizedMax() - this.normalizedMin();\n return this.round(((this.clampedValue() - this.normalizedMin()) / range) * 100);\n });\n\n protected readonly dashOffset = computed(\n () => this.circumference - (this.percent() / 100) * this.circumference,\n );\n\n protected readonly resolvedStrokeWidth = computed(() => {\n const width = this.strokeWidth();\n if (!Number.isFinite(width)) return 4;\n return Math.min(12, Math.max(1, width));\n });\n\n protected readonly valueContext = computed<AerisProgressSpinnerValueContext>(() => ({\n $implicit: this.clampedValue(),\n value: this.clampedValue(),\n min: this.normalizedMin(),\n max: this.normalizedMax(),\n percent: this.percent(),\n }));\n\n protected readonly valueText = computed(() => {\n const formatter = this.valueFormatter();\n if (formatter) return formatter(this.valueContext());\n return `${Math.round(this.percent())}%`;\n });\n\n protected readonly resolvedAriaValueText = computed(() => {\n if (this.ariaValueText()) return this.ariaValueText();\n return this.determinate() ? this.valueText() : null;\n });\n\n private round(value: number): number {\n return Math.round(value * 10) / 10;\n }\n}\n\nexport const AerisProgressSpinnerModule = [\n AerisProgressSpinner,\n AerisProgressSpinnerValueTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAiCa,iCAAiC,CAAA;AACnC,IAAA,QAAQ,GAAG,MAAM,CAAgD,WAAW,CAAC;uGAD3E,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjC,iCAAiC,EAAA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AAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AA8E5E,MAAM,0BAA0B,GAAG;IACxC,oBAAoB;IACpB,iCAAiC;;;AC5LnC;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-progress-spinner.mjs","names":[],"sources":["../../../projects/aeris-ui/progress-spinner/aeris-progress-spinner.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n} from '@angular/core';\n\nexport type AerisProgressSpinnerSize = 'sm' | 'md' | 'lg';\nexport type AerisProgressSpinnerTone =\n | 'primary'\n | 'secondary'\n | 'success'\n | 'info'\n | 'warning'\n | 'danger'\n | 'neutral'\n | 'contrast';\n\nexport interface AerisProgressSpinnerValueContext {\n readonly $implicit: number;\n readonly value: number;\n readonly min: number;\n readonly max: number;\n readonly percent: number;\n}\n\n@Directive({ selector: 'ng-template[aerisProgressSpinnerValue]' })\nexport class AerisProgressSpinnerValueTemplate {\n readonly template = inject<TemplateRef<AerisProgressSpinnerValueContext>>(TemplateRef);\n}\n\nfunction nullableNumberAttribute(value: unknown): number | null {\n if (value === null || value === undefined || value === '') return null;\n const numeric = Number(value);\n return Number.isFinite(numeric) ? numeric : null;\n}\n\n@Component({\n selector: 'aeris-progress-spinner',\n imports: [NgTemplateOutlet],\n template: `\n <svg\n class=\"aeris-progress-spinner__graphic\"\n viewBox=\"0 0 48 48\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n @if (showTrack()) {\n <circle\n class=\"aeris-progress-spinner__track\"\n cx=\"24\"\n cy=\"24\"\n r=\"20\"\n fill=\"none\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n />\n }\n <circle\n class=\"aeris-progress-spinner__indicator\"\n cx=\"24\"\n cy=\"24\"\n r=\"20\"\n fill=\"none\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n [attr.stroke-linecap]=\"rounded() ? 'round' : 'butt'\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"determinate() ? dashOffset() : null\"\n />\n </svg>\n\n @if (determinate() && showValue()) {\n <span class=\"aeris-progress-spinner__value\" aria-hidden=\"true\">\n @if (valueTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"valueContext()\"\n />\n } @else {\n {{ valueText() }}\n }\n </span>\n }\n `,\n styleUrl: './aeris-progress-spinner.scss',\n host: {\n class: 'aeris-progress-spinner',\n role: 'progressbar',\n '[attr.aria-valuemin]': 'determinate() ? normalizedMin() : null',\n '[attr.aria-valuemax]': 'determinate() ? normalizedMax() : null',\n '[attr.aria-valuenow]': 'determinate() ? clampedValue() : null',\n '[attr.aria-valuetext]': 'resolvedAriaValueText()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.data-mode]': 'determinate() ? \"determinate\" : \"indeterminate\"',\n '[attr.data-size]': 'size()',\n '[attr.data-tone]': 'tone()',\n '[attr.data-track]': 'showTrack() || null',\n '[attr.data-rounded]': 'rounded() || null',\n },\n})\nexport class AerisProgressSpinner {\n protected readonly circumference = 2 * Math.PI * 20;\n protected readonly valueTemplate = contentChild(AerisProgressSpinnerValueTemplate);\n\n readonly value = input<number | null>(null, { transform: nullableNumberAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly size = input<AerisProgressSpinnerSize>('md');\n readonly tone = input<AerisProgressSpinnerTone>('primary');\n readonly strokeWidth = input(4, { transform: numberAttribute });\n readonly showTrack = input(true, { transform: booleanAttribute });\n readonly showValue = input(true, { transform: booleanAttribute });\n readonly rounded = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Loading');\n readonly ariaLabelledBy = input('');\n readonly ariaValueText = input('');\n readonly valueFormatter = input<((context: AerisProgressSpinnerValueContext) => string) | null>(\n null,\n );\n\n protected readonly determinate = computed(() => this.value() !== null);\n\n protected readonly normalizedMin = computed(() => {\n const min = this.min();\n return Number.isFinite(min) ? min : 0;\n });\n\n protected readonly normalizedMax = computed(() => {\n const min = this.normalizedMin();\n const max = this.max();\n return Number.isFinite(max) && max > min ? max : min + 100;\n });\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n if (value === null || !Number.isFinite(value)) return min;\n return Math.min(max, Math.max(min, value));\n });\n\n protected readonly percent = computed(() => {\n const range = this.normalizedMax() - this.normalizedMin();\n return this.round(((this.clampedValue() - this.normalizedMin()) / range) * 100);\n });\n\n protected readonly dashOffset = computed(\n () => this.circumference - (this.percent() / 100) * this.circumference,\n );\n\n protected readonly resolvedStrokeWidth = computed(() => {\n const width = this.strokeWidth();\n if (!Number.isFinite(width)) return 4;\n return Math.min(12, Math.max(1, width));\n });\n\n protected readonly valueContext = computed<AerisProgressSpinnerValueContext>(() => ({\n $implicit: this.clampedValue(),\n value: this.clampedValue(),\n min: this.normalizedMin(),\n max: this.normalizedMax(),\n percent: this.percent(),\n }));\n\n protected readonly valueText = computed(() => {\n const formatter = this.valueFormatter();\n if (formatter) return formatter(this.valueContext());\n return `${Math.round(this.percent())}%`;\n });\n\n protected readonly resolvedAriaValueText = computed(() => {\n if (this.ariaValueText()) return this.ariaValueText();\n return this.determinate() ? this.valueText() : null;\n });\n\n private round(value: number): number {\n return Math.round(value * 10) / 10;\n }\n}\n\nexport const AerisProgressSpinnerModule = [\n AerisProgressSpinner,\n AerisProgressSpinnerValueTemplate,\n] as const;\n"],"mappings":";;;AAiCA,IAAa,oCAAb,MAAa,kCAAiC;CACnC,WAAW,OAAsD,WAAW;CAD1E,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAiC,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAjC,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAiC,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAjC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiC,YAAA,CAAA;EAD7C,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,yCAAwC,CAAE;;;AAKjE,SAAS,wBAAwB,OAAc;CAC7C,IAAI,UAAU,QAAQ,UAAU,UAAa,UAAU,IAAI,OAAO;CAClE,MAAM,UAAU,OAAO,KAAK;CAC5B,OAAO,OAAO,SAAS,OAAO,IAAI,UAAU;AAC9C;AAiEA,IAAa,uBAAb,MAAa,qBAAoB;CACZ,gBAAgB,IAAI,KAAK,KAAK;CAC9B,gBAAgB,aAAa,mCAAkC,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;CAEzE,QAAQ,MAAqB,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAuB,CAAA;CACvE,MAAM,MAAM,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAC3C,MAAM,MAAM,KAAG;EAAA,GAAA,YAAA,EAAA,WAAA,M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AAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA8EnF,MAAa,6BAA6B,CACxC,sBACA,iCACQ"}
|
|
@@ -1,101 +1,222 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NG_VALUE_ACCESSOR } from
|
|
4
|
-
import { ɵaerisDisplayInvalid
|
|
5
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, booleanAttribute, computed, forwardRef, input, model, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
import { ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
5
|
let nextRadioButtonId = 0;
|
|
7
|
-
class AerisRadioButton {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
6
|
+
var AerisRadioButton = class AerisRadioButton {
|
|
7
|
+
selected = model(null, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
8
|
+
value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
9
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
10
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
11
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
12
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
13
|
+
labelPosition = input("end", ...ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []);
|
|
14
|
+
disabled = input(false, {
|
|
15
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
16
|
+
transform: booleanAttribute
|
|
17
|
+
});
|
|
18
|
+
required = input(false, {
|
|
19
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
20
|
+
transform: booleanAttribute
|
|
21
|
+
});
|
|
22
|
+
invalid = input(false, {
|
|
23
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
24
|
+
transform: booleanAttribute
|
|
25
|
+
});
|
|
26
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
27
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
28
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
29
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
30
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
31
|
+
changed = output();
|
|
32
|
+
focused = output();
|
|
33
|
+
blurred = output();
|
|
34
|
+
touch = output();
|
|
35
|
+
generatedId = `aeris-radio-${++nextRadioButtonId}`;
|
|
36
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
37
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
38
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
39
|
+
isSelected = computed(() => this.selected() === this.value(), ...ngDevMode ? [{ debugName: "isSelected" }] : /* istanbul ignore next */ []);
|
|
40
|
+
radioInput = viewChild("radioInput", ...ngDevMode ? [{ debugName: "radioInput" }] : /* istanbul ignore next */ []);
|
|
41
|
+
onChange = () => void 0;
|
|
42
|
+
onTouched = () => void 0;
|
|
43
|
+
writeValue(value) {
|
|
44
|
+
this.selected.set(value == null ? null : String(value));
|
|
45
|
+
}
|
|
46
|
+
registerOnChange(fn) {
|
|
47
|
+
this.onChange = fn;
|
|
48
|
+
}
|
|
49
|
+
registerOnTouched(fn) {
|
|
50
|
+
this.onTouched = fn;
|
|
51
|
+
}
|
|
52
|
+
setDisabledState(isDisabled) {
|
|
53
|
+
this.formDisabled.set(isDisabled);
|
|
54
|
+
}
|
|
55
|
+
focus(options) {
|
|
56
|
+
this.radioInput()?.nativeElement.focus(options);
|
|
57
|
+
}
|
|
58
|
+
select() {
|
|
59
|
+
if (this.effectiveDisabled() || this.isSelected()) return;
|
|
60
|
+
this.updateSelection();
|
|
61
|
+
this.focus();
|
|
62
|
+
}
|
|
63
|
+
handleChange(event) {
|
|
64
|
+
if (this.effectiveDisabled()) return;
|
|
65
|
+
this.updateSelection();
|
|
66
|
+
this.changed.emit({
|
|
67
|
+
originalEvent: event,
|
|
68
|
+
value: this.value()
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
handleBlur(event) {
|
|
72
|
+
this.onTouched();
|
|
73
|
+
this.touch.emit();
|
|
74
|
+
this.blurred.emit(event);
|
|
75
|
+
}
|
|
76
|
+
updateSelection() {
|
|
77
|
+
const value = this.value();
|
|
78
|
+
this.selected.set(value);
|
|
79
|
+
this.onChange(value);
|
|
80
|
+
}
|
|
81
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
82
|
+
minVersion: "12.0.0",
|
|
83
|
+
version: "22.2.1",
|
|
84
|
+
ngImport: i0,
|
|
85
|
+
type: AerisRadioButton,
|
|
86
|
+
deps: [],
|
|
87
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
88
|
+
});
|
|
89
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
90
|
+
minVersion: "17.0.0",
|
|
91
|
+
version: "22.2.1",
|
|
92
|
+
type: AerisRadioButton,
|
|
93
|
+
isStandalone: true,
|
|
94
|
+
selector: "aeris-radio-button",
|
|
95
|
+
inputs: {
|
|
96
|
+
selected: {
|
|
97
|
+
classPropertyName: "selected",
|
|
98
|
+
publicName: "selected",
|
|
99
|
+
isSignal: true,
|
|
100
|
+
isRequired: false,
|
|
101
|
+
transformFunction: null
|
|
102
|
+
},
|
|
103
|
+
value: {
|
|
104
|
+
classPropertyName: "value",
|
|
105
|
+
publicName: "value",
|
|
106
|
+
isSignal: true,
|
|
107
|
+
isRequired: true,
|
|
108
|
+
transformFunction: null
|
|
109
|
+
},
|
|
110
|
+
name: {
|
|
111
|
+
classPropertyName: "name",
|
|
112
|
+
publicName: "name",
|
|
113
|
+
isSignal: true,
|
|
114
|
+
isRequired: false,
|
|
115
|
+
transformFunction: null
|
|
116
|
+
},
|
|
117
|
+
inputId: {
|
|
118
|
+
classPropertyName: "inputId",
|
|
119
|
+
publicName: "inputId",
|
|
120
|
+
isSignal: true,
|
|
121
|
+
isRequired: false,
|
|
122
|
+
transformFunction: null
|
|
123
|
+
},
|
|
124
|
+
label: {
|
|
125
|
+
classPropertyName: "label",
|
|
126
|
+
publicName: "label",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
},
|
|
131
|
+
size: {
|
|
132
|
+
classPropertyName: "size",
|
|
133
|
+
publicName: "size",
|
|
134
|
+
isSignal: true,
|
|
135
|
+
isRequired: false,
|
|
136
|
+
transformFunction: null
|
|
137
|
+
},
|
|
138
|
+
labelPosition: {
|
|
139
|
+
classPropertyName: "labelPosition",
|
|
140
|
+
publicName: "labelPosition",
|
|
141
|
+
isSignal: true,
|
|
142
|
+
isRequired: false,
|
|
143
|
+
transformFunction: null
|
|
144
|
+
},
|
|
145
|
+
disabled: {
|
|
146
|
+
classPropertyName: "disabled",
|
|
147
|
+
publicName: "disabled",
|
|
148
|
+
isSignal: true,
|
|
149
|
+
isRequired: false,
|
|
150
|
+
transformFunction: null
|
|
151
|
+
},
|
|
152
|
+
required: {
|
|
153
|
+
classPropertyName: "required",
|
|
154
|
+
publicName: "required",
|
|
155
|
+
isSignal: true,
|
|
156
|
+
isRequired: false,
|
|
157
|
+
transformFunction: null
|
|
158
|
+
},
|
|
159
|
+
invalid: {
|
|
160
|
+
classPropertyName: "invalid",
|
|
161
|
+
publicName: "invalid",
|
|
162
|
+
isSignal: true,
|
|
163
|
+
isRequired: false,
|
|
164
|
+
transformFunction: null
|
|
165
|
+
},
|
|
166
|
+
touched: {
|
|
167
|
+
classPropertyName: "touched",
|
|
168
|
+
publicName: "touched",
|
|
169
|
+
isSignal: true,
|
|
170
|
+
isRequired: false,
|
|
171
|
+
transformFunction: null
|
|
172
|
+
},
|
|
173
|
+
ariaLabel: {
|
|
174
|
+
classPropertyName: "ariaLabel",
|
|
175
|
+
publicName: "ariaLabel",
|
|
176
|
+
isSignal: true,
|
|
177
|
+
isRequired: false,
|
|
178
|
+
transformFunction: null
|
|
179
|
+
},
|
|
180
|
+
ariaLabelledBy: {
|
|
181
|
+
classPropertyName: "ariaLabelledBy",
|
|
182
|
+
publicName: "ariaLabelledBy",
|
|
183
|
+
isSignal: true,
|
|
184
|
+
isRequired: false,
|
|
185
|
+
transformFunction: null
|
|
186
|
+
},
|
|
187
|
+
ariaDescribedBy: {
|
|
188
|
+
classPropertyName: "ariaDescribedBy",
|
|
189
|
+
publicName: "ariaDescribedBy",
|
|
190
|
+
isSignal: true,
|
|
191
|
+
isRequired: false,
|
|
192
|
+
transformFunction: null
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
outputs: {
|
|
196
|
+
selected: "selectedChange",
|
|
197
|
+
changed: "changed",
|
|
198
|
+
focused: "focused",
|
|
199
|
+
blurred: "blurred",
|
|
200
|
+
touch: "touch"
|
|
201
|
+
},
|
|
202
|
+
host: { properties: {
|
|
203
|
+
"attr.data-selected": "isSelected()",
|
|
204
|
+
"attr.data-disabled": "effectiveDisabled()"
|
|
205
|
+
} },
|
|
206
|
+
providers: [{
|
|
207
|
+
provide: NG_VALUE_ACCESSOR,
|
|
208
|
+
useExisting: forwardRef(() => AerisRadioButton),
|
|
209
|
+
multi: true
|
|
210
|
+
}],
|
|
211
|
+
viewQueries: [{
|
|
212
|
+
propertyName: "radioInput",
|
|
213
|
+
first: true,
|
|
214
|
+
predicate: ["radioInput"],
|
|
215
|
+
descendants: true,
|
|
216
|
+
isSignal: true
|
|
217
|
+
}],
|
|
218
|
+
ngImport: i0,
|
|
219
|
+
template: `
|
|
99
220
|
<label
|
|
100
221
|
class="aeris-radio"
|
|
101
222
|
[class.aeris-radio--label-start]="labelPosition() === 'start'"
|
|
@@ -134,11 +255,21 @@ class AerisRadioButton {
|
|
|
134
255
|
}
|
|
135
256
|
</span>
|
|
136
257
|
</label>
|
|
137
|
-
`,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
258
|
+
`,
|
|
259
|
+
isInline: true,
|
|
260
|
+
styles: [":host{display:inline-block;max-width:100%;color:var(--aeris-radio-label-color, var(--aeris-text-2, #4e524a));font:inherit}.aeris-radio{--aeris-radio-size: 1.125rem;--aeris-radio-dot-size: .5rem;--aeris-radio-gap: .625rem;display:inline-flex;align-items:center;gap:var(--aeris-radio-gap);max-width:100%;min-height:2rem;color:inherit;font:inherit;font-size:.875rem;line-height:1.45;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.aeris-radio[data-size=xs]{--aeris-radio-size: .875rem;--aeris-radio-dot-size: .375rem;--aeris-radio-gap: .4375rem;min-height:1.5rem;font-size:.75rem}.aeris-radio[data-size=sm]{--aeris-radio-size: 1rem;--aeris-radio-dot-size: .4375rem;--aeris-radio-gap: .5rem;min-height:1.75rem;font-size:.8125rem}.aeris-radio[data-size=lg]{--aeris-radio-size: 1.25rem;--aeris-radio-dot-size: .5625rem;--aeris-radio-gap: .6875rem;min-height:2.25rem;font-size:.9375rem}.aeris-radio--label-start{flex-direction:row-reverse}.aeris-radio__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}.aeris-radio__control{display:inline-grid;flex:0 0 auto;place-items:center;width:var(--aeris-radio-size);height:var(--aeris-radio-size);box-sizing:border-box;border:1.5px solid var(--aeris-radio-border, var(--aeris-border, #deddd7));border-radius:50%;background:var(--aeris-radio-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-radio-shadow, none);transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease,transform .15s ease}.aeris-radio__dot{width:var(--aeris-radio-dot-size);height:var(--aeris-radio-dot-size);border-radius:50%;background:transparent;opacity:0;transform:scale(.35);transition:opacity .14s ease,transform .16s cubic-bezier(.2,.8,.2,1)}.aeris-radio__label{min-width:0}.aeris-radio:hover .aeris-radio__control{border-color:var(--aeris-radio-hover-border, var(--aeris-primary, #768653))}.aeris-radio__input:checked+.aeris-radio__control{border:calc((var(--aeris-radio-size) - var(--aeris-radio-dot-size)) / 2) solid var(--aeris-radio-selected-color, var(--aeris-primary, #768653));background:transparent}.aeris-radio__input:checked+.aeris-radio__control .aeris-radio__dot{opacity:1;transform:scale(1)}.aeris-radio__input:focus-visible+.aeris-radio__control{outline:3px solid var(--aeris-radio-focus-ring, color-mix(in srgb, var(--aeris-focus, var(--aeris-primary, #2c432c)) 42%, transparent));outline-offset:2px}.aeris-radio[data-invalid=true] .aeris-radio__control,.aeris-radio__input:user-invalid+.aeris-radio__control{border-color:var(--aeris-danger, #c81e2a)}.aeris-radio[data-disabled=true]{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-radio[data-disabled=true]:hover .aeris-radio__control{border-color:var(--aeris-radio-border, var(--aeris-border, #deddd7))}@media(prefers-reduced-motion:reduce){.aeris-radio__control,.aeris-radio__dot{transition:none}}\n"]
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
264
|
+
minVersion: "12.0.0",
|
|
265
|
+
version: "22.2.1",
|
|
266
|
+
ngImport: i0,
|
|
267
|
+
type: AerisRadioButton,
|
|
268
|
+
decorators: [{
|
|
269
|
+
type: Component,
|
|
270
|
+
args: [{
|
|
271
|
+
selector: "aeris-radio-button",
|
|
272
|
+
template: `
|
|
142
273
|
<label
|
|
143
274
|
class="aeris-radio"
|
|
144
275
|
[class.aeris-radio--label-start]="labelPosition() === 'start'"
|
|
@@ -177,21 +308,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
177
308
|
}
|
|
178
309
|
</span>
|
|
179
310
|
</label>
|
|
180
|
-
`,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
311
|
+
`,
|
|
312
|
+
providers: [{
|
|
313
|
+
provide: NG_VALUE_ACCESSOR,
|
|
314
|
+
useExisting: forwardRef(() => AerisRadioButton),
|
|
315
|
+
multi: true
|
|
316
|
+
}],
|
|
317
|
+
host: {
|
|
318
|
+
"[attr.data-selected]": "isSelected()",
|
|
319
|
+
"[attr.data-disabled]": "effectiveDisabled()"
|
|
320
|
+
},
|
|
321
|
+
styles: [":host{display:inline-block;max-width:100%;color:var(--aeris-radio-label-color, var(--aeris-text-2, #4e524a));font:inherit}.aeris-radio{--aeris-radio-size: 1.125rem;--aeris-radio-dot-size: .5rem;--aeris-radio-gap: .625rem;display:inline-flex;align-items:center;gap:var(--aeris-radio-gap);max-width:100%;min-height:2rem;color:inherit;font:inherit;font-size:.875rem;line-height:1.45;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.aeris-radio[data-size=xs]{--aeris-radio-size: .875rem;--aeris-radio-dot-size: .375rem;--aeris-radio-gap: .4375rem;min-height:1.5rem;font-size:.75rem}.aeris-radio[data-size=sm]{--aeris-radio-size: 1rem;--aeris-radio-dot-size: .4375rem;--aeris-radio-gap: .5rem;min-height:1.75rem;font-size:.8125rem}.aeris-radio[data-size=lg]{--aeris-radio-size: 1.25rem;--aeris-radio-dot-size: .5625rem;--aeris-radio-gap: .6875rem;min-height:2.25rem;font-size:.9375rem}.aeris-radio--label-start{flex-direction:row-reverse}.aeris-radio__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}.aeris-radio__control{display:inline-grid;flex:0 0 auto;place-items:center;width:var(--aeris-radio-size);height:var(--aeris-radio-size);box-sizing:border-box;border:1.5px solid var(--aeris-radio-border, var(--aeris-border, #deddd7));border-radius:50%;background:var(--aeris-radio-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-radio-shadow, none);transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease,transform .15s ease}.aeris-radio__dot{width:var(--aeris-radio-dot-size);height:var(--aeris-radio-dot-size);border-radius:50%;background:transparent;opacity:0;transform:scale(.35);transition:opacity .14s ease,transform .16s cubic-bezier(.2,.8,.2,1)}.aeris-radio__label{min-width:0}.aeris-radio:hover .aeris-radio__control{border-color:var(--aeris-radio-hover-border, var(--aeris-primary, #768653))}.aeris-radio__input:checked+.aeris-radio__control{border:calc((var(--aeris-radio-size) - var(--aeris-radio-dot-size)) / 2) solid var(--aeris-radio-selected-color, var(--aeris-primary, #768653));background:transparent}.aeris-radio__input:checked+.aeris-radio__control .aeris-radio__dot{opacity:1;transform:scale(1)}.aeris-radio__input:focus-visible+.aeris-radio__control{outline:3px solid var(--aeris-radio-focus-ring, color-mix(in srgb, var(--aeris-focus, var(--aeris-primary, #2c432c)) 42%, transparent));outline-offset:2px}.aeris-radio[data-invalid=true] .aeris-radio__control,.aeris-radio__input:user-invalid+.aeris-radio__control{border-color:var(--aeris-danger, #c81e2a)}.aeris-radio[data-disabled=true]{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-radio[data-disabled=true]:hover .aeris-radio__control{border-color:var(--aeris-radio-border, var(--aeris-border, #deddd7))}@media(prefers-reduced-motion:reduce){.aeris-radio__control,.aeris-radio__dot{transition:none}}\n"]
|
|
322
|
+
}]
|
|
323
|
+
}],
|
|
324
|
+
propDecorators: {
|
|
325
|
+
selected: [{
|
|
326
|
+
type: i0.Input,
|
|
327
|
+
args: [{
|
|
328
|
+
isSignal: true,
|
|
329
|
+
alias: "selected",
|
|
330
|
+
required: false
|
|
331
|
+
}]
|
|
332
|
+
}, {
|
|
333
|
+
type: i0.Output,
|
|
334
|
+
args: ["selectedChange"]
|
|
335
|
+
}],
|
|
336
|
+
value: [{
|
|
337
|
+
type: i0.Input,
|
|
338
|
+
args: [{
|
|
339
|
+
isSignal: true,
|
|
340
|
+
alias: "value",
|
|
341
|
+
required: true
|
|
342
|
+
}]
|
|
343
|
+
}],
|
|
344
|
+
name: [{
|
|
345
|
+
type: i0.Input,
|
|
346
|
+
args: [{
|
|
347
|
+
isSignal: true,
|
|
348
|
+
alias: "name",
|
|
349
|
+
required: false
|
|
350
|
+
}]
|
|
351
|
+
}],
|
|
352
|
+
inputId: [{
|
|
353
|
+
type: i0.Input,
|
|
354
|
+
args: [{
|
|
355
|
+
isSignal: true,
|
|
356
|
+
alias: "inputId",
|
|
357
|
+
required: false
|
|
358
|
+
}]
|
|
359
|
+
}],
|
|
360
|
+
label: [{
|
|
361
|
+
type: i0.Input,
|
|
362
|
+
args: [{
|
|
363
|
+
isSignal: true,
|
|
364
|
+
alias: "label",
|
|
365
|
+
required: false
|
|
366
|
+
}]
|
|
367
|
+
}],
|
|
368
|
+
size: [{
|
|
369
|
+
type: i0.Input,
|
|
370
|
+
args: [{
|
|
371
|
+
isSignal: true,
|
|
372
|
+
alias: "size",
|
|
373
|
+
required: false
|
|
374
|
+
}]
|
|
375
|
+
}],
|
|
376
|
+
labelPosition: [{
|
|
377
|
+
type: i0.Input,
|
|
378
|
+
args: [{
|
|
379
|
+
isSignal: true,
|
|
380
|
+
alias: "labelPosition",
|
|
381
|
+
required: false
|
|
382
|
+
}]
|
|
383
|
+
}],
|
|
384
|
+
disabled: [{
|
|
385
|
+
type: i0.Input,
|
|
386
|
+
args: [{
|
|
387
|
+
isSignal: true,
|
|
388
|
+
alias: "disabled",
|
|
389
|
+
required: false
|
|
390
|
+
}]
|
|
391
|
+
}],
|
|
392
|
+
required: [{
|
|
393
|
+
type: i0.Input,
|
|
394
|
+
args: [{
|
|
395
|
+
isSignal: true,
|
|
396
|
+
alias: "required",
|
|
397
|
+
required: false
|
|
398
|
+
}]
|
|
399
|
+
}],
|
|
400
|
+
invalid: [{
|
|
401
|
+
type: i0.Input,
|
|
402
|
+
args: [{
|
|
403
|
+
isSignal: true,
|
|
404
|
+
alias: "invalid",
|
|
405
|
+
required: false
|
|
406
|
+
}]
|
|
407
|
+
}],
|
|
408
|
+
touched: [{
|
|
409
|
+
type: i0.Input,
|
|
410
|
+
args: [{
|
|
411
|
+
isSignal: true,
|
|
412
|
+
alias: "touched",
|
|
413
|
+
required: false
|
|
414
|
+
}]
|
|
415
|
+
}],
|
|
416
|
+
ariaLabel: [{
|
|
417
|
+
type: i0.Input,
|
|
418
|
+
args: [{
|
|
419
|
+
isSignal: true,
|
|
420
|
+
alias: "ariaLabel",
|
|
421
|
+
required: false
|
|
422
|
+
}]
|
|
423
|
+
}],
|
|
424
|
+
ariaLabelledBy: [{
|
|
425
|
+
type: i0.Input,
|
|
426
|
+
args: [{
|
|
427
|
+
isSignal: true,
|
|
428
|
+
alias: "ariaLabelledBy",
|
|
429
|
+
required: false
|
|
430
|
+
}]
|
|
431
|
+
}],
|
|
432
|
+
ariaDescribedBy: [{
|
|
433
|
+
type: i0.Input,
|
|
434
|
+
args: [{
|
|
435
|
+
isSignal: true,
|
|
436
|
+
alias: "ariaDescribedBy",
|
|
437
|
+
required: false
|
|
438
|
+
}]
|
|
439
|
+
}],
|
|
440
|
+
changed: [{
|
|
441
|
+
type: i0.Output,
|
|
442
|
+
args: ["changed"]
|
|
443
|
+
}],
|
|
444
|
+
focused: [{
|
|
445
|
+
type: i0.Output,
|
|
446
|
+
args: ["focused"]
|
|
447
|
+
}],
|
|
448
|
+
blurred: [{
|
|
449
|
+
type: i0.Output,
|
|
450
|
+
args: ["blurred"]
|
|
451
|
+
}],
|
|
452
|
+
touch: [{
|
|
453
|
+
type: i0.Output,
|
|
454
|
+
args: ["touch"]
|
|
455
|
+
}],
|
|
456
|
+
radioInput: [{
|
|
457
|
+
type: i0.ViewChild,
|
|
458
|
+
args: ["radioInput", { isSignal: true }]
|
|
459
|
+
}]
|
|
460
|
+
}
|
|
461
|
+
});
|
|
196
462
|
export { AerisRadioButton };
|
|
197
|
-
|
|
463
|
+
|
|
464
|
+
//# sourceMappingURL=aeris-ui-core-radio-button.mjs.map
|