@acorex/components 18.11.0 → 18.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/action-sheet/lib/action-sheet.class.d.ts +8 -0
  2. package/button/lib/button-item-list.component.d.ts +13 -9
  3. package/button/lib/button-item.component.d.ts +12 -12
  4. package/button-group/index.d.ts +1 -0
  5. package/button-group/lib/button-group-item.component.d.ts +77 -0
  6. package/button-group/lib/button-group.component.d.ts +1 -1
  7. package/button-group/lib/button-group.module.d.ts +4 -2
  8. package/common/index.d.ts +1 -0
  9. package/common/lib/types/base/component.types.d.ts +8 -0
  10. package/common/lib/types/base/events.types.d.ts +21 -0
  11. package/common/lib/types/base/index.d.ts +2 -0
  12. package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
  13. package/esm2022/action-sheet/lib/action-sheet.component.mjs +3 -3
  14. package/esm2022/button/lib/button-item-list.component.mjs +24 -15
  15. package/esm2022/button/lib/button-item.component.mjs +37 -26
  16. package/esm2022/button-group/index.mjs +2 -1
  17. package/esm2022/button-group/lib/button-group-item.component.mjs +141 -0
  18. package/esm2022/button-group/lib/button-group.component.mjs +6 -5
  19. package/esm2022/button-group/lib/button-group.module.mjs +6 -4
  20. package/esm2022/common/index.mjs +2 -1
  21. package/esm2022/common/lib/components/base-component.class.mjs +1 -1
  22. package/esm2022/common/lib/types/base/component.types.mjs +27 -0
  23. package/esm2022/common/lib/types/base/events.types.mjs +19 -0
  24. package/esm2022/common/lib/types/base/index.mjs +3 -0
  25. package/esm2022/menu/lib/context-menu.component.mjs +101 -50
  26. package/esm2022/menu/lib/menu-item.component.mjs +23 -24
  27. package/esm2022/menu/lib/menu.component.mjs +6 -6
  28. package/esm2022/menu/lib/menu.types.mjs +3 -11
  29. package/fesm2022/acorex-components-action-sheet.mjs +2 -2
  30. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  31. package/fesm2022/acorex-components-button-group.mjs +148 -10
  32. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  33. package/fesm2022/acorex-components-button.mjs +55 -36
  34. package/fesm2022/acorex-components-button.mjs.map +1 -1
  35. package/fesm2022/acorex-components-common.mjs +47 -3
  36. package/fesm2022/acorex-components-common.mjs.map +1 -1
  37. package/fesm2022/acorex-components-menu.mjs +128 -86
  38. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  39. package/menu/lib/context-menu.component.d.ts +27 -16
  40. package/menu/lib/menu-item.component.d.ts +6 -6
  41. package/menu/lib/menu.component.d.ts +5 -4
  42. package/menu/lib/menu.types.d.ts +9 -14
  43. package/package.json +18 -18
@@ -1,7 +1,8 @@
1
- import { MXColorComponent, MXInteractiveComponent } from '@acorex/components/common';
1
+ import { MXColorComponent, MXInteractiveComponent, } from '@acorex/components/common';
2
2
  import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';
3
3
  import { classes } from 'polytype';
4
4
  import * as i0 from "@angular/core";
5
+ import * as i1 from "@acorex/components/decorators";
5
6
  /**
6
7
  * Represents a button item with optional content like icons, text, and dropdowns.
7
8
  *
@@ -11,9 +12,9 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
11
12
  constructor() {
12
13
  super(...arguments);
13
14
  /**
14
- * Whether the item is visually separated from other items.
15
- * @defaultValue false
16
- */
15
+ * Whether the item is visually separated from other items.
16
+ * @defaultValue false
17
+ */
17
18
  this.divided = false;
18
19
  /**
19
20
  * Emitted when the button item is clicked.
@@ -27,11 +28,11 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
27
28
  this.tabindex = '0';
28
29
  }
29
30
  /**
30
- * Indicates whether the button item is selected.
31
- *
32
- * @param v - A boolean indicating the selected state.
33
- * Updates the view when the value changes.
34
- */
31
+ * Indicates whether the button item is selected.
32
+ *
33
+ * @param v - A boolean indicating the selected state.
34
+ * Updates the view when the value changes.
35
+ */
35
36
  get selected() {
36
37
  return this._selected;
37
38
  }
