ngx-edyta-chords 0.4.18 → 0.4.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,409 +1,988 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, Input, ViewEncapsulation, EventEmitter, Output, NgModule } from '@angular/core';
3
- import { v4 } from 'uuid';
4
- import UIkit from 'uikit';
5
- import * as i1 from '@angular/forms';
6
- import { FormsModule } from '@angular/forms';
7
- import { CommonModule } from '@angular/common';
8
-
9
- class ChordBaseComponent {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: ChordBaseComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordBaseComponent, decorators: [{
14
- type: Component,
15
- args: [{
16
- template: '',
17
- standalone: false
18
- }]
19
- }] });
20
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, NgModule, Output, ViewEncapsulation } from "@angular/core";
3
+ import { v4 } from "uuid";
4
+ import UIkit from "uikit";
5
+ import * as i1 from "@angular/forms";
6
+ import { FormsModule } from "@angular/forms";
7
+ import { CommonModule } from "@angular/common";
8
+ var ChordBaseComponent = class ChordBaseComponent {
9
+ static {
10
+ this.ɵfac = i0.ɵɵngDeclareFactory({
11
+ minVersion: "12.0.0",
12
+ version: "22.3.0",
13
+ ngImport: i0,
14
+ type: ChordBaseComponent,
15
+ deps: [],
16
+ target: i0.ɵɵFactoryTarget.Component
17
+ });
18
+ }
19
+ static {
20
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
21
+ minVersion: "14.0.0",
22
+ version: "22.3.0",
23
+ type: ChordBaseComponent,
24
+ isStandalone: false,
25
+ selector: "ng-component",
26
+ ngImport: i0,
27
+ template: "",
28
+ isInline: true,
29
+ changeDetection: i0.ChangeDetectionStrategy.Eager
30
+ });
31
+ }
32
+ };
33
+ i0.ɵɵngDeclareClassMetadata({
34
+ minVersion: "12.0.0",
35
+ version: "22.3.0",
36
+ ngImport: i0,
37
+ type: ChordBaseComponent,
38
+ decorators: [{
39
+ type: Component,
40
+ args: [{
41
+ template: "",
42
+ changeDetection: ChangeDetectionStrategy.Eager,
43
+ standalone: false
44
+ }]
45
+ }]
46
+ });
21
47
  var ChordKey;
