@alauda/ui 8.0.1-beta.2 → 8.0.1-beta.21
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/anchor/anchor.directive.d.ts +2 -2
- package/button/button.types.d.ts +3 -0
- package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
- package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
- package/dialog/dialog-container.component.d.ts +7 -0
- package/dialog/dialog-ref.d.ts +2 -4
- package/dialog/dialog.service.d.ts +3 -5
- package/fesm2022/alauda-ui.mjs +1091 -737
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +5 -1
- package/input/autosize.directive.d.ts +4 -1
- package/internal/types/index.d.ts +3 -0
- package/message/message.config.d.ts +20 -0
- package/notification/notification.component.d.ts +4 -0
- package/package.json +2 -9
- package/paginator/paginator-intl.d.ts +9 -0
- package/radio/base-radio.d.ts +1 -1
- package/select/base-select.d.ts +3 -0
- package/select/validators.d.ts +1 -1
- package/sort/sort-errors.d.ts +4 -0
- package/table/table-cell-def.directive.d.ts +4 -0
- package/table/table-cell.directive.d.ts +1 -0
- package/table/table-column-def.directive.d.ts +4 -0
- package/table/table-header-cell-def.directive.d.ts +4 -0
- package/table/table-header-cell.directive.d.ts +1 -0
- package/table/table-header-row-def.directive.d.ts +4 -0
- package/table/table-header-row.component.d.ts +1 -0
- package/table/table-row-def.directive.d.ts +5 -0
- package/table/table-row.component.d.ts +1 -0
- package/table/table-scroll.directive.d.ts +1 -1
- package/tabs/tab-body.component.d.ts +16 -0
- package/tabs/tab-context.service.d.ts +3 -0
- package/tabs/tab-group.component.d.ts +28 -0
- package/tabs/tab-header-active-indicator.component.d.ts +9 -0
- package/tabs/tab-header.component.d.ts +79 -0
- package/tabs/tab.component.d.ts +18 -0
- package/tabs/tabs.types.d.ts +3 -0
- package/theme/style.css +10 -9
- package/tooltip/tooltip-intl.d.ts +3 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/esm2022/accordion/accordion-item/accordion-item.component.mjs +0 -73
- package/esm2022/accordion/accordion.component.mjs +0 -27
- package/esm2022/accordion/accordion.module.mjs +0 -54
- package/esm2022/accordion/index.mjs +0 -4
- package/esm2022/alauda-ui.mjs +0 -2
- package/esm2022/anchor/anchor.component.mjs +0 -137
- package/esm2022/anchor/anchor.directive.mjs +0 -184
- package/esm2022/anchor/anchor.module.mjs +0 -42
- package/esm2022/anchor/index.mjs +0 -6
- package/esm2022/anchor/types.mjs +0 -2
- package/esm2022/anchor/utils.mjs +0 -26
- package/esm2022/autocomplete/autocomplete-placeholder.component.mjs +0 -18
- package/esm2022/autocomplete/autocomplete.component.mjs +0 -52
- package/esm2022/autocomplete/autocomplete.directive.mjs +0 -282
- package/esm2022/autocomplete/autocomplete.module.mjs +0 -69
- package/esm2022/autocomplete/autocomplete.types.mjs +0 -2
- package/esm2022/autocomplete/helper-directives.mjs +0 -18
- package/esm2022/autocomplete/index.mjs +0 -9
- package/esm2022/autocomplete/suggestion/suggestion.component.mjs +0 -74
- package/esm2022/autocomplete/suggestion-group/suggestion-group.component.mjs +0 -23
- package/esm2022/back-top/back-top.component.mjs +0 -84
- package/esm2022/back-top/back-top.module.mjs +0 -19
- package/esm2022/back-top/index.mjs +0 -3
- package/esm2022/breadcrumb/breadcrumb-item.component.mjs +0 -32
- package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -57
- package/esm2022/breadcrumb/breadcrumb.module.mjs +0 -32
- package/esm2022/breadcrumb/index.mjs +0 -4
- package/esm2022/button/button-group/button-group.component.mjs +0 -11
- package/esm2022/button/button.component.mjs +0 -121
- package/esm2022/button/button.module.mjs +0 -19
- package/esm2022/button/button.types.mjs +0 -11
- package/esm2022/button/index.mjs +0 -5
- package/esm2022/card/card.component.mjs +0 -16
- package/esm2022/card/card.module.mjs +0 -48
- package/esm2022/card/helper-directives.mjs +0 -45
- package/esm2022/card/index.mjs +0 -5
- package/esm2022/card/section.component.mjs +0 -11
- package/esm2022/checkbox/checkbox-group/checkbox-group.component.mjs +0 -61
- package/esm2022/checkbox/checkbox.component.mjs +0 -112
- package/esm2022/checkbox/checkbox.module.mjs +0 -32
- package/esm2022/checkbox/index.mjs +0 -4
- package/esm2022/color-picker/color-picker.component.mjs +0 -28
- package/esm2022/color-picker/color-picker.module.mjs +0 -18
- package/esm2022/color-picker/index.mjs +0 -3
- package/esm2022/core/animation/animation-consts.mjs +0 -12
- package/esm2022/date-picker/calendar/constant.mjs +0 -31
- package/esm2022/date-picker/calendar/date-picker-panel/component.mjs +0 -173
- package/esm2022/date-picker/calendar/footer/component.mjs +0 -29
- package/esm2022/date-picker/calendar/header/component.mjs +0 -136
- package/esm2022/date-picker/calendar/panel/picker-panel.mjs +0 -154
- package/esm2022/date-picker/calendar/range-picker-panel/component.mjs +0 -218
- package/esm2022/date-picker/calendar/util.mjs +0 -145
- package/esm2022/date-picker/date-picker/date-picker.component.mjs +0 -100
- package/esm2022/date-picker/date-picker.module.mjs +0 -85
- package/esm2022/date-picker/date-picker.type.mjs +0 -12
- package/esm2022/date-picker/index.mjs +0 -12
- package/esm2022/date-picker/range-picker/range-picker.component.mjs +0 -90
- package/esm2022/date-picker/trigger/trigger.component.mjs +0 -122
- package/esm2022/dialog/confirm-dialog/confirm-dialog-config.mjs +0 -12
- package/esm2022/dialog/confirm-dialog/confirm-dialog.component.mjs +0 -95
- package/esm2022/dialog/dialog-animations.mjs +0 -57
- package/esm2022/dialog/dialog-config.mjs +0 -15
- package/esm2022/dialog/dialog-content/dialog-close.directive.mjs +0 -39
- package/esm2022/dialog/dialog-content/dialog-content.component.mjs +0 -19
- package/esm2022/dialog/dialog-content/dialog-footer.component.mjs +0 -15
- package/esm2022/dialog/dialog-content/dialog-header.component.mjs +0 -39
- package/esm2022/dialog/dialog-ref.mjs +0 -48
- package/esm2022/dialog/dialog.component.mjs +0 -154
- package/esm2022/dialog/dialog.module.mjs +0 -72
- package/esm2022/dialog/dialog.service.mjs +0 -120
- package/esm2022/dialog/dialog.types.mjs +0 -17
- package/esm2022/dialog/index.mjs +0 -12
- package/esm2022/dialog/utils/errors.mjs +0 -4
- package/esm2022/dialog/utils/index.mjs +0 -11
- package/esm2022/drawer/component/drawer.component.mjs +0 -88
- package/esm2022/drawer/component/internal/internal.component.mjs +0 -184
- package/esm2022/drawer/drawer-ref.mjs +0 -28
- package/esm2022/drawer/drawer.module.mjs +0 -41
- package/esm2022/drawer/drawer.service.mjs +0 -114
- package/esm2022/drawer/helper-directives.mjs +0 -36
- package/esm2022/drawer/index.mjs +0 -7
- package/esm2022/drawer/types.mjs +0 -6
- package/esm2022/dropdown/dropdown-active.directive.mjs +0 -22
- package/esm2022/dropdown/dropdown-button/dropdown-button.component.mjs +0 -47
- package/esm2022/dropdown/dropdown.directive.mjs +0 -53
- package/esm2022/dropdown/dropdown.module.mjs +0 -80
- package/esm2022/dropdown/dropdown.types.mjs +0 -8
- package/esm2022/dropdown/helper-directives.mjs +0 -18
- package/esm2022/dropdown/index.mjs +0 -11
- package/esm2022/dropdown/menu/menu.component.mjs +0 -19
- package/esm2022/dropdown/menu-group/menu-group.component.mjs +0 -11
- package/esm2022/dropdown/menu-item/menu-item.component.mjs +0 -37
- package/esm2022/dropdown/submenu/submenu.component.mjs +0 -45
- package/esm2022/form/common-form.mjs +0 -87
- package/esm2022/form/form-item/form-item.component.mjs +0 -108
- package/esm2022/form/form.directive.mjs +0 -70
- package/esm2022/form/form.module.mjs +0 -58
- package/esm2022/form/form.types.mjs +0 -11
- package/esm2022/form/helper-directives.mjs +0 -77
- package/esm2022/form/index.mjs +0 -7
- package/esm2022/i18n/i18n.module.mjs +0 -16
- package/esm2022/i18n/i18n.pipe.mjs +0 -22
- package/esm2022/i18n/i18n.service.mjs +0 -40
- package/esm2022/i18n/i18n.type.mjs +0 -6
- package/esm2022/i18n/index.mjs +0 -7
- package/esm2022/i18n/language/en.mjs +0 -25
- package/esm2022/i18n/language/zh.mjs +0 -25
- package/esm2022/icon/icon-register.service.mjs +0 -63
- package/esm2022/icon/icon.component.mjs +0 -65
- package/esm2022/icon/icon.module.mjs +0 -18
- package/esm2022/icon/icons.mjs +0 -2
- package/esm2022/icon/index.mjs +0 -4
- package/esm2022/icon/utils.mjs +0 -7
- package/esm2022/index.mjs +0 -39
- package/esm2022/inline-alert/helper-directives.mjs +0 -15
- package/esm2022/inline-alert/index.mjs +0 -5
- package/esm2022/inline-alert/inline-alert.component.mjs +0 -57
- package/esm2022/inline-alert/inline-alert.module.mjs +0 -32
- package/esm2022/inline-alert/inline-alert.types.mjs +0 -9
- package/esm2022/input/autosize.directive.mjs +0 -55
- package/esm2022/input/helper-directives.mjs +0 -47
- package/esm2022/input/index.mjs +0 -9
- package/esm2022/input/input-group/input-group.component.mjs +0 -46
- package/esm2022/input/input.component.mjs +0 -57
- package/esm2022/input/input.module.mjs +0 -85
- package/esm2022/input/number-input/number-input.component.mjs +0 -130
- package/esm2022/input/search/search.component.mjs +0 -89
- package/esm2022/input/tags-input/tags-input.component.mjs +0 -255
- package/esm2022/input/tags-input/with-max-row-count.mjs +0 -50
- package/esm2022/input/utils/index.mjs +0 -67
- package/esm2022/internal/types/index.mjs +0 -8
- package/esm2022/internal/utils/animations.mjs +0 -2
- package/esm2022/internal/utils/async.mjs +0 -6
- package/esm2022/internal/utils/bem.mjs +0 -43
- package/esm2022/internal/utils/coercion.mjs +0 -5
- package/esm2022/internal/utils/fn.mjs +0 -16
- package/esm2022/internal/utils/index.mjs +0 -10
- package/esm2022/internal/utils/observe-dom.mjs +0 -23
- package/esm2022/internal/utils/operators.mjs +0 -15
- package/esm2022/internal/utils/scroll-into-view.mjs +0 -17
- package/esm2022/internal/utils/styles-renderer.mjs +0 -40
- package/esm2022/internal/utils/watch-content-exist.mjs +0 -6
- package/esm2022/message/base-message.mjs +0 -90
- package/esm2022/message/index.mjs +0 -4
- package/esm2022/message/message-animations.mjs +0 -32
- package/esm2022/message/message-wrapper.component.mjs +0 -14
- package/esm2022/message/message.component.mjs +0 -70
- package/esm2022/message/message.config.mjs +0 -16
- package/esm2022/message/message.module.mjs +0 -31
- package/esm2022/message/message.service.mjs +0 -29
- package/esm2022/notification/index.mjs +0 -5
- package/esm2022/notification/notification-wrapper.component.mjs +0 -16
- package/esm2022/notification/notification.component.mjs +0 -103
- package/esm2022/notification/notification.config.mjs +0 -7
- package/esm2022/notification/notification.module.mjs +0 -36
- package/esm2022/notification/notification.service.mjs +0 -29
- package/esm2022/paginator/index.mjs +0 -4
- package/esm2022/paginator/paginator-intl.mjs +0 -21
- package/esm2022/paginator/paginator.component.mjs +0 -134
- package/esm2022/paginator/paginator.module.mjs +0 -37
- package/esm2022/radio/base-radio.mjs +0 -67
- package/esm2022/radio/index.mjs +0 -6
- package/esm2022/radio/radio-button/radio-button.component.mjs +0 -41
- package/esm2022/radio/radio-group/radio-group.component.mjs +0 -68
- package/esm2022/radio/radio.component.mjs +0 -23
- package/esm2022/radio/radio.module.mjs +0 -36
- package/esm2022/radio/radio.types.mjs +0 -6
- package/esm2022/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +0 -81
- package/esm2022/scrolling/fixed-size-table-virtual-scroll.directive.mjs +0 -120
- package/esm2022/scrolling/fixed-size-virtual-scroll.directive.mjs +0 -28
- package/esm2022/scrolling/index.mjs +0 -7
- package/esm2022/scrolling/scrolling.module.mjs +0 -30
- package/esm2022/scrolling/virtual-for-of.directive.mjs +0 -35
- package/esm2022/scrolling/virtual-scroll-viewport.component.mjs +0 -26
- package/esm2022/select/base-select.mjs +0 -327
- package/esm2022/select/helper-directives.mjs +0 -67
- package/esm2022/select/index.mjs +0 -10
- package/esm2022/select/multi-select/multi-select.component.mjs +0 -313
- package/esm2022/select/option/option.component.mjs +0 -113
- package/esm2022/select/option-group/option-group.component.mjs +0 -23
- package/esm2022/select/option-placeholder.component.mjs +0 -18
- package/esm2022/select/select.component.mjs +0 -116
- package/esm2022/select/select.module.mjs +0 -87
- package/esm2022/select/select.types.mjs +0 -7
- package/esm2022/select/validators.mjs +0 -79
- package/esm2022/shared/click-outside.directive.mjs +0 -29
- package/esm2022/shared/shared.module.mjs +0 -16
- package/esm2022/sort/index.mjs +0 -6
- package/esm2022/sort/sort-errors.mjs +0 -13
- package/esm2022/sort/sort-header.component.mjs +0 -68
- package/esm2022/sort/sort.directive.mjs +0 -75
- package/esm2022/sort/sort.module.mjs +0 -19
- package/esm2022/sort/sort.types.mjs +0 -2
- package/esm2022/status-bar/index.mjs +0 -4
- package/esm2022/status-bar/status-bar.component.mjs +0 -29
- package/esm2022/status-bar/status-bar.module.mjs +0 -18
- package/esm2022/status-bar/status-bar.types.mjs +0 -13
- package/esm2022/steps/index.mjs +0 -4
- package/esm2022/steps/steps.component.mjs +0 -173
- package/esm2022/steps/steps.module.mjs +0 -18
- package/esm2022/steps/types.mjs +0 -7
- package/esm2022/switch/index.mjs +0 -3
- package/esm2022/switch/switch.component.mjs +0 -46
- package/esm2022/switch/switch.module.mjs +0 -17
- package/esm2022/table/index.mjs +0 -16
- package/esm2022/table/table-cell-def.directive.mjs +0 -26
- package/esm2022/table/table-cell.component.mjs +0 -125
- package/esm2022/table/table-cell.directive.mjs +0 -29
- package/esm2022/table/table-column-def.directive.mjs +0 -32
- package/esm2022/table/table-column-resizable.directive.mjs +0 -150
- package/esm2022/table/table-header-cell-def.directive.mjs +0 -26
- package/esm2022/table/table-header-cell.directive.mjs +0 -25
- package/esm2022/table/table-header-row-def.directive.mjs +0 -42
- package/esm2022/table/table-header-row.component.mjs +0 -26
- package/esm2022/table/table-placeholder.directive.mjs +0 -32
- package/esm2022/table/table-row-def.directive.mjs +0 -38
- package/esm2022/table/table-row.component.mjs +0 -44
- package/esm2022/table/table-scroll.directive.mjs +0 -131
- package/esm2022/table/table.component.mjs +0 -83
- package/esm2022/table/table.module.mjs +0 -82
- package/esm2022/table-of-contents/index.mjs +0 -5
- package/esm2022/table-of-contents/table-of-contents.module.mjs +0 -32
- package/esm2022/table-of-contents/toc-container.directive.mjs +0 -110
- package/esm2022/table-of-contents/toc-content.directive.mjs +0 -36
- package/esm2022/table-of-contents/toc-link.directive.mjs +0 -45
- package/esm2022/tabs/index.mjs +0 -9
- package/esm2022/tabs/tab-body.component.mjs +0 -148
- package/esm2022/tabs/tab-context.service.mjs +0 -28
- package/esm2022/tabs/tab-group.component.mjs +0 -258
- package/esm2022/tabs/tab-header-active-indicator.component.mjs +0 -39
- package/esm2022/tabs/tab-header.component.mjs +0 -264
- package/esm2022/tabs/tab.component.mjs +0 -65
- package/esm2022/tabs/tabs.module.mjs +0 -97
- package/esm2022/tabs/tabs.types.mjs +0 -10
- package/esm2022/tag/check-tag/check-tag.component.mjs +0 -33
- package/esm2022/tag/index.mjs +0 -5
- package/esm2022/tag/tag.component.mjs +0 -65
- package/esm2022/tag/tag.module.mjs +0 -19
- package/esm2022/tag/tag.types.mjs +0 -8
- package/esm2022/theme/index.mjs +0 -6
- package/esm2022/theme/theme.module.mjs +0 -27
- package/esm2022/theme/theme.pipe.mjs +0 -85
- package/esm2022/theme/theme.service.mjs +0 -56
- package/esm2022/theme/theme.types.mjs +0 -2
- package/esm2022/theme/utils.mjs +0 -10
- package/esm2022/time-picker/component.mjs +0 -190
- package/esm2022/time-picker/constant.mjs +0 -5
- package/esm2022/time-picker/index.mjs +0 -6
- package/esm2022/time-picker/panel/panel.component.mjs +0 -236
- package/esm2022/time-picker/time-picker.module.mjs +0 -64
- package/esm2022/time-picker/time-picker.type.mjs +0 -13
- package/esm2022/tooltip/animations.mjs +0 -57
- package/esm2022/tooltip/base-tooltip.mjs +0 -325
- package/esm2022/tooltip/index.mjs +0 -9
- package/esm2022/tooltip/tooltip-active.directive.mjs +0 -50
- package/esm2022/tooltip/tooltip-copy.directive.mjs +0 -79
- package/esm2022/tooltip/tooltip-intl.mjs +0 -18
- package/esm2022/tooltip/tooltip.component.mjs +0 -75
- package/esm2022/tooltip/tooltip.directive.mjs +0 -48
- package/esm2022/tooltip/tooltip.module.mjs +0 -39
- package/esm2022/tooltip/tooltip.types.mjs +0 -19
- package/esm2022/tooltip/utils/index.mjs +0 -58
- package/esm2022/tree-select/index.mjs +0 -5
- package/esm2022/tree-select/tree-node-placeholder.component.mjs +0 -18
- package/esm2022/tree-select/tree-select.component.mjs +0 -324
- package/esm2022/tree-select/tree-select.module.mjs +0 -44
- package/esm2022/tree-select/tree-select.types.mjs +0 -2
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { NgClass, NgIf, NgStyle, AsyncPipe } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation, forwardRef, ContentChildren, numberAttribute, } from '@angular/core';
|
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
-
import { CommonFormControl } from '../../form';
|
|
5
|
-
import { IconComponent } from '../../icon';
|
|
6
|
-
import { ComponentSize } from '../../internal/types';
|
|
7
|
-
import { buildBem, watchContentExist } from '../../internal/utils';
|
|
8
|
-
import { ClickOutsideDirective } from '../../shared/click-outside.directive';
|
|
9
|
-
import { InputAddonAfterDirective, InputAddonBeforeDirective, } from '../helper-directives';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export class NumberInputComponent extends CommonFormControl {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.bem = buildBem('aui-number-input');
|
|
15
|
-
this.size = ComponentSize.Medium;
|
|
16
|
-
this.min = Number.MIN_SAFE_INTEGER;
|
|
17
|
-
this.max = Number.MAX_SAFE_INTEGER;
|
|
18
|
-
this.step = 1;
|
|
19
|
-
this.controls = true;
|
|
20
|
-
this.placeholder = '';
|
|
21
|
-
this.controlsPosition = '';
|
|
22
|
-
this.angleControls = false;
|
|
23
|
-
this.clearable = false;
|
|
24
|
-
this.isFocus = false;
|
|
25
|
-
}
|
|
26
|
-
ngAfterContentInit() {
|
|
27
|
-
this.hasAddonBefore$ = watchContentExist(this.addonBeforeRefs);
|
|
28
|
-
this.hasAddonAfter$ = watchContentExist(this.addonAfterRefs);
|
|
29
|
-
}
|
|
30
|
-
ngAfterViewInit() {
|
|
31
|
-
this.inputRef.nativeElement.value = (this.model ?? '') + '';
|
|
32
|
-
}
|
|
33
|
-
valueIn(v) {
|
|
34
|
-
if (this.inputRef) {
|
|
35
|
-
this.inputRef.nativeElement.value = (v ?? '') + '';
|
|
36
|
-
}
|
|
37
|
-
return v;
|
|
38
|
-
}
|
|
39
|
-
modelOut(value) {
|
|
40
|
-
return value === null && this.clearable
|
|
41
|
-
? value
|
|
42
|
-
: Math.max(this.min, Math.min(this.max, this.parsePrecision(value)));
|
|
43
|
-
}
|
|
44
|
-
inputChanged(value) {
|
|
45
|
-
this.emitModel(numberAttribute(value, !value && this.clearable ? null : this.model));
|
|
46
|
-
}
|
|
47
|
-
takeOneStep(positive) {
|
|
48
|
-
if (positive) {
|
|
49
|
-
this.emitModel((this.model ?? 0) + this.step);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.emitModel((this.model ?? 0) - this.step);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
parsePrecision(value) {
|
|
56
|
-
const precision = this.precision ?? this.getStepPrecision();
|
|
57
|
-
return parseFloat(value.toFixed(precision));
|
|
58
|
-
}
|
|
59
|
-
getStepPrecision() {
|
|
60
|
-
const step = this.step + '';
|
|
61
|
-
const index = step.indexOf('.');
|
|
62
|
-
return index < 0 ? 0 : step.slice(index + 1).length;
|
|
63
|
-
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NumberInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
65
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.6", type: NumberInputComponent, isStandalone: true, selector: "aui-number-input", inputs: { size: "size", min: ["min", "min", (val) => numberAttribute(val, Number.MIN_SAFE_INTEGER)], max: ["max", "max", (val) => numberAttribute(val, Number.MAX_SAFE_INTEGER)], step: "step", precision: "precision", controls: "controls", placeholder: "placeholder", controlsPosition: "controlsPosition", angleControls: "angleControls", clearable: "clearable" }, providers: [
|
|
66
|
-
{
|
|
67
|
-
provide: NG_VALUE_ACCESSOR,
|
|
68
|
-
useExisting: forwardRef(() => NumberInputComponent),
|
|
69
|
-
multi: true,
|
|
70
|
-
},
|
|
71
|
-
], queries: [{ propertyName: "addonBeforeRefs", predicate: InputAddonBeforeDirective }, { propertyName: "addonAfterRefs", predicate: InputAddonAfterDirective }], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocused: isFocus,\n isDisabled: disabled,\n hasBefore: hasAddonBefore$ | async,\n hasAfter: hasAddonAfter$ | async,\n }\"\n>\n <div\n *ngIf=\"hasAddonBefore$ | async\"\n [class]=\"bem.element('addon', 'before')\"\n >\n <ng-content select=\"[auiInputAddonBefore]\"></ng-content>\n </div>\n <div\n [class]=\"bem.element('inner')\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n >\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'decrease')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($any($event).target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n [ngStyle]=\"{ 'text-align': angleControls ? 'left' : 'center' }\"\n />\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'increase')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n <div\n *ngIf=\"controls && angleControls\"\n class=\"aui-number-input__controls\"\n >\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-up')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"angle_up\"></aui-icon>\n </button>\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-down')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"angle_down\"></aui-icon>\n </button>\n </div>\n </div>\n <div\n *ngIf=\"hasAddonAfter$ | async\"\n [class]=\"bem.element('addon', 'after')\"\n >\n <ng-content select=\"[auiInputAddonAfter]\"></ng-content>\n </div>\n</div>\n", styles: [".aui-number-input{display:inline-flex;height:var(--aui-inline-height-m);color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));border-radius:var(--aui-border-radius-m)}.aui-number-input--small{height:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__inner{width:132px}.aui-number-input--small .aui-number-input__control{width:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__control--angle-up,.aui-number-input--small .aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-s) - 2px)}.aui-number-input__inner{display:flex;width:var(--aui-form-item-width-s);height:100%;border:1px solid rgb(var(--aui-color-n-7));border-radius:var(--aui-border-radius-m);color:inherit;background-color:inherit;z-index:1}.aui-number-input__inner:hover{border-color:rgb(var(--aui-color-primary))}.aui-number-input__input{margin:0;padding:0 calc(var(--aui-spacing-m) + 1px);min-width:0;height:100%;border:0;border-radius:inherit;background-color:inherit;color:inherit;-webkit-text-fill-color:inherit;cursor:inherit;outline:none}.aui-number-input:hover:not(.isDisabled) .aui-number-input__inner .aui-number-input__controls{display:flex}.aui-number-input.isFocused .aui-number-input__inner{border-color:rgb(var(--aui-color-primary))}:root .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input.isDisabled{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input.isDisabled .aui-number-input__inner{border:1px solid rgb(var(--aui-color-n-7))}.aui-number-input.hasBefore .aui-number-input__inner{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input.hasAfter .aui-number-input__inner{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input.hasBefore.hasAfter .aui-number-input__inner{border-radius:0}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-up{border-top-right-radius:var(--aui-border-radius-m)}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-down{border-bottom-right-radius:var(--aui-border-radius-m)}.aui-number-input__control{flex-shrink:0;width:calc(var(--aui-inline-height-m) - 2px);border:none;color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));background-clip:padding-box;cursor:pointer;outline:none;position:relative;height:100%;font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s);font-weight:var(--aui-font-weight-normal)}.aui-number-input__control:hover{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6))}.aui-number-input__control:active{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-5))}:root .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input__control[disabled]{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input__control:before{content:\"\";display:block;position:absolute;top:0;left:-1px;width:0;height:100%;border-right:1px solid rgb(var(--aui-color-border))}.aui-number-input__control--decrease{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__control--decrease:before{left:100%}.aui-number-input__control--increase{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input__control--angle-up,.aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-m) - 2px);height:calc(50% - .5px)!important;border:none;display:flex;align-items:center;justify-content:center}.aui-number-input__control--angle-up:focus,.aui-number-input__control--angle-down:focus{z-index:1}.aui-number-input__control--angle-down{margin-top:1px}.aui-number-input__controls{display:none;flex-direction:column;border-left:1px solid rgb(var(--aui-color-border));position:relative}.aui-number-input__controls:after{content:\"\";display:block;width:100%;height:1px;position:absolute;left:0;top:50%;transform:translateY(-50%);background-color:rgb(var(--aui-color-border))}.aui-number-input__addon{display:flex;align-items:center;flex-shrink:0;padding:0 var(--aui-inline-padding-xs);border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8));font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal)}.aui-number-input__addon--before{border-right:none;border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__addon--after{border-left:none;border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}aui-number-input.ng-invalid.ng-dirty .aui-number-input__inner,.ng-submitted aui-number-input.ng-invalid .aui-number-input__inner{border-color:rgb(var(--aui-color-red))}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[auiClickOutside]", outputs: ["auiClickOutside"], exportAs: ["auiClickOutside"] }, { kind: "component", type: IconComponent, selector: "aui-icon", inputs: ["icon", "light", "dark", "link", "margin", "size", "color", "background", "backgroundColor"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
72
|
-
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
74
|
-
type: Component,
|
|
75
|
-
args: [{ selector: 'aui-number-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, providers: [
|
|
76
|
-
{
|
|
77
|
-
provide: NG_VALUE_ACCESSOR,
|
|
78
|
-
useExisting: forwardRef(() => NumberInputComponent),
|
|
79
|
-
multi: true,
|
|
80
|
-
},
|
|
81
|
-
], standalone: true, imports: [
|
|
82
|
-
NgClass,
|
|
83
|
-
NgIf,
|
|
84
|
-
ClickOutsideDirective,
|
|
85
|
-
IconComponent,
|
|
86
|
-
NgStyle,
|
|
87
|
-
AsyncPipe,
|
|
88
|
-
], template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocused: isFocus,\n isDisabled: disabled,\n hasBefore: hasAddonBefore$ | async,\n hasAfter: hasAddonAfter$ | async,\n }\"\n>\n <div\n *ngIf=\"hasAddonBefore$ | async\"\n [class]=\"bem.element('addon', 'before')\"\n >\n <ng-content select=\"[auiInputAddonBefore]\"></ng-content>\n </div>\n <div\n [class]=\"bem.element('inner')\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n >\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'decrease')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($any($event).target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n [ngStyle]=\"{ 'text-align': angleControls ? 'left' : 'center' }\"\n />\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'increase')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n <div\n *ngIf=\"controls && angleControls\"\n class=\"aui-number-input__controls\"\n >\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-up')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"angle_up\"></aui-icon>\n </button>\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-down')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"angle_down\"></aui-icon>\n </button>\n </div>\n </div>\n <div\n *ngIf=\"hasAddonAfter$ | async\"\n [class]=\"bem.element('addon', 'after')\"\n >\n <ng-content select=\"[auiInputAddonAfter]\"></ng-content>\n </div>\n</div>\n", styles: [".aui-number-input{display:inline-flex;height:var(--aui-inline-height-m);color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));border-radius:var(--aui-border-radius-m)}.aui-number-input--small{height:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__inner{width:132px}.aui-number-input--small .aui-number-input__control{width:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__control--angle-up,.aui-number-input--small .aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-s) - 2px)}.aui-number-input__inner{display:flex;width:var(--aui-form-item-width-s);height:100%;border:1px solid rgb(var(--aui-color-n-7));border-radius:var(--aui-border-radius-m);color:inherit;background-color:inherit;z-index:1}.aui-number-input__inner:hover{border-color:rgb(var(--aui-color-primary))}.aui-number-input__input{margin:0;padding:0 calc(var(--aui-spacing-m) + 1px);min-width:0;height:100%;border:0;border-radius:inherit;background-color:inherit;color:inherit;-webkit-text-fill-color:inherit;cursor:inherit;outline:none}.aui-number-input:hover:not(.isDisabled) .aui-number-input__inner .aui-number-input__controls{display:flex}.aui-number-input.isFocused .aui-number-input__inner{border-color:rgb(var(--aui-color-primary))}:root .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input.isDisabled{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input.isDisabled .aui-number-input__inner{border:1px solid rgb(var(--aui-color-n-7))}.aui-number-input.hasBefore .aui-number-input__inner{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input.hasAfter .aui-number-input__inner{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input.hasBefore.hasAfter .aui-number-input__inner{border-radius:0}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-up{border-top-right-radius:var(--aui-border-radius-m)}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-down{border-bottom-right-radius:var(--aui-border-radius-m)}.aui-number-input__control{flex-shrink:0;width:calc(var(--aui-inline-height-m) - 2px);border:none;color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));background-clip:padding-box;cursor:pointer;outline:none;position:relative;height:100%;font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s);font-weight:var(--aui-font-weight-normal)}.aui-number-input__control:hover{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6))}.aui-number-input__control:active{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-5))}:root .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input__control[disabled]{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input__control:before{content:\"\";display:block;position:absolute;top:0;left:-1px;width:0;height:100%;border-right:1px solid rgb(var(--aui-color-border))}.aui-number-input__control--decrease{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__control--decrease:before{left:100%}.aui-number-input__control--increase{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input__control--angle-up,.aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-m) - 2px);height:calc(50% - .5px)!important;border:none;display:flex;align-items:center;justify-content:center}.aui-number-input__control--angle-up:focus,.aui-number-input__control--angle-down:focus{z-index:1}.aui-number-input__control--angle-down{margin-top:1px}.aui-number-input__controls{display:none;flex-direction:column;border-left:1px solid rgb(var(--aui-color-border));position:relative}.aui-number-input__controls:after{content:\"\";display:block;width:100%;height:1px;position:absolute;left:0;top:50%;transform:translateY(-50%);background-color:rgb(var(--aui-color-border))}.aui-number-input__addon{display:flex;align-items:center;flex-shrink:0;padding:0 var(--aui-inline-padding-xs);border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8));font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal)}.aui-number-input__addon--before{border-right:none;border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__addon--after{border-left:none;border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}aui-number-input.ng-invalid.ng-dirty .aui-number-input__inner,.ng-submitted aui-number-input.ng-invalid .aui-number-input__inner{border-color:rgb(var(--aui-color-red))}\n"] }]
|
|
89
|
-
}], propDecorators: { size: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], min: [{
|
|
92
|
-
type: Input,
|
|
93
|
-
args: [{
|
|
94
|
-
transform: (val) => numberAttribute(val, Number.MIN_SAFE_INTEGER),
|
|
95
|
-
}]
|
|
96
|
-
}], max: [{
|
|
97
|
-
type: Input,
|
|
98
|
-
args: [{
|
|
99
|
-
transform: (val) => numberAttribute(val, Number.MAX_SAFE_INTEGER),
|
|
100
|
-
}]
|
|
101
|
-
}], step: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], precision: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], controls: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], placeholder: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}], controlsPosition: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], angleControls: [{
|
|
112
|
-
type: Input
|
|
113
|
-
}], clearable: [{
|
|
114
|
-
type: Input
|
|
115
|
-
}], inputRef: [{
|
|
116
|
-
type: ViewChild,
|
|
117
|
-
args: ['inputRef', { read: ElementRef }]
|
|
118
|
-
}], addonBeforeRefs: [{
|
|
119
|
-
type: ContentChildren,
|
|
120
|
-
args: [InputAddonBeforeDirective]
|
|
121
|
-
}], addonAfterRefs: [{
|
|
122
|
-
type: ContentChildren,
|
|
123
|
-
args: [InputAddonAfterDirective]
|
|
124
|
-
}] } });
|
|
125
|
-
export const NUMBER_INPUT_MODULE = [
|
|
126
|
-
NumberInputComponent,
|
|
127
|
-
InputAddonBeforeDirective,
|
|
128
|
-
InputAddonAfterDirective,
|
|
129
|
-
];
|
|
130
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9udW1iZXItaW5wdXQvbnVtYmVyLWlucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9udW1iZXItaW5wdXQvbnVtYmVyLWlucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNwRSxPQUFPLEVBR0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUNMLFNBQVMsRUFDVCxpQkFBaUIsRUFDakIsVUFBVSxFQUNWLGVBQWUsRUFFZixlQUFlLEdBQ2hCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBR25ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUMvQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0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PlxuICA8ZGl2XG4gICAgKm5nSWY9XCJoYXNBZGRvbkFmdGVyJCB8IGFzeW5jXCJcbiAgICBbY2xhc3NdPVwiYmVtLmVsZW1lbnQoJ2FkZG9uJywgJ2FmdGVyJylcIlxuICA+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2F1aUlucHV0QWRkb25BZnRlcl1cIj48L25nLWNvbnRlbnQ+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { NgClass, NgIf } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, ViewChild, ViewEncapsulation, } from '@angular/core';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { IconComponent } from '../../icon';
|
|
5
|
-
import { ComponentSize } from '../../internal/types';
|
|
6
|
-
import { buildBem } from '../../internal/utils';
|
|
7
|
-
import { InputComponent } from '../input.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@angular/forms";
|
|
10
|
-
export class SearchComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.bem = buildBem('aui-search');
|
|
13
|
-
this.size = ComponentSize.Medium;
|
|
14
|
-
this.searchButton = false;
|
|
15
|
-
this.clearable = true;
|
|
16
|
-
this.searching = false;
|
|
17
|
-
this.placeholder = '';
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
this.keywordChange = new EventEmitter();
|
|
20
|
-
this.search = new EventEmitter();
|
|
21
|
-
this.clear = new EventEmitter();
|
|
22
|
-
this.value = '';
|
|
23
|
-
}
|
|
24
|
-
get keyword() {
|
|
25
|
-
return this.value;
|
|
26
|
-
}
|
|
27
|
-
set keyword(value) {
|
|
28
|
-
this.value = value;
|
|
29
|
-
}
|
|
30
|
-
get showSpinner() {
|
|
31
|
-
return this.searching && !this.searchButton;
|
|
32
|
-
}
|
|
33
|
-
get showClear() {
|
|
34
|
-
return !this.disabled && this.clearable && this.value && !this.showSpinner;
|
|
35
|
-
}
|
|
36
|
-
focus() {
|
|
37
|
-
this.inputRef.nativeElement.focus();
|
|
38
|
-
}
|
|
39
|
-
emitChange(value) {
|
|
40
|
-
this.value = value;
|
|
41
|
-
this.keywordChange.emit(value);
|
|
42
|
-
}
|
|
43
|
-
emitSearch() {
|
|
44
|
-
if (this.disabled) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
this.search.emit(this.value);
|
|
48
|
-
}
|
|
49
|
-
emitClear() {
|
|
50
|
-
if (this.disabled) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.value = '';
|
|
54
|
-
this.keywordChange.emit('');
|
|
55
|
-
this.search.emit('');
|
|
56
|
-
this.clear.emit();
|
|
57
|
-
this.inputRef.nativeElement.focus();
|
|
58
|
-
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
60
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.6", type: SearchComponent, isStandalone: true, selector: "aui-search", inputs: { size: "size", searchButton: "searchButton", clearable: "clearable", searching: "searching", placeholder: "placeholder", disabled: "disabled", keyword: "keyword" }, outputs: { keywordChange: "keywordChange", search: "search", clear: "clear" }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n [ngClass]=\"bem.block(size)\"\n [class.hasIcon]=\"!searchButton\"\n [class.hasButton]=\"searchButton\"\n [class.isClearable]=\"showClear\"\n [class.isSearching]=\"searching\"\n [class.isDisabled]=\"disabled\"\n>\n <div\n *ngIf=\"!searchButton\"\n [class]=\"bem.element('icon')\"\n >\n <aui-icon icon=\"magnifier\"></aui-icon>\n </div>\n <input\n #input\n aui-input\n autocomplete=\"off\"\n [ngModel]=\"value\"\n (ngModelChange)=\"emitChange($event)\"\n [disabled]=\"disabled\"\n (keyup.enter)=\"emitSearch()\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n />\n <div\n *ngIf=\"showSpinner\"\n [class]=\"bem.element('spinner')\"\n >\n <aui-icon icon=\"spinner\"></aui-icon>\n </div>\n <div\n [hidden]=\"!showClear\"\n [class]=\"bem.element('clear')\"\n (click)=\"emitClear()\"\n >\n <aui-icon icon=\"xmark_small\"></aui-icon>\n </div>\n <div\n *ngIf=\"searchButton\"\n [class]=\"bem.element('button')\"\n (click)=\"emitSearch()\"\n >\n <div [class]=\"bem.element('button-icon')\">\n <aui-icon [icon]=\"searching ? 'spinner' : 'magnifier'\"></aui-icon>\n </div>\n </div>\n</div>\n", styles: [".aui-search{display:inline-block;width:100%;position:relative;color:rgb(var(--aui-color-n-4))}.aui-search.isDisabled{color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-search--large{font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-search--large aui-icon{font-size:var(--aui-icon-size-l)}.aui-search--large .aui-search__clear,.aui-search--large .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--large.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasIcon.isSearching .aui-search__input,.aui-search--large.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--large.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--large.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--medium{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--medium aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--medium .aui-search__clear,.aui-search--medium .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--medium.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasIcon.isSearching .aui-search__input,.aui-search--medium.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--medium.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--medium.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--small{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--small aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--small .aui-search__clear,.aui-search--small .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--small.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasIcon.isSearching .aui-search__input,.aui-search--small.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--small.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--small.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--mini{font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s)}.aui-search--mini aui-icon{font-size:var(--aui-icon-size-s)}.aui-search--mini .aui-search__clear,.aui-search--mini .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--mini.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasIcon.isSearching .aui-search__input,.aui-search--mini.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--mini.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--mini.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search__icon{position:absolute;top:50%;transform:translateY(-50%);color:rgb(var(--aui-color-placeholder-text))}.aui-search__button{position:absolute;top:0;right:1px;height:100%;display:flex;align-items:center}.aui-search:not(.isDisabled,.isSearching) .aui-search__button{cursor:pointer}.aui-search:not(.isDisabled,.isSearching) .aui-search__button:hover{color:rgb(var(--aui-color-primary))}.aui-search__button-icon{border-left:1px solid rgb(var(--aui-color-n-7))}.aui-search__clear,.aui-search__spinner{position:absolute;top:50%;transform:translateY(-50%)}.aui-search__clear .aui-icon{border-radius:50%;color:rgb(var(--aui-color-help-text));cursor:pointer;transition:all .3s ease}.aui-search__clear .aui-icon:hover{color:rgb(var(--aui-color-main-bg));background-color:rgb(var(--aui-color-help-text))}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "aui-icon", inputs: ["icon", "light", "dark", "link", "margin", "size", "color", "background", "backgroundColor"] }, { kind: "component", type: InputComponent, selector: "input[aui-input],textarea[aui-input]", inputs: ["size", "disabled"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
61
|
-
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchComponent, decorators: [{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector: 'aui-search', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, standalone: true, imports: [NgClass, NgIf, IconComponent, InputComponent, FormsModule], template: "<div\n [ngClass]=\"bem.block(size)\"\n [class.hasIcon]=\"!searchButton\"\n [class.hasButton]=\"searchButton\"\n [class.isClearable]=\"showClear\"\n [class.isSearching]=\"searching\"\n [class.isDisabled]=\"disabled\"\n>\n <div\n *ngIf=\"!searchButton\"\n [class]=\"bem.element('icon')\"\n >\n <aui-icon icon=\"magnifier\"></aui-icon>\n </div>\n <input\n #input\n aui-input\n autocomplete=\"off\"\n [ngModel]=\"value\"\n (ngModelChange)=\"emitChange($event)\"\n [disabled]=\"disabled\"\n (keyup.enter)=\"emitSearch()\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n />\n <div\n *ngIf=\"showSpinner\"\n [class]=\"bem.element('spinner')\"\n >\n <aui-icon icon=\"spinner\"></aui-icon>\n </div>\n <div\n [hidden]=\"!showClear\"\n [class]=\"bem.element('clear')\"\n (click)=\"emitClear()\"\n >\n <aui-icon icon=\"xmark_small\"></aui-icon>\n </div>\n <div\n *ngIf=\"searchButton\"\n [class]=\"bem.element('button')\"\n (click)=\"emitSearch()\"\n >\n <div [class]=\"bem.element('button-icon')\">\n <aui-icon [icon]=\"searching ? 'spinner' : 'magnifier'\"></aui-icon>\n </div>\n </div>\n</div>\n", styles: [".aui-search{display:inline-block;width:100%;position:relative;color:rgb(var(--aui-color-n-4))}.aui-search.isDisabled{color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-search--large{font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-search--large aui-icon{font-size:var(--aui-icon-size-l)}.aui-search--large .aui-search__clear,.aui-search--large .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--large.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasIcon.isSearching .aui-search__input,.aui-search--large.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--large.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--large.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--medium{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--medium aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--medium .aui-search__clear,.aui-search--medium .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--medium.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasIcon.isSearching .aui-search__input,.aui-search--medium.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--medium.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--medium.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--small{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--small aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--small .aui-search__clear,.aui-search--small .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--small.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasIcon.isSearching .aui-search__input,.aui-search--small.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--small.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--small.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--mini{font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s)}.aui-search--mini aui-icon{font-size:var(--aui-icon-size-s)}.aui-search--mini .aui-search__clear,.aui-search--mini .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--mini.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasIcon.isSearching .aui-search__input,.aui-search--mini.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--mini.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 2px)}.aui-search--mini.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search__icon{position:absolute;top:50%;transform:translateY(-50%);color:rgb(var(--aui-color-placeholder-text))}.aui-search__button{position:absolute;top:0;right:1px;height:100%;display:flex;align-items:center}.aui-search:not(.isDisabled,.isSearching) .aui-search__button{cursor:pointer}.aui-search:not(.isDisabled,.isSearching) .aui-search__button:hover{color:rgb(var(--aui-color-primary))}.aui-search__button-icon{border-left:1px solid rgb(var(--aui-color-n-7))}.aui-search__clear,.aui-search__spinner{position:absolute;top:50%;transform:translateY(-50%)}.aui-search__clear .aui-icon{border-radius:50%;color:rgb(var(--aui-color-help-text));cursor:pointer;transition:all .3s ease}.aui-search__clear .aui-icon:hover{color:rgb(var(--aui-color-main-bg));background-color:rgb(var(--aui-color-help-text))}\n"] }]
|
|
65
|
-
}], propDecorators: { size: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], searchButton: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], clearable: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], searching: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], placeholder: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], disabled: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}], keyword: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], keywordChange: [{
|
|
80
|
-
type: Output
|
|
81
|
-
}], search: [{
|
|
82
|
-
type: Output
|
|
83
|
-
}], clear: [{
|
|
84
|
-
type: Output
|
|
85
|
-
}], inputRef: [{
|
|
86
|
-
type: ViewChild,
|
|
87
|
-
args: ['input', { read: ElementRef }]
|
|
88
|
-
}] } });
|
|
89
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY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