@@ -72,8 +73,10 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
72
73
  'ax-state-disabled': this.disabled,
73
74
  'ax-state-selected': this.selected,
74
75
  'ax-divided': this.divided,
76
+ 'ax-action-item': true,
77
+ 'ax-el-interactive': true,
75
78
  };
76
- cssClasses[`ax-${this.color || 'primary'}-default`] = true;
79
+ cssClasses[`ax-el-${this.color}-blank`] = true;
77
80
  return Object.entries(cssClasses)
78
81
  .filter((c) => c[1])
79
82
  .map((c) => c[0])
@@ -81,28 +84,36 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
81
84
  }
82
85
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
83
86
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXButtonItemComponent, selector: "ax-button-item", inputs: { color: "color", disabled: "disabled", text: "text", selected: "selected", divided: "divided", data: "data", name: "name" }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur", disabledChange: "disabledChange" }, host: { listeners: { "click": "__hostClick($event)", "focus": "__hostFocus($event)", "blur": "__hostBlur($event)" }, properties: { "class": "this.__hostClass", "attr.tabindex": "this.tabindex" } }, usesInheritance: true, ngImport: i0, template: `
84
- <ng-content select="ax-prefix"> </ng-content>
85
- <ng-content select="ax-loading"> </ng-content>
86
- <ng-content select="ax-icon"> </ng-content>
87
- @if (text) {
88
- <span class="ax-button-item-text">{{ text }}</span>
89
- }
90
- <ng-content select="ax-suffix"> </ng-content>
87
+ <div class="ax-action-item-prefix">
88
+ <ng-content select="ax-prefix"> </ng-content>
89
+ <ng-content select="ax-loading"> </ng-content>
90
+ <ng-content select="ax-icon"> </ng-content>
91
+ @if (text) {
92
+ <ax-text>{{ text }}</ax-text>
93
+ }
94
+ </div>
95
+ <div class="ax-action-item-suffix">
96
+ <ng-content select="ax-suffix"> </ng-content>
97
+ </div>
91
98
  <ng-content select="ax-dropdown-panel"> </ng-content>
92
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
99
+ `, isInline: true, dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
93
100
  }
94
101
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonItemComponent, decorators: [{
95
102
  type: Component,
96
103
  args: [{
97
104
  selector: 'ax-button-item',
98
105
  template: `
99
- <ng-content select="ax-prefix"> </ng-content>
100
- <ng-content select="ax-loading"> </ng-content>
101
- <ng-content select="ax-icon"> </ng-content>
102
- @if (text) {
103
- <span class="ax-button-item-text">{{ text }}</span>
104
- }
105
- <ng-content select="ax-suffix"> </ng-content>
106
+ <div class="ax-action-item-prefix">
107
+ <ng-content select="ax-prefix"> </ng-content>
108
+ <ng-content select="ax-loading"> </ng-content>
109
+ <ng-content select="ax-icon"> </ng-content>
110
+ @if (text) {
111
+ <ax-text>{{ text }}</ax-text>
112
+ }
113
+ </div>
114
+ <div class="ax-action-item-suffix">
115
+ <ng-content select="ax-suffix"> </ng-content>
116
+ </div>
106
117
  <ng-content select="ax-dropdown-panel"> </ng-content>
