@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10
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 +200 -191
- 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 +1228 -446
- 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 +209 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
- 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 +741 -139
- 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 +773 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
- 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 +440 -140
- 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-code-block.mjs +637 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +823 -318
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
- 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 +1015 -322
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +967 -587
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
- 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 +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
- 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 -98
- 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 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
- 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 +613 -382
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
- 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 +623 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
- 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 +925 -249
- 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 +912 -375
- 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 +394 -124
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- 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 +226 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1845 -648
- 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 +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
- 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 +2034 -869
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
- 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 +1076 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- 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 +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +985 -316
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +20 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +412 -125
- package/styles/controls.css +61 -29
- package/tools/aeris-theme.mjs +2 -2
- package/tools/aeris-theme.schema.json +5 -2
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +327 -140
- 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 -46
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +201 -117
- package/types/aeris-ui-core-cascade-select.d.ts +257 -123
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -54
- 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-code-block.d.ts +188 -0
- package/types/aeris-ui-core-color-picker.d.ts +348 -143
- package/types/aeris-ui-core-compare.d.ts +224 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +264 -146
- package/types/aeris-ui-core-date-picker.d.ts +489 -217
- package/types/aeris-ui-core-dialog.d.ts +288 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
- package/types/aeris-ui-core-editor.d.ts +250 -123
- package/types/aeris-ui-core-file-upload.d.ts +367 -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 +163 -0
- package/types/aeris-ui-core-galleria.d.ts +588 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +194 -69
- package/types/aeris-ui-core-input-number.d.ts +272 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +185 -60
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +175 -121
- package/types/aeris-ui-core-menu.d.ts +277 -168
- package/types/aeris-ui-core-menubar.d.ts +273 -135
- package/types/aeris-ui-core-message.d.ts +132 -60
- package/types/aeris-ui-core-meter-group.d.ts +163 -90
- package/types/aeris-ui-core-multi-select.d.ts +439 -180
- package/types/aeris-ui-core-order-list.d.ts +144 -66
- package/types/aeris-ui-core-organization-chart.d.ts +133 -77
- package/types/aeris-ui-core-paginator.d.ts +93 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +258 -102
- package/types/aeris-ui-core-pick-list.d.ts +374 -179
- package/types/aeris-ui-core-popover.d.ts +219 -105
- package/types/aeris-ui-core-progress-bar.d.ts +157 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -50
- 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 +66 -29
- package/types/aeris-ui-core-select.d.ts +475 -217
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +225 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +596 -304
- package/types/aeris-ui-core-tabs.d.ts +181 -76
- package/types/aeris-ui-core-textarea.d.ts +261 -78
- package/types/aeris-ui-core-theme-builder.d.ts +472 -450
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +225 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +364 -171
- package/types/aeris-ui-core-tree-table.d.ts +566 -286
- package/types/aeris-ui-core-tree.d.ts +270 -165
- package/types/aeris-ui-core.d.ts +197 -72
|
@@ -1,291 +1,547 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
var AerisCompareBeforeTemplate = class AerisCompareBeforeTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
|
+
minVersion: "12.0.0",
|
|
12
|
+
version: "22.2.2",
|
|
13
|
+
ngImport: i0,
|
|
14
|
+
type: AerisCompareBeforeTemplate,
|
|
15
|
+
deps: [],
|
|
16
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17
|
+
});
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
19
|
+
minVersion: "14.0.0",
|
|
20
|
+
version: "22.2.2",
|
|
21
|
+
type: AerisCompareBeforeTemplate,
|
|
22
|
+
isStandalone: true,
|
|
23
|
+
selector: "ng-template[aerisCompareBefore]",
|
|
24
|
+
ngImport: i0
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
28
|
+
minVersion: "12.0.0",
|
|
29
|
+
version: "22.2.2",
|
|
30
|
+
ngImport: i0,
|
|
31
|
+
type: AerisCompareBeforeTemplate,
|
|
32
|
+
decorators: [{
|
|
33
|
+
type: Directive,
|
|
34
|
+
args: [{ selector: "ng-template[aerisCompareBefore]" }]
|
|
35
|
+
}]
|
|
36
|
+
});
|
|
37
|
+
var AerisCompareAfterTemplate = class AerisCompareAfterTemplate {
|
|
38
|
+
template = inject(TemplateRef);
|
|
39
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
43
|
+
minVersion: "12.0.0",
|
|
44
|
+
version: "22.2.2",
|
|
45
|
+
ngImport: i0,
|
|
46
|
+
type: AerisCompareAfterTemplate,
|
|
47
|
+
deps: [],
|
|
48
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
49
|
+
});
|
|
50
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
51
|
+
minVersion: "14.0.0",
|
|
52
|
+
version: "22.2.2",
|
|
53
|
+
type: AerisCompareAfterTemplate,
|
|
54
|
+
isStandalone: true,
|
|
55
|
+
selector: "ng-template[aerisCompareAfter]",
|
|
56
|
+
ngImport: i0
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
60
|
+
minVersion: "12.0.0",
|
|
61
|
+
version: "22.2.2",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: AerisCompareAfterTemplate,
|
|
64
|
+
decorators: [{
|
|
65
|
+
type: Directive,
|
|
66
|
+
args: [{ selector: "ng-template[aerisCompareAfter]" }]
|
|
67
|
+
}]
|
|
68
|
+
});
|
|
69
|
+
var AerisCompareHandleTemplate = class AerisCompareHandleTemplate {
|
|
70
|
+
template = inject(TemplateRef);
|
|
71
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
75
|
+
minVersion: "12.0.0",
|
|
76
|
+
version: "22.2.2",
|
|
77
|
+
ngImport: i0,
|
|
78
|
+
type: AerisCompareHandleTemplate,
|
|
79
|
+
deps: [],
|
|
80
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
81
|
+
});
|
|
82
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
83
|
+
minVersion: "14.0.0",
|
|
84
|
+
version: "22.2.2",
|
|
85
|
+
type: AerisCompareHandleTemplate,
|
|
86
|
+
isStandalone: true,
|
|
87
|
+
selector: "ng-template[aerisCompareHandle]",
|
|
88
|
+
ngImport: i0
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
92
|
+
minVersion: "12.0.0",
|
|
93
|
+
version: "22.2.2",
|
|
94
|
+
ngImport: i0,
|
|
95
|
+
type: AerisCompareHandleTemplate,
|
|
96
|
+
decorators: [{
|
|
97
|
+
type: Directive,
|
|
98
|
+
args: [{ selector: "ng-template[aerisCompareHandle]" }]
|
|
99
|
+
}]
|
|
100
|
+
});
|
|
42
101
|
let compareId = 0;
|
|
43
|
-
class AerisCompare {
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
102
|
+
var AerisCompare = class AerisCompare {
|
|
103
|
+
host = inject(ElementRef);
|
|
104
|
+
rangeInput = viewChild.required("rangeInput", ...ngDevMode ? [{ debugName: "rangeInput" }] : /* istanbul ignore next */ []);
|
|
105
|
+
beforeTemplate = contentChild(AerisCompareBeforeTemplate, ...ngDevMode ? [{ debugName: "beforeTemplate" }] : /* istanbul ignore next */ []);
|
|
106
|
+
afterTemplate = contentChild(AerisCompareAfterTemplate, ...ngDevMode ? [{ debugName: "afterTemplate" }] : /* istanbul ignore next */ []);
|
|
107
|
+
handleTemplate = contentChild(AerisCompareHandleTemplate, ...ngDevMode ? [{ debugName: "handleTemplate" }] : /* istanbul ignore next */ []);
|
|
108
|
+
generatedInputId = `aeris-compare-${++compareId}`;
|
|
109
|
+
value = model(50, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
110
|
+
min = input(0, {
|
|
111
|
+
...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: numberAttribute
|
|
113
|
+
});
|
|
114
|
+
max = input(100, {
|
|
115
|
+
...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
|
|
116
|
+
transform: numberAttribute
|
|
117
|
+
});
|
|
118
|
+
step = input(1, {
|
|
119
|
+
...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
|
|
120
|
+
transform: numberAttribute
|
|
121
|
+
});
|
|
122
|
+
orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
123
|
+
slideOnHover = input(false, {
|
|
124
|
+
...ngDevMode ? { debugName: "slideOnHover" } : /* istanbul ignore next */ {},
|
|
125
|
+
transform: booleanAttribute
|
|
126
|
+
});
|
|
127
|
+
disabled = input(false, {
|
|
128
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
129
|
+
transform: booleanAttribute
|
|
130
|
+
});
|
|
131
|
+
readonly = input(false, {
|
|
132
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
133
|
+
transform: booleanAttribute
|
|
134
|
+
});
|
|
135
|
+
beforeSrc = input("", ...ngDevMode ? [{ debugName: "beforeSrc" }] : /* istanbul ignore next */ []);
|
|
136
|
+
afterSrc = input("", ...ngDevMode ? [{ debugName: "afterSrc" }] : /* istanbul ignore next */ []);
|
|
137
|
+
beforeAlt = input("", ...ngDevMode ? [{ debugName: "beforeAlt" }] : /* istanbul ignore next */ []);
|
|
138
|
+
afterAlt = input("", ...ngDevMode ? [{ debugName: "afterAlt" }] : /* istanbul ignore next */ []);
|
|
139
|
+
beforeLabel = input("Before", ...ngDevMode ? [{ debugName: "beforeLabel" }] : /* istanbul ignore next */ []);
|
|
140
|
+
afterLabel = input("After", ...ngDevMode ? [{ debugName: "afterLabel" }] : /* istanbul ignore next */ []);
|
|
141
|
+
showLabels = input(false, {
|
|
142
|
+
...ngDevMode ? { debugName: "showLabels" } : /* istanbul ignore next */ {},
|
|
143
|
+
transform: booleanAttribute
|
|
144
|
+
});
|
|
145
|
+
objectFit = input("cover", ...ngDevMode ? [{ debugName: "objectFit" }] : /* istanbul ignore next */ []);
|
|
146
|
+
aspectRatio = input("16 / 9", ...ngDevMode ? [{ debugName: "aspectRatio" }] : /* istanbul ignore next */ []);
|
|
147
|
+
loading = input("lazy", ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
|
|
148
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
149
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
150
|
+
ariaLabel = input("Comparison position", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
151
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
152
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
153
|
+
valueText = input(null, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
|
|
154
|
+
changed = output();
|
|
155
|
+
focused = output();
|
|
156
|
+
blurred = output();
|
|
157
|
+
touch = output();
|
|
158
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
159
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
160
|
+
normalizedMin = computed(() => this.finiteNumber(this.min(), 0), ...ngDevMode ? [{ debugName: "normalizedMin" }] : /* istanbul ignore next */ []);
|
|
161
|
+
normalizedMax = computed(() => {
|
|
162
|
+
const maximum = this.finiteNumber(this.max(), 100);
|
|
163
|
+
return maximum > this.normalizedMin() ? maximum : this.normalizedMin() + 1;
|
|
164
|
+
}, ...ngDevMode ? [{ debugName: "normalizedMax" }] : /* istanbul ignore next */ []);
|
|
165
|
+
effectiveStep = computed(() => {
|
|
166
|
+
const step = this.finiteNumber(this.step(), 1);
|
|
167
|
+
return step > 0 ? step : 1;
|
|
168
|
+
}, ...ngDevMode ? [{ debugName: "effectiveStep" }] : /* istanbul ignore next */ []);
|
|
169
|
+
normalizedValue = computed(() => this.alignValue(this.value()), ...ngDevMode ? [{ debugName: "normalizedValue" }] : /* istanbul ignore next */ []);
|
|
170
|
+
percentage = computed(() => (this.normalizedValue() - this.normalizedMin()) / (this.normalizedMax() - this.normalizedMin()) * 100, ...ngDevMode ? [{ debugName: "percentage" }] : /* istanbul ignore next */ []);
|
|
171
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedInputId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
172
|
+
contentContext = computed(() => ({
|
|
173
|
+
$implicit: this.normalizedValue(),
|
|
174
|
+
value: this.normalizedValue(),
|
|
175
|
+
percentage: this.percentage()
|
|
176
|
+
}), ...ngDevMode ? [{ debugName: "contentContext" }] : /* istanbul ignore next */ []);
|
|
177
|
+
handleContext = computed(() => ({
|
|
178
|
+
...this.contentContext(),
|
|
179
|
+
orientation: this.orientation(),
|
|
180
|
+
disabled: this.effectiveDisabled()
|
|
181
|
+
}), ...ngDevMode ? [{ debugName: "handleContext" }] : /* istanbul ignore next */ []);
|
|
182
|
+
resolvedValueText = computed(() => {
|
|
183
|
+
const formatter = this.valueText();
|
|
184
|
+
return formatter ? formatter(this.normalizedValue()) : `${Math.round(this.percentage())}%`;
|
|
185
|
+
}, ...ngDevMode ? [{ debugName: "resolvedValueText" }] : /* istanbul ignore next */ []);
|
|
186
|
+
onChange = () => void 0;
|
|
187
|
+
onTouched = () => void 0;
|
|
188
|
+
setValue(value, emitChange = true) {
|
|
189
|
+
const next = this.alignValue(value);
|
|
190
|
+
if (next === this.normalizedValue()) return;
|
|
191
|
+
this.value.set(next);
|
|
192
|
+
this.onChange(next);
|
|
193
|
+
if (emitChange) this.changed.emit({
|
|
194
|
+
originalEvent: new Event("change"),
|
|
195
|
+
value: next
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
focus() {
|
|
199
|
+
this.rangeInput().nativeElement.focus();
|
|
200
|
+
}
|
|
201
|
+
writeValue(value) {
|
|
202
|
+
if (value !== null) this.value.set(this.alignValue(value));
|
|
203
|
+
}
|
|
204
|
+
registerOnChange(callback) {
|
|
205
|
+
this.onChange = callback;
|
|
206
|
+
}
|
|
207
|
+
registerOnTouched(callback) {
|
|
208
|
+
this.onTouched = callback;
|
|
209
|
+
}
|
|
210
|
+
setDisabledState(disabled) {
|
|
211
|
+
this.formDisabled.set(disabled);
|
|
212
|
+
}
|
|
213
|
+
handleInput(event) {
|
|
214
|
+
const input = event.currentTarget;
|
|
215
|
+
if (this.readonly()) {
|
|
216
|
+
input.value = `${this.normalizedValue()}`;
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
const next = this.alignValue(input.valueAsNumber);
|
|
220
|
+
this.updateValue(next);
|
|
221
|
+
}
|
|
222
|
+
handleKeydown(event) {
|
|
223
|
+
const pageStep = this.effectiveStep() * 10;
|
|
224
|
+
let next;
|
|
225
|
+
switch (event.key) {
|
|
226
|
+
case "ArrowLeft":
|
|
227
|
+
case "ArrowDown":
|
|
228
|
+
next = this.normalizedValue() - this.effectiveStep();
|
|
229
|
+
break;
|
|
230
|
+
case "ArrowRight":
|
|
231
|
+
case "ArrowUp":
|
|
232
|
+
next = this.normalizedValue() + this.effectiveStep();
|
|
233
|
+
break;
|
|
234
|
+
case "PageDown":
|
|
235
|
+
next = this.normalizedValue() - pageStep;
|
|
236
|
+
break;
|
|
237
|
+
case "PageUp":
|
|
238
|
+
next = this.normalizedValue() + pageStep;
|
|
239
|
+
break;
|
|
240
|
+
case "Home":
|
|
241
|
+
next = this.normalizedMin();
|
|
242
|
+
break;
|
|
243
|
+
case "End":
|
|
244
|
+
next = this.normalizedMax();
|
|
245
|
+
break;
|
|
246
|
+
default: return;
|
|
247
|
+
}
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
if (this.readonly()) return;
|
|
250
|
+
const aligned = this.alignValue(next);
|
|
251
|
+
if (aligned === this.normalizedValue()) return;
|
|
252
|
+
this.updateValue(aligned);
|
|
253
|
+
const detail = {
|
|
254
|
+
originalEvent: event,
|
|
255
|
+
value: aligned
|
|
256
|
+
};
|
|
257
|
+
this.changed.emit(detail);
|
|
258
|
+
}
|
|
259
|
+
handleChange(event) {
|
|
260
|
+
if (this.readonly()) return;
|
|
261
|
+
const next = this.alignValue(event.currentTarget.valueAsNumber);
|
|
262
|
+
this.updateValue(next);
|
|
263
|
+
this.changed.emit({
|
|
264
|
+
originalEvent: event,
|
|
265
|
+
value: next
|
|
266
|
+
});
|
|
267
|
+
this.markTouched();
|
|
268
|
+
}
|
|
269
|
+
handleHover(event) {
|
|
270
|
+
if (!this.slideOnHover() || this.effectiveDisabled() || this.readonly() || event.pointerType === "touch" || event.buttons !== 0) return;
|
|
271
|
+
const bounds = this.host.nativeElement.getBoundingClientRect();
|
|
272
|
+
let ratio;
|
|
273
|
+
if (this.orientation() === "vertical") ratio = 1 - (event.clientY - bounds.top) / bounds.height;
|
|
274
|
+
else {
|
|
275
|
+
ratio = (event.clientX - bounds.left) / bounds.width;
|
|
276
|
+
if (getComputedStyle(this.host.nativeElement).direction === "rtl") ratio = 1 - ratio;
|
|
277
|
+
}
|
|
278
|
+
const next = this.alignValue(this.normalizedMin() + Math.min(1, Math.max(0, ratio)) * (this.normalizedMax() - this.normalizedMin()));
|
|
279
|
+
if (next === this.normalizedValue()) return;
|
|
280
|
+
this.updateValue(next);
|
|
281
|
+
}
|
|
282
|
+
handleBlur(event) {
|
|
283
|
+
this.markTouched();
|
|
284
|
+
this.blurred.emit(event);
|
|
285
|
+
}
|
|
286
|
+
updateValue(value) {
|
|
287
|
+
this.value.set(value);
|
|
288
|
+
this.onChange(value);
|
|
289
|
+
}
|
|
290
|
+
markTouched() {
|
|
291
|
+
this.onTouched();
|
|
292
|
+
this.touch.emit();
|
|
293
|
+
}
|
|
294
|
+
alignValue(value) {
|
|
295
|
+
const minimum = this.normalizedMin();
|
|
296
|
+
const maximum = this.normalizedMax();
|
|
297
|
+
const finite = this.finiteNumber(value, minimum);
|
|
298
|
+
const aligned = minimum + Math.round((finite - minimum) / this.effectiveStep()) * this.effectiveStep();
|
|
299
|
+
const precision = Math.max(this.decimalPlaces(minimum), this.decimalPlaces(maximum), this.decimalPlaces(this.effectiveStep()));
|
|
300
|
+
return Number(Math.min(maximum, Math.max(minimum, aligned)).toFixed(precision));
|
|
301
|
+
}
|
|
302
|
+
finiteNumber(value, fallback) {
|
|
303
|
+
return Number.isFinite(value) ? value : fallback;
|
|
304
|
+
}
|
|
305
|
+
decimalPlaces(value) {
|
|
306
|
+
const exponent = value.toString().split(/[eE]/u);
|
|
307
|
+
if (exponent.length > 1) return Math.max(0, (exponent[0]?.split(".")[1]?.length ?? 0) - Number(exponent[1]));
|
|
308
|
+
return value.toString().split(".")[1]?.length ?? 0;
|
|
309
|
+
}
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
311
|
+
minVersion: "12.0.0",
|
|
312
|
+
version: "22.2.2",
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
type: AerisCompare,
|
|
315
|
+
deps: [],
|
|
316
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
317
|
+
});
|
|
318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
319
|
+
minVersion: "17.0.0",
|
|
320
|
+
version: "22.2.2",
|
|
321
|
+
type: AerisCompare,
|
|
322
|
+
isStandalone: true,
|
|
323
|
+
selector: "aeris-compare",
|
|
324
|
+
inputs: {
|
|
325
|
+
value: {
|
|
326
|
+
classPropertyName: "value",
|
|
327
|
+
publicName: "value",
|
|
328
|
+
isSignal: true,
|
|
329
|
+
isRequired: false,
|
|
330
|
+
transformFunction: null
|
|
331
|
+
},
|
|
332
|
+
min: {
|
|
333
|
+
classPropertyName: "min",
|
|
334
|
+
publicName: "min",
|
|
335
|
+
isSignal: true,
|
|
336
|
+
isRequired: false,
|
|
337
|
+
transformFunction: null
|
|
338
|
+
},
|
|
339
|
+
max: {
|
|
340
|
+
classPropertyName: "max",
|
|
341
|
+
publicName: "max",
|
|
342
|
+
isSignal: true,
|
|
343
|
+
isRequired: false,
|
|
344
|
+
transformFunction: null
|
|
345
|
+
},
|
|
346
|
+
step: {
|
|
347
|
+
classPropertyName: "step",
|
|
348
|
+
publicName: "step",
|
|
349
|
+
isSignal: true,
|
|
350
|
+
isRequired: false,
|
|
351
|
+
transformFunction: null
|
|
352
|
+
},
|
|
353
|
+
orientation: {
|
|
354
|
+
classPropertyName: "orientation",
|
|
355
|
+
publicName: "orientation",
|
|
356
|
+
isSignal: true,
|
|
357
|
+
isRequired: false,
|
|
358
|
+
transformFunction: null
|
|
359
|
+
},
|
|
360
|
+
slideOnHover: {
|
|
361
|
+
classPropertyName: "slideOnHover",
|
|
362
|
+
publicName: "slideOnHover",
|
|
363
|
+
isSignal: true,
|
|
364
|
+
isRequired: false,
|
|
365
|
+
transformFunction: null
|
|
366
|
+
},
|
|
367
|
+
disabled: {
|
|
368
|
+
classPropertyName: "disabled",
|
|
369
|
+
publicName: "disabled",
|
|
370
|
+
isSignal: true,
|
|
371
|
+
isRequired: false,
|
|
372
|
+
transformFunction: null
|
|
373
|
+
},
|
|
374
|
+
readonly: {
|
|
375
|
+
classPropertyName: "readonly",
|
|
376
|
+
publicName: "readonly",
|
|
377
|
+
isSignal: true,
|
|
378
|
+
isRequired: false,
|
|
379
|
+
transformFunction: null
|
|
380
|
+
},
|
|
381
|
+
beforeSrc: {
|
|
382
|
+
classPropertyName: "beforeSrc",
|
|
383
|
+
publicName: "beforeSrc",
|
|
384
|
+
isSignal: true,
|
|
385
|
+
isRequired: false,
|
|
386
|
+
transformFunction: null
|
|
387
|
+
},
|
|
388
|
+
afterSrc: {
|
|
389
|
+
classPropertyName: "afterSrc",
|
|
390
|
+
publicName: "afterSrc",
|
|
391
|
+
isSignal: true,
|
|
392
|
+
isRequired: false,
|
|
393
|
+
transformFunction: null
|
|
394
|
+
},
|
|
395
|
+
beforeAlt: {
|
|
396
|
+
classPropertyName: "beforeAlt",
|
|
397
|
+
publicName: "beforeAlt",
|
|
398
|
+
isSignal: true,
|
|
399
|
+
isRequired: false,
|
|
400
|
+
transformFunction: null
|
|
401
|
+
},
|
|
402
|
+
afterAlt: {
|
|
403
|
+
classPropertyName: "afterAlt",
|
|
404
|
+
publicName: "afterAlt",
|
|
405
|
+
isSignal: true,
|
|
406
|
+
isRequired: false,
|
|
407
|
+
transformFunction: null
|
|
408
|
+
},
|
|
409
|
+
beforeLabel: {
|
|
410
|
+
classPropertyName: "beforeLabel",
|
|
411
|
+
publicName: "beforeLabel",
|
|
412
|
+
isSignal: true,
|
|
413
|
+
isRequired: false,
|
|
414
|
+
transformFunction: null
|
|
415
|
+
},
|
|
416
|
+
afterLabel: {
|
|
417
|
+
classPropertyName: "afterLabel",
|
|
418
|
+
publicName: "afterLabel",
|
|
419
|
+
isSignal: true,
|
|
420
|
+
isRequired: false,
|
|
421
|
+
transformFunction: null
|
|
422
|
+
},
|
|
423
|
+
showLabels: {
|
|
424
|
+
classPropertyName: "showLabels",
|
|
425
|
+
publicName: "showLabels",
|
|
426
|
+
isSignal: true,
|
|
427
|
+
isRequired: false,
|
|
428
|
+
transformFunction: null
|
|
429
|
+
},
|
|
430
|
+
objectFit: {
|
|
431
|
+
classPropertyName: "objectFit",
|
|
432
|
+
publicName: "objectFit",
|
|
433
|
+
isSignal: true,
|
|
434
|
+
isRequired: false,
|
|
435
|
+
transformFunction: null
|
|
436
|
+
},
|
|
437
|
+
aspectRatio: {
|
|
438
|
+
classPropertyName: "aspectRatio",
|
|
439
|
+
publicName: "aspectRatio",
|
|
440
|
+
isSignal: true,
|
|
441
|
+
isRequired: false,
|
|
442
|
+
transformFunction: null
|
|
443
|
+
},
|
|
444
|
+
loading: {
|
|
445
|
+
classPropertyName: "loading",
|
|
446
|
+
publicName: "loading",
|
|
447
|
+
isSignal: true,
|
|
448
|
+
isRequired: false,
|
|
449
|
+
transformFunction: null
|
|
450
|
+
},
|
|
451
|
+
name: {
|
|
452
|
+
classPropertyName: "name",
|
|
453
|
+
publicName: "name",
|
|
454
|
+
isSignal: true,
|
|
455
|
+
isRequired: false,
|
|
456
|
+
transformFunction: null
|
|
457
|
+
},
|
|
458
|
+
inputId: {
|
|
459
|
+
classPropertyName: "inputId",
|
|
460
|
+
publicName: "inputId",
|
|
461
|
+
isSignal: true,
|
|
462
|
+
isRequired: false,
|
|
463
|
+
transformFunction: null
|
|
464
|
+
},
|
|
465
|
+
ariaLabel: {
|
|
466
|
+
classPropertyName: "ariaLabel",
|
|
467
|
+
publicName: "ariaLabel",
|
|
468
|
+
isSignal: true,
|
|
469
|
+
isRequired: false,
|
|
470
|
+
transformFunction: null
|
|
471
|
+
},
|
|
472
|
+
ariaLabelledBy: {
|
|
473
|
+
classPropertyName: "ariaLabelledBy",
|
|
474
|
+
publicName: "ariaLabelledBy",
|
|
475
|
+
isSignal: true,
|
|
476
|
+
isRequired: false,
|
|
477
|
+
transformFunction: null
|
|
478
|
+
},
|
|
479
|
+
ariaDescribedBy: {
|
|
480
|
+
classPropertyName: "ariaDescribedBy",
|
|
481
|
+
publicName: "ariaDescribedBy",
|
|
482
|
+
isSignal: true,
|
|
483
|
+
isRequired: false,
|
|
484
|
+
transformFunction: null
|
|
485
|
+
},
|
|
486
|
+
valueText: {
|
|
487
|
+
classPropertyName: "valueText",
|
|
488
|
+
publicName: "valueText",
|
|
489
|
+
isSignal: true,
|
|
490
|
+
isRequired: false,
|
|
491
|
+
transformFunction: null
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
outputs: {
|
|
495
|
+
value: "valueChange",
|
|
496
|
+
changed: "changed",
|
|
497
|
+
focused: "focused",
|
|
498
|
+
blurred: "blurred",
|
|
499
|
+
touch: "touch"
|
|
500
|
+
},
|
|
501
|
+
host: {
|
|
502
|
+
properties: {
|
|
503
|
+
"attr.data-orientation": "orientation()",
|
|
504
|
+
"attr.data-disabled": "effectiveDisabled() || null"
|
|
505
|
+
},
|
|
506
|
+
classAttribute: "aeris-compare-host"
|
|
507
|
+
},
|
|
508
|
+
providers: [{
|
|
509
|
+
provide: NG_VALUE_ACCESSOR,
|
|
510
|
+
useExisting: forwardRef(() => AerisCompare),
|
|
511
|
+
multi: true
|
|
512
|
+
}],
|
|
513
|
+
queries: [
|
|
514
|
+
{
|
|
515
|
+
propertyName: "beforeTemplate",
|
|
516
|
+
first: true,
|
|
517
|
+
predicate: AerisCompareBeforeTemplate,
|
|
518
|
+
descendants: true,
|
|
519
|
+
isSignal: true
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
propertyName: "afterTemplate",
|
|
523
|
+
first: true,
|
|
524
|
+
predicate: AerisCompareAfterTemplate,
|
|
525
|
+
descendants: true,
|
|
526
|
+
isSignal: true
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
propertyName: "handleTemplate",
|
|
530
|
+
first: true,
|
|
531
|
+
predicate: AerisCompareHandleTemplate,
|
|
532
|
+
descendants: true,
|
|
533
|
+
isSignal: true
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
viewQueries: [{
|
|
537
|
+
propertyName: "rangeInput",
|
|
538
|
+
first: true,
|
|
539
|
+
predicate: ["rangeInput"],
|
|
540
|
+
descendants: true,
|
|
541
|
+
isSignal: true
|
|
542
|
+
}],
|
|
543
|
+
ngImport: i0,
|
|
544
|
+
template: `
|
|
289
545
|
<div
|
|
290
546
|
class="aeris-compare"
|
|
291
547
|
[attr.data-orientation]="orientation()"
|
|
@@ -369,8 +625,8 @@ class AerisCompare {
|
|
|
369
625
|
[value]="normalizedValue()"
|
|
370
626
|
[disabled]="effectiveDisabled()"
|
|
371
627
|
[attr.aria-label]="ariaLabel() || null"
|
|
372
|
-
[attr.aria-labelledby]="
|
|
373
|
-
[attr.aria-describedby]="
|
|
628
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
629
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
374
630
|
[attr.aria-valuetext]="resolvedValueText()"
|
|
375
631
|
[attr.aria-orientation]="orientation()"
|
|
376
632
|
[attr.aria-readonly]="readonly() || null"
|
|
@@ -381,11 +637,32 @@ class AerisCompare {
|
|
|
381
637
|
(blur)="handleBlur($event)"
|
|
382
638
|
/>
|
|
383
639
|
</div>
|
|
384
|
-
`,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
640
|
+
`,
|
|
641
|
+
isInline: true,
|
|
642
|
+
styles: [":host{display:block;min-inline-size:0;max-inline-size:100%}.aeris-compare,.aeris-compare *,.aeris-compare *:before,.aeris-compare *:after{box-sizing:border-box}.aeris-compare{position:relative;inline-size:100%;min-inline-size:0;min-block-size:var(--aeris-compare-min-height, 12rem);overflow:hidden;border:var(--aeris-compare-border-width, 1px) solid var(--aeris-compare-border, var(--aeris-border));border-radius:var(--aeris-compare-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-compare-background, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-compare-color, var(--aeris-text, #111111));isolation:isolate;touch-action:pan-y;user-select:none;-webkit-user-select:none}.aeris-compare__layer{position:absolute;z-index:0;inset:0;display:grid;min-inline-size:0;min-block-size:0;place-items:center;overflow:hidden}.aeris-compare__layer--before{z-index:1;clip-path:inset(0 calc(100% - var(--_aeris-compare-position)) 0 0)}:host-context([dir=rtl]) .aeris-compare[data-orientation=horizontal] .aeris-compare__layer--before{clip-path:inset(0 0 0 calc(100% - var(--_aeris-compare-position)))}.aeris-compare[data-orientation=vertical] .aeris-compare__layer--before{clip-path:inset(calc(100% - var(--_aeris-compare-position)) 0 0 0)}.aeris-compare__image{display:block;inline-size:100%;block-size:100%;max-inline-size:none;max-block-size:none;object-fit:var(--_aeris-compare-object-fit, cover);pointer-events:none}.aeris-compare__empty{display:grid;inline-size:100%;block-size:100%;place-items:center;padding:var(--aeris-compare-empty-padding, 1.5rem);background:var(--aeris-compare-empty-background, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-compare-muted-color, var(--aeris-text-2, #454545));font:inherit;font-weight:var(--aeris-font-weight-bold, 700)}.aeris-compare__layer--before .aeris-compare__empty{background:var(--aeris-compare-before-empty-background, color-mix(in srgb, var(--aeris-primary, #111111) 14%, var(--aeris-surface, #fff)))}.aeris-compare__divider{position:absolute;z-index:2;inset-block:0;inset-inline-start:var(--_aeris-compare-position);inline-size:var(--aeris-compare-divider-size, 2px);background:var(--aeris-compare-divider-color, #fff);box-shadow:var(--aeris-compare-divider-shadow, 0 0 .75rem rgba(0, 0, 0, .28));transform:translate(-50%);pointer-events:none}:host-context([dir=rtl]) .aeris-compare__divider{transform:translate(50%)}.aeris-compare[data-orientation=vertical] .aeris-compare__divider{inset-block-start:calc(100% - var(--_aeris-compare-position));inset-inline:0;inline-size:auto;block-size:var(--aeris-compare-divider-size, 2px);transform:translateY(-50%)}.aeris-compare__handle{position:absolute;z-index:3;inset-block-start:50%;inset-inline-start:var(--_aeris-compare-position);display:grid;inline-size:var(--aeris-compare-handle-size, 2.25rem);block-size:var(--aeris-compare-handle-size, 2.25rem);place-items:center;border:var(--aeris-compare-handle-border-width, 2px) solid var(--aeris-compare-handle-border, #fff);border-radius:var(--aeris-compare-handle-radius, 999px);background:var(--aeris-compare-handle-background, rgba(20, 22, 18, .72));color:var(--aeris-compare-handle-color, #fff);box-shadow:var(--aeris-compare-handle-shadow, 0 .5rem 1.5rem rgba(0, 0, 0, .24));transform:translate(-50%,-50%);pointer-events:none;-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem);transition:scale var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host-context([dir=rtl]) .aeris-compare__handle{transform:translate(50%,-50%)}.aeris-compare[data-orientation=vertical] .aeris-compare__handle{inset-block-start:calc(100% - var(--_aeris-compare-position));inset-inline-start:50%;transform:translate(-50%,-50%)}.aeris-compare__handle-icon{position:relative;display:block;inline-size:1.25rem;block-size:1.25rem}.aeris-compare__handle-icon:before,.aeris-compare__handle-icon:after{position:absolute;inset-block-start:50%;inline-size:.45rem;block-size:.45rem;border-block-start:2px solid currentColor;border-inline-start:2px solid currentColor;content:\"\"}.aeris-compare__handle-icon:before{inset-inline-start:.12rem;transform:translateY(-50%) rotate(-45deg)}.aeris-compare__handle-icon:after{inset-inline-end:.12rem;transform:translateY(-50%) rotate(135deg)}.aeris-compare[data-orientation=vertical] .aeris-compare__handle-icon{transform:rotate(90deg)}.aeris-compare__label{position:absolute;z-index:2;inset-block-start:var(--aeris-compare-label-inset, .75rem);max-inline-size:calc(50% - 1rem);overflow:hidden;padding:var(--aeris-compare-label-padding, .35rem .625rem);border:1px solid var(--aeris-compare-label-border, rgba(255, 255, 255, .22));border-radius:var(--aeris-compare-label-radius, var(--aeris-radius-control, .6875rem));background:var(--aeris-compare-label-background, rgba(20, 22, 18, .66));color:var(--aeris-compare-label-color, #fff);font:inherit;font-size:var(--aeris-compare-label-font-size, .75rem);font-weight:var(--aeris-font-weight-bold, 700);text-overflow:ellipsis;white-space:nowrap;pointer-events:none;-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}.aeris-compare__label--before{inset-inline-start:var(--aeris-compare-label-inset, .75rem)}.aeris-compare__label--after{inset-inline-end:var(--aeris-compare-label-inset, .75rem)}.aeris-compare__input{position:absolute;z-index:4;inset:0;inline-size:100%;block-size:100%;margin:0;padding:0;-webkit-appearance:auto;appearance:auto;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;opacity:0;cursor:ew-resize}.aeris-compare[data-orientation=vertical] .aeris-compare__input{cursor:ns-resize;direction:rtl;touch-action:pan-x;writing-mode:vertical-lr}.aeris-compare:has(.aeris-compare__input:focus-visible){outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, #111111) 42%,transparent);outline-offset:var(--aeris-compare-focus-offset, 3px)}.aeris-compare:has(.aeris-compare__input:focus-visible) .aeris-compare__handle{background:var(--aeris-compare-handle-focus-background, var(--aeris-compare-handle-background, rgba(20, 22, 18, .72)));scale:1.08}.aeris-compare[data-disabled=true]{opacity:var(--aeris-compare-disabled-opacity, .52)}.aeris-compare[data-disabled=true] .aeris-compare__input,.aeris-compare[data-readonly=true] .aeris-compare__input{cursor:default}@media(hover:hover){.aeris-compare:not([data-disabled=true]):not([data-readonly=true]):hover .aeris-compare__handle{background:var(--aeris-compare-handle-hover-background, var(--aeris-compare-handle-background, rgba(20, 22, 18, .72)))}}@media(max-width:32rem){.aeris-compare{min-block-size:var(--aeris-compare-mobile-min-height, 10rem)}.aeris-compare__handle{inline-size:var(--aeris-compare-mobile-handle-size, 2rem);block-size:var(--aeris-compare-mobile-handle-size, 2rem)}}@media(prefers-reduced-motion:reduce){.aeris-compare__handle{transition:none}}\n"],
|
|
643
|
+
dependencies: [{
|
|
644
|
+
kind: "directive",
|
|
645
|
+
type: NgTemplateOutlet,
|
|
646
|
+
selector: "[ngTemplateOutlet]",
|
|
647
|
+
inputs: [
|
|
648
|
+
"ngTemplateOutletContext",
|
|
649
|
+
"ngTemplateOutlet",
|
|
650
|
+
"ngTemplateOutletInjector"
|
|
651
|
+
]
|
|
652
|
+
}]
|
|
653
|
+
});
|
|
654
|
+
};
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
656
|
+
minVersion: "12.0.0",
|
|
657
|
+
version: "22.2.2",
|
|
658
|
+
ngImport: i0,
|
|
659
|
+
type: AerisCompare,
|
|
660
|
+
decorators: [{
|
|
661
|
+
type: Component,
|
|
662
|
+
args: [{
|
|
663
|
+
selector: "aeris-compare",
|
|
664
|
+
imports: [NgTemplateOutlet],
|
|
665
|
+
template: `
|
|
389
666
|
<div
|
|
390
667
|
class="aeris-compare"
|
|
391
668
|
[attr.data-orientation]="orientation()"
|
|
@@ -469,8 +746,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
469
746
|
[value]="normalizedValue()"
|
|
470
747
|
[disabled]="effectiveDisabled()"
|
|
471
748
|
[attr.aria-label]="ariaLabel() || null"
|
|
472
|
-
[attr.aria-labelledby]="
|
|
473
|
-
[attr.aria-describedby]="
|
|
749
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
750
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
474
751
|
[attr.aria-valuetext]="resolvedValueText()"
|
|
475
752
|
[attr.aria-orientation]="orientation()"
|
|
476
753
|
[attr.aria-readonly]="readonly() || null"
|
|
@@ -481,28 +758,256 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
481
758
|
(blur)="handleBlur($event)"
|
|
482
759
|
/>
|
|
483
760
|
</div>
|
|
484
|
-
`,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
761
|
+
`,
|
|
762
|
+
providers: [{
|
|
763
|
+
provide: NG_VALUE_ACCESSOR,
|
|
764
|
+
useExisting: forwardRef(() => AerisCompare),
|
|
765
|
+
multi: true
|
|
766
|
+
}],
|
|
767
|
+
host: {
|
|
768
|
+
class: "aeris-compare-host",
|
|
769
|
+
"[attr.data-orientation]": "orientation()",
|
|
770
|
+
"[attr.data-disabled]": "effectiveDisabled() || null"
|
|
771
|
+
},
|
|
772
|
+
styles: [":host{display:block;min-inline-size:0;max-inline-size:100%}.aeris-compare,.aeris-compare *,.aeris-compare *:before,.aeris-compare *:after{box-sizing:border-box}.aeris-compare{position:relative;inline-size:100%;min-inline-size:0;min-block-size:var(--aeris-compare-min-height, 12rem);overflow:hidden;border:var(--aeris-compare-border-width, 1px) solid var(--aeris-compare-border, var(--aeris-border));border-radius:var(--aeris-compare-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-compare-background, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-compare-color, var(--aeris-text, #111111));isolation:isolate;touch-action:pan-y;user-select:none;-webkit-user-select:none}.aeris-compare__layer{position:absolute;z-index:0;inset:0;display:grid;min-inline-size:0;min-block-size:0;place-items:center;overflow:hidden}.aeris-compare__layer--before{z-index:1;clip-path:inset(0 calc(100% - var(--_aeris-compare-position)) 0 0)}:host-context([dir=rtl]) .aeris-compare[data-orientation=horizontal] .aeris-compare__layer--before{clip-path:inset(0 0 0 calc(100% - var(--_aeris-compare-position)))}.aeris-compare[data-orientation=vertical] .aeris-compare__layer--before{clip-path:inset(calc(100% - var(--_aeris-compare-position)) 0 0 0)}.aeris-compare__image{display:block;inline-size:100%;block-size:100%;max-inline-size:none;max-block-size:none;object-fit:var(--_aeris-compare-object-fit, cover);pointer-events:none}.aeris-compare__empty{display:grid;inline-size:100%;block-size:100%;place-items:center;padding:var(--aeris-compare-empty-padding, 1.5rem);background:var(--aeris-compare-empty-background, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-compare-muted-color, var(--aeris-text-2, #454545));font:inherit;font-weight:var(--aeris-font-weight-bold, 700)}.aeris-compare__layer--before .aeris-compare__empty{background:var(--aeris-compare-before-empty-background, color-mix(in srgb, var(--aeris-primary, #111111) 14%, var(--aeris-surface, #fff)))}.aeris-compare__divider{position:absolute;z-index:2;inset-block:0;inset-inline-start:var(--_aeris-compare-position);inline-size:var(--aeris-compare-divider-size, 2px);background:var(--aeris-compare-divider-color, #fff);box-shadow:var(--aeris-compare-divider-shadow, 0 0 .75rem rgba(0, 0, 0, .28));transform:translate(-50%);pointer-events:none}:host-context([dir=rtl]) .aeris-compare__divider{transform:translate(50%)}.aeris-compare[data-orientation=vertical] .aeris-compare__divider{inset-block-start:calc(100% - var(--_aeris-compare-position));inset-inline:0;inline-size:auto;block-size:var(--aeris-compare-divider-size, 2px);transform:translateY(-50%)}.aeris-compare__handle{position:absolute;z-index:3;inset-block-start:50%;inset-inline-start:var(--_aeris-compare-position);display:grid;inline-size:var(--aeris-compare-handle-size, 2.25rem);block-size:var(--aeris-compare-handle-size, 2.25rem);place-items:center;border:var(--aeris-compare-handle-border-width, 2px) solid var(--aeris-compare-handle-border, #fff);border-radius:var(--aeris-compare-handle-radius, 999px);background:var(--aeris-compare-handle-background, rgba(20, 22, 18, .72));color:var(--aeris-compare-handle-color, #fff);box-shadow:var(--aeris-compare-handle-shadow, 0 .5rem 1.5rem rgba(0, 0, 0, .24));transform:translate(-50%,-50%);pointer-events:none;-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem);transition:scale var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host-context([dir=rtl]) .aeris-compare__handle{transform:translate(50%,-50%)}.aeris-compare[data-orientation=vertical] .aeris-compare__handle{inset-block-start:calc(100% - var(--_aeris-compare-position));inset-inline-start:50%;transform:translate(-50%,-50%)}.aeris-compare__handle-icon{position:relative;display:block;inline-size:1.25rem;block-size:1.25rem}.aeris-compare__handle-icon:before,.aeris-compare__handle-icon:after{position:absolute;inset-block-start:50%;inline-size:.45rem;block-size:.45rem;border-block-start:2px solid currentColor;border-inline-start:2px solid currentColor;content:\"\"}.aeris-compare__handle-icon:before{inset-inline-start:.12rem;transform:translateY(-50%) rotate(-45deg)}.aeris-compare__handle-icon:after{inset-inline-end:.12rem;transform:translateY(-50%) rotate(135deg)}.aeris-compare[data-orientation=vertical] .aeris-compare__handle-icon{transform:rotate(90deg)}.aeris-compare__label{position:absolute;z-index:2;inset-block-start:var(--aeris-compare-label-inset, .75rem);max-inline-size:calc(50% - 1rem);overflow:hidden;padding:var(--aeris-compare-label-padding, .35rem .625rem);border:1px solid var(--aeris-compare-label-border, rgba(255, 255, 255, .22));border-radius:var(--aeris-compare-label-radius, var(--aeris-radius-control, .6875rem));background:var(--aeris-compare-label-background, rgba(20, 22, 18, .66));color:var(--aeris-compare-label-color, #fff);font:inherit;font-size:var(--aeris-compare-label-font-size, .75rem);font-weight:var(--aeris-font-weight-bold, 700);text-overflow:ellipsis;white-space:nowrap;pointer-events:none;-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}.aeris-compare__label--before{inset-inline-start:var(--aeris-compare-label-inset, .75rem)}.aeris-compare__label--after{inset-inline-end:var(--aeris-compare-label-inset, .75rem)}.aeris-compare__input{position:absolute;z-index:4;inset:0;inline-size:100%;block-size:100%;margin:0;padding:0;-webkit-appearance:auto;appearance:auto;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;opacity:0;cursor:ew-resize}.aeris-compare[data-orientation=vertical] .aeris-compare__input{cursor:ns-resize;direction:rtl;touch-action:pan-x;writing-mode:vertical-lr}.aeris-compare:has(.aeris-compare__input:focus-visible){outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, #111111) 42%,transparent);outline-offset:var(--aeris-compare-focus-offset, 3px)}.aeris-compare:has(.aeris-compare__input:focus-visible) .aeris-compare__handle{background:var(--aeris-compare-handle-focus-background, var(--aeris-compare-handle-background, rgba(20, 22, 18, .72)));scale:1.08}.aeris-compare[data-disabled=true]{opacity:var(--aeris-compare-disabled-opacity, .52)}.aeris-compare[data-disabled=true] .aeris-compare__input,.aeris-compare[data-readonly=true] .aeris-compare__input{cursor:default}@media(hover:hover){.aeris-compare:not([data-disabled=true]):not([data-readonly=true]):hover .aeris-compare__handle{background:var(--aeris-compare-handle-hover-background, var(--aeris-compare-handle-background, rgba(20, 22, 18, .72)))}}@media(max-width:32rem){.aeris-compare{min-block-size:var(--aeris-compare-mobile-min-height, 10rem)}.aeris-compare__handle{inline-size:var(--aeris-compare-mobile-handle-size, 2rem);block-size:var(--aeris-compare-mobile-handle-size, 2rem)}}@media(prefers-reduced-motion:reduce){.aeris-compare__handle{transition:none}}\n"]
|
|
773
|
+
}]
|
|
774
|
+
}],
|
|
775
|
+
propDecorators: {
|
|
776
|
+
rangeInput: [{
|
|
777
|
+
type: i0.ViewChild,
|
|
778
|
+
args: ["rangeInput", { isSignal: true }]
|
|
779
|
+
}],
|
|
780
|
+
beforeTemplate: [{
|
|
781
|
+
type: i0.ContentChild,
|
|
782
|
+
args: [i0.forwardRef(() => AerisCompareBeforeTemplate), { isSignal: true }]
|
|
783
|
+
}],
|
|
784
|
+
afterTemplate: [{
|
|
785
|
+
type: i0.ContentChild,
|
|
786
|
+
args: [i0.forwardRef(() => AerisCompareAfterTemplate), { isSignal: true }]
|
|
787
|
+
}],
|
|
788
|
+
handleTemplate: [{
|
|
789
|
+
type: i0.ContentChild,
|
|
790
|
+
args: [i0.forwardRef(() => AerisCompareHandleTemplate), { isSignal: true }]
|
|
791
|
+
}],
|
|
792
|
+
value: [{
|
|
793
|
+
type: i0.Input,
|
|
794
|
+
args: [{
|
|
795
|
+
isSignal: true,
|
|
796
|
+
alias: "value",
|
|
797
|
+
required: false
|
|
798
|
+
}]
|
|
799
|
+
}, {
|
|
800
|
+
type: i0.Output,
|
|
801
|
+
args: ["valueChange"]
|
|
802
|
+
}],
|
|
803
|
+
min: [{
|
|
804
|
+
type: i0.Input,
|
|
805
|
+
args: [{
|
|
806
|
+
isSignal: true,
|
|
807
|
+
alias: "min",
|
|
808
|
+
required: false
|
|
809
|
+
}]
|
|
810
|
+
}],
|
|
811
|
+
max: [{
|
|
812
|
+
type: i0.Input,
|
|
813
|
+
args: [{
|
|
814
|
+
isSignal: true,
|
|
815
|
+
alias: "max",
|
|
816
|
+
required: false
|
|
817
|
+
}]
|
|
818
|
+
}],
|
|
819
|
+
step: [{
|
|
820
|
+
type: i0.Input,
|
|
821
|
+
args: [{
|
|
822
|
+
isSignal: true,
|
|
823
|
+
alias: "step",
|
|
824
|
+
required: false
|
|
825
|
+
}]
|
|
826
|
+
}],
|
|
827
|
+
orientation: [{
|
|
828
|
+
type: i0.Input,
|
|
829
|
+
args: [{
|
|
830
|
+
isSignal: true,
|
|
831
|
+
alias: "orientation",
|
|
832
|
+
required: false
|
|
833
|
+
}]
|
|
834
|
+
}],
|
|
835
|
+
slideOnHover: [{
|
|
836
|
+
type: i0.Input,
|
|
837
|
+
args: [{
|
|
838
|
+
isSignal: true,
|
|
839
|
+
alias: "slideOnHover",
|
|
840
|
+
required: false
|
|
841
|
+
}]
|
|
842
|
+
}],
|
|
843
|
+
disabled: [{
|
|
844
|
+
type: i0.Input,
|
|
845
|
+
args: [{
|
|
846
|
+
isSignal: true,
|
|
847
|
+
alias: "disabled",
|
|
848
|
+
required: false
|
|
849
|
+
}]
|
|
850
|
+
}],
|
|
851
|
+
readonly: [{
|
|
852
|
+
type: i0.Input,
|
|
853
|
+
args: [{
|
|
854
|
+
isSignal: true,
|
|
855
|
+
alias: "readonly",
|
|
856
|
+
required: false
|
|
857
|
+
}]
|
|
858
|
+
}],
|
|
859
|
+
beforeSrc: [{
|
|
860
|
+
type: i0.Input,
|
|
861
|
+
args: [{
|
|
862
|
+
isSignal: true,
|
|
863
|
+
alias: "beforeSrc",
|
|
864
|
+
required: false
|
|
865
|
+
}]
|
|
866
|
+
}],
|
|
867
|
+
afterSrc: [{
|
|
868
|
+
type: i0.Input,
|
|
869
|
+
args: [{
|
|
870
|
+
isSignal: true,
|
|
871
|
+
alias: "afterSrc",
|
|
872
|
+
required: false
|
|
873
|
+
}]
|
|
874
|
+
}],
|
|
875
|
+
beforeAlt: [{
|
|
876
|
+
type: i0.Input,
|
|
877
|
+
args: [{
|
|
878
|
+
isSignal: true,
|
|
879
|
+
alias: "beforeAlt",
|
|
880
|
+
required: false
|
|
881
|
+
}]
|
|
882
|
+
}],
|
|
883
|
+
afterAlt: [{
|
|
884
|
+
type: i0.Input,
|
|
885
|
+
args: [{
|
|
886
|
+
isSignal: true,
|
|
887
|
+
alias: "afterAlt",
|
|
888
|
+
required: false
|
|
889
|
+
}]
|
|
890
|
+
}],
|
|
891
|
+
beforeLabel: [{
|
|
892
|
+
type: i0.Input,
|
|
893
|
+
args: [{
|
|
894
|
+
isSignal: true,
|
|
895
|
+
alias: "beforeLabel",
|
|
896
|
+
required: false
|
|
897
|
+
}]
|
|
898
|
+
}],
|
|
899
|
+
afterLabel: [{
|
|
900
|
+
type: i0.Input,
|
|
901
|
+
args: [{
|
|
902
|
+
isSignal: true,
|
|
903
|
+
alias: "afterLabel",
|
|
904
|
+
required: false
|
|
905
|
+
}]
|
|
906
|
+
}],
|
|
907
|
+
showLabels: [{
|
|
908
|
+
type: i0.Input,
|
|
909
|
+
args: [{
|
|
910
|
+
isSignal: true,
|
|
911
|
+
alias: "showLabels",
|
|
912
|
+
required: false
|
|
913
|
+
}]
|
|
914
|
+
}],
|
|
915
|
+
objectFit: [{
|
|
916
|
+
type: i0.Input,
|
|
917
|
+
args: [{
|
|
918
|
+
isSignal: true,
|
|
919
|
+
alias: "objectFit",
|
|
920
|
+
required: false
|
|
921
|
+
}]
|
|
922
|
+
}],
|
|
923
|
+
aspectRatio: [{
|
|
924
|
+
type: i0.Input,
|
|
925
|
+
args: [{
|
|
926
|
+
isSignal: true,
|
|
927
|
+
alias: "aspectRatio",
|
|
928
|
+
required: false
|
|
929
|
+
}]
|
|
930
|
+
}],
|
|
931
|
+
loading: [{
|
|
932
|
+
type: i0.Input,
|
|
933
|
+
args: [{
|
|
934
|
+
isSignal: true,
|
|
935
|
+
alias: "loading",
|
|
936
|
+
required: false
|
|
937
|
+
}]
|
|
938
|
+
}],
|
|
939
|
+
name: [{
|
|
940
|
+
type: i0.Input,
|
|
941
|
+
args: [{
|
|
942
|
+
isSignal: true,
|
|
943
|
+
alias: "name",
|
|
944
|
+
required: false
|
|
945
|
+
}]
|
|
946
|
+
}],
|
|
947
|
+
inputId: [{
|
|
948
|
+
type: i0.Input,
|
|
949
|
+
args: [{
|
|
950
|
+
isSignal: true,
|
|
951
|
+
alias: "inputId",
|
|
952
|
+
required: false
|
|
953
|
+
}]
|
|
954
|
+
}],
|
|
955
|
+
ariaLabel: [{
|
|
956
|
+
type: i0.Input,
|
|
957
|
+
args: [{
|
|
958
|
+
isSignal: true,
|
|
959
|
+
alias: "ariaLabel",
|
|
960
|
+
required: false
|
|
961
|
+
}]
|
|
962
|
+
}],
|
|
963
|
+
ariaLabelledBy: [{
|
|
964
|
+
type: i0.Input,
|
|
965
|
+
args: [{
|
|
966
|
+
isSignal: true,
|
|
967
|
+
alias: "ariaLabelledBy",
|
|
968
|
+
required: false
|
|
969
|
+
}]
|
|
970
|
+
}],
|
|
971
|
+
ariaDescribedBy: [{
|
|
972
|
+
type: i0.Input,
|
|
973
|
+
args: [{
|
|
974
|
+
isSignal: true,
|
|
975
|
+
alias: "ariaDescribedBy",
|
|
976
|
+
required: false
|
|
977
|
+
}]
|
|
978
|
+
}],
|
|
979
|
+
valueText: [{
|
|
980
|
+
type: i0.Input,
|
|
981
|
+
args: [{
|
|
982
|
+
isSignal: true,
|
|
983
|
+
alias: "valueText",
|
|
984
|
+
required: false
|
|
985
|
+
}]
|
|
986
|
+
}],
|
|
987
|
+
changed: [{
|
|
988
|
+
type: i0.Output,
|
|
989
|
+
args: ["changed"]
|
|
990
|
+
}],
|
|
991
|
+
focused: [{
|
|
992
|
+
type: i0.Output,
|
|
993
|
+
args: ["focused"]
|
|
994
|
+
}],
|
|
995
|
+
blurred: [{
|
|
996
|
+
type: i0.Output,
|
|
997
|
+
args: ["blurred"]
|
|
998
|
+
}],
|
|
999
|
+
touch: [{
|
|
1000
|
+
type: i0.Output,
|
|
1001
|
+
args: ["touch"]
|
|
1002
|
+
}]
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
496
1005
|
const AerisCompareModule = [
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
1006
|
+
AerisCompare,
|
|
1007
|
+
AerisCompareBeforeTemplate,
|
|
1008
|
+
AerisCompareAfterTemplate,
|
|
1009
|
+
AerisCompareHandleTemplate
|
|
501
1010
|
];
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Generated bundle index. Do not edit.
|
|
505
|
-
*/
|
|
506
|
-
|
|
507
1011
|
export { AerisCompare, AerisCompareAfterTemplate, AerisCompareBeforeTemplate, AerisCompareHandleTemplate, AerisCompareModule };
|
|
508
|
-
|
|
1012
|
+
|
|
1013
|
+
//# sourceMappingURL=aeris-ui-core-compare.mjs.map
|