22
- (function (ChordKey) {
23
- ChordKey["C"] = "C";
24
- ChordKey["Cm"] = "Cm";
25
- ChordKey["Cm7"] = "Cm7";
26
- ChordKey["Csus2"] = "Csus2";
27
- ChordKey["Csus4"] = "Csus4";
28
- ChordKey["C6"] = "C6";
29
- ChordKey["C7"] = "C7";
30
- ChordKey["Cmaj7"] = "Cmaj7";
31
- ChordKey["Cadd9"] = "Cadd9";
32
- ChordKey["Caug"] = "Caug";
33
- ChordKey["Cdim7"] = "Cdim7";
34
- ChordKey["Cdim"] = "Cdim";
35
- ChordKey["Db"] = "Db";
36
- ChordKey["Dbm"] = "Dbm";
37
- ChordKey["Dbm7"] = "Dbm7";
38
- ChordKey["Dbsus2"] = "Dbsus2";
39
- ChordKey["Dbsus4"] = "Dbsus4";
40
- ChordKey["Db6"] = "Db6";
41
- ChordKey["Db7"] = "Db7";
42
- ChordKey["Dbmaj7"] = "Dbmaj7";
43
- ChordKey["Dbadd9"] = "Dbadd9";
44
- ChordKey["Dbaug"] = "Dbaug";
45
- ChordKey["Dbdim7"] = "Dbdim7";
46
- ChordKey["Dbdim"] = "Dbdim";
47
- ChordKey["D"] = "D";
48
- ChordKey["Dm"] = "Dm";
49
- ChordKey["Dm7"] = "Dm7";
50
- ChordKey["Dsus2"] = "Dsus2";
51
- ChordKey["Dsus4"] = "Dsus4";
52
- ChordKey["D6"] = "D6";
53
- ChordKey["D7"] = "D7";
54
- ChordKey["Dmaj7"] = "Dmaj7";
55
- ChordKey["Dadd9"] = "Dadd9";
56
- ChordKey["Daug"] = "Daug";
57
- ChordKey["Ddim7"] = "Ddim7";
58
- ChordKey["Ddim"] = "Ddim";
59
- ChordKey["Eb"] = "Eb";
60
- ChordKey["Ebm"] = "Ebm";
61
- ChordKey["Ebm7"] = "Ebm7";
62
- ChordKey["Ebsus2"] = "Ebsus2";
63
- ChordKey["Ebsus4"] = "Ebsus4";
64
- ChordKey["Eb6"] = "Eb6";
65
- ChordKey["Eb7"] = "Eb7";
66
- ChordKey["Ebmaj7"] = "Ebmaj7";
67
- ChordKey["Ebadd9"] = "Ebadd9";
68
- ChordKey["Ebaug"] = "Ebaug";
69
- ChordKey["Ebdim7"] = "Ebdim7";
70
- ChordKey["Ebdim"] = "Ebdim";
71
- ChordKey["E"] = "E";
72
- ChordKey["Em"] = "Em";
73
- ChordKey["Em7"] = "Em7";
74
- ChordKey["Esus2"] = "Esus2";
75
- ChordKey["Esus4"] = "Esus4";
76
- ChordKey["E6"] = "E6";
77
- ChordKey["E7"] = "E7";
78
- ChordKey["Emaj7"] = "Emaj7";
79
- ChordKey["Eadd9"] = "Eadd9";
80
- ChordKey["Eaug"] = "Eaug";
81
- ChordKey["Edim7"] = "Edim7";
82
- ChordKey["Edim"] = "Edim";
83
- ChordKey["F"] = "F";
84
- ChordKey["Fm"] = "Fm";
85
- ChordKey["Fm7"] = "Fm7";
86
- ChordKey["Fsus2"] = "Fsus2";
87
- ChordKey["Fsus4"] = "Fsus4";
88
- ChordKey["F6"] = "F6";
89
- ChordKey["F7"] = "F7";
90
- ChordKey["Fmaj7"] = "Fmaj7";
91
- ChordKey["Fadd9"] = "Fadd9";
92
- ChordKey["Faug"] = "Faug";
93
- ChordKey["Fdim7"] = "Fdim7";
94
- ChordKey["Fdim"] = "Fdim";
95
- ChordKey["Gb"] = "Gb";
96
- ChordKey["Gbm"] = "Gbm";
97
- ChordKey["Gbm7"] = "Gbm7";
98
- ChordKey["Gbsus2"] = "Gbsus2";
99
- ChordKey["Gbsus4"] = "Gbsus4";
100
- ChordKey["Gb6"] = "Gb6";
101
- ChordKey["Gb7"] = "Gb7";
102
- ChordKey["Gbmaj7"] = "Gbmaj7";
103
- ChordKey["Gbadd9"] = "Gbadd9";
104
- ChordKey["Gbaug"] = "Gbaug";
105
- ChordKey["Gbdim7"] = "Gbdim7";
106
- ChordKey["Gbdim"] = "Gbdim";
107
- ChordKey["G"] = "G";
108
- ChordKey["Gm"] = "Gm";
109
- ChordKey["Gm7"] = "Gm7";
110
- ChordKey["Gsus2"] = "Gsus2";
111
- ChordKey["Gsus4"] = "Gsus4";
112
- ChordKey["G6"] = "G6";
113
- ChordKey["G7"] = "G7";
114
- ChordKey["Gmaj7"] = "Gmaj7";
115
- ChordKey["Gadd9"] = "Gadd9";
116
- ChordKey["Gaug"] = "Gaug";
117
- ChordKey["Gdim7"] = "Gdim7";
118
- ChordKey["Gdim"] = "Gdim";
119
- ChordKey["Ab"] = "Ab";
120
- ChordKey["Abm"] = "Abm";
121
- ChordKey["Abm7"] = "Abm7";
122
- ChordKey["Absus2"] = "Absus2";
123
- ChordKey["Absus4"] = "Absus4";
124
- ChordKey["Ab6"] = "Ab6";
125
- ChordKey["Ab7"] = "Ab7";
126
- ChordKey["Abmaj7"] = "Abmaj7";
127
- ChordKey["Abadd9"] = "Abadd9";
128
- ChordKey["Abaug"] = "Abaug";
129
- ChordKey["Abdim7"] = "Abdim7";
130
- ChordKey["Abdim"] = "Abdim";
131
- ChordKey["A"] = "A";
132
- ChordKey["Am"] = "Am";
133
- ChordKey["Am7"] = "Am7";
134
- ChordKey["Asus2"] = "Asus2";
135
- ChordKey["Asus4"] = "Asus4";
136
- ChordKey["A6"] = "A6";
137
- ChordKey["A7"] = "A7";
138
- ChordKey["Amaj7"] = "Amaj7";
139
- ChordKey["Aadd9"] = "Aadd9";
140
- ChordKey["Aaug"] = "Aaug";
141
- ChordKey["Adim7"] = "Adim7";
142
- ChordKey["Adim"] = "Adim";
143
- ChordKey["Bb"] = "Bb";
144
- ChordKey["Bbm"] = "Bbm";
145
- ChordKey["Bbm7"] = "Bbm7";
146
- ChordKey["Bbsus2"] = "Bbsus2";
147
- ChordKey["Bbsus4"] = "Bbsus4";
148
- ChordKey["Bb6"] = "Bb6";
149
- ChordKey["Bb7"] = "Bb7";
150
- ChordKey["Bbmaj7"] = "Bbmaj7";
151
- ChordKey["Bbadd9"] = "Bbadd9";
152
- ChordKey["Bbaug"] = "Bbaug";
153
- ChordKey["Bbdim7"] = "Bbdim7";
154
- ChordKey["Bbdim"] = "Bbdim";
155
- ChordKey["B"] = "B";
156
- ChordKey["Bm"] = "Bm";
157
- ChordKey["Bm7"] = "Bm7";
158
- ChordKey["Bsus2"] = "Bsus2";
159
- ChordKey["Bsus4"] = "Bsus4";
160
- ChordKey["B6"] = "B6";
161
- ChordKey["B7"] = "B7";
162
- ChordKey["Bmaj7"] = "Bmaj7";
163
- ChordKey["Badd9"] = "Badd9";
164
- ChordKey["Baug"] = "Baug";
165
- ChordKey["Bdim7"] = "Bdim7";
166
- ChordKey["Bdim"] = "Bdim";
48
+ (function(ChordKey) {
49
+ ChordKey["C"] = "C";
50
+ ChordKey["Cm"] = "Cm";
51
+ ChordKey["Cm7"] = "Cm7";
52
+ ChordKey["Csus2"] = "Csus2";
53
+ ChordKey["Csus4"] = "Csus4";
54
+ ChordKey["C6"] = "C6";
55
+ ChordKey["C7"] = "C7";
56
+ ChordKey["Cmaj7"] = "Cmaj7";
57
+ ChordKey["Cadd9"] = "Cadd9";
58
+ ChordKey["Caug"] = "Caug";
59
+ ChordKey["Cdim7"] = "Cdim7";
60
+ ChordKey["Cdim"] = "Cdim";
61
+ ChordKey["Db"] = "Db";
62
+ ChordKey["Dbm"] = "Dbm";
63
+ ChordKey["Dbm7"] = "Dbm7";
64
+ ChordKey["Dbsus2"] = "Dbsus2";
65
+ ChordKey["Dbsus4"] = "Dbsus4";
66
+ ChordKey["Db6"] = "Db6";
67
+ ChordKey["Db7"] = "Db7";
68
+ ChordKey["Dbmaj7"] = "Dbmaj7";
69
+ ChordKey["Dbadd9"] = "Dbadd9";
70
+ ChordKey["Dbaug"] = "Dbaug";
71
+ ChordKey["Dbdim7"] = "Dbdim7";
72
+ ChordKey["Dbdim"] = "Dbdim";
73
+ ChordKey["D"] = "D";
74
+ ChordKey["Dm"] = "Dm";
75
+ ChordKey["Dm7"] = "Dm7";
76
+ ChordKey["Dsus2"] = "Dsus2";
77
+ ChordKey["Dsus4"] = "Dsus4";
78
+ ChordKey["D6"] = "D6";
79
+ ChordKey["D7"] = "D7";
80
+ ChordKey["Dmaj7"] = "Dmaj7";
81
+ ChordKey["Dadd9"] = "Dadd9";
82
+ ChordKey["Daug"] = "Daug";
83
+ ChordKey["Ddim7"] = "Ddim7";
84
+ ChordKey["Ddim"] = "Ddim";
85
+ ChordKey["Eb"] = "Eb";
86
+ ChordKey["Ebm"] = "Ebm";
87
+ ChordKey["Ebm7"] = "Ebm7";
88
+ ChordKey["Ebsus2"] = "Ebsus2";
89
+ ChordKey["Ebsus4"] = "Ebsus4";
90
+ ChordKey["Eb6"] = "Eb6";
91
+ ChordKey["Eb7"] = "Eb7";
92
+ ChordKey["Ebmaj7"] = "Ebmaj7";
93
+ ChordKey["Ebadd9"] = "Ebadd9";
94
+ ChordKey["Ebaug"] = "Ebaug";
95
+ ChordKey["Ebdim7"] = "Ebdim7";
96
+ ChordKey["Ebdim"] = "Ebdim";
97
+ ChordKey["E"] = "E";
98
+ ChordKey["Em"] = "Em";
99
+ ChordKey["Em7"] = "Em7";
100
+ ChordKey["Esus2"] = "Esus2";
101
+ ChordKey["Esus4"] = "Esus4";
102
+ ChordKey["E6"] = "E6";
103
+ ChordKey["E7"] = "E7";
104
+ ChordKey["Emaj7"] = "Emaj7";
105
+ ChordKey["Eadd9"] = "Eadd9";
106
+ ChordKey["Eaug"] = "Eaug";
107
+ ChordKey["Edim7"] = "Edim7";
108
+ ChordKey["Edim"] = "Edim";
109
+ ChordKey["F"] = "F";
110
+ ChordKey["Fm"] = "Fm";
111
+ ChordKey["Fm7"] = "Fm7";
112
+ ChordKey["Fsus2"] = "Fsus2";
113
+ ChordKey["Fsus4"] = "Fsus4";
114
+ ChordKey["F6"] = "F6";
115
+ ChordKey["F7"] = "F7";
116
+ ChordKey["Fmaj7"] = "Fmaj7";
117
+ ChordKey["Fadd9"] = "Fadd9";
118
+ ChordKey["Faug"] = "Faug";
119
+ ChordKey["Fdim7"] = "Fdim7";
120
+ ChordKey["Fdim"] = "Fdim";
121
+ ChordKey["Gb"] = "Gb";
122
+ ChordKey["Gbm"] = "Gbm";
123
+ ChordKey["Gbm7"] = "Gbm7";
124
+ ChordKey["Gbsus2"] = "Gbsus2";
125
+ ChordKey["Gbsus4"] = "Gbsus4";
126
+ ChordKey["Gb6"] = "Gb6";
127
+ ChordKey["Gb7"] = "Gb7";
128
+ ChordKey["Gbmaj7"] = "Gbmaj7";
129
+ ChordKey["Gbadd9"] = "Gbadd9";
130
+ ChordKey["Gbaug"] = "Gbaug";
131
+ ChordKey["Gbdim7"] = "Gbdim7";
132
+ ChordKey["Gbdim"] = "Gbdim";
133
+ ChordKey["G"] = "G";
134
+ ChordKey["Gm"] = "Gm";
135
+ ChordKey["Gm7"] = "Gm7";
136
+ ChordKey["Gsus2"] = "Gsus2";
137
+ ChordKey["Gsus4"] = "Gsus4";
138
+ ChordKey["G6"] = "G6";
139
+ ChordKey["G7"] = "G7";
140
+ ChordKey["Gmaj7"] = "Gmaj7";
141
+ ChordKey["Gadd9"] = "Gadd9";
142
+ ChordKey["Gaug"] = "Gaug";
143
+ ChordKey["Gdim7"] = "Gdim7";
144
+ ChordKey["Gdim"] = "Gdim";
145
+ ChordKey["Ab"] = "Ab";
146
+ ChordKey["Abm"] = "Abm";
147
+ ChordKey["Abm7"] = "Abm7";
148
+ ChordKey["Absus2"] = "Absus2";
149
+ ChordKey["Absus4"] = "Absus4";
150
+ ChordKey["Ab6"] = "Ab6";
151
+ ChordKey["Ab7"] = "Ab7";
152
+ ChordKey["Abmaj7"] = "Abmaj7";
153
+ ChordKey["Abadd9"] = "Abadd9";
154
+ ChordKey["Abaug"] = "Abaug";
155
+ ChordKey["Abdim7"] = "Abdim7";
156
+ ChordKey["Abdim"] = "Abdim";
157
+ ChordKey["A"] = "A";
158
+ ChordKey["Am"] = "Am";
159
+ ChordKey["Am7"] = "Am7";
160
+ ChordKey["Asus2"] = "Asus2";
161
+ ChordKey["Asus4"] = "Asus4";
162
+ ChordKey["A6"] = "A6";
163
+ ChordKey["A7"] = "A7";
164
+ ChordKey["Amaj7"] = "Amaj7";
165
+ ChordKey["Aadd9"] = "Aadd9";
166
+ ChordKey["Aaug"] = "Aaug";
167
+ ChordKey["Adim7"] = "Adim7";
168
+ ChordKey["Adim"] = "Adim";
169
+ ChordKey["Bb"] = "Bb";
170
+ ChordKey["Bbm"] = "Bbm";
171
+ ChordKey["Bbm7"] = "Bbm7";
172
+ ChordKey["Bbsus2"] = "Bbsus2";
173
+ ChordKey["Bbsus4"] = "Bbsus4";
174
+ ChordKey["Bb6"] = "Bb6";
175
+ ChordKey["Bb7"] = "Bb7";
176
+ ChordKey["Bbmaj7"] = "Bbmaj7";
177
+ ChordKey["Bbadd9"] = "Bbadd9";
178
+ ChordKey["Bbaug"] = "Bbaug";
179
+ ChordKey["Bbdim7"] = "Bbdim7";
180
+ ChordKey["Bbdim"] = "Bbdim";
181
+ ChordKey["B"] = "B";
182
+ ChordKey["Bm"] = "Bm";
183
+ ChordKey["Bm7"] = "Bm7";
184
+ ChordKey["Bsus2"] = "Bsus2";
185
+ ChordKey["Bsus4"] = "Bsus4";
186
+ ChordKey["B6"] = "B6";
187
+ ChordKey["B7"] = "B7";
188
+ ChordKey["Bmaj7"] = "Bmaj7";
189
+ ChordKey["Badd9"] = "Badd9";
190
+ ChordKey["Baug"] = "Baug";
191
+ ChordKey["Bdim7"] = "Bdim7";
192
+ ChordKey["Bdim"] = "Bdim";
167
193
  })(ChordKey || (ChordKey = {}));
168
194
  const chord = {
169
- // C*
170
- C: { key: 'C', name: 'C' },
171
- Cm: { key: 'Cm', name: 'Cm' },
172
- Cm7: { key: 'Cm7', name: 'Cm7' },
173
- Csus2: { key: 'Csus2', name: 'Csus2' },
174
- Csus4: { key: 'Csus4', name: 'Csus4' },
175
- C6: { key: 'C6', name: 'C6' },
176
- C7: { key: 'C7', name: 'C7' },
177
- Cmaj7: { key: 'Cmaj7', name: 'Cmaj7' },
178
- Cadd9: { key: 'Cadd9', name: 'Cadd9' },
179
- Caug: { key: 'Caug', name: 'Caug' },
180
- Cdim7: { key: 'Cdim7', name: 'Cdim7' },
181
- Cdim: { key: 'Cdim', name: 'Cdim' },
182
- // C#/Db*
183
- Db: { key: 'Db', name: 'C#/D♭' },
184
- Dbm: { key: 'Dbm', name: 'D♭m' },
185
- Dbm7: { key: 'Dbm7', name: 'D♭m7' },
186
- Dbsus2: { key: 'Dbsus2', name: 'D♭sus2' },
187
- Dbsus4: { key: 'Dbsus4', name: 'D♭sus4' },
188
- Db6: { key: 'Db6', name: 'D♭6' },
189
- Db7: { key: 'Db7', name: 'D♭7' },
190
- Dbmaj7: { key: 'Dbmaj7', name: 'D♭maj7' },
191
- Dbadd9: { key: 'Dbadd9', name: 'D♭add9' },
192
- Dbaug: { key: 'Dbaug', name: 'D♭aug' },
193
- Dbdim7: { key: 'Dbdim7', name: 'D♭dim7' },
194
- Dbdim: { key: 'Dbdim', name: 'D♭dim' },
195
- // D*
196
- D: { key: 'D', name: 'D' },
197
- Dm: { key: 'Dm', name: 'Dm' },
198
- Dm7: { key: 'Dm7', name: 'Dm7' },
199
- Dsus2: { key: 'Dsus2', name: 'Dsus2' },
200
- Dsus4: { key: 'Dsus4', name: 'Dsus4' },
201
- D6: { key: 'D6', name: 'D6' },
202
- D7: { key: 'D7', name: 'D7' },
203
- Dmaj7: { key: 'Dmaj7', name: 'Dmaj7' },
204
- Dadd9: { key: 'Dadd9', name: 'Dadd9' },
205
- Daug: { key: 'Daug', name: 'Daug' },
206
- Ddim7: { key: 'Ddim7', name: 'Ddim7' },
207
- Ddim: { key: 'Ddim', name: 'Ddim' },
208
- // D#/Eb*
209
- Eb: { key: 'Eb', name: 'D#/E♭' },
210
- Ebm: { key: 'Ebm', name: 'E♭m' },
211
- Ebm7: { key: 'Ebm7', name: 'E♭m7' },
212
- Ebsus2: { key: 'Ebsus2', name: 'E♭sus2' },
213
- Ebsus4: { key: 'Ebsus4', name: 'E♭sus4' },
214
- Eb6: { key: 'Eb6', name: 'E♭6' },
215
- Eb7: { key: 'Eb7', name: 'E♭7' },
216
- Ebmaj7: { key: 'Ebmaj7', name: 'E♭maj7' },
217
- Ebadd9: { key: 'Ebadd9', name: 'E♭add9' },
218
- Ebaug: { key: 'Ebaug', name: 'E♭aug' },
219
- Ebdim7: { key: 'Ebdim7', name: 'E♭dim7' },
220
- Ebdim: { key: 'Ebdim', name: 'E♭dim' },
221
- // E*
222
- E: { key: 'E', name: 'E' },
223
- Em: { key: 'Em', name: 'Em' },
224
- Em7: { key: 'Em7', name: 'Em7' },
225
- Esus2: { key: 'Esus2', name: 'Esus2' },
226
- Esus4: { key: 'Esus4', name: 'Esus4' },
227
- E6: { key: 'E6', name: 'E6' },
228
- E7: { key: 'E7', name: 'E7' },
229
- Emaj7: { key: 'Emaj7', name: 'Emaj7' },
230
- Eadd9: { key: 'Eadd9', name: 'Eadd9' },
231
- Eaug: { key: 'Eaug', name: 'Eaug' },
232
- Edim7: { key: 'Edim7', name: 'Edim7' },
233
- Edim: { key: 'Edim', name: 'Edim' },
234
- // F*
235
- F: { key: 'F', name: 'F' },
236
- Fm: { key: 'Fm', name: 'Fm' },
237
- Fm7: { key: 'Fm7', name: 'Fm7' },
238
- Fsus2: { key: 'Fsus2', name: 'Fsus2' },
239
- Fsus4: { key: 'Fsus4', name: 'Fsus4' },
240
- F6: { key: 'F6', name: 'F6' },
241
- F7: { key: 'F7', name: 'F7' },
242
- Fmaj7: { key: 'Fmaj7', name: 'Fmaj7' },
243
- Fadd9: { key: 'Fadd9', name: 'Fadd9' },
244
- Faug: { key: 'Faug', name: 'Faug' },
245
- Fdim7: { key: 'Fdim7', name: 'Fdim7' },
246
- Fdim: { key: 'Fdim', name: 'Fdim' },
247
- // F#/Gb*
248
- Gb: { key: 'Gb', name: 'F#/G♭' },
249
- Gbm: { key: 'Gbm', name: 'G♭m' },
250
- Gbm7: { key: 'Gbm7', name: 'G♭m7' },
251
- Gbsus2: { key: 'Gbsus2', name: 'G♭sus2' },
252
- Gbsus4: { key: 'Gbsus4', name: 'G♭sus4' },
253
- Gb6: { key: 'Gb6', name: 'G♭6' },
254
- Gb7: { key: 'Gb7', name: 'G♭7' },
255
- Gbmaj7: { key: 'Gbmaj7', name: 'G♭maj7' },
256
- Gbadd9: { key: 'Gbadd9', name: 'G♭add9' },
257
- Gbaug: { key: 'Gbaug', name: 'G♭aug' },
258
- Gbdim7: { key: 'Gbdim7', name: 'G♭dim7' },
259
- Gbdim: { key: 'Gbdim', name: 'G♭dim' },
260
- // G*
261
- G: { key: 'G', name: 'G' },
262
- Gm: { key: 'Gm', name: 'Gm' },
263
- Gm7: { key: 'Gm7', name: 'Gm7' },
264
- Gsus2: { key: 'Gsus2', name: 'Gsus2' },
265
- Gsus4: { key: 'Gsus4', name: 'Gsus4' },
266
- G6: { key: 'G6', name: 'G6' },
267
- G7: { key: 'G7', name: 'G7' },
268
- Gmaj7: { key: 'Gmaj7', name: 'Gmaj7' },
269
- Gadd9: { key: 'Gadd9', name: 'Gadd9' },
270
- Gaug: { key: 'Gaug', name: 'Gaug' },
271
- Gdim7: { key: 'Gdim7', name: 'Gdim7' },
272
- Gdim: { key: 'Gdim', name: 'Gdim' },
273
- // G#/Ab*
274
- Ab: { key: 'Ab', name: 'G#/A♭' },
275
- Abm: { key: 'Abm', name: 'A♭m' },
276
- Abm7: { key: 'Abm7', name: 'A♭m7' },
277
- Absus2: { key: 'Absus2', name: 'A♭sus2' },
278
- Absus4: { key: 'Absus4', name: 'A♭sus4' },
279
- Ab6: { key: 'Ab6', name: 'A♭6' },
280
- Ab7: { key: 'Ab7', name: 'A♭7' },
281
- Abmaj7: { key: 'Abmaj7', name: 'A♭maj7' },
282
- Abadd9: { key: 'Abadd9', name: 'A♭add9' },
283
- Abaug: { key: 'Abaug', name: 'A♭aug' },
284
- Abdim7: { key: 'Abdim7', name: 'A♭dim7' },
285
- Abdim: { key: 'Abdim', name: 'A♭dim' },
286
- // A*
287
- A: { key: 'A', name: 'A' },
288
- Am: { key: 'Am', name: 'Am' },
289
- Am7: { key: 'Am7', name: 'Am7' },
290
- Asus2: { key: 'Asus2', name: 'Asus2' },
291
- Asus4: { key: 'Asus4', name: 'Asus4' },
292
- A6: { key: 'A6', name: 'A6' },
293
- A7: { key: 'A7', name: 'A7' },
294
- Amaj7: { key: 'Amaj7', name: 'Amaj7' },
295
- Aadd9: { key: 'Aadd9', name: 'Aadd9' },
296
- Aaug: { key: 'Aaug', name: 'Aaug' },
297
- Adim7: { key: 'Adim7', name: 'Adim7' },
298
- Adim: { key: 'Adim', name: 'Adim' },
299
- // A#/Bb*
300
- Bb: { key: 'Bb', name: 'A#/B♭' },
301
- Bbm: { key: 'Bbm', name: 'B♭m' },
302
- Bbm7: { key: 'Bbm7', name: 'B♭m7' },
303
- Bbsus2: { key: 'Bbsus2', name: 'B♭sus2' },
304
- Bbsus4: { key: 'Bbsus4', name: 'B♭sus4' },
305
- Bb6: { key: 'Bb6', name: 'B♭6' },
306
- Bb7: { key: 'Bb7', name: 'B♭7' },
307
- Bbmaj7: { key: 'Bbmaj7', name: 'B♭maj7' },
308
- Bbadd9: { key: 'Bbadd9', name: 'B♭add9' },
309
- Bbaug: { key: 'Bbaug', name: 'B♭aug' },
310
- Bbdim7: { key: 'Bbdim7', name: 'B♭dim7' },
311
- Bbdim: { key: 'Bbdim', name: 'B♭dim' },
312
- // B*
313
- B: { key: 'B', name: 'B' },
314
- Bm: { key: 'Bm', name: 'Bm' },
315
- Bm7: { key: 'Bm7', name: 'Bm7' },
316
- Bsus2: { key: 'Bsus2', name: 'Bsus2' },
317
- Bsus4: { key: 'Bsus4', name: 'Bsus4' },
318
- B6: { key: 'B6', name: 'B6' },
319
- B7: { key: 'B7', name: 'B7' },
320
- Bmaj7: { key: 'Bmaj7', name: 'Bmaj7' },
321
- Badd9: { key: 'Badd9', name: 'Badd9' },
322
- Baug: { key: 'Baug', name: 'Baug' },
323
- Bdim7: { key: 'Bdim7', name: 'Bdim7' },
324
- Bdim: { key: 'Bdim', name: 'Bdim' },
195
+ C: {
196
+ key: "C",
197
+ name: "C"
198
+ },
199
+ Cm: {
200
+ key: "Cm",
201
+ name: "Cm"
202
+ },
203
+ Cm7: {
204
+ key: "Cm7",
205
+ name: "Cm7"
206
+ },
207
+ Csus2: {
208
+ key: "Csus2",
209
+ name: "Csus2"
210
+ },
211
+ Csus4: {
212
+ key: "Csus4",
213
+ name: "Csus4"
214
+ },
215
+ C6: {
216
+ key: "C6",
217
+ name: "C6"
218
+ },
219
+ C7: {
220
+ key: "C7",
221
+ name: "C7"
222
+ },
223
+ Cmaj7: {
224
+ key: "Cmaj7",
225
+ name: "Cmaj7"
226
+ },
227
+ Cadd9: {
228
+ key: "Cadd9",
229
+ name: "Cadd9"
230
+ },
231
+ Caug: {
232
+ key: "Caug",
233
+ name: "Caug"
234
+ },
235
+ Cdim7: {
236
+ key: "Cdim7",
237
+ name: "Cdim7"
238
+ },
239
+ Cdim: {
240
+ key: "Cdim",
241
+ name: "Cdim"
242
+ },
243
+ Db: {
244
+ key: "Db",
245
+ name: "C#/D♭"
246
+ },
247
+ Dbm: {
248
+ key: "Dbm",
249
+ name: "D♭m"
250
+ },
251
+ Dbm7: {
252
+ key: "Dbm7",
253
+ name: "D♭m7"
254
+ },
255
+ Dbsus2: {
256
+ key: "Dbsus2",
257
+ name: "D♭sus2"
258
+ },
259
+ Dbsus4: {
260
+ key: "Dbsus4",
261
+ name: "D♭sus4"
262
+ },
263
+ Db6: {
264
+ key: "Db6",
265
+ name: "D♭6"
266
+ },
267
+ Db7: {
268
+ key: "Db7",
269
+ name: "D♭7"
270
+ },
271
+ Dbmaj7: {
272
+ key: "Dbmaj7",
273
+ name: "D♭maj7"
274
+ },
275
+ Dbadd9: {
276
+ key: "Dbadd9",
277
+ name: "D♭add9"
278
+ },
279
+ Dbaug: {
280
+ key: "Dbaug",
281
+ name: "D♭aug"
282
+ },
283
+ Dbdim7: {
284
+ key: "Dbdim7",
285
+ name: "D♭dim7"
286
+ },
287
+ Dbdim: {
288
+ key: "Dbdim",
289
+ name: "D♭dim"
290
+ },
291
+ D: {
292
+ key: "D",
293
+ name: "D"
294
+ },
295
+ Dm: {
296
+ key: "Dm",
297
+ name: "Dm"
298
+ },
299
+ Dm7: {
300
+ key: "Dm7",
301
+ name: "Dm7"
302
+ },
303
+ Dsus2: {
304
+ key: "Dsus2",
305
+ name: "Dsus2"
306
+ },
307
+ Dsus4: {
308
+ key: "Dsus4",
309
+ name: "Dsus4"
310
+ },
311
+ D6: {
312
+ key: "D6",
313
+ name: "D6"
314
+ },
315
+ D7: {
316
+ key: "D7",
317
+ name: "D7"
318
+ },
319
+ Dmaj7: {
320
+ key: "Dmaj7",
321
+ name: "Dmaj7"
322
+ },
323
+ Dadd9: {
324
+ key: "Dadd9",
325
+ name: "Dadd9"
326
+ },
327
+ Daug: {
328
+ key: "Daug",
329
+ name: "Daug"
330
+ },
331
+ Ddim7: {
332
+ key: "Ddim7",
333
+ name: "Ddim7"
334
+ },
335
+ Ddim: {
336
+ key: "Ddim",
337
+ name: "Ddim"
338
+ },
339
+ Eb: {
340
+ key: "Eb",
341
+ name: "D#/E♭"
342
+ },
343
+ Ebm: {
344
+ key: "Ebm",
345
+ name: "E♭m"
346
+ },
347
+ Ebm7: {
348
+ key: "Ebm7",
349
+ name: "E♭m7"
350
+ },
351
+ Ebsus2: {
352
+ key: "Ebsus2",
353
+ name: "E♭sus2"
354
+ },
355
+ Ebsus4: {
356
+ key: "Ebsus4",
357
+ name: "E♭sus4"
358
+ },
359
+ Eb6: {
360
+ key: "Eb6",
361
+ name: "E♭6"
362
+ },
363
+ Eb7: {
364
+ key: "Eb7",
365
+ name: "E♭7"
366
+ },
367
+ Ebmaj7: {
368
+ key: "Ebmaj7",
369
+ name: "E♭maj7"
370
+ },
371
+ Ebadd9: {
372
+ key: "Ebadd9",
373
+ name: "E♭add9"
374
+ },
375
+ Ebaug: {
376
+ key: "Ebaug",
377
+ name: "E♭aug"
378
+ },
379
+ Ebdim7: {
380
+ key: "Ebdim7",
381
+ name: "E♭dim7"
382
+ },
383
+ Ebdim: {
384
+ key: "Ebdim",
385
+ name: "E♭dim"
386
+ },
387
+ E: {
388
+ key: "E",
389
+ name: "E"
390
+ },
391
+ Em: {
392
+ key: "Em",
393
+ name: "Em"
394
+ },
395
+ Em7: {
396
+ key: "Em7",
397
+ name: "Em7"
398
+ },
399
+ Esus2: {
400
+ key: "Esus2",
401
+ name: "Esus2"
402
+ },
403
+ Esus4: {
404
+ key: "Esus4",
405
+ name: "Esus4"
406
+ },
407
+ E6: {
408
+ key: "E6",
409
+ name: "E6"
410
+ },
411
+ E7: {
412
+ key: "E7",
413
+ name: "E7"
414
+ },
415
+ Emaj7: {
416
+ key: "Emaj7",
417
+ name: "Emaj7"
418
+ },
419
+ Eadd9: {
420
+ key: "Eadd9",
421
+ name: "Eadd9"
422
+ },
423
+ Eaug: {
424
+ key: "Eaug",
425
+ name: "Eaug"
426
+ },
427
+ Edim7: {
428
+ key: "Edim7",
429
+ name: "Edim7"
430
+ },
431
+ Edim: {
432
+ key: "Edim",
433
+ name: "Edim"
434
+ },
435
+ F: {
436
+ key: "F",
437
+ name: "F"
438
+ },
439
+ Fm: {
440
+ key: "Fm",
441
+ name: "Fm"
442
+ },
443
+ Fm7: {
444
+ key: "Fm7",
445
+ name: "Fm7"
446
+ },
447
+ Fsus2: {
448
+ key: "Fsus2",
449
+ name: "Fsus2"
450
+ },
451
+ Fsus4: {
452
+ key: "Fsus4",
453
+ name: "Fsus4"
454
+ },
455
+ F6: {
456
+ key: "F6",
457
+ name: "F6"
458
+ },
459
+ F7: {
460
+ key: "F7",
461
+ name: "F7"
462
+ },
463
+ Fmaj7: {
464
+ key: "Fmaj7",
465
+ name: "Fmaj7"
466
+ },
467
+ Fadd9: {
468
+ key: "Fadd9",
469
+ name: "Fadd9"
470
+ },
471
+ Faug: {
472
+ key: "Faug",
473
+ name: "Faug"
474
+ },
475
+ Fdim7: {
476
+ key: "Fdim7",
477
+ name: "Fdim7"
478
+ },
479
+ Fdim: {
480
+ key: "Fdim",
481
+ name: "Fdim"
482
+ },
483
+ Gb: {
484
+ key: "Gb",
485
+ name: "F#/G♭"
486
+ },
487
+ Gbm: {
488
+ key: "Gbm",
489
+ name: "G♭m"
490
+ },
491
+ Gbm7: {
492
+ key: "Gbm7",
493
+ name: "G♭m7"
494
+ },
495
+ Gbsus2: {
496
+ key: "Gbsus2",
497
+ name: "G♭sus2"
498
+ },
499
+ Gbsus4: {
500
+ key: "Gbsus4",
501
+ name: "G♭sus4"
502
+ },
503
+ Gb6: {
504
+ key: "Gb6",
505
+ name: "G♭6"
506
+ },
507
+ Gb7: {
508
+ key: "Gb7",
509
+ name: "G♭7"
510
+ },
511
+ Gbmaj7: {
512
+ key: "Gbmaj7",
513
+ name: "G♭maj7"
514
+ },
515
+ Gbadd9: {
516
+ key: "Gbadd9",
517
+ name: "G♭add9"
518
+ },
519
+ Gbaug: {
520
+ key: "Gbaug",
521
+ name: "G♭aug"
522
+ },
523
+ Gbdim7: {
524
+ key: "Gbdim7",
525
+ name: "G♭dim7"
526
+ },
527
+ Gbdim: {
528
+ key: "Gbdim",
529
+ name: "G♭dim"
530
+ },
531
+ G: {
532
+ key: "G",
533
+ name: "G"
534
+ },
535
+ Gm: {
536
+ key: "Gm",
537
+ name: "Gm"
538
+ },
539
+ Gm7: {
540
+ key: "Gm7",
541
+ name: "Gm7"
542
+ },
543
+ Gsus2: {
544
+ key: "Gsus2",
545
+ name: "Gsus2"
546
+ },
547
+ Gsus4: {
548
+ key: "Gsus4",
549
+ name: "Gsus4"
550
+ },
551
+ G6: {
552
+ key: "G6",
553
+ name: "G6"
554
+ },
555
+ G7: {
556
+ key: "G7",
557
+ name: "G7"
558
+ },
559
+ Gmaj7: {
560
+ key: "Gmaj7",
561
+ name: "Gmaj7"
562
+ },
563
+ Gadd9: {
564
+ key: "Gadd9",
565
+ name: "Gadd9"
566
+ },
567
+ Gaug: {
568
+ key: "Gaug",
569
+ name: "Gaug"
570
+ },
571
+ Gdim7: {
572
+ key: "Gdim7",
573
+ name: "Gdim7"
574
+ },
575
+ Gdim: {
576
+ key: "Gdim",
577
+ name: "Gdim"
578
+ },
579
+ Ab: {
580
+ key: "Ab",
581
+ name: "G#/A♭"
582
+ },
583
+ Abm: {
584
+ key: "Abm",
585
+ name: "A♭m"
586
+ },
587
+ Abm7: {
588
+ key: "Abm7",
589
+ name: "A♭m7"
590
+ },
591
+ Absus2: {
592
+ key: "Absus2",
593
+ name: "A♭sus2"
594
+ },
595
+ Absus4: {
596
+ key: "Absus4",
597
+ name: "A♭sus4"
598
+ },
599
+ Ab6: {
600
+ key: "Ab6",
601
+ name: "A♭6"
602
+ },
603
+ Ab7: {
604
+ key: "Ab7",
605
+ name: "A♭7"
606
+ },
607
+ Abmaj7: {
608
+ key: "Abmaj7",
609
+ name: "A♭maj7"
610
+ },
611
+ Abadd9: {
612
+ key: "Abadd9",
613
+ name: "A♭add9"
614
+ },
615
+ Abaug: {
616
+ key: "Abaug",
617
+ name: "A♭aug"
618
+ },
619
+ Abdim7: {
620
+ key: "Abdim7",
621
+ name: "A♭dim7"
622
+ },
623
+ Abdim: {
624
+ key: "Abdim",
625
+ name: "A♭dim"
626
+ },
627
+ A: {
628
+ key: "A",
629
+ name: "A"
630
+ },
631
+ Am: {
632
+ key: "Am",
633
+ name: "Am"
634
+ },
635
+ Am7: {
636
+ key: "Am7",
637
+ name: "Am7"
638
+ },
639
+ Asus2: {
640
+ key: "Asus2",
641
+ name: "Asus2"
642
+ },
643
+ Asus4: {
644
+ key: "Asus4",
645
+ name: "Asus4"
646
+ },
647
+ A6: {
648
+ key: "A6",
649
+ name: "A6"
650
+ },
651
+ A7: {
652
+ key: "A7",
653
+ name: "A7"
654
+ },
655
+ Amaj7: {
656
+ key: "Amaj7",
657
+ name: "Amaj7"
658
+ },
659
+ Aadd9: {
660
+ key: "Aadd9",
661
+ name: "Aadd9"
662
+ },
663
+ Aaug: {
664
+ key: "Aaug",
665
+ name: "Aaug"
666
+ },
667
+ Adim7: {
668
+ key: "Adim7",
669
+ name: "Adim7"
670
+ },
671
+ Adim: {
672
+ key: "Adim",
673
+ name: "Adim"
674
+ },
675
+ Bb: {
676
+ key: "Bb",
677
+ name: "A#/B♭"
678
+ },
679
+ Bbm: {
680
+ key: "Bbm",
681
+ name: "B♭m"
682
+ },
683
+ Bbm7: {
684
+ key: "Bbm7",
685
+ name: "B♭m7"
686
+ },
687
+ Bbsus2: {
688
+ key: "Bbsus2",
689
+ name: "B♭sus2"
690
+ },
691
+ Bbsus4: {
692
+ key: "Bbsus4",
693
+ name: "B♭sus4"
694
+ },
695
+ Bb6: {
696
+ key: "Bb6",
697
+ name: "B♭6"
698
+ },
699
+ Bb7: {
700
+ key: "Bb7",
701
+ name: "B♭7"
702
+ },
703
+ Bbmaj7: {
704
+ key: "Bbmaj7",
705
+ name: "B♭maj7"
706
+ },
707
+ Bbadd9: {
708
+ key: "Bbadd9",
709
+ name: "B♭add9"
710
+ },
711
+ Bbaug: {
712
+ key: "Bbaug",
713
+ name: "B♭aug"
714
+ },
715
+ Bbdim7: {
716
+ key: "Bbdim7",
717
+ name: "B♭dim7"
718
+ },
719
+ Bbdim: {
720
+ key: "Bbdim",
721
+ name: "B♭dim"
722
+ },
723
+ B: {
724
+ key: "B",
725
+ name: "B"
726
+ },
727
+ Bm: {
728
+ key: "Bm",
729
+ name: "Bm"
730
+ },
731
+ Bm7: {
732
+ key: "Bm7",
733
+ name: "Bm7"
734
+ },
735
+ Bsus2: {
736
+ key: "Bsus2",
737
+ name: "Bsus2"
738
+ },
739
+ Bsus4: {
740
+ key: "Bsus4",
741
+ name: "Bsus4"
742
+ },
743
+ B6: {
744
+ key: "B6",
745
+ name: "B6"
746
+ },
747
+ B7: {
748
+ key: "B7",
749
+ name: "B7"
750
+ },
751
+ Bmaj7: {
752
+ key: "Bmaj7",
753
+ name: "Bmaj7"
754
+ },
755
+ Badd9: {
756
+ key: "Badd9",
757
+ name: "Badd9"
758
+ },
759
+ Baug: {
760
+ key: "Baug",
761
+ name: "Baug"
762
+ },
763
+ Bdim7: {
764
+ key: "Bdim7",
765
+ name: "Bdim7"
766
+ },
767
+ Bdim: {
768
+ key: "Bdim",
769
+ name: "Bdim"
770
+ }
325
771
  };
326
- class ChordUkuleleComponent extends ChordBaseComponent {
327
- get chordName() {
328
- return chord[this.chordKey].name;
329
- }
330
- get svgCssClass() {
331
- return 'uku';
332
- }
333
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordUkuleleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
334
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: ChordUkuleleComponent, isStandalone: false, selector: "[edyta-chord-ukulele]", inputs: { chordKey: "chordKey" }, usesInheritance: true, ngImport: i0, template: "<div class=\"chord\">\n <svg [classList]=\"[svgCssClass]\">\n <use [attr.href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" [attr.xlink:href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" />\n </svg>\n <span class=\"chname\" [innerHTML]=\"chordName\"></span>\n</div>\n", styles: [".chords{float:left}.chord{width:260px;height:360px;display:inline-block;text-align:center;transition:all .25s}#modal-chord-ukulele-picker .chord{cursor:pointer}.chname{display:block;width:100%;font:bold 2em ChordFont,Helvetica,Sans-Serif;text-align:center;transition:all .25s}.uku{width:260px;height:300px}\n"], encapsulation: i0.ViewEncapsulation.None }); }
335
- }
336
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordUkuleleComponent, decorators: [{
337
- type: Component,
338
- args: [{ selector: '[edyta-chord-ukulele]', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"chord\">\n <svg [classList]=\"[svgCssClass]\">\n <use [attr.href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" [attr.xlink:href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" />\n </svg>\n <span class=\"chname\" [innerHTML]=\"chordName\"></span>\n</div>\n", styles: [".chords{float:left}.chord{width:260px;height:360px;display:inline-block;text-align:center;transition:all .25s}#modal-chord-ukulele-picker .chord{cursor:pointer}.chname{display:block;width:100%;font:bold 2em ChordFont,Helvetica,Sans-Serif;text-align:center;transition:all .25s}.uku{width:260px;height:300px}\n"] }]
339
- }], propDecorators: { chordKey: [{
340
- type: Input,
341
- args: [{ required: true }]
342
- }] } });
343
-
344
- class ChordUkulelePickerComponent {
345
- constructor() {
346
- this.chordKey = ChordKey;
347
- this.chordSearch = '';
348
- this.uuid = v4();
349
- this.useIconButton = false;
350
- this.chordKeys = Object.keys(ChordKey);
351
- this.document = document;
352
- this.chordSelected = new EventEmitter();
353
- }
354
- getChordKeysBySearch() {
355
- return this.chordKeys.filter(key => key.toLowerCase().includes(this.chordSearch.toLowerCase()));
356
- }
357
- onChordSelected(chordKey) {
358
- UIkit.modal(this.document.getElementById(`modal-chord-ukulele-picker-${this.uuid}`)).hide();
359
- this.chordSelected.emit(chordKey);
360
- }
361
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordUkulelePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
362
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ChordUkulelePickerComponent, isStandalone: false, selector: "edyta-chord-ukulele-picker", inputs: { useIconButton: "useIconButton" }, outputs: { chordSelected: "chordSelected" }, ngImport: i0, template: "@if (!useIconButton) {\n <a class=\"uk-button uk-button-default\" href=\"#modal-chord-ukulele-picker\" uk-toggle>Ukulele chord picker</a>\n}\n@if (useIconButton) {\n <a [href]=\"'#modal-chord-ukulele-picker-' + uuid\" uk-toggle><i class=\"mdi mdi-36px mdi-plus-circle-outline\"></i></a>\n}\n\n<div [id]=\"'modal-chord-ukulele-picker-' + uuid\" class=\"uk-modal-container\" uk-modal>\n <div class=\"uk-modal-dialog uk-margin-auto-vertical\">\n <button class=\"uk-modal-close-default\" type=\"button\" uk-close></button>\n\n <div class=\"uk-modal-header\">\n <h2 class=\"uk-modal-title\">Pick desired chord</h2>\n </div>\n\n <div class=\"uk-modal-body\" (submit)=\"$event.preventDefault()\">\n <form class=\"uk-search uk-search-default\">\n <span uk-search-icon></span>\n <input name=\"chordSearch\" [(ngModel)]=\"chordSearch\" class=\"uk-search-input\" type=\"search\" placeholder=\"Search\" aria-label=\"Search\">\n </form>\n\n <div uk-grid>\n @for (key of getChordKeysBySearch(); track key) {\n <div edyta-chord-ukulele [chordKey]=\"key\" (click)=\"onChordSelected(key)\"></div>\n }\n </div>\n </div>\n </div>\n</div>\n", styles: [".uk-grid>*{padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: ChordUkuleleComponent, selector: "[edyta-chord-ukulele]", inputs: ["chordKey"] }] }); }
363
- }
364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordUkulelePickerComponent, decorators: [{
365
- type: Component,
366
- args: [{ selector: 'edyta-chord-ukulele-picker', standalone: false, template: "@if (!useIconButton) {\n <a class=\"uk-button uk-button-default\" href=\"#modal-chord-ukulele-picker\" uk-toggle>Ukulele chord picker</a>\n}\n@if (useIconButton) {\n <a [href]=\"'#modal-chord-ukulele-picker-' + uuid\" uk-toggle><i class=\"mdi mdi-36px mdi-plus-circle-outline\"></i></a>\n}\n\n<div [id]=\"'modal-chord-ukulele-picker-' + uuid\" class=\"uk-modal-container\" uk-modal>\n <div class=\"uk-modal-dialog uk-margin-auto-vertical\">\n <button class=\"uk-modal-close-default\" type=\"button\" uk-close></button>\n\n <div class=\"uk-modal-header\">\n <h2 class=\"uk-modal-title\">Pick desired chord</h2>\n </div>\n\n <div class=\"uk-modal-body\" (submit)=\"$event.preventDefault()\">\n <form class=\"uk-search uk-search-default\">\n <span uk-search-icon></span>\n <input name=\"chordSearch\" [(ngModel)]=\"chordSearch\" class=\"uk-search-input\" type=\"search\" placeholder=\"Search\" aria-label=\"Search\">\n </form>\n\n <div uk-grid>\n @for (key of getChordKeysBySearch(); track key) {\n <div edyta-chord-ukulele [chordKey]=\"key\" (click)=\"onChordSelected(key)\"></div>\n }\n </div>\n </div>\n </div>\n</div>\n", styles: [".uk-grid>*{padding-left:0}\n"] }]
367
- }], ctorParameters: () => [], propDecorators: { useIconButton: [{
368
- type: Input
369
- }], chordSelected: [{
370
- type: Output
371
- }] } });
372
-
373
- class ChordModule {
374
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
375
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: ChordModule, declarations: [ChordUkuleleComponent,
376
- ChordUkulelePickerComponent], imports: [CommonModule,
377
- FormsModule], exports: [ChordUkuleleComponent,
378
- ChordUkulelePickerComponent] }); }
379
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordModule, imports: [CommonModule,
380
- FormsModule] }); }
381
- }
382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ChordModule, decorators: [{
383
- type: NgModule,
384
- args: [{
385
- declarations: [
386
- ChordUkuleleComponent,
387
- ChordUkulelePickerComponent
388
- ],
389
- imports: [
390
- CommonModule,
391
- FormsModule
392
- ],
393
- exports: [
394
- ChordUkuleleComponent,
395
- ChordUkulelePickerComponent
396
- ]
397
- }]
398
- }] });
399
-
400
- /*
401
- * Public API Surface of ngx-edyta-chords
402
- */
403
-
404
- /**
405
- * Generated bundle index. Do not edit.
406
- */
407
-
772
+ var ChordUkuleleComponent = class ChordUkuleleComponent extends ChordBaseComponent {
773
+ get chordName() {
774
+ return chord[this.chordKey].name;
775
+ }
776
+ get svgCssClass() {
777
+ return "uku";
778
+ }
779
+ static {
780
+ this.ɵfac = i0.ɵɵngDeclareFactory({
781
+ minVersion: "12.0.0",
782
+ version: "22.3.0",
783
+ ngImport: i0,
784
+ type: ChordUkuleleComponent,
785
+ deps: null,
786
+ target: i0.ɵɵFactoryTarget.Component
787
+ });
788
+ }
789
+ static {
790
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
791
+ minVersion: "14.0.0",
792
+ version: "22.3.0",
793
+ type: ChordUkuleleComponent,
794
+ isStandalone: false,
795
+ selector: "[edyta-chord-ukulele]",
796
+ inputs: { chordKey: "chordKey" },
797
+ usesInheritance: true,
798
+ ngImport: i0,
799
+ template: "<div class=\"chord\">\n <svg [classList]=\"[svgCssClass]\">\n <use [attr.href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" [attr.xlink:href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" />\n </svg>\n <span class=\"chname\" [innerHTML]=\"chordName\"></span>\n</div>\n",
800
+ styles: [".chords{float:left}.chord{width:260px;height:360px;display:inline-block;text-align:center;transition:all .25s}#modal-chord-ukulele-picker .chord{cursor:pointer}.chname{display:block;width:100%;font:bold 2em ChordFont,Helvetica,Sans-Serif;text-align:center;transition:all .25s}.uku{width:260px;height:300px}\n"],
801
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
802
+ encapsulation: i0.ViewEncapsulation.None
803
+ });
804
+ }
805
+ };
806
+ i0.ɵɵngDeclareClassMetadata({
807
+ minVersion: "12.0.0",
808
+ version: "22.3.0",
809
+ ngImport: i0,
810
+ type: ChordUkuleleComponent,
811
+ decorators: [{
812
+ type: Component,
813
+ args: [{
814
+ selector: "[edyta-chord-ukulele]",
815
+ encapsulation: ViewEncapsulation.None,
816
+ changeDetection: ChangeDetectionStrategy.Eager,
817
+ standalone: false,
818
+ template: "<div class=\"chord\">\n <svg [classList]=\"[svgCssClass]\">\n <use [attr.href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" [attr.xlink:href]=\"`/assets/api/chords/uku.svg?v=1744302536918#chord:${chordKey}`\" />\n </svg>\n <span class=\"chname\" [innerHTML]=\"chordName\"></span>\n</div>\n",
819
+ styles: [".chords{float:left}.chord{width:260px;height:360px;display:inline-block;text-align:center;transition:all .25s}#modal-chord-ukulele-picker .chord{cursor:pointer}.chname{display:block;width:100%;font:bold 2em ChordFont,Helvetica,Sans-Serif;text-align:center;transition:all .25s}.uku{width:260px;height:300px}\n"]
820
+ }]
821
+ }],
822
+ propDecorators: { chordKey: [{
823
+ type: Input,
824
+ args: [{ required: true }]
825
+ }] }
826
+ });
827
+ var ChordUkulelePickerComponent = class ChordUkulelePickerComponent {
828
+ constructor() {
829
+ this.chordKey = ChordKey;
830
+ this.chordSearch = "";
831
+ this.uuid = v4();
832
+ this.useIconButton = false;
833
+ this.chordKeys = Object.keys(ChordKey);
834
+ this.document = document;
835
+ this.chordSelected = new EventEmitter();
836
+ }
837
+ getChordKeysBySearch() {
838
+ return this.chordKeys.filter((key) => key.toLowerCase().includes(this.chordSearch.toLowerCase()));
839
+ }
840
+ onChordSelected(chordKey) {
841
+ UIkit.modal(this.document.getElementById(`modal-chord-ukulele-picker-${this.uuid}`)).hide();
842
+ this.chordSelected.emit(chordKey);
843
+ }
844
+ static {
845
+ this.ɵfac = i0.ɵɵngDeclareFactory({
846
+ minVersion: "12.0.0",
847
+ version: "22.3.0",
848
+ ngImport: i0,
849
+ type: ChordUkulelePickerComponent,
850
+ deps: [],
851
+ target: i0.ɵɵFactoryTarget.Component
852
+ });
853
+ }
854
+ static {
855
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
856
+ minVersion: "17.0.0",
857
+ version: "22.3.0",
858
+ type: ChordUkulelePickerComponent,
859
+ isStandalone: false,
860
+ selector: "edyta-chord-ukulele-picker",
861
+ inputs: { useIconButton: "useIconButton" },
862
+ outputs: { chordSelected: "chordSelected" },
863
+ ngImport: i0,
864
+ template: "@if (!useIconButton) {\n <a class=\"uk-button uk-button-default\" href=\"#modal-chord-ukulele-picker\" uk-toggle>Ukulele chord picker</a>\n}\n@if (useIconButton) {\n <a [href]=\"'#modal-chord-ukulele-picker-' + uuid\" uk-toggle><i class=\"mdi mdi-36px mdi-plus-circle-outline\"></i></a>\n}\n\n<div [id]=\"'modal-chord-ukulele-picker-' + uuid\" class=\"uk-modal-container\" uk-modal>\n <div class=\"uk-modal-dialog uk-margin-auto-vertical\">\n <button class=\"uk-modal-close-default\" type=\"button\" uk-close></button>\n\n <div class=\"uk-modal-header\">\n <h2 class=\"uk-modal-title\">Pick desired chord</h2>\n </div>\n\n <div class=\"uk-modal-body\" (submit)=\"$event.preventDefault()\">\n <form class=\"uk-search uk-search-default\">\n <span uk-search-icon></span>\n <input name=\"chordSearch\" [(ngModel)]=\"chordSearch\" class=\"uk-search-input\" type=\"search\" placeholder=\"Search\" aria-label=\"Search\">\n </form>\n\n <div uk-grid>\n @for (key of getChordKeysBySearch(); track key) {\n <div edyta-chord-ukulele [chordKey]=\"key\" (click)=\"onChordSelected(key)\"></div>\n }\n </div>\n </div>\n </div>\n</div>\n",
865
+ styles: [".uk-grid>*{padding-left:0}\n"],
866
+ dependencies: [
867
+ {
868
+ kind: "directive",
869
+ type: i1.ɵNgNoValidate,
870
+ selector: "form:not([ngNoForm]):not([ngNativeValidate])"
871
+ },
872
+ {
873
+ kind: "directive",
874
+ type: i1.DefaultValueAccessor,
875
+ selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
876
+ },
877
+ {
878
+ kind: "directive",
879
+ type: i1.NgControlStatus,
880
+ selector: "[formControlName],[ngModel],[formControl]"
881
+ },
882
+ {
883
+ kind: "directive",
884
+ type: i1.NgControlStatusGroup,
885
+ selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
886
+ },
887
+ {
888
+ kind: "directive",
889
+ type: i1.NgModel,
890
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
891
+ inputs: [
892
+ "name",
893
+ "disabled",
894
+ "ngModel",
895
+ "ngModelOptions"
896
+ ],
897
+ outputs: ["ngModelChange"],
898
+ exportAs: ["ngModel"]
899
+ },
900
+ {
901
+ kind: "directive",
902
+ type: i1.NgForm,
903
+ selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
904
+ inputs: ["ngFormOptions"],
905
+ outputs: ["ngSubmit"],
906
+ exportAs: ["ngForm"]
907
+ },
908
+ {
909
+ kind: "component",
910
+ type: ChordUkuleleComponent,
911
+ selector: "[edyta-chord-ukulele]",
912
+ inputs: ["chordKey"]
913
+ }
914
+ ],
915
+ changeDetection: i0.ChangeDetectionStrategy.Eager
916
+ });
917
+ }
918
+ };
919
+ i0.ɵɵngDeclareClassMetadata({
920
+ minVersion: "12.0.0",
921
+ version: "22.3.0",
922
+ ngImport: i0,
923
+ type: ChordUkulelePickerComponent,
924
+ decorators: [{
925
+ type: Component,
926
+ args: [{
927
+ selector: "edyta-chord-ukulele-picker",
928
+ standalone: false,
929
+ changeDetection: ChangeDetectionStrategy.Eager,
930
+ template: "@if (!useIconButton) {\n <a class=\"uk-button uk-button-default\" href=\"#modal-chord-ukulele-picker\" uk-toggle>Ukulele chord picker</a>\n}\n@if (useIconButton) {\n <a [href]=\"'#modal-chord-ukulele-picker-' + uuid\" uk-toggle><i class=\"mdi mdi-36px mdi-plus-circle-outline\"></i></a>\n}\n\n<div [id]=\"'modal-chord-ukulele-picker-' + uuid\" class=\"uk-modal-container\" uk-modal>\n <div class=\"uk-modal-dialog uk-margin-auto-vertical\">\n <button class=\"uk-modal-close-default\" type=\"button\" uk-close></button>\n\n <div class=\"uk-modal-header\">\n <h2 class=\"uk-modal-title\">Pick desired chord</h2>\n </div>\n\n <div class=\"uk-modal-body\" (submit)=\"$event.preventDefault()\">\n <form class=\"uk-search uk-search-default\">\n <span uk-search-icon></span>\n <input name=\"chordSearch\" [(ngModel)]=\"chordSearch\" class=\"uk-search-input\" type=\"search\" placeholder=\"Search\" aria-label=\"Search\">\n </form>\n\n <div uk-grid>\n @for (key of getChordKeysBySearch(); track key) {\n <div edyta-chord-ukulele [chordKey]=\"key\" (click)=\"onChordSelected(key)\"></div>\n }\n </div>\n </div>\n </div>\n</div>\n",
931
+ styles: [".uk-grid>*{padding-left:0}\n"]
932
+ }]
933
+ }],
934
+ ctorParameters: () => [],
935
+ propDecorators: {
936
+ useIconButton: [{ type: Input }],
937
+ chordSelected: [{ type: Output }]
938
+ }
939
+ });
940
+ var ChordModule = class ChordModule {
941
+ static {
942
+ this.ɵfac = i0.ɵɵngDeclareFactory({
943
+ minVersion: "12.0.0",
944
+ version: "22.3.0",
945
+ ngImport: i0,
946
+ type: ChordModule,
947
+ deps: [],
948
+ target: i0.ɵɵFactoryTarget.NgModule
949
+ });
950
+ }
951
+ static {
952
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
953
+ minVersion: "14.0.0",
954
+ version: "22.3.0",
955
+ ngImport: i0,
956
+ type: ChordModule,
957
+ declarations: [ChordUkuleleComponent, ChordUkulelePickerComponent],
958
+ imports: [CommonModule, FormsModule],
959
+ exports: [ChordUkuleleComponent, ChordUkulelePickerComponent]
960
+ });
961
+ }
962
+ static {
963
+ this.ɵinj = i0.ɵɵngDeclareInjector({
964
+ minVersion: "12.0.0",
965
+ version: "22.3.0",
966
+ ngImport: i0,
967
+ type: ChordModule,
968
+ imports: [CommonModule, FormsModule]
969
+ });
970
+ }
971
+ };
972
+ i0.ɵɵngDeclareClassMetadata({
973
+ minVersion: "12.0.0",
974
+ version: "22.3.0",
975
+ ngImport: i0,
976
+ type: ChordModule,
977
+ decorators: [{
978
+ type: NgModule,
979
+ args: [{
980
+ declarations: [ChordUkuleleComponent, ChordUkulelePickerComponent],
981
+ imports: [CommonModule, FormsModule],
982
+ exports: [ChordUkuleleComponent, ChordUkulelePickerComponent]
983
+ }]
984
+ }]
985
+ });
408
986
  export { ChordKey, ChordModule, ChordUkuleleComponent, ChordUkulelePickerComponent };
409
- //# sourceMappingURL=ngx-edyta-chords.mjs.map
987
+
988
+ //# sourceMappingURL=ngx-edyta-chords.mjs.map