@acorex/components 18.10.4 → 18.10.6
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/map/acorex-components-map.mjs +5 -0
- package/esm2022/map/index.mjs +3 -0
- package/esm2022/map/lib/map.component.mjs +78 -0
- package/esm2022/map/lib/map.module.mjs +18 -0
- package/esm2022/menu/index.mjs +2 -1
- package/esm2022/menu/lib/menu-item/menu-item.component.mjs +5 -18
- package/esm2022/menu/lib/menu-item-text/menu-item-text.component.mjs +11 -0
- package/esm2022/menu/lib/menu.component.mjs +9 -117
- package/esm2022/menu/lib/menu.module.mjs +4 -3
- package/esm2022/menu/lib/menu.service.mjs +2 -7
- package/esm2022/rate-picker/acorex-components-rate-picker.mjs +5 -0
- package/esm2022/rate-picker/index.mjs +3 -0
- package/esm2022/rate-picker/lib/calculatePercentage.mjs +45 -0
- package/esm2022/rate-picker/lib/rate-picker.component.mjs +184 -0
- package/esm2022/rate-picker/lib/rate-picker.module.mjs +18 -0
- package/esm2022/time-line/acorex-components-time-line.mjs +5 -0
- package/esm2022/time-line/index.mjs +4 -0
- package/esm2022/time-line/lib/time-line-item.component.mjs +48 -0
- package/esm2022/time-line/lib/time-line.component.mjs +14 -0
- package/esm2022/time-line/lib/time-line.module.mjs +19 -0
- package/fesm2022/acorex-components-map.mjs +100 -0
- package/fesm2022/acorex-components-map.mjs.map +1 -0
- package/fesm2022/acorex-components-menu.mjs +24 -141
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +250 -0
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -0
- package/fesm2022/acorex-components-time-line.mjs +81 -0
- package/fesm2022/acorex-components-time-line.mjs.map +1 -0
- package/map/README.md +3 -0
- package/map/index.d.ts +3 -0
- package/map/lib/map.component.d.ts +25 -0
- package/map/lib/map.module.d.ts +8 -0
- package/menu/index.d.ts +1 -0
- package/menu/lib/menu-item/menu-item.component.d.ts +1 -3
- package/menu/lib/menu-item-text/menu-item-text.component.d.ts +5 -0
- package/menu/lib/menu.component.d.ts +1 -6
- package/menu/lib/menu.module.d.ts +9 -8
- package/menu/lib/menu.service.d.ts +0 -5
- package/package.json +48 -30
- package/rate-picker/README.md +3 -0
- package/rate-picker/index.d.ts +2 -0
- package/rate-picker/lib/calculatePercentage.d.ts +27 -0
- package/rate-picker/lib/rate-picker.component.d.ts +69 -0
- package/rate-picker/lib/rate-picker.module.d.ts +8 -0
- package/time-line/README.md +3 -0
- package/time-line/index.d.ts +3 -0
- package/time-line/lib/time-line-item.component.d.ts +14 -0
- package/time-line/lib/time-line.component.d.ts +7 -0
- package/time-line/lib/time-line.module.d.ts +9 -0
@@ -1,77 +1,19 @@
|
|
1
1
|
import { MXBaseComponent } from '@acorex/components/common';
|
2
|
-
import {
|
2
|
+
import { Component, ContentChildren, HostBinding, inject, input, QueryList, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import { AXRootMenu } from './class/root-menu.class';
|
4
4
|
import { AXMenuItemComponent } from './menu-item/menu-item.component';
|
5
5
|
import { AXMenuService } from './menu.service';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@acorex/components/decorators";
|
8
7
|
/**
|
9
8
|
* Represents a menu component that displays menu items.
|
10
9
|
* @category Components
|
11
10
|
*/
|
12
11
|
export class AXMenuComponent extends MXBaseComponent {
|
13
12
|
constructor() {
|
14
|
-
super();
|
13
|
+
super(...arguments);
|
15
14
|
this.orientation = input('horizontal');
|
16
15
|
this.openOn = input('toggle');
|
17
16
|
this.service = inject(AXMenuService);
|
18
|
-
this.menuHeight = signal('');
|
19
|
-
this.isMenuOpen = signal(false);
|
20
|
-
this.truncateMenu = input(false);
|
21
|
-
afterNextRender(() => {
|
22
|
-
if (!this.truncateMenu())
|
23
|
-
return;
|
24
|
-
//add menu container border for detect overflow happen
|
25
|
-
this.menuHeight.set(`${this.getHostElement()?.getClientRects()[0]?.height + 10}px`);
|
26
|
-
this.service.rightOverflow.set(this.getHostElement()?.querySelector('.ax-menu-item-container')?.getClientRects()[0]?.right);
|
27
|
-
this.service.leftOverflow.set(this.getHostElement()?.querySelector('.ax-menu-item-container')?.getClientRects()[0]?.left);
|
28
|
-
let resizeTimer;
|
29
|
-
window.addEventListener('resize', () => {
|
30
|
-
//add menu container border for detect overflow happen
|
31
|
-
clearTimeout(resizeTimer);
|
32
|
-
if (!this.getHostElement())
|
33
|
-
return;
|
34
|
-
resizeTimer = setTimeout(() => {
|
35
|
-
this.service.rightOverflow.set(this.getHostElement()?.querySelector('.ax-menu-item-container').getClientRects()[0].right);
|
36
|
-
this.service.leftOverflow.set(this.getHostElement()?.querySelector('.ax-menu-item-container').getClientRects()[0].left);
|
37
|
-
if (this.isMenuOpen())
|
38
|
-
this.showMenuHandler();
|
39
|
-
this.service.notOverflowElements.set([]);
|
40
|
-
this.service.overflowElements.set([]);
|
41
|
-
}, 200);
|
42
|
-
});
|
43
|
-
document.addEventListener('click', (event) => {
|
44
|
-
const menu = document.querySelector('.ax-overflow-menu-container');
|
45
|
-
const menuButton = document.querySelector('.ax-show-truncate-menu');
|
46
|
-
if (!menu.contains(event.target) &&
|
47
|
-
!menuButton.contains(event.target)) {
|
48
|
-
if (this.isMenuOpen())
|
49
|
-
this.showMenuHandler();
|
50
|
-
}
|
51
|
-
});
|
52
|
-
});
|
53
|
-
}
|
54
|
-
showMenuHandler() {
|
55
|
-
this.isMenuOpen.update((prev) => !prev);
|
56
|
-
const injectContainer = this.getHostElement().querySelector('.ax-overflow-menu-container');
|
57
|
-
const injectContainer2 = this.getHostElement().querySelector('.ax-menu-item-container');
|
58
|
-
if (this.isMenuOpen()) {
|
59
|
-
this.service.overflowElements().forEach((item) => {
|
60
|
-
item.classList.add('overflowMenuOverride');
|
61
|
-
injectContainer.appendChild(item);
|
62
|
-
});
|
63
|
-
this.service.notOverflowElements().forEach((item) => {
|
64
|
-
item.classList.remove('overflowMenuOverride');
|
65
|
-
injectContainer2.appendChild(item);
|
66
|
-
});
|
67
|
-
}
|
68
|
-
else {
|
69
|
-
const allItems = [...this.service.notOverflowElements(), ...this.service.overflowElements()];
|
70
|
-
allItems.forEach((item) => {
|
71
|
-
item.classList.remove('overflowMenuOverride');
|
72
|
-
injectContainer2.appendChild(item);
|
73
|
-
});
|
74
|
-
}
|
75
17
|
}
|
76
18
|
/** @ignore */
|
77
19
|
ngAfterViewInit() {
|
@@ -84,8 +26,8 @@ export class AXMenuComponent extends MXBaseComponent {
|
|
84
26
|
get __hostClass() {
|
85
27
|
return `ax-orientation-${this.orientation()}`;
|
86
28
|
}
|
87
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuComponent, deps:
|
88
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: AXMenuComponent, selector: "ax-menu", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, providers: [
|
89
31
|
{
|
90
32
|
provide: AXRootMenu,
|
91
33
|
useExisting: AXMenuComponent,
|
@@ -93,61 +35,11 @@ export class AXMenuComponent extends MXBaseComponent {
|
|
93
35
|
{
|
94
36
|
provide: AXMenuService,
|
95
37
|
},
|
96
|
-
], queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], usesInheritance: true, ngImport: i0, template: `
|
97
|
-
<div class="ax-main-menu-container">
|
98
|
-
<div
|
99
|
-
[style]="{ width: !this.service.isOverflowExist() && !this.truncateMenu() && '100%' }"
|
100
|
-
class="ax-menu-item-container"
|
101
|
-
>
|
102
|
-
<ng-content select="ax-menu-item,ng-container"></ng-content>
|
103
|
-
</div>
|
104
|
-
|
105
|
-
@if (this.service.overflowElements().length !== 0 && this.truncateMenu()) {
|
106
|
-
<button
|
107
|
-
class="ax-general-button ax-button-icon ax-show-truncate-menu"
|
108
|
-
(click)="showMenuHandler()"
|
109
|
-
tabindex="0"
|
110
|
-
type="button"
|
111
|
-
>
|
112
|
-
<ax-icon class="ax-icon ax-icon-more-horizontal ng-star-inserted ax-text-xl"></ax-icon>
|
113
|
-
</button>
|
114
|
-
}
|
115
|
-
</div>
|
116
|
-
|
117
|
-
<div
|
118
|
-
[style]="{ top: menuHeight(), display: this.isMenuOpen() ? 'block' : 'none' }"
|
119
|
-
class="ax-overflow-menu-container ax-menu-item-children"
|
120
|
-
></div>
|
121
|
-
`, isInline: true, styles: ["ax-menu{width:100%;font-size:.875rem;line-height:1.25rem;color:inherit;position:relative}ax-menu .ax-main-menu-container{display:flex;align-items:center;width:100%;overflow:hidden}ax-menu .ax-menu-item-container{display:flex;overflow:hidden;width:calc(100% - 1.3rem)}ax-menu .ax-show-truncate-menu{position:absolute;right:0;width:1.3rem}ax-menu .ax-overflow-menu-container{position:absolute;right:0}ax-menu.ax-orientation-horizontal{display:flex}ax-menu.ax-orientation-horizontal ax-menu-item:not(ax-menu.ax-orientation-horizontal ax-menu-item:last-child){margin-inline-end:1rem}ax-menu.ax-orientation-vertical{display:flex;flex-direction:column}ax-menu.ax-orientation-vertical ax-menu-item{justify-content:space-between}ax-menu.ax-orientation-vertical ax-menu-item:not(ax-menu.ax-orientation-vertical ax-menu-item:last-child){margin-bottom:1rem}ax-menu ax-menu-item:hover:not(ax-menu ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{position:relative;display:flex;align-items:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;justify-content:space-between;color:rgba(var(--ax-color-text-default))}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item .ax-menu-item-start-side{display:flex;align-items:center;gap:.5rem}ax-menu-item.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{width:fit-content;line-height:1;font-size:10px}ax-menu-item ax-popover{position:absolute}.overflowMenuOverride{margin-inline-end:0!important}.overflowMenuOverride:hover:not(.overflowMenuOverride:hover.ax-state-disabled){color:rgba(var(--ax-color-text-default))!important}.ax-menu-item-children{padding-top:.5rem;padding-bottom:.5rem}.ax-menu-item-children:not(.ax-menu-item-children:empty){display:flex;min-width:12rem;flex-direction:column;border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default));background-color:rgba(var(--ax-color-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-on-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.75}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1 1 0%}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon:before{-moz-transform:scale(1,-1);-webkit-transform:scale(1,-1);-o-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scaleY(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
38
|
+
], queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], usesInheritance: true, ngImport: i0, template: ` <ng-content select="ax-menu-item,ng-container"></ng-content>`, isInline: true, styles: ["ax-menu{width:100%;font-size:.875rem;line-height:1.25rem;color:inherit;position:relative}ax-menu.ax-orientation-horizontal{display:flex}ax-menu.ax-orientation-horizontal ax-menu-item:not(ax-menu.ax-orientation-horizontal ax-menu-item:last-child){margin-inline-end:1rem}ax-menu.ax-orientation-vertical{display:flex;flex-direction:column}ax-menu.ax-orientation-vertical ax-menu-item{justify-content:space-between}ax-menu.ax-orientation-vertical ax-menu-item:not(ax-menu.ax-orientation-vertical ax-menu-item:last-child){margin-bottom:1rem}ax-menu ax-menu-item:hover:not(ax-menu ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{position:relative;display:flex;align-items:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;justify-content:space-between;color:rgba(var(--ax-color-text-default))}ax-menu-item .ax-menu-item-text{white-space:nowrap}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item .ax-menu-item-start-side{display:flex;align-items:center;gap:.5rem}ax-menu-item.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{width:fit-content;line-height:1;font-size:10px}ax-menu-item ax-popover{position:absolute}.ax-menu-item-children{padding-top:.5rem;padding-bottom:.5rem}.ax-menu-item-children:not(.ax-menu-item-children:empty){display:flex;min-width:12rem;flex-direction:column;border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default));background-color:rgba(var(--ax-color-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-on-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.75}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1 1 0%}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon:before{-moz-transform:scale(1,-1);-webkit-transform:scale(1,-1);-o-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scaleY(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
122
39
|
}
|
123
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuComponent, decorators: [{
|
124
41
|
type: Component,
|
125
|
-
args: [{ selector: 'ax-menu', template: `
|
126
|
-
<div class="ax-main-menu-container">
|
127
|
-
<div
|
128
|
-
[style]="{ width: !this.service.isOverflowExist() && !this.truncateMenu() && '100%' }"
|
129
|
-
class="ax-menu-item-container"
|
130
|
-
>
|
131
|
-
<ng-content select="ax-menu-item,ng-container"></ng-content>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
@if (this.service.overflowElements().length !== 0 && this.truncateMenu()) {
|
135
|
-
<button
|
136
|
-
class="ax-general-button ax-button-icon ax-show-truncate-menu"
|
137
|
-
(click)="showMenuHandler()"
|
138
|
-
tabindex="0"
|
139
|
-
type="button"
|
140
|
-
>
|
141
|
-
<ax-icon class="ax-icon ax-icon-more-horizontal ng-star-inserted ax-text-xl"></ax-icon>
|
142
|
-
</button>
|
143
|
-
}
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div
|
147
|
-
[style]="{ top: menuHeight(), display: this.isMenuOpen() ? 'block' : 'none' }"
|
148
|
-
class="ax-overflow-menu-container ax-menu-item-children"
|
149
|
-
></div>
|
150
|
-
`, encapsulation: ViewEncapsulation.None, providers: [
|
42
|
+
args: [{ selector: 'ax-menu', template: ` <ng-content select="ax-menu-item,ng-container"></ng-content>`, encapsulation: ViewEncapsulation.None, providers: [
|
151
43
|
{
|
152
44
|
provide: AXRootMenu,
|
153
45
|
useExisting: AXMenuComponent,
|
@@ -155,12 +47,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
155
47
|
{
|
156
48
|
provide: AXMenuService,
|
157
49
|
},
|
158
|
-
], styles: ["ax-menu{width:100%;font-size:.875rem;line-height:1.25rem;color:inherit;position:relative}ax-menu
|
159
|
-
}],
|
50
|
+
], styles: ["ax-menu{width:100%;font-size:.875rem;line-height:1.25rem;color:inherit;position:relative}ax-menu.ax-orientation-horizontal{display:flex}ax-menu.ax-orientation-horizontal ax-menu-item:not(ax-menu.ax-orientation-horizontal ax-menu-item:last-child){margin-inline-end:1rem}ax-menu.ax-orientation-vertical{display:flex;flex-direction:column}ax-menu.ax-orientation-vertical ax-menu-item{justify-content:space-between}ax-menu.ax-orientation-vertical ax-menu-item:not(ax-menu.ax-orientation-vertical ax-menu-item:last-child){margin-bottom:1rem}ax-menu ax-menu-item:hover:not(ax-menu ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{position:relative;display:flex;align-items:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;justify-content:space-between;color:rgba(var(--ax-color-text-default))}ax-menu-item .ax-menu-item-text{white-space:nowrap}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item .ax-menu-item-start-side{display:flex;align-items:center;gap:.5rem}ax-menu-item.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{width:fit-content;line-height:1;font-size:10px}ax-menu-item ax-popover{position:absolute}.ax-menu-item-children{padding-top:.5rem;padding-bottom:.5rem}.ax-menu-item-children:not(.ax-menu-item-children:empty){display:flex;min-width:12rem;flex-direction:column;border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default));background-color:rgba(var(--ax-color-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-on-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.75}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1 1 0%}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon:before{-moz-transform:scale(1,-1);-webkit-transform:scale(1,-1);-o-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scaleY(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"] }]
|
51
|
+
}], propDecorators: { children: [{
|
160
52
|
type: ContentChildren,
|
161
53
|
args: [AXMenuItemComponent]
|
162
54
|
}], __hostClass: [{
|
163
55
|
type: HostBinding,
|
164
56
|
args: ['class']
|
165
57
|
}] } });
|
166
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbWVudS9zcmMvbGliL21lbnUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsZUFBZSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDM0UsT0FBTyxFQUNMLGVBQWUsRUFFZixTQUFTLEVBQ1QsZUFBZSxFQUNmLFdBQVcsRUFDWCxNQUFNLEVBQ04sS0FBSyxFQUNMLFNBQVMsRUFDVCxNQUFNLEVBQ04saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNyRCxPQUFPLEVBQUU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zZUNvbXBvbmVudCBpbXBsZW1lbnRzIEFmdGVyVmlld0luaXQge1xuICBvcmllbnRhdGlvbiA9IGlucHV0PEFYT3JpZW50YXRpb24+KCdob3Jpem9udGFsJyk7XG4gIG9wZW5PbiA9IGlucHV0PEFYTWVudVBvcG92ZXJUcmlnZ2VyPigndG9nZ2xlJyk7XG4gIHNlcnZpY2UgPSBpbmplY3QoQVhNZW51U2VydmljZSk7XG5cbiAgLyoqIEBpZ25vcmUgKi9cbiAgQENvbnRlbnRDaGlsZHJlbihBWE1lbnVJdGVtQ29tcG9uZW50KVxuICBjaGlsZHJlbjogUXVlcnlMaXN0PEFYTWVudUl0ZW1Db21wb25lbnQ+O1xuXG4gIC8qKiBAaWdub3JlICovXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICB0aGlzLmNoaWxkcmVuLmZvckVhY2goKGMpID0+IHtcbiAgICAgIGMuaXNSb290ID0gdHJ1ZTtcbiAgICAgIGMucGFyZW50ID0gdGhpcyBhcyB1bmtub3duIGFzIEFYTWVudUl0ZW1Db21wb25lbnQ7XG4gICAgfSk7XG4gIH1cblxuICAvKiogQGlnbm9yZSAqL1xuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgZ2V0IF9faG9zdENsYXNzKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGBheC1vcmllbnRhdGlvbi0ke3RoaXMub3JpZW50YXRpb24oKX1gO1xuICB9XG59XG4iXX0=
|
@@ -6,14 +6,15 @@ import { AXTranslationModule } from '@acorex/core/translation';
|
|
6
6
|
import { OverlayModule } from '@angular/cdk/overlay';
|
7
7
|
import { CommonModule } from '@angular/common';
|
8
8
|
import { NgModule } from '@angular/core';
|
9
|
+
import { AXMenuItemTextComponent } from './menu-item-text/menu-item-text.component';
|
9
10
|
import { AXMenuItemComponent } from './menu-item/menu-item.component';
|
10
11
|
import { AXMenuComponent } from './menu.component';
|
11
12
|
import * as i0 from "@angular/core";
|
12
|
-
const COMPONENT = [AXMenuItemComponent, AXMenuComponent];
|
13
|
+
const COMPONENT = [AXMenuItemComponent, AXMenuComponent, AXMenuItemTextComponent];
|
13
14
|
const MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];
|
14
15
|
export class AXMenuModule {
|
15
16
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
16
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, declarations: [AXMenuItemComponent, AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule, AXButtonModule], exports: [AXMenuItemComponent, AXMenuComponent] }); }
|
17
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, declarations: [AXMenuItemComponent, AXMenuComponent, AXMenuItemTextComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule, AXButtonModule], exports: [AXMenuItemComponent, AXMenuComponent, AXMenuItemTextComponent] }); }
|
17
18
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, imports: [CommonModule, MODULES, AXButtonModule] }); }
|
18
19
|
}
|
19
20
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, decorators: [{
|
@@ -25,4 +26,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
25
26
|
providers: [],
|
26
27
|
}]
|
27
28
|
}] });
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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rL292ZXJsYXknO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBWE1lbnVJdGVtVGV4dENvbXBvbmVudCB9IGZyb20gJy4vbWVudS1pdGVtLXRleHQvbWVudS1pdGVtLXRleHQuY29tcG9uZW50JztcbmltcG9ydCB7IEFYTWVudUl0ZW1Db21wb25lbnQgfSBmcm9tICcuL21lbnUtaXRlbS9tZW51LWl0ZW0uY29tcG9uZW50JztcbmltcG9ydCB7IEFYTWVudUNvbXBvbmVudCB9IGZyb20gJy4vbWVudS5jb21wb25lbnQnO1xuXG5jb25zdCBDT01QT05FTlQgPSBbQVhNZW51SXRlbUNvbXBvbmVudCwgQVhNZW51Q29tcG9uZW50LCBBWE1lbnVJdGVtVGV4dENvbXBvbmVudF07XG5jb25zdCBNT0RVTEVTID0gW0FYRGVjb3JhdG9yTW9kdWxlLCBBWExvYWRpbmdNb2R1bGUsIEFYVHJhbnNsYXRpb25Nb2R1bGUsIE92ZXJsYXlNb2R1bGUsIEFYUG9wb3Zlck1vZHVsZV07XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWy4uLkNPTVBPTkVOVF0sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIC4uLk1PRFVMRVMsIEFYQnV0dG9uTW9kdWxlXSxcbiAgZXhwb3J0czogWy4uLkNPTVBPTkVOVF0sXG4gIHByb3ZpZGVyczogW10sXG59KVxuZXhwb3J0IGNsYXNzIEFYTWVudU1vZHVsZSB7fVxuIl19
|
@@ -1,14 +1,9 @@
|
|
1
|
-
import { Injectable
|
1
|
+
import { Injectable } from '@angular/core';
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export class AXMenuService {
|
5
5
|
constructor() {
|
6
6
|
this.activeMenus$ = new BehaviorSubject([]);
|
7
|
-
this.rightOverflow = signal(0);
|
8
|
-
this.leftOverflow = signal(0);
|
9
|
-
this.overflowElements = signal([]);
|
10
|
-
this.notOverflowElements = signal([]);
|
11
|
-
this.isOverflowExist = signal(false);
|
12
7
|
}
|
13
8
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
14
9
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuService, providedIn: 'root' }); }
|
@@ -19,4 +14,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
19
14
|
providedIn: 'root',
|
20
15
|
}]
|
21
16
|
}] });
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL21lbnUvc3JjL2xpYi9tZW51LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sTUFBTSxDQUFDOztBQU12QyxNQUFNLE9BQU8sYUFBYTtJQUgxQjtRQUlFLGlCQUFZLEdBQTJDLElBQUksZUFBZSxDQUF3QixFQUFFLENBQUMsQ0FBQztLQUN2Rzs4R0FGWSxhQUFhO2tIQUFiLGFBQWEsY0FGWixNQUFNOzsyRkFFUCxhQUFhO2tCQUh6QixVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEJlaGF2aW9yU3ViamVjdCB9IGZyb20gJ3J4anMnO1xuaW1wb3J0IHsgQVhNZW51SXRlbUNvbXBvbmVudCB9IGZyb20gJy4vbWVudS1pdGVtL21lbnUtaXRlbS5jb21wb25lbnQnO1xuXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46ICdyb290Jyxcbn0pXG5leHBvcnQgY2xhc3MgQVhNZW51U2VydmljZSB7XG4gIGFjdGl2ZU1lbnVzJDogQmVoYXZpb3JTdWJqZWN0PEFYTWVudUl0ZW1Db21wb25lbnRbXT4gPSBuZXcgQmVoYXZpb3JTdWJqZWN0PEFYTWVudUl0ZW1Db21wb25lbnRbXT4oW10pO1xufVxuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvbXBvbmVudHMtcmF0ZS1waWNrZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcmF0ZS1waWNrZXIvc3JjL2Fjb3JleC1jb21wb25lbnRzLXJhdGUtcGlja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './lib/rate-picker.component';
|
2
|
+
export * from './lib/rate-picker.module';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcmF0ZS1waWNrZXIvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL3JhdGUtcGlja2VyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9yYXRlLXBpY2tlci5tb2R1bGUnO1xuIl19
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Calculates the horizontal position of a pointer event (mouse or touch) as a percentage
|
3
|
+
* of the target element's width.
|
4
|
+
*
|
5
|
+
* @param event - The mouse or touch event to get the pointer position from.
|
6
|
+
* @returns The percentage of the event's position relative to the target element's width,
|
7
|
+
* or -1 if the event is invalid.
|
8
|
+
*
|
9
|
+
* @remarks
|
10
|
+
* - For `MouseEvent`, it uses the `clientX` property.
|
11
|
+
* - For `TouchEvent`, it uses the `clientX` of the first touch point.
|
12
|
+
* - Returns `-1` if the event is neither a valid `MouseEvent` nor a `TouchEvent`.
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* ```typescript
|
16
|
+
* document.addEventListener('click', function(event) {
|
17
|
+
* const percentage = getPointerPercentage(event);
|
18
|
+
* console.log(`Click position: ${percentage.toFixed(2)}% of the element's width`);
|
19
|
+
* });
|
20
|
+
*
|
21
|
+
* document.addEventListener('touchstart', function(event) {
|
22
|
+
* const percentage = getPointerPercentage(event);
|
23
|
+
* console.log(`Touch position: ${percentage.toFixed(2)}% of the element's width`);
|
24
|
+
* });
|
25
|
+
* ```
|
26
|
+
*/
|
27
|
+
export function getPointerPercentage(event) {
|
28
|
+
let clientX;
|
29
|
+
if (event instanceof MouseEvent) {
|
30
|
+
clientX = event.clientX; // Mouse event uses clientX
|
31
|
+
}
|
32
|
+
else if (event instanceof TouchEvent && event.touches.length > 0) {
|
33
|
+
clientX = event.touches[0].clientX; // Touch event uses the first touch's clientX
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
return -1; // Return -1 for invalid events
|
37
|
+
}
|
38
|
+
// Use currentTarget to get the bounding box of the element the event listener is attached to
|
39
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
40
|
+
const clickX = clientX - rect.left; // Calculate X position relative to the element
|
41
|
+
const divWidth = rect.width; // Get the width from the bounding box
|
42
|
+
const percentage = (clickX / divWidth) * 100; // Calculate percentage
|
43
|
+
return percentage;
|
44
|
+
}
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlUGVyY2VudGFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9yYXRlLXBpY2tlci9zcmMvbGliL2NhbGN1bGF0ZVBlcmNlbnRhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F5Qkc7QUFDSCxNQUFNLFVBQVUsb0JBQW9CLENBQUMsS0FBOEI7SUFDakUsSUFBSSxPQUFlLENBQUM7SUFFcEIsSUFBSSxLQUFLLFlBQVksVUFBVSxFQUFFLENBQUM7UUFDaEMsT0FBTyxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQywyQkFBMkI7SUFDdEQsQ0FBQztTQUFNLElBQUksS0FBSyxZQUFZLFVBQVUsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQztRQUNu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WYgKGV2ZW50IGluc3RhbmNlb2YgTW91c2VFdmVudCkge1xuICAgIGNsaWVudFggPSBldmVudC5jbGllbnRYOyAvLyBNb3VzZSBldmVudCB1c2VzIGNsaWVudFhcbiAgfSBlbHNlIGlmIChldmVudCBpbnN0YW5jZW9mIFRvdWNoRXZlbnQgJiYgZXZlbnQudG91Y2hlcy5sZW5ndGggPiAwKSB7XG4gICAgY2xpZW50WCA9IGV2ZW50LnRvdWNoZXNbMF0uY2xpZW50WDsgLy8gVG91Y2ggZXZlbnQgdXNlcyB0aGUgZmlyc3QgdG91Y2gncyBjbGllbnRYXG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIC0xOyAvLyBSZXR1cm4gLTEgZm9yIGludmFsaWQgZXZlbnRzXG4gIH1cblxuICAvLyBVc2UgY3VycmVudFRhcmdldCB0byBnZXQgdGhlIGJvdW5kaW5nIGJveCBvZiB0aGUgZWxlbWVudCB0aGUgZXZlbnQgbGlzdGVuZXIgaXMgYXR0YWNoZWQgdG9cbiAgY29uc3QgcmVjdCA9IChldmVudC5jdXJyZW50VGFyZ2V0IGFzIEhUTUxFbGVtZW50KS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKTtcbiAgY29uc3QgY2xpY2tYID0gY2xpZW50WCAtIHJlY3QubGVmdDsgLy8gQ2FsY3VsYXRlIFggcG9zaXRpb24gcmVsYXRpdmUgdG8gdGhlIGVsZW1lbnRcbiAgY29uc3QgZGl2V2lkdGggPSByZWN0LndpZHRoOyAvLyBHZXQgdGhlIHdpZHRoIGZyb20gdGhlIGJvdW5kaW5nIGJveFxuICBjb25zdCBwZXJjZW50YWdlID0gKGNsaWNrWCAvIGRpdldpZHRoKSAqIDEwMDsgLy8gQ2FsY3VsYXRlIHBlcmNlbnRhZ2VcblxuICByZXR1cm4gcGVyY2VudGFnZTtcbn1cbiJdfQ==
|
@@ -0,0 +1,184 @@
|
|
1
|
+
import { AXValuableComponent, MXValueComponent } from '@acorex/components/common';
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, effect, forwardRef, HostBinding, inject, input, Renderer2, signal, viewChild, ViewEncapsulation, } from '@angular/core';
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
+
import { getPointerPercentage } from './calculatePercentage';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* A component for selecting a rating using star icons.
|
8
|
+
*
|
9
|
+
* This component allows users to pick a rating by clicking or dragging over star icons.
|
10
|
+
* It supports rounding options and manages the rating state internally.
|
11
|
+
*/
|
12
|
+
export class AXRatePickerComponent extends MXValueComponent {
|
13
|
+
/**
|
14
|
+
* Initializes the component and sets up value change subscription.
|
15
|
+
*/
|
16
|
+
constructor() {
|
17
|
+
super();
|
18
|
+
/** The icon name to use for stars (e.g., 'fa-star'). */
|
19
|
+
this.iconName = input('fa-star');
|
20
|
+
/** The maximum rating value (e.g., 5 stars). */
|
21
|
+
this.max = input(5);
|
22
|
+
/** Determines if the rating should be rounded to the nearest integer. */
|
23
|
+
this.isRound = input(true);
|
24
|
+
/** choosing to have css transition for unchanging value after hover. */
|
25
|
+
this.hasTransition = input(true);
|
26
|
+
/** The percentage of the current rating value relative to the maximum rating. */
|
27
|
+
this.ratePercentage = computed(() => Math.round((this.currentValue() / this.max()) * 10000) / 100);
|
28
|
+
/** The current rating value as a signal. */
|
29
|
+
this.currentValue = signal(this.max());
|
30
|
+
/** State for tracking hover status and previous value. */
|
31
|
+
this.prevState = {
|
32
|
+
ishover: false,
|
33
|
+
previousValue: undefined,
|
34
|
+
};
|
35
|
+
/** Reference to the container element. */
|
36
|
+
this.containerEl = viewChild.required('c');
|
37
|
+
/** Reference to the rating element. */
|
38
|
+
this.ratingEl = viewChild.required('r');
|
39
|
+
/** Renderer for manipulating styles. */
|
40
|
+
this.renderer = inject(Renderer2);
|
41
|
+
/** Array of rating values from 1 to `max`. */
|
42
|
+
this.rates = computed(() => Array(this.max())
|
43
|
+
.fill(0)
|
44
|
+
.map((_, index) => index + 1));
|
45
|
+
effect(() => {
|
46
|
+
if (!this.hasTransition()) {
|
47
|
+
this.renderer.removeStyle(this.ratingEl().nativeElement, 'transition');
|
48
|
+
}
|
49
|
+
return this.hasTransition();
|
50
|
+
});
|
51
|
+
this.onValueChanged.subscribe((val) => {
|
52
|
+
if (val.value < 0) {
|
53
|
+
this.currentValue.set(0);
|
54
|
+
console.warn('ax-rate-picker: value cant be negative!');
|
55
|
+
}
|
56
|
+
else if (val.value > this.max()) {
|
57
|
+
this.currentValue.set(this.max());
|
58
|
+
console.warn('ax-rate-picker: value cant be more than max!');
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
this.currentValue.set(val.value);
|
62
|
+
}
|
63
|
+
});
|
64
|
+
}
|
65
|
+
/**
|
66
|
+
* Calculates and updates the rating based on the mouse or touch event.
|
67
|
+
*
|
68
|
+
* @param event - The mouse or touch event triggering the rating calculation.
|
69
|
+
*/
|
70
|
+
calculateRate(event) {
|
71
|
+
if (this.hasTransition()) {
|
72
|
+
this.renderer.removeStyle(this.ratingEl().nativeElement, 'transition');
|
73
|
+
}
|
74
|
+
event.preventDefault();
|
75
|
+
if (!this.readonly && !this.disabled) {
|
76
|
+
const pointerPercentage = getPointerPercentage(event);
|
77
|
+
if (pointerPercentage === -1) {
|
78
|
+
return console.log('Only support touch and click events.');
|
79
|
+
}
|
80
|
+
const value = (pointerPercentage / 100) * this.max();
|
81
|
+
const finalValue = this.isRound() ? Math.ceil(value) : Number.parseFloat(value.toFixed(2));
|
82
|
+
if (finalValue !== this.value) {
|
83
|
+
if (this.prevState.ishover === true) {
|
84
|
+
this.currentValue.set(finalValue);
|
85
|
+
}
|
86
|
+
else {
|
87
|
+
this.commitValue(finalValue);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
/**
|
93
|
+
* Handles mouse enter events to start tracking mouse movements for rating.
|
94
|
+
*/
|
95
|
+
mouseEnter() {
|
96
|
+
this.prevState = {
|
97
|
+
ishover: true,
|
98
|
+
previousValue: this.value,
|
99
|
+
};
|
100
|
+
if (this.hasTransition()) {
|
101
|
+
this.renderer.setStyle(this.ratingEl().nativeElement, 'opacity', '80%');
|
102
|
+
}
|
103
|
+
const moveListener = (moveEvent) => this.calculateRate(moveEvent);
|
104
|
+
const endListener = () => this.onEnd(moveListener, endListener);
|
105
|
+
const container = this.containerEl().nativeElement;
|
106
|
+
container.addEventListener('mousemove', moveListener);
|
107
|
+
container.addEventListener('mouseup', endListener);
|
108
|
+
container.addEventListener('mouseleave', endListener);
|
109
|
+
}
|
110
|
+
mouseLeave() {
|
111
|
+
if (this.hasTransition()) {
|
112
|
+
this.renderer.removeStyle(this.ratingEl().nativeElement, 'opacity');
|
113
|
+
}
|
114
|
+
}
|
115
|
+
/**
|
116
|
+
* Cleans up event listeners and restores the previous rating value.
|
117
|
+
*
|
118
|
+
* @param moveListener - The function to remove for mouse move events.
|
119
|
+
* @param endListener - The function to remove for mouse end events.
|
120
|
+
*/
|
121
|
+
onEnd(moveListener, endListener) {
|
122
|
+
if (this.hasTransition()) {
|
123
|
+
this.renderer.setStyle(this.ratingEl().nativeElement, 'transition', `width ${this.max() * 50 + 250}ms cubic-bezier(0.29, 0.72, 0.68, 0.85)`);
|
124
|
+
this.renderer.removeStyle(this.ratingEl().nativeElement, 'opacity');
|
125
|
+
}
|
126
|
+
this.currentValue.set(this.prevState.previousValue);
|
127
|
+
this.prevState = {
|
128
|
+
ishover: false,
|
129
|
+
previousValue: undefined,
|
130
|
+
};
|
131
|
+
const container = this.containerEl().nativeElement;
|
132
|
+
container.removeEventListener('mousemove', moveListener);
|
133
|
+
container.removeEventListener('mouseup', endListener);
|
134
|
+
container.removeEventListener('mouseleave', endListener);
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* Determines if the component is active (i.e., not readonly or disabled).
|
138
|
+
*/
|
139
|
+
get isActive() {
|
140
|
+
return !this.readonly && !this.disabled;
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* Determines if the component is in readonly mode.
|
144
|
+
*/
|
145
|
+
get isReadonly() {
|
146
|
+
return this.readonly;
|
147
|
+
}
|
148
|
+
/**
|
149
|
+
* Determines if the component is disabled.
|
150
|
+
*/
|
151
|
+
get isDisabled() {
|
152
|
+
return this.disabled;
|
153
|
+
}
|
154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
155
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXRatePickerComponent, selector: "ax-rate-picker", inputs: { readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, isRound: { classPropertyName: "isRound", publicName: "isRound", isSignal: true, isRequired: false, transformFunction: null }, hasTransition: { classPropertyName: "hasTransition", publicName: "hasTransition", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.active": "this.isActive", "class.readonly": "this.isReadonly", "class.disable": "this.isDisabled" } }, providers: [
|
156
|
+
{ provide: AXValuableComponent, useExisting: AXRatePickerComponent },
|
157
|
+
{
|
158
|
+
provide: NG_VALUE_ACCESSOR,
|
159
|
+
useExisting: forwardRef(() => AXRatePickerComponent),
|
160
|
+
multi: true,
|
161
|
+
},
|
162
|
+
], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["c"], descendants: true, isSignal: true }, { propertyName: "ratingEl", first: true, predicate: ["r"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.readonly{opacity:.75}ax-rate-picker.disable{cursor:not-allowed;opacity:.5}ax-rate-picker.ax-sm{font-size:1rem}ax-rate-picker.ax-md{font-size:1.5rem}ax-rate-picker.ax-lg{font-size:2rem}ax-rate-picker.ax-xl{font-size:2.5rem}ax-rate-picker.ax-2xl{font-size:3rem}ax-rate-picker.ax-3xl{font-size:4rem}ax-rate-picker .ax-rate-picker-container{position:relative;width:min-content}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating{position:relative;z-index:10;overflow:hidden}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons.ax-rp-active{color:var(--ax-rate-picker-color)}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons.ax-rp-inactive{color:var(--ax-rate-picker-background);position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5}.ax-dark :root{--ax-rate-picker-color: rgba(var(--ax-color-primary-300));--ax-rate-picker-background: rgba(var(--ax-color-neutral-600))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
163
|
+
}
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerComponent, decorators: [{
|
165
|
+
type: Component,
|
166
|
+
args: [{ selector: 'ax-rate-picker', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['readonly', 'disabled'], providers: [
|
167
|
+
{ provide: AXValuableComponent, useExisting: AXRatePickerComponent },
|
168
|
+
{
|
169
|
+
provide: NG_VALUE_ACCESSOR,
|
170
|
+
useExisting: forwardRef(() => AXRatePickerComponent),
|
171
|
+
multi: true,
|
172
|
+
},
|
173
|
+
], template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.readonly{opacity:.75}ax-rate-picker.disable{cursor:not-allowed;opacity:.5}ax-rate-picker.ax-sm{font-size:1rem}ax-rate-picker.ax-md{font-size:1.5rem}ax-rate-picker.ax-lg{font-size:2rem}ax-rate-picker.ax-xl{font-size:2.5rem}ax-rate-picker.ax-2xl{font-size:3rem}ax-rate-picker.ax-3xl{font-size:4rem}ax-rate-picker .ax-rate-picker-container{position:relative;width:min-content}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating{position:relative;z-index:10;overflow:hidden}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons.ax-rp-active{color:var(--ax-rate-picker-color)}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons.ax-rp-inactive{color:var(--ax-rate-picker-background);position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5}.ax-dark :root{--ax-rate-picker-color: rgba(var(--ax-color-primary-300));--ax-rate-picker-background: rgba(var(--ax-color-neutral-600))}\n"] }]
|
174
|
+
}], ctorParameters: () => [], propDecorators: { isActive: [{
|
175
|
+
type: HostBinding,
|
176
|
+
args: ['class.active']
|
177
|
+
}], isReadonly: [{
|
178
|
+
type: HostBinding,
|
179
|
+
args: ['class.readonly']
|
180
|
+
}], isDisabled: [{
|
181
|
+
type: HostBinding,
|
182
|
+
args: ['class.disable']
|
183
|
+
}] } });
|
184
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0ZS1waWNrZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3JhdGUtcGlja2VyL3NyYy9saWIvcmF0ZS1waWNrZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3JhdGUtcGlja2VyL3NyYy9saWIvcmF0ZS1waWNrZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLGdCQUFnQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEYsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTL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1cbiIsIjxkaXZcbiAgI2NcbiAgY2xhc3M9XCJheC1yYXRlLXBpY2tlci1jb250YWluZXJcIlxuICAoY2xpY2spPVwiY2FsY3VsYXRlUmF0ZSgkZXZlbnQpXCJcbiAgKHRvdWNoc3RhcnQpPVwiY2FsY3VsYXRlUmF0ZSgkZXZlbnQpXCJcbiAgKG1vdXNlZW50ZXIpPVwibW91c2VFbnRlcigpXCJcbiAgKG1vdXNlbGVhdmUpPVwibW91c2VMZWF2ZSgpXCJcbj5cbiAgPGRpdiAjciBjbGFzcz1cImF4LXJhdGUtcGlja2VyLXJhdGluZ1wiIFtzdHlsZS53aWR0aC4lXT1cInJhdGVQZXJjZW50YWdlKClcIj5cbiAgICA8ZGl2IGNsYXNzPVwiYXgtcmF0ZS1waWNrZXItaWNvbnMgYXgtcnAtYWN0aXZlXCI+XG4gICAgICBAZm9yIChyYXRlIG9mIHJhdGVzKCk7IHRyYWNrIHJhdGUpIHtcbiAgICAgICAgPGkgY2xhc3M9XCJheC1yYXRlLXBpY2tlci1pY29uIGZhLXNvbGlkXCIgW2NsYXNzXT1cImljb25OYW1lKClcIiBbY2xhc3MucG9pbnRlcl09XCIhdGhpcy5yZWFkb25seVwiPjwvaT5cbiAgICAgIH1cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG4gIDxkaXYgY2xhc3M9XCJheC1yYXRlLXBpY2tlci1pY29ucyBheC1ycC1pbmFjdGl2ZVwiPlxuICAgIEBmb3IgKHJhdGUgb2YgcmF0ZXMoKTsgdHJhY2sgcmF0ZSkge1xuICAgICAgPGkgY2xhc3M9XCJheC1yYXRlLXBpY2tlci1pY29uIGZhLXNvbGlkXCIgW2NsYXNzXT1cImljb25OYW1lKClcIj48L2k+XG4gICAgfVxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { AXRatePickerComponent } from './rate-picker.component';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export class AXRatePickerModule {
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerModule, declarations: [AXRatePickerComponent], imports: [CommonModule], exports: [AXRatePickerComponent] }); }
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerModule, imports: [CommonModule] }); }
|
9
|
+
}
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerModule, decorators: [{
|
11
|
+
type: NgModule,
|
12
|
+
args: [{
|
13
|
+
declarations: [AXRatePickerComponent],
|
14
|
+
imports: [CommonModule],
|
15
|
+
exports: [AXRatePickerComponent],
|
16
|
+
}]
|
17
|
+
}] });
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0ZS1waWNrZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3JhdGUtcGlja2VyL3NyYy9saWIvcmF0ZS1waWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDOztBQU9oRSxNQUFNLE9BQU8sa0JBQWtCOzhHQUFsQixrQkFBa0I7K0dBQWxCLGtCQUFrQixpQkFKZCxxQkFBcUIsYUFDMUIsWUFBWSxhQUNaLHFCQUFxQjsrR0FFcEIsa0JBQWtCLFlBSG5CLFlBQVk7OzJGQUdYLGtCQUFrQjtrQkFMOUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQztvQkFDckMsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO29CQUN2QixPQUFPLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQztpQkFDakMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEFYUmF0ZVBpY2tlckNvbXBvbmVudCB9IGZyb20gJy4vcmF0ZS1waWNrZXIuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbQVhSYXRlUGlja2VyQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIGV4cG9ydHM6IFtBWFJhdGVQaWNrZXJDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBBWFJhdGVQaWNrZXJNb2R1bGUge31cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvbXBvbmVudHMtdGltZS1saW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3RpbWUtbGluZS9zcmMvYWNvcmV4LWNvbXBvbmVudHMtdGltZS1saW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|