107
118
  `,
108
119
  encapsulation: ViewEncapsulation.None,
@@ -138,4 +149,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
138
149
  type: HostBinding,
139
150
  args: ['attr.tabindex']
140
151
  }] } });
141
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4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EJsdXIoZTogRm9jdXNFdmVudCkge1xuICAgIHRoaXMuZW1pdE9uQmx1ckV2ZW50KGUpO1xuICB9XG5cbiAgLyoqXG4gICAqICBAaWdub3JlXG4gICAqL1xuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgcHJpdmF0ZSBnZXQgX19ob3N0Q2xhc3MoKTogc3RyaW5nIHtcbiAgICBjb25zdCBjc3NDbGFzc2VzID0ge1xuICAgICAgJ2F4LWJ1dHRvbi1pY29uJzogIXRoaXMudGV4dCxcbiAgICAgICdheC1zdGF0ZS1kaXNhYmxlZCc6IHRoaXMuZGlzYWJsZWQsXG4gICAgICAnYXgtc3RhdGUtc2VsZWN0ZWQnOiB0aGlzLnNlbGVjdGVkLFxuICAgICAgJ2F4LWRpdmlkZWQnOiB0aGlzLmRpdmlkZWQsXG4gICAgICAnYXgtYWN0aW9uLWl0ZW0nOiB0cnVlLFxuICAgICAgJ2F4LWVsLWludGVyYWN0aXZlJzogdHJ1ZSxcbiAgICB9O1xuICAgIGNzc0NsYXNzZXNbYGF4LWVsLSR7dGhpcy5jb2xvcn0tYmxhbmtgXSA9IHRydWU7XG4gICAgcmV0dXJuIE9iamVjdC5lbnRyaWVzKGNzc0NsYXNzZXMpXG4gICAgICAuZmlsdGVyKChjKSA9PiBjWzFdKVxuICAgICAgLm1hcCgoYykgPT4gY1swXSlcbiAgICAgIC5qb2luKCcgJyk7XG4gIH1cblxuICAvKipcbiAgICogIEBpZ25vcmVcbiAgICovXG4gIEBIb3N0QmluZGluZygnYXR0ci50YWJpbmRleCcpIHRhYmluZGV4ID0gJzAnO1xufVxuIl19
@@ -1,3 +1,4 @@
1
+ export * from './lib/button-group-item.component';
1
2
  export * from './lib/button-group.component';
2
3
  export * from './lib/button-group.module';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYnV0dG9uLWdyb3VwL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9idXR0b24tZ3JvdXAuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2J1dHRvbi1ncm91cC5tb2R1bGUnO1xuIl19
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYnV0dG9uLWdyb3VwL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2J1dHRvbi1ncm91cC1pdGVtLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9idXR0b24tZ3JvdXAuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2J1dHRvbi1ncm91cC5tb2R1bGUnO1xuIl19
@@ -0,0 +1,141 @@
1
+ import { MXColorComponent, MXInteractiveComponent, } from '@acorex/components/common';
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';
3
+ import { classes } from 'polytype';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Represents a button item with optional content like icons, text, and dropdowns.
7
+ *
8
+ * @category Components
9
+ */
10
+ export class AXButtonGroupItemComponent extends classes(MXInteractiveComponent, MXColorComponent) {
11
+ constructor() {
12
+ super(...arguments);
13
+ /**
14
+ * Whether the item is visually separated from other items.
15
+ * @defaultValue false
16
+ */
17
+ this.divided = false;
18
+ /**
19
+ * Emitted when the button item is clicked.
20
+ * @event
21
+ * The emitted value is an `AXClickEvent` object containing event details.
22
+ */
23
+ this.onClick = new EventEmitter();
24
+ /**
25
+ * @ignore
26
+ */
27
+ this.tabindex = '0';
28
+ }
29
+ /**
30
+ * Indicates whether the button item is selected.
31
+ *
32
+ * @param v - A boolean indicating the selected state.
33
+ * Updates the view when the value changes.
34
+ */
35
+ get selected() {
36
+ return this._selected;
37
+ }
38
+ set selected(v) {
39
+ this._selected = v;
40
+ this.cdr.markForCheck();
41
+ }
42
+ /**
43
+ * @ignore
44
+ */
45
+ __hostClick(e) {
46
+ if (!this.disabled) {
47
+ this.onClick.emit({
48
+ component: this,
49
+ htmlElement: this.getHostElement(),
50
+ nativeEvent: e,
51
+ });
52
+ }
53
+ }
54
+ /**
55
+ * @ignore
56
+ */
57
+ __hostFocus(e) {
58
+ this.emitOnFocusEvent(e);
59
+ }
60
+ /**
61
+ * @ignore
62
+ */
63
+ __hostBlur(e) {
64
+ this.emitOnBlurEvent(e);
65
+ }
66
+ /**
67
+ * @ignore
68
+ */
69
+ get __hostClass() {
70
+ const cssClasses = {
71
+ 'ax-button-icon': !this.text,
72
+ 'ax-state-disabled': this.disabled,
73
+ 'ax-state-selected': this.selected,
74
+ 'ax-divided': this.divided,
75
+ };
76
+ cssClasses[`ax-${this.color || 'primary'}-default`] = true;
77
+ return Object.entries(cssClasses)
78
+ .filter((c) => c[1])
79
+ .map((c) => c[0])
80
+ .join(' ');
81
+ }
82
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonGroupItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
83
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXButtonGroupItemComponent, selector: "ax-button-group-item", inputs: { color: "color", disabled: "disabled", text: "text", selected: "selected", divided: "divided", data: "data", name: "name" }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur", disabledChange: "disabledChange" }, host: { listeners: { "click": "__hostClick($event)", "focus": "__hostFocus($event)", "blur": "__hostBlur($event)" }, properties: { "class": "this.__hostClass", "attr.tabindex": "this.tabindex" } }, usesInheritance: true, ngImport: i0, template: `
84
+ <ng-content select="ax-prefix"> </ng-content>
85
+ <ng-content select="ax-loading"> </ng-content>
86
+ <ng-content select="ax-icon"> </ng-content>
87
+ @if (text) {
88
+ <span class="ax-button-group-item-text">{{ text }}</span>
89
+ }
90
+ <ng-content select="ax-suffix"> </ng-content>
91
+ <ng-content select="ax-dropdown-panel"> </ng-content>
92
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
93
+ }
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonGroupItemComponent, decorators: [{
95
+ type: Component,
96
+ args: [{
97
+ selector: 'ax-button-group-item',
98
+ template: `
99
+ <ng-content select="ax-prefix"> </ng-content>
100
+ <ng-content select="ax-loading"> </ng-content>
101
+ <ng-content select="ax-icon"> </ng-content>
102
+ @if (text) {
103
+ <span class="ax-button-group-item-text">{{ text }}</span>
104
+ }
105
+ <ng-content select="ax-suffix"> </ng-content>
106
+ <ng-content select="ax-dropdown-panel"> </ng-content>
107
+ `,
108
+ encapsulation: ViewEncapsulation.None,
109
+ changeDetection: ChangeDetectionStrategy.OnPush,
110
+ inputs: ['color', 'disabled'],
111
+ outputs: ['onClick', 'onFocus', 'onBlur', 'disabledChange'],
112
+ }]
113
+ }], propDecorators: { text: [{
114
+ type: Input
115
+ }], selected: [{
116
+ type: Input
117
+ }], divided: [{
118
+ type: Input
119
+ }], data: [{
120
+ type: Input
121
+ }], name: [{
122
+ type: Input
123
+ }], onClick: [{
124
+ type: Output
125
+ }], __hostClick: [{
126
+ type: HostListener,
127
+ args: ['click', ['$event']]
128
+ }], __hostFocus: [{
129
+ type: HostListener,
130
+ args: ['focus', ['$event']]
131
+ }], __hostBlur: [{
132
+ type: HostListener,
133
+ args: ['blur', ['$event']]
134
+ }], __hostClass: [{
135
+ type: HostBinding,
136
+ args: ['class']
137
+ }], tabindex: [{
138
+ type: HostBinding,
139
+ args: ['attr.tabindex']
140
+ }] } });
141
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWdyb3VwLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2J1dHRvbi1ncm91cC9zcmMvbGliL2J1dHRvbi1ncm91cC1pdGVtLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBR0wsZ0JBQWdCLEVBQ2hCLHNCQUFzQixHQUN2QixNQUFNLDJCQUEyQixDQUFDO0FBRW5DLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixXQUFXLEVBQ1gsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxVQUFVLENBQUM7O0FBV25DOzs7O0dBSUc7QUFrQkgsTUFBTSxPQUFPLDBCQUEyQixTQUFRLE9BQU8sQ0FBQyxzQkFBc0IsRUFBRSxnQkFBZ0IsQ0FBQztJQWpCakc7O1FBNENFOzs7V0FHRztRQUVILFlBQU8sR0FBRyxLQUFLLENBQUM7UUFjaEI7Ozs7V0FJRztRQUVILFlBQU8sR0FBK0IsSUFBSSxZQUFZLEVBQWdCLENBQUM7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