@acorex/components 19.10.0-next.1 → 19.10.0-next.2
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.class.d.ts +1 -2
- package/avatar/lib/avatar.component.d.ts +3 -2
- package/badge/lib/badge.component.d.ts +2 -2
- package/button/lib/button.component.d.ts +1 -6
- package/button-group/lib/button-group-item.component.d.ts +3 -1
- package/button-group/lib/button-group.component.d.ts +6 -7
- package/button-group/lib/button-group.module.d.ts +2 -1
- package/chips/lib/chips.component.d.ts +11 -7
- package/color-box/lib/color-box.component.d.ts +5 -1
- package/color-palette/lib/color-palette-picker.component.d.ts +19 -14
- package/color-palette/lib/color-palette.module.d.ts +2 -1
- package/common/lib/classes/styles.class.d.ts +6 -4
- package/common/lib/components/button-base-component.class.d.ts +0 -1
- package/datetime-picker/lib/datetime-picker.component.d.ts +0 -10
- package/datetime-picker/lib/datetime-picker.module.d.ts +2 -1
- package/decorators/index.d.ts +6 -4
- package/decorators/lib/components/color-indicator/color-indicator.component.d.ts +6 -0
- package/decorators/lib/components/generic-content.component.d.ts +1 -1
- package/decorators/lib/components/heading/heading.component.d.ts +11 -0
- package/decorators/lib/decorators.module.d.ts +8 -6
- package/dialog/lib/dialog.component.d.ts +2 -0
- package/dropdown-button/lib/dropdown-button.component.d.ts +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +3 -3
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +3 -3
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +4 -4
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +5 -4
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +5 -5
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +2 -2
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +2 -2
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +167 -163
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +19 -22
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +4 -4
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +2 -2
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +11 -9
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +6 -6
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +2 -2
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +11 -4
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +344 -326
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +10 -10
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +21 -6
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +14 -14
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +9 -17
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +26 -28
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +4 -4
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +2 -3
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +4 -4
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +17 -23
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +50 -21
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +10 -3
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +5 -5
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +6 -12
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +1 -1
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs +4 -4
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +10 -3
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +2 -2
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +42 -57
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +2 -2
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +2 -2
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +56 -0
- package/fesm2022/acorex-components-kbd.mjs.map +1 -0
- package/fesm2022/acorex-components-label.mjs +2 -2
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +2 -2
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +2 -2
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +4 -4
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +5 -5
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +6 -6
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-navbar.mjs +3 -3
- package/fesm2022/acorex-components-navbar.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +4 -4
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +2 -6
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +2 -2
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +10 -10
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +4 -4
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +2 -2
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +128 -233
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +2 -2
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +22 -22
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +245 -0
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -0
- package/fesm2022/acorex-components-rail-navigation.mjs +3 -3
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +3 -3
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +6 -6
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +2 -2
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +2 -2
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +11 -11
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +19 -10
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +5 -3
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +2 -2
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +8 -17
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +2 -2
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +2 -2
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-sliding-item.mjs +153 -0
- package/fesm2022/acorex-components-sliding-item.mjs.map +1 -0
- package/fesm2022/acorex-components-step-wizard.mjs +2 -2
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +8 -3
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +5 -5
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +3 -3
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +6 -3
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +2 -2
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +7 -7
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +4 -4
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +3 -12
- package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +2 -2
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +2 -2
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +6 -6
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +25 -25
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/form/lib/form.component.d.ts +3 -2
- package/image-editor/index.d.ts +0 -1
- package/image-editor/lib/image-editor-container/image-editor-container.component.d.ts +22 -3
- package/image-editor/lib/image-editor.module.d.ts +16 -17
- package/kbd/README.md +3 -0
- package/kbd/index.d.ts +3 -0
- package/kbd/lib/kbd-item/kbd-item.component.d.ts +7 -0
- package/kbd/lib/kbd.component.d.ts +7 -0
- package/kbd/lib/kbd.module.d.ts +9 -0
- package/loading/lib/loading-spinner.component.d.ts +1 -1
- package/menu/lib/menu-item.component.d.ts +2 -1
- package/notification/lib/notification.service.d.ts +1 -1
- package/package.json +13 -1
- package/paint/lib/paint/paint-view/paint-view.component.d.ts +1 -1
- package/picker/index.d.ts +3 -2
- package/picker/lib/picker-container/picker-container.component.d.ts +7 -0
- package/picker/lib/picker-items/picker-items.component.d.ts +20 -0
- package/picker/lib/picker-title/picker-title.component.d.ts +5 -0
- package/picker/lib/picker.module.d.ts +6 -4
- package/progress-bar/lib/progress-bar.component.d.ts +19 -19
- package/query-builder/README.md +3 -0
- package/query-builder/index.d.ts +2 -0
- package/query-builder/lib/query-builder.component.d.ts +31 -0
- package/query-builder/lib/query-builder.module.d.ts +15 -0
- package/range-slider/lib/range-slider.component.d.ts +1 -1
- package/scheduler/lib/scheduler-month-view.component.d.ts +6 -6
- package/search-box/lib/search-box.component.d.ts +5 -1
- package/select-box/lib/select-box.component.d.ts +1 -1
- package/side-menu/lib/side-menu-item/side-menu-item.component.d.ts +3 -6
- package/side-menu/lib/side-menu.component.d.ts +1 -2
- package/sliding-item/README.md +3 -0
- package/sliding-item/index.d.ts +4 -0
- package/sliding-item/lib/sliding-item/sliding-item.component.d.ts +13 -0
- package/sliding-item/lib/sliding-item-prefix/sliding-item-prefix.component.d.ts +11 -0
- package/sliding-item/lib/sliding-item-suffix/sliding-item-suffix.component.d.ts +11 -0
- package/sliding-item/lib/sliding-item.module.d.ts +11 -0
- package/tabs/lib/tabs.class.d.ts +1 -1
- package/text-area/lib/text-area.component.d.ts +5 -1
- package/time-line/lib/time-line.component.d.ts +1 -1
- package/toast/lib/toast.service.d.ts +1 -1
- package/toolbar/lib/toolbar.component.d.ts +1 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +2 -2
- package/image-editor/lib/image-editor-toolbar/image-editor-toolbar.component.d.ts +0 -27
- package/picker/lib/picker-column.directive.d.ts +0 -16
- package/picker/lib/picker.component.d.ts +0 -61
- /package/decorators/lib/components/{clear-button.component.d.ts → clear-button/clear-button.component.d.ts} +0 -0
- /package/decorators/lib/components/{close-button.component.d.ts → close-button/close-button.component.d.ts} +0 -0
- /package/decorators/lib/components/{full-screen-button.component.d.ts → full-screen/full-screen-button.component.d.ts} +0 -0
- /package/decorators/lib/components/{icon.component.d.ts → icon/icon.component.d.ts} +0 -0
@@ -1,266 +1,161 @@
|
|
1
|
-
import { MXValueComponent, MXBaseComponent } from '@acorex/components/common';
|
2
1
|
import * as i0 from '@angular/core';
|
3
|
-
import {
|
2
|
+
import { input, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, Component, viewChild, signal, afterNextRender, effect, forwardRef, NgModule } from '@angular/core';
|
3
|
+
import { MXValueComponent } from '@acorex/components/common';
|
4
4
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
-
import
|
6
|
-
import {
|
7
|
-
import {
|
5
|
+
import * as i1 from '@acorex/cdk/carousel';
|
6
|
+
import { AXCarouselDirective } from '@acorex/cdk/carousel';
|
7
|
+
import { CommonModule } from '@angular/common';
|
8
8
|
|
9
|
-
class
|
9
|
+
class AXPickerContainerComponent {
|
10
10
|
constructor() {
|
11
|
-
|
12
|
-
this.valueField = 'id';
|
13
|
-
this.textField = 'text';
|
14
|
-
this.step = 1;
|
15
|
-
this.itemsChange = new EventEmitter();
|
16
|
-
}
|
17
|
-
get items() {
|
18
|
-
return this._items;
|
19
|
-
}
|
20
|
-
set items(v) {
|
21
|
-
this._items = v;
|
22
|
-
this.itemsChange.emit(v);
|
11
|
+
this.customClass = input('', { alias: 'class' });
|
23
12
|
}
|
24
|
-
|
25
|
-
|
26
|
-
return v;
|
27
|
-
else if (typeof v == 'object') {
|
28
|
-
return this.items.find((c) => c[this.valueField] == v[this.valueField]);
|
29
|
-
}
|
30
|
-
else {
|
31
|
-
return this.items.find((c) => c[this.valueField] == v);
|
32
|
-
}
|
13
|
+
get __hostClass() {
|
14
|
+
return `${this.customClass()}`;
|
33
15
|
}
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
35
|
-
static { this.ɵ
|
36
|
-
{
|
37
|
-
provide: NG_VALUE_ACCESSOR,
|
38
|
-
useExisting: forwardRef(() => AXPickerColumnDirective),
|
39
|
-
multi: true,
|
40
|
-
},
|
41
|
-
], usesInheritance: true, ngImport: i0 }); }
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.3", type: AXPickerContainerComponent, isStandalone: false, selector: "ax-picker-container", inputs: { customClass: { classPropertyName: "customClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, ngImport: i0, template: "<div class=\"ax-picker-title-container\">\n <ng-content select=\"ax-picker-title\"></ng-content>\n</div>\n<div class=\"ax-picker-items-container\">\n <ng-content select=\"ax-picker-items\"></ng-content>\n</div>\n", styles: ["ax-picker-container{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}ax-picker-container .ax-picker-items-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}ax-picker-container .ax-picker-title-container{display:flex;align-items:center;justify-content:center;width:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
42
18
|
}
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
44
|
-
type:
|
45
|
-
args: [{
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
providers: [
|
50
|
-
{
|
51
|
-
provide: NG_VALUE_ACCESSOR,
|
52
|
-
useExisting: forwardRef(() => AXPickerColumnDirective),
|
53
|
-
multi: true,
|
54
|
-
},
|
55
|
-
],
|
56
|
-
standalone: false
|
57
|
-
}]
|
58
|
-
}], propDecorators: { valueField: [{
|
59
|
-
type: Input
|
60
|
-
}], textField: [{
|
61
|
-
type: Input
|
62
|
-
}], title: [{
|
63
|
-
type: Input
|
64
|
-
}], step: [{
|
65
|
-
type: Input
|
66
|
-
}], itemsChange: [{
|
67
|
-
type: Output
|
68
|
-
}], items: [{
|
69
|
-
type: Input
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerContainerComponent, decorators: [{
|
20
|
+
type: Component,
|
21
|
+
args: [{ selector: 'ax-picker-container', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-picker-title-container\">\n <ng-content select=\"ax-picker-title\"></ng-content>\n</div>\n<div class=\"ax-picker-items-container\">\n <ng-content select=\"ax-picker-items\"></ng-content>\n</div>\n", styles: ["ax-picker-container{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}ax-picker-container .ax-picker-items-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}ax-picker-container .ax-picker-title-container{display:flex;align-items:center;justify-content:center;width:100%}\n"] }]
|
22
|
+
}], propDecorators: { __hostClass: [{
|
23
|
+
type: HostBinding,
|
24
|
+
args: ['class']
|
70
25
|
}] } });
|
71
26
|
|
72
|
-
|
73
|
-
* @category Components
|
74
|
-
* A picker component with OnPush change detection and no encapsulation.
|
75
|
-
*/
|
76
|
-
class AXPickerComponent extends MXBaseComponent {
|
27
|
+
class AXPickerItemsComponent extends MXValueComponent {
|
77
28
|
constructor() {
|
78
29
|
super(...arguments);
|
79
|
-
|
80
|
-
this.
|
81
|
-
|
82
|
-
this.
|
83
|
-
|
84
|
-
this.
|
85
|
-
|
86
|
-
this.
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
.subscribe(() => {
|
97
|
-
this._setHeights();
|
98
|
-
this.cdr.detectChanges();
|
99
|
-
this._bindEvents();
|
30
|
+
this.swiperRef = viewChild('c');
|
31
|
+
this.items = input.required();
|
32
|
+
this.valueField = input('id');
|
33
|
+
this.textField = input('text');
|
34
|
+
this.selectedItemIndex = signal(null);
|
35
|
+
this.slidesPerGroup = input();
|
36
|
+
this.loop = input();
|
37
|
+
this.option = signal({
|
38
|
+
direction: 'vertical',
|
39
|
+
keyboard: true,
|
40
|
+
mousewheel: true,
|
41
|
+
autoHeight: true,
|
42
|
+
slidesPerView: 'auto',
|
43
|
+
centeredSlides: true,
|
44
|
+
slidesPerGroup: 1,
|
45
|
+
freeMode: { enabled: true, sticky: true },
|
46
|
+
loop: false,
|
100
47
|
});
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
setTimeout(() => {
|
110
|
-
const val = this.getHostElement().clientHeight - this.getHostElement().querySelector('.ax-header').clientHeight;
|
111
|
-
this.getHostElement().style.setProperty('--ax-content-height', `${val}px`);
|
112
|
-
}, 50);
|
113
|
-
}
|
114
|
-
/** @ignore */
|
115
|
-
_calcItemheight() {
|
116
|
-
if (isPlatformBrowser(this.platformID)) {
|
117
|
-
const rem = window
|
118
|
-
.getComputedStyle(document.documentElement, null)
|
119
|
-
.getPropertyValue('--ax-size-default');
|
120
|
-
return AXDrawingUtil.convertRemToPixels(Number(rem?.replace('rem', '') ?? 0));
|
121
|
-
}
|
122
|
-
return 0;
|
123
|
-
}
|
124
|
-
/** @ignore */
|
125
|
-
_bindEvents() {
|
126
|
-
this._removeEvents();
|
127
|
-
//
|
128
|
-
this._htmlColumns = Array.from(this.getHostElement().querySelectorAll('.ax-picker-col .ax-content'));
|
129
|
-
this._columns.forEach((c) => {
|
130
|
-
c.onValueChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe(() => {
|
131
|
-
this._detectSelectedItemsByValue();
|
48
|
+
this.#init = afterNextRender(() => {
|
49
|
+
this.disabledChange.subscribe((e) => {
|
50
|
+
if (e) {
|
51
|
+
this.swiperRef().carousel().disable();
|
52
|
+
}
|
53
|
+
else {
|
54
|
+
this.swiperRef().carousel().enable();
|
55
|
+
}
|
132
56
|
});
|
133
|
-
|
134
|
-
|
57
|
+
this.readonlyChange.subscribe((e) => {
|
58
|
+
if (e) {
|
59
|
+
this.swiperRef().carousel().disable();
|
60
|
+
}
|
61
|
+
else {
|
62
|
+
this.swiperRef().carousel().enable();
|
63
|
+
}
|
135
64
|
});
|
136
65
|
});
|
137
|
-
this
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
passive: false,
|
150
|
-
});
|
151
|
-
//col.addEventListener('mousemove', this._handleTouchMove.bind(this), { passive: false })
|
152
|
-
//
|
153
|
-
col.addEventListener('touchend', this._handleTouchEnd.bind(this), {
|
154
|
-
passive: false,
|
155
|
-
});
|
156
|
-
//col.addEventListener('mouseup', this._handleTouchMove.bind(this), { passive: false })
|
66
|
+
this.#effect = effect(() => {
|
67
|
+
if (this.swiperRef().carousel()) {
|
68
|
+
this.swiperRef()
|
69
|
+
.carousel()
|
70
|
+
.on('slideChange', (e) => {
|
71
|
+
this.onValueChanged.emit({
|
72
|
+
value: this.items()[e.activeIndex],
|
73
|
+
component: this,
|
74
|
+
isUserInteraction: true,
|
75
|
+
});
|
76
|
+
});
|
77
|
+
}
|
157
78
|
});
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
col.removeEventListener('wheel', this._handleMouseWeel.bind(this));
|
163
|
-
//
|
164
|
-
col.removeEventListener('touchstart', this._handleTouchStart.bind(this));
|
165
|
-
//col.removeEventListener("mousedown", this._handleTouchStart.bind(this));
|
166
|
-
col.removeEventListener('touchmove', this._handleTouchMove.bind(this));
|
167
|
-
//col.removeEventListener('mousemove', this._handleTouchMove.bind(this));
|
168
|
-
//
|
169
|
-
col.removeEventListener('touchend', this._handleTouchEnd.bind(this));
|
170
|
-
//col.removeEventListener('mouseup', this._handleTouchEnd.bind(this));
|
79
|
+
this.#effect2 = effect(() => {
|
80
|
+
if (this.swiperRef().carousel() && this.selectedItemIndex()) {
|
81
|
+
this.swiperRef().carousel().slideTo(this.selectedItemIndex());
|
82
|
+
}
|
171
83
|
});
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
this._previousY = e instanceof TouchEvent ? e.touches[0].clientY : e.clientY;
|
179
|
-
}
|
180
|
-
/** @ignore */
|
181
|
-
_handleTouchMove(e) {
|
182
|
-
this._dragging = true;
|
183
|
-
e.preventDefault();
|
184
|
-
e.stopPropagation();
|
185
|
-
this._zone.runOutsideAngular(() => {
|
186
|
-
if (this._currentList && this._dragging) {
|
187
|
-
const clientY = e instanceof TouchEvent ? e.touches[0].clientY : e.clientY;
|
188
|
-
const delta = clientY - this._previousY;
|
189
|
-
this._previousY = clientY;
|
190
|
-
if (Math.abs(delta) > 1)
|
191
|
-
this._moveByDelta(this._currentList, -delta);
|
84
|
+
this.#effect3 = effect(() => {
|
85
|
+
if (this.slidesPerGroup()) {
|
86
|
+
this.option.update((prev) => ({ ...prev, slidesPerGroup: this.slidesPerGroup() }));
|
87
|
+
}
|
88
|
+
if (this.loop()) {
|
89
|
+
this.option.update((prev) => ({ ...prev, loop: true }));
|
192
90
|
}
|
193
91
|
});
|
194
92
|
}
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
93
|
+
#init;
|
94
|
+
#effect;
|
95
|
+
#effect2;
|
96
|
+
#effect3;
|
97
|
+
clickHandler(v) {
|
98
|
+
if (v == null)
|
99
|
+
return v;
|
100
|
+
if (typeof v == 'object') {
|
101
|
+
this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v[this.valueField()]));
|
102
|
+
}
|
103
|
+
else {
|
104
|
+
this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v));
|
201
105
|
}
|
202
|
-
this._dragging = false;
|
203
|
-
}
|
204
|
-
/** @ignore */
|
205
|
-
_handleMouseWeel(e) {
|
206
|
-
e.preventDefault();
|
207
|
-
e.stopPropagation();
|
208
|
-
this._moveByDelta(e.currentTarget, e.deltaY);
|
209
|
-
}
|
210
|
-
/** @ignore */
|
211
|
-
_moveByDelta(col, deltaY) {
|
212
|
-
const column = col['column'];
|
213
|
-
if (column.readonly || column.disabled)
|
214
|
-
return;
|
215
|
-
let index = column.items.indexOf(column.value);
|
216
|
-
index = deltaY < 0 ? index - column.step : index + column.step;
|
217
|
-
if (index < 0)
|
218
|
-
index = 0;
|
219
|
-
if (index >= column.items.length)
|
220
|
-
index = column.items.length - 1;
|
221
|
-
column.commitValue(column.items[index], true);
|
222
106
|
}
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
107
|
+
internalSetValue(v) {
|
108
|
+
if (v == null)
|
109
|
+
return v;
|
110
|
+
if (typeof v == 'object') {
|
111
|
+
this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v[this.valueField()]));
|
112
|
+
}
|
113
|
+
else {
|
114
|
+
this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v));
|
115
|
+
}
|
228
116
|
}
|
229
117
|
/** @ignore */
|
230
|
-
|
231
|
-
this.
|
232
|
-
this._htmlColumns.forEach((col) => {
|
233
|
-
const column = col['column'];
|
234
|
-
const index = column.items.indexOf(column.value);
|
235
|
-
col.querySelector('ul').style.transform = `translateY(${-index * this._itemHeight}px)`;
|
236
|
-
this.cdr.markForCheck();
|
237
|
-
});
|
238
|
-
});
|
239
|
-
}
|
240
|
-
/**
|
241
|
-
* Refreshes the component by setting heights and detecting selected items by value.
|
242
|
-
*/
|
243
|
-
refresh() {
|
244
|
-
this._setHeights();
|
245
|
-
this._detectSelectedItemsByValue();
|
118
|
+
get __hostClass() {
|
119
|
+
return [`${this.disabled && 'ax-state-disabled'}`, `${this.readonly && 'ax-state-readonly'}`];
|
246
120
|
}
|
247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
248
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type:
|
121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerItemsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPickerItemsComponent, isStandalone: false, selector: "ax-picker-items", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, readonlyChange: { classPropertyName: "readonlyChange", publicName: "readonlyChange", isSignal: false, isRequired: false, transformFunction: null }, disabledChange: { classPropertyName: "disabledChange", publicName: "disabledChange", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, slidesPerGroup: { classPropertyName: "slidesPerGroup", publicName: "slidesPerGroup", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onValueChanged: "onValueChanged" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
|
123
|
+
{
|
124
|
+
provide: NG_VALUE_ACCESSOR,
|
125
|
+
useExisting: forwardRef(() => AXPickerItemsComponent),
|
126
|
+
multi: true,
|
127
|
+
},
|
128
|
+
], viewQueries: [{ propertyName: "swiperRef", first: true, predicate: ["c"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #c=\"axCarousel\" axCarousel [carouselOptions]=\"option()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of items(); track item.id) {\n <div (click)=\"clickHandler(item)\" class=\"ax-carousel-slide\">\n <p class=\"ax-picker-item\">{{ item.text }}</p>\n </div>\n }\n </div>\n\n <div class=\"ax-selected-picker-border\"></div>\n</div>\n", styles: ["ax-picker-items{width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}ax-picker-items.ax-state-disabled{opacity:.5}ax-picker-items.ax-state-disabled .ax-carousel .ax-carousel-slide{cursor:not-allowed}ax-picker-items .ax-carousel{width:100%;height:100%;position:relative}ax-picker-items .ax-carousel .ax-carousel-wrapper .ax-carousel-slide{cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center}ax-picker-items .ax-carousel .ax-carousel-wrapper .ax-carousel-slide .ax-picker-item{width:100%;padding-block:.5rem;-webkit-user-select:none;user-select:none}ax-picker-items .ax-carousel .ax-carousel-wrapper .ax-carousel-slide .ax-picker-item:hover{background-color:rgba(var(--ax-sys-color-primary-200));color:rgba(var(--ax-sys-color-on-contrast-primary))}ax-picker-items .ax-carousel .ax-selected-picker-border{border-block:1px solid rgba(var(--ax-sys-color-primary-500));height:2rem;position:absolute;top:50%;transform:translateY(-50%);width:100%}\n"], dependencies: [{ kind: "directive", type: i1.AXCarouselDirective, selector: "[axCarousel]", inputs: ["carouselOptions"], exportAs: ["axCarousel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
249
129
|
}
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerItemsComponent, decorators: [{
|
251
131
|
type: Component,
|
252
|
-
args: [{ selector: 'ax-picker',
|
253
|
-
|
254
|
-
|
255
|
-
|
132
|
+
args: [{ selector: 'ax-picker-items', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled', 'readonly', 'readonlyChange', 'disabledChange'], outputs: ['onValueChanged'], providers: [
|
133
|
+
{
|
134
|
+
provide: NG_VALUE_ACCESSOR,
|
135
|
+
useExisting: forwardRef(() => AXPickerItemsComponent),
|
136
|
+
multi: true,
|
137
|
+
},
|
138
|
+
], template: "<div #c=\"axCarousel\" axCarousel [carouselOptions]=\"option()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of items(); track item.id) {\n <div (click)=\"clickHandler(item)\" class=\"ax-carousel-slide\">\n <p class=\"ax-picker-item\">{{ item.text }}</p>\n </div>\n }\n </div>\n\n <div class=\"ax-selected-picker-border\"></div>\n</div>\n", styles: ["ax-picker-items{width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}ax-picker-items.ax-state-disabled{opacity:.5}ax-picker-items.ax-state-disabled .ax-carousel .ax-carousel-slide{cursor:not-allowed}ax-picker-items .ax-carousel{width:100%;height:100%;position:relative}ax-picker-items .ax-carousel .ax-carousel-wrapper .ax-carousel-slide{cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center}ax-picker-items .ax-carousel .ax-carousel-wrapper .ax-carousel-slide .ax-picker-item{width:100%;padding-block:.5rem;-webkit-user-select:none;user-select:none}ax-picker-items .ax-carousel .ax-carousel-wrapper .ax-carousel-slide .ax-picker-item:hover{background-color:rgba(var(--ax-sys-color-primary-200));color:rgba(var(--ax-sys-color-on-contrast-primary))}ax-picker-items .ax-carousel .ax-selected-picker-border{border-block:1px solid rgba(var(--ax-sys-color-primary-500));height:2rem;position:absolute;top:50%;transform:translateY(-50%);width:100%}\n"] }]
|
139
|
+
}], propDecorators: { __hostClass: [{
|
140
|
+
type: HostBinding,
|
141
|
+
args: ['class']
|
256
142
|
}] } });
|
257
143
|
|
258
|
-
|
259
|
-
|
144
|
+
class AXPickerTitleComponent {
|
145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
146
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPickerTitleComponent, isStandalone: false, selector: "ax-picker-title", ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["ax-picker-title{display:flex;justify-content:center;align-items:center;padding:.5rem;width:100%;height:fit-content}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
147
|
+
}
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerTitleComponent, decorators: [{
|
149
|
+
type: Component,
|
150
|
+
args: [{ selector: 'ax-picker-title', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n", styles: ["ax-picker-title{display:flex;justify-content:center;align-items:center;padding:.5rem;width:100%;height:fit-content}\n"] }]
|
151
|
+
}] });
|
152
|
+
|
153
|
+
const COMPONENT = [AXPickerContainerComponent, AXPickerItemsComponent, AXPickerTitleComponent];
|
154
|
+
const MODULES = [CommonModule, AXCarouselDirective];
|
260
155
|
class AXPickerModule {
|
261
156
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
262
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXPickerModule, declarations: [
|
263
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerModule, imports: [
|
157
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXPickerModule, declarations: [AXPickerContainerComponent, AXPickerItemsComponent, AXPickerTitleComponent], imports: [CommonModule, AXCarouselDirective], exports: [AXPickerContainerComponent, AXPickerItemsComponent, AXPickerTitleComponent] }); }
|
158
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerModule, imports: [CommonModule] }); }
|
264
159
|
}
|
265
160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPickerModule, decorators: [{
|
266
161
|
type: NgModule,
|
@@ -276,5 +171,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
276
171
|
* Generated bundle index. Do not edit.
|
277
172
|
*/
|
278
173
|
|
279
|
-
export {
|
174
|
+
export { AXPickerContainerComponent, AXPickerItemsComponent, AXPickerModule, AXPickerTitleComponent };
|
280
175
|
//# sourceMappingURL=acorex-components-picker.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-picker.mjs","sources":["../../../../libs/components/picker/src/lib/picker-column.directive.ts","../../../../libs/components/picker/src/lib/picker.component.ts","../../../../libs/components/picker/src/lib/picker.component.html","../../../../libs/components/picker/src/lib/picker.module.ts","../../../../libs/components/picker/src/acorex-components-picker.ts"],"sourcesContent":["import { MXValueComponent } from '@acorex/components/common';\nimport { Directive, EventEmitter, Input, Output, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Directive({\n selector: 'ax-picker-column',\n inputs: ['disabled', 'readonly', 'readonlyChange', 'disabledChange'],\n outputs: ['onValueChanged'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXPickerColumnDirective),\n multi: true,\n },\n ],\n standalone: false\n})\nexport class AXPickerColumnDirective extends MXValueComponent {\n @Input()\n valueField = 'id';\n\n @Input()\n textField = 'text';\n\n @Input()\n public title: string;\n @Input()\n public step = 1;\n\n @Output()\n itemsChange: EventEmitter<unknown[]> = new EventEmitter<unknown[]>();\n\n private _items: unknown[];\n @Input()\n public get items(): unknown[] {\n return this._items;\n }\n public set items(v: unknown[]) {\n this._items = v;\n this.itemsChange.emit(v);\n }\n\n override internalSetValue(v) {\n if (v == null) return v;\n else if (typeof v == 'object') {\n return this.items.find((c) => c[this.valueField] == v[this.valueField]);\n } else {\n return this.items.find((c) => c[this.valueField] == v);\n }\n }\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { AXDrawingUtil, AXUnsubscriber } from '@acorex/core/utils';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n NgZone,\n OnDestroy,\n PLATFORM_ID,\n QueryList,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { startWith } from 'rxjs';\nimport { AXPickerColumnDirective } from './picker-column.directive';\n\n/**\n * @category Components\n * A picker component with OnPush change detection and no encapsulation.\n */\n@Component({\n selector: 'ax-picker',\n templateUrl: './picker.component.html',\n styleUrls: ['./picker.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [AXUnsubscriber],\n standalone: false\n})\nexport class AXPickerComponent extends MXBaseComponent implements AfterContentInit, OnDestroy {\n /** @ignore */\n @ContentChildren(AXPickerColumnDirective, { emitDistinctChangesOnly: true })\n\n /** @ignore */\n protected _columns: QueryList<AXPickerColumnDirective> = {} as QueryList<AXPickerColumnDirective>;\n\n /** @ignore */\n private _itemHeight = this._calcItemheight();\n\n /** @ignore */\n private _htmlColumns: HTMLDivElement[];\n\n /** @ignore */\n private _dragging = false;\n\n /** @ignore */\n private _previousY: number;\n\n /** @ignore */\n private _currentList: HTMLDivElement;\n\n /** @ignore */\n protected _unsubscriber: AXUnsubscriber = inject(AXUnsubscriber);\n\n /** @ignore */\n protected _zone: NgZone = inject(NgZone);\n protected platformID = inject(PLATFORM_ID);\n\n /** @ignore */\n ngAfterContentInit() {\n this._columns.changes\n .pipe(this._unsubscriber.takeUntilDestroy)\n .pipe(startWith(undefined))\n .subscribe(() => {\n this._setHeights();\n this.cdr.detectChanges();\n this._bindEvents();\n });\n }\n\n /** @ignore */\n ngOnDestroy() {\n this._removeEvents();\n }\n\n /** @ignore */\n private _setHeights() {\n this._itemHeight = this._calcItemheight();\n setTimeout(() => {\n const val =\n this.getHostElement().clientHeight - this.getHostElement().querySelector('.ax-header').clientHeight;\n this.getHostElement().style.setProperty('--ax-content-height', `${val}px`);\n }, 50);\n }\n\n /** @ignore */\n private _calcItemheight(): number {\n if (isPlatformBrowser(this.platformID)) {\n const rem = window\n .getComputedStyle(document.documentElement, null)\n .getPropertyValue('--ax-size-default');\n return AXDrawingUtil.convertRemToPixels(Number(rem?.replace('rem', '') ?? 0));\n }\n return 0;\n }\n\n /** @ignore */\n private _bindEvents(): void {\n this._removeEvents();\n //\n this._htmlColumns = Array.from(\n this.getHostElement().querySelectorAll<HTMLDivElement>('.ax-picker-col .ax-content'),\n );\n this._columns.forEach((c) => {\n c.onValueChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe(() => {\n this._detectSelectedItemsByValue();\n });\n c.onOptionChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe(() => {\n this.cdr.markForCheck();\n });\n });\n\n this._htmlColumns.forEach((col, index) => {\n col['column'] = this._columns.get(index);\n col.addEventListener('wheel', this._handleMouseWeel.bind(this), {\n passive: false,\n });\n //\n col.addEventListener('touchstart', this._handleTouchStart.bind(this), {\n passive: false,\n });\n //col.addEventListener(\"mousedown\", this._handleTouchStart.bind(this), { passive: false });\n //\n col.addEventListener('touchmove', this._handleTouchMove.bind(this), {\n passive: false,\n });\n //col.addEventListener('mousemove', this._handleTouchMove.bind(this), { passive: false })\n //\n col.addEventListener('touchend', this._handleTouchEnd.bind(this), {\n passive: false,\n });\n //col.addEventListener('mouseup', this._handleTouchMove.bind(this), { passive: false })\n });\n }\n\n /** @ignore */\n private _removeEvents(): void {\n this._htmlColumns?.forEach((col) => {\n col.removeEventListener('wheel', this._handleMouseWeel.bind(this));\n //\n col.removeEventListener('touchstart', this._handleTouchStart.bind(this));\n //col.removeEventListener(\"mousedown\", this._handleTouchStart.bind(this));\n col.removeEventListener('touchmove', this._handleTouchMove.bind(this));\n //col.removeEventListener('mousemove', this._handleTouchMove.bind(this));\n //\n col.removeEventListener('touchend', this._handleTouchEnd.bind(this));\n //col.removeEventListener('mouseup', this._handleTouchEnd.bind(this));\n });\n }\n\n /** @ignore */\n _handleTouchStart(e: MouseEvent | TouchEvent) {\n e.preventDefault();\n e.stopPropagation();\n this._currentList = e.currentTarget as HTMLDivElement;\n this._previousY = e instanceof TouchEvent ? e.touches[0].clientY : e.clientY;\n }\n\n /** @ignore */\n private _handleTouchMove(e: MouseEvent | TouchEvent): void {\n this._dragging = true;\n e.preventDefault();\n e.stopPropagation();\n this._zone.runOutsideAngular(() => {\n if (this._currentList && this._dragging) {\n const clientY = e instanceof TouchEvent ? e.touches[0].clientY : e.clientY;\n const delta = clientY - this._previousY;\n this._previousY = clientY;\n if (Math.abs(delta) > 1) this._moveByDelta(this._currentList, -delta);\n }\n });\n }\n\n /** @ignore */\n private _handleTouchEnd(e: MouseEvent | TouchEvent): void {\n // simulate click\n const targetelement = e.target as HTMLElement;\n if (!this._dragging && targetelement.tagName == 'LI') {\n targetelement.click();\n }\n this._dragging = false;\n }\n\n /** @ignore */\n private _handleMouseWeel(e: WheelEvent): void {\n e.preventDefault();\n e.stopPropagation();\n this._moveByDelta(e.currentTarget as HTMLDivElement, e.deltaY);\n }\n\n /** @ignore */\n private _moveByDelta(col: HTMLDivElement, deltaY: number) {\n const column = col['column'] as AXPickerColumnDirective;\n if (column.readonly || column.disabled) return;\n let index = column.items.indexOf(column.value);\n index = deltaY < 0 ? index - column.step : index + column.step;\n if (index < 0) index = 0;\n if (index >= column.items.length) index = column.items.length - 1;\n column.commitValue(column.items[index], true);\n }\n\n /** @ignore */\n protected _handleItemClick(column: AXPickerColumnDirective, item: any) {\n if (column.readonly || column.disabled) return;\n column.commitValue(item, true);\n }\n\n /** @ignore */\n private _detectSelectedItemsByValue(): void {\n this._zone.runOutsideAngular(() => {\n this._htmlColumns.forEach((col) => {\n const column = col['column'] as AXPickerColumnDirective;\n const index = column.items.indexOf(column.value);\n col.querySelector('ul').style.transform = `translateY(${-index * this._itemHeight}px)`;\n this.cdr.markForCheck();\n });\n });\n }\n\n /**\n * Refreshes the component by setting heights and detecting selected items by value.\n */\n public refresh() {\n this._setHeights();\n this._detectSelectedItemsByValue();\n }\n}\n","<div class=\"ax-header\">\n @for (col of _columns; track $index) {\n <div class=\"ax-picker-col\">\n <div class=\"ax-header\">\n {{ col.title }}\n </div>\n </div>\n }\n</div>\n<div class=\"ax-content\">\n <div class=\"ax-picker-window\"></div>\n @for (col of _columns; track $index) {\n <div\n class=\"ax-picker-col\"\n [class.ax-state-disabled]=\"col.disabled\"\n [class.ax-state-readonly]=\"col.readonly\"\n >\n <div class=\"ax-content\">\n <ul>\n @for (item of col.items; track $index) {\n <li\n (click)=\"_handleItemClick(col, item)\"\n [class.ax-state-active]=\"col.value && col.value[col.valueField] === item[col.valueField]\"\n [class.ax-state-disabled]=\"col.disabled\"\n [class.ax-state-readonly]=\"col.readonly\"\n >\n {{ item[col.textField] }}\n </li>\n }\n </ul>\n </div>\n </div>\n }\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXPickerColumnDirective } from './picker-column.directive';\nimport { AXPickerComponent } from './picker.component';\n\nconst COMPONENT = [AXPickerComponent, AXPickerColumnDirective];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXPickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAiBM,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;AAb7D,IAAA,WAAA,GAAA;;QAeE,IAAU,CAAA,UAAA,GAAG,IAAI;QAGjB,IAAS,CAAA,SAAA,GAAG,MAAM;QAKX,IAAI,CAAA,IAAA,GAAG,CAAC;AAGf,QAAA,IAAA,CAAA,WAAW,GAA4B,IAAI,YAAY,EAAa;AAoBrE;AAjBC,IAAA,IACW,KAAK,GAAA;QACd,OAAO,IAAI,CAAC,MAAM;;IAEpB,IAAW,KAAK,CAAC,CAAY,EAAA;AAC3B,QAAA,IAAI,CAAC,MAAM,GAAG,CAAC;AACf,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;;AAGjB,IAAA,gBAAgB,CAAC,CAAC,EAAA;QACzB,IAAI,CAAC,IAAI,IAAI;AAAE,YAAA,OAAO,CAAC;AAClB,aAAA,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d,iBAAA;;;ACbD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-picker.mjs","sources":["../../../../libs/components/picker/src/lib/picker-container/picker-container.component.ts","../../../../libs/components/picker/src/lib/picker-container/picker-container.component.html","../../../../libs/components/picker/src/lib/picker-items/picker-items.component.ts","../../../../libs/components/picker/src/lib/picker-items/picker-items.component.html","../../../../libs/components/picker/src/lib/picker-title/picker-title.component.ts","../../../../libs/components/picker/src/lib/picker-title/picker-title.component.html","../../../../libs/components/picker/src/lib/picker.module.ts","../../../../libs/components/picker/src/acorex-components-picker.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-picker-container',\n templateUrl: './picker-container.component.html',\n styleUrls: ['./picker-container.component.scss'],\n standalone: false,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPickerContainerComponent {\n customClass = input<string>('', { alias: 'class' });\n\n @HostBinding('class')\n get __hostClass(): string {\n return `${this.customClass()}`;\n }\n}\n","<div class=\"ax-picker-title-container\">\n <ng-content select=\"ax-picker-title\"></ng-content>\n</div>\n<div class=\"ax-picker-items-container\">\n <ng-content select=\"ax-picker-items\"></ng-content>\n</div>\n","import { AXCarouselDirective, AXCarouselOptions } from '@acorex/cdk/carousel';\nimport { MXValueComponent } from '@acorex/components/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n effect,\n forwardRef,\n HostBinding,\n input,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'ax-picker-items',\n templateUrl: './picker-items.component.html',\n styleUrls: ['./picker-items.component.scss'],\n standalone: false,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['disabled', 'readonly', 'readonlyChange', 'disabledChange'],\n outputs: ['onValueChanged'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXPickerItemsComponent),\n multi: true,\n },\n ],\n})\nexport class AXPickerItemsComponent extends MXValueComponent {\n protected swiperRef = viewChild<AXCarouselDirective>('c');\n\n items = input.required<any[]>();\n valueField = input('id');\n textField = input('text');\n selectedItemIndex = signal(null);\n slidesPerGroup = input<number>();\n loop = input<boolean>();\n\n protected option = signal<AXCarouselOptions>({\n direction: 'vertical',\n keyboard: true,\n mousewheel: true,\n autoHeight: true,\n slidesPerView: 'auto',\n centeredSlides: true,\n slidesPerGroup: 1,\n freeMode: { enabled: true, sticky: true },\n loop: false,\n });\n\n #init = afterNextRender(() => {\n this.disabledChange.subscribe((e) => {\n if (e) {\n this.swiperRef().carousel().disable();\n } else {\n this.swiperRef().carousel().enable();\n }\n });\n\n this.readonlyChange.subscribe((e) => {\n if (e) {\n this.swiperRef().carousel().disable();\n } else {\n this.swiperRef().carousel().enable();\n }\n });\n });\n\n #effect = effect(() => {\n if (this.swiperRef().carousel()) {\n this.swiperRef()\n .carousel()\n .on('slideChange', (e) => {\n this.onValueChanged.emit({\n value: this.items()[e.activeIndex],\n component: this,\n isUserInteraction: true,\n });\n });\n }\n });\n\n #effect2 = effect(() => {\n if (this.swiperRef().carousel() && this.selectedItemIndex()) {\n this.swiperRef().carousel().slideTo(this.selectedItemIndex());\n }\n });\n\n #effect3 = effect(() => {\n if (this.slidesPerGroup()) {\n this.option.update((prev) => ({ ...prev, slidesPerGroup: this.slidesPerGroup() }));\n }\n if (this.loop()) {\n this.option.update((prev) => ({ ...prev, loop: true }));\n }\n });\n\n protected clickHandler(v: any) {\n if (v == null) return v;\n if (typeof v == 'object') {\n this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v[this.valueField()]));\n } else {\n this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v));\n }\n }\n\n override internalSetValue(v) {\n if (v == null) return v;\n if (typeof v == 'object') {\n this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v[this.valueField()]));\n } else {\n this.selectedItemIndex.set(this.items().findIndex((c) => c[this.valueField()] == v));\n }\n }\n\n /** @ignore */\n @HostBinding('class')\n private get __hostClass(): string[] {\n return [`${this.disabled && 'ax-state-disabled'}`, `${this.readonly && 'ax-state-readonly'}`];\n }\n}\n","<div #c=\"axCarousel\" axCarousel [carouselOptions]=\"option()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of items(); track item.id) {\n <div (click)=\"clickHandler(item)\" class=\"ax-carousel-slide\">\n <p class=\"ax-picker-item\">{{ item.text }}</p>\n </div>\n }\n </div>\n\n <div class=\"ax-selected-picker-border\"></div>\n</div>\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-picker-title',\n templateUrl: './picker-title.component.html',\n styleUrls: ['./picker-title.component.scss'],\n standalone: false,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPickerTitleComponent {}\n","<ng-content></ng-content>\n","import { AXCarouselDirective } from '@acorex/cdk/carousel';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXPickerContainerComponent } from './picker-container/picker-container.component';\nimport { AXPickerItemsComponent } from './picker-items/picker-items.component';\nimport { AXPickerTitleComponent } from './picker-title/picker-title.component';\n\nconst COMPONENT = [AXPickerContainerComponent, AXPickerItemsComponent, AXPickerTitleComponent];\nconst MODULES = [CommonModule, AXCarouselDirective];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXPickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,0BAA0B,CAAA;AARvC,IAAA,WAAA,GAAA;QASE,IAAW,CAAA,WAAA,GAAG,KAAK,CAAS,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,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AAC9F,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,mBAAmB,CAAC;MAQtC,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EATR,YAAA,EAAA,CAAA,0BAA0B,EAAE,sBAAsB,EAAE,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAC5E,YAAY,EAAE,mBAAmB,CAD/B,EAAA,OAAA,EAAA,CAAA,0BAA0B,EAAE,sBAAsB,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAShF,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YARV,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAQhB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACfD;;AAEG;;;;"}
|
@@ -168,11 +168,11 @@ class AXPopupComponent extends MXBaseComponent {
|
|
168
168
|
}
|
169
169
|
}
|
170
170
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i1.AXLoadingService }, { token: i2.AXPlatform }, { token: DIALOG_DATA }, { token: i3.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
171
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPopupComponent, isStandalone: false, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper
|
171
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPopupComponent, isStandalone: false, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-popup ax-popup-{{ data.size }}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!data.draggable\">\n <div cdkDragHandle class=\"ax-popup-header-container\">\n @if (data.header) {\n <div class=\"ax-popup-header\">\n <span class=\"ax-popup-title\">{{ data.title | translate | async }}</span>\n @if (data.closeButton) {\n <ax-close-button tabindex=\"1\"></ax-close-button>\n }\n </div>\n }\n </div>\n <div class=\"ax-popup-main-container ax-loading-container\">\n <div class=\"ax-popup-body-container\">\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n </div>\n <div class=\"ax-popup-footer-container\"></div>\n </div>\n </div>\n</div>\n", styles: [".ax-popup{max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh));margin-left:auto;margin-right:auto;display:flex;width:auto;flex-direction:column;overflow:hidden;border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-border-color));background-color:rgba(var(--ax-comp-popup-bg-color, var(--ax-sys-color-surface-lowest)));padding:0;--ax-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-shadow);outline:2px solid transparent;outline-offset:2px;color:rgba(var(--ax-sys-body-text-color))}.ax-popup .ax-popup-header-container{background-color:rgba(var(--ax-comp-popup-header-bg-color, var(--ax-sys-color-surface-low)))}.ax-popup .ax-popup-header-container .ax-popup-header{display:flex;align-items:center;justify-content:space-between;border-bottom-width:1px;border-color:rgba(var(--ax-sys-border-color));padding:.75rem}.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1rem;font-weight:500}@media (min-width: 768px){.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1.125rem;line-height:1.75rem}}.ax-popup ax-footer{box-shadow:0 2px 10px #0000004d;display:flex;align-items:center;justify-content:space-between;border-top-width:1px;border-color:rgba(var(--ax-sys-border-color));padding:.75rem}.ax-popup:focus{outline:2px solid transparent;outline-offset:2px}.ax-popup:focus-visible{border-color:rgba(var(--ax-sys-color-primary-500))}.ax-popup .ax-popup-main-container{display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden}.ax-popup .ax-popup-main-container .ax-popup-body-container{flex:1 1 0%;overflow:auto;background-color:rgba(var(--ax-comp-popup-body-bg-color, var(--ax-sys-color-surface-lowest)))}.ax-popup .ax-popup-main-container .ax-popup-footer-container{background-color:rgba(var(--ax-comp-popup-footer-bg-color, var(--ax-sys-color-surface-lowest)))}.ax-popup.ax-popup-full{width:100vw;max-height:calc(100 * var(--ax-vh));height:calc(100 * var(--ax-vh));border-radius:0!important}.ax-popup.ax-fit{width:fit-content!important}.ax-popup.ax-fit .ax-popup-body-container{max-height:100vh}.ax-popup.ax-fit .ax-popup-body-container>ng-component>div{width:fit-content!important}@media (min-width: 320px) and (max-width: 640px){.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg{width:93vw!important;height:fit-content;max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh))!important}.ax-popup.ax-popup-sm .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-md .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-lg .ax-popup-body-container>ng-component>div{width:100%}}@media (min-width: 768px){.ax-popup.ax-popup-sm{width:55vw!important}.ax-popup.ax-popup-md{width:65vw!important}.ax-popup.ax-popup-lg{width:75vw!important}}@media (min-width: 1280px){.ax-popup.ax-popup-sm{width:30vw!important}.ax-popup.ax-popup-md{width:50vw!important}.ax-popup.ax-popup-lg{width:85vw!important}}@media (min-width: 1536px){.ax-popup.ax-popup-sm{width:25vw!important}.ax-popup.ax-popup-md{width:40vw!important}.ax-popup.ax-popup-lg{width:65vw!important}}\n"], dependencies: [{ kind: "directive", type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i4.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: i6.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i7.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["closeAll", "icon"] }, { kind: "pipe", type: i8.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
172
172
|
}
|
173
173
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPopupComponent, decorators: [{
|
174
174
|
type: Component,
|
175
|
-
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], standalone: false, template: "<div class=\"ax-popup-wrapper
|
175
|
+
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], standalone: false, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-popup ax-popup-{{ data.size }}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!data.draggable\">\n <div cdkDragHandle class=\"ax-popup-header-container\">\n @if (data.header) {\n <div class=\"ax-popup-header\">\n <span class=\"ax-popup-title\">{{ data.title | translate | async }}</span>\n @if (data.closeButton) {\n <ax-close-button tabindex=\"1\"></ax-close-button>\n }\n </div>\n }\n </div>\n <div class=\"ax-popup-main-container ax-loading-container\">\n <div class=\"ax-popup-body-container\">\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n </div>\n <div class=\"ax-popup-footer-container\"></div>\n </div>\n </div>\n</div>\n", styles: [".ax-popup{max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh));margin-left:auto;margin-right:auto;display:flex;width:auto;flex-direction:column;overflow:hidden;border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-border-color));background-color:rgba(var(--ax-comp-popup-bg-color, var(--ax-sys-color-surface-lowest)));padding:0;--ax-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-shadow);outline:2px solid transparent;outline-offset:2px;color:rgba(var(--ax-sys-body-text-color))}.ax-popup .ax-popup-header-container{background-color:rgba(var(--ax-comp-popup-header-bg-color, var(--ax-sys-color-surface-low)))}.ax-popup .ax-popup-header-container .ax-popup-header{display:flex;align-items:center;justify-content:space-between;border-bottom-width:1px;border-color:rgba(var(--ax-sys-border-color));padding:.75rem}.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1rem;font-weight:500}@media (min-width: 768px){.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1.125rem;line-height:1.75rem}}.ax-popup ax-footer{box-shadow:0 2px 10px #0000004d;display:flex;align-items:center;justify-content:space-between;border-top-width:1px;border-color:rgba(var(--ax-sys-border-color));padding:.75rem}.ax-popup:focus{outline:2px solid transparent;outline-offset:2px}.ax-popup:focus-visible{border-color:rgba(var(--ax-sys-color-primary-500))}.ax-popup .ax-popup-main-container{display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden}.ax-popup .ax-popup-main-container .ax-popup-body-container{flex:1 1 0%;overflow:auto;background-color:rgba(var(--ax-comp-popup-body-bg-color, var(--ax-sys-color-surface-lowest)))}.ax-popup .ax-popup-main-container .ax-popup-footer-container{background-color:rgba(var(--ax-comp-popup-footer-bg-color, var(--ax-sys-color-surface-lowest)))}.ax-popup.ax-popup-full{width:100vw;max-height:calc(100 * var(--ax-vh));height:calc(100 * var(--ax-vh));border-radius:0!important}.ax-popup.ax-fit{width:fit-content!important}.ax-popup.ax-fit .ax-popup-body-container{max-height:100vh}.ax-popup.ax-fit .ax-popup-body-container>ng-component>div{width:fit-content!important}@media (min-width: 320px) and (max-width: 640px){.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg{width:93vw!important;height:fit-content;max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh))!important}.ax-popup.ax-popup-sm .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-md .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-lg .ax-popup-body-container>ng-component>div{width:100%}}@media (min-width: 768px){.ax-popup.ax-popup-sm{width:55vw!important}.ax-popup.ax-popup-md{width:65vw!important}.ax-popup.ax-popup-lg{width:75vw!important}}@media (min-width: 1280px){.ax-popup.ax-popup-sm{width:30vw!important}.ax-popup.ax-popup-md{width:50vw!important}.ax-popup.ax-popup-lg{width:85vw!important}}@media (min-width: 1536px){.ax-popup.ax-popup-sm{width:25vw!important}.ax-popup.ax-popup-md{width:40vw!important}.ax-popup.ax-popup-lg{width:65vw!important}}\n"] }]
|
176
176
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i1.AXLoadingService }, { type: i2.AXPlatform }, { type: undefined, decorators: [{
|
177
177
|
type: Inject,
|
178
178
|
args: [DIALOG_DATA]
|