@ethlete/query 5.16.0 → 5.16.1

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.
Files changed (184) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/esm2022/ethlete-query.mjs +5 -0
  3. package/esm2022/index.mjs +20 -0
  4. package/esm2022/lib/auth/auth-provider.types.mjs +2 -0
  5. package/esm2022/lib/auth/auth-provider.utils.mjs +25 -0
  6. package/esm2022/lib/auth/basic-auth-provider.mjs +15 -0
  7. package/esm2022/lib/auth/bearer-auth-provider.mjs +168 -0
  8. package/esm2022/lib/auth/custom-header-auth-provider.mjs +12 -0
  9. package/esm2022/lib/auth/index.mjs +6 -0
  10. package/esm2022/lib/class-validator/class-validator.types.mjs +2 -0
  11. package/esm2022/lib/class-validator/class-validator.utils.mjs +4 -0
  12. package/esm2022/lib/class-validator/index.mjs +3 -0
  13. package/esm2022/lib/devtools/components/query-devtools/index.mjs +2 -0
  14. package/esm2022/lib/devtools/components/query-devtools/query-devtools.component.mjs +297 -0
  15. package/esm2022/lib/devtools/pipes/index.mjs +2 -0
  16. package/esm2022/lib/devtools/pipes/query-short-name.pipe.mjs +24 -0
  17. package/esm2022/lib/devtools/utils/index.mjs +2 -0
  18. package/esm2022/lib/devtools/utils/query-client.utils.mjs +13 -0
  19. package/esm2022/lib/directives/index.mjs +4 -0
  20. package/esm2022/lib/directives/infinity-query-trigger.directive.mjs +56 -0
  21. package/esm2022/lib/directives/infinity-query.directive.mjs +147 -0
  22. package/esm2022/lib/directives/query.directive.mjs +123 -0
  23. package/esm2022/lib/entity/entity-store.mjs +127 -0
  24. package/esm2022/lib/entity/entity.types.mjs +2 -0
  25. package/esm2022/lib/entity/entity.utils.mjs +29 -0
  26. package/esm2022/lib/entity/index.mjs +4 -0
  27. package/esm2022/lib/gql/gql.mjs +23 -0
  28. package/esm2022/lib/gql/index.mjs +2 -0
  29. package/esm2022/lib/infinite-query/index.mjs +4 -0
  30. package/esm2022/lib/infinite-query/infinity-query.mjs +171 -0
  31. package/esm2022/lib/infinite-query/infinity-query.types.mjs +2 -0
  32. package/esm2022/lib/infinite-query/infinity-query.utils.mjs +3 -0
  33. package/esm2022/lib/logger/index.mjs +2 -0
  34. package/esm2022/lib/logger/logger.mjs +16 -0
  35. package/esm2022/lib/query/index.mjs +4 -0
  36. package/esm2022/lib/query/query.mjs +428 -0
  37. package/esm2022/lib/query/query.types.mjs +2 -0
  38. package/esm2022/lib/query/query.utils.mjs +253 -0
  39. package/esm2022/lib/query-client/index.mjs +4 -0
  40. package/esm2022/lib/query-client/query-client.mjs +80 -0
  41. package/esm2022/lib/query-client/query-client.types.mjs +2 -0
  42. package/esm2022/lib/query-client/query-client.utils.mjs +20 -0
  43. package/esm2022/lib/query-creator/index.mjs +3 -0
  44. package/esm2022/lib/query-creator/query-creator.mjs +55 -0
  45. package/esm2022/lib/query-creator/query-creator.types.mjs +2 -0
  46. package/esm2022/lib/query-form/index.mjs +4 -0
  47. package/esm2022/lib/query-form/query-form.mjs +379 -0
  48. package/esm2022/lib/query-form/query-form.types.mjs +2 -0
  49. package/esm2022/lib/query-form/query-form.utils.mjs +97 -0
  50. package/esm2022/lib/query-store/index.mjs +2 -0
  51. package/esm2022/lib/query-store/query-store.mjs +144 -0
  52. package/esm2022/lib/request/index.mjs +4 -0
  53. package/esm2022/lib/request/request.mjs +196 -0
  54. package/esm2022/lib/request/request.types.mjs +2 -0
  55. package/esm2022/lib/request/request.util.mjs +252 -0
  56. package/esm2022/lib/symfony/index.mjs +3 -0
  57. package/esm2022/lib/symfony/symfony.types.mjs +2 -0
  58. package/esm2022/lib/symfony/symfony.utils.mjs +31 -0
  59. package/esm2022/lib/utils/data.utils.mjs +138 -0
  60. package/esm2022/lib/utils/deep-freeze.util.mjs +17 -0
  61. package/esm2022/lib/utils/def.util.mjs +8 -0
  62. package/esm2022/lib/utils/index.mjs +4 -0
  63. package/fesm2022/ethlete-query.mjs +3287 -0
  64. package/fesm2022/ethlete-query.mjs.map +1 -0
  65. package/{src/index.ts → index.d.ts} +0 -2
  66. package/lib/auth/auth-provider.types.d.ts +133 -0
  67. package/lib/auth/auth-provider.utils.d.ts +9 -0
  68. package/lib/auth/basic-auth-provider.d.ts +10 -0
  69. package/lib/auth/bearer-auth-provider.d.ts +23 -0
  70. package/lib/auth/custom-header-auth-provider.d.ts +9 -0
  71. package/{src/lib/class-validator/class-validator.types.ts → lib/class-validator/class-validator.types.d.ts} +3 -4
  72. package/lib/class-validator/class-validator.utils.d.ts +2 -0
  73. package/lib/devtools/components/query-devtools/query-devtools.component.d.ts +151 -0
  74. package/lib/devtools/pipes/query-short-name.pipe.d.ts +8 -0
  75. package/lib/devtools/utils/query-client.utils.d.ts +12 -0
  76. package/lib/directives/infinity-query-trigger.directive.d.ts +15 -0
  77. package/lib/directives/infinity-query.directive.d.ts +49 -0
  78. package/lib/directives/query.directive.d.ts +63 -0
  79. package/lib/entity/entity-store.d.ts +25 -0
  80. package/lib/entity/entity.types.d.ts +25 -0
  81. package/lib/entity/entity.utils.d.ts +12 -0
  82. package/lib/gql/gql.d.ts +6 -0
  83. package/lib/infinite-query/infinity-query.d.ts +29 -0
  84. package/lib/infinite-query/infinity-query.types.d.ts +104 -0
  85. package/lib/infinite-query/infinity-query.utils.d.ts +4 -0
  86. package/lib/logger/logger.d.ts +12 -0
  87. package/lib/query/query.d.ts +60 -0
  88. package/lib/query/query.types.d.ts +388 -0
  89. package/lib/query/query.utils.d.ts +91 -0
  90. package/lib/query-client/query-client.d.ts +29 -0
  91. package/lib/query-client/query-client.types.d.ts +82 -0
  92. package/lib/query-client/query-client.utils.d.ts +4 -0
  93. package/lib/query-creator/query-creator.d.ts +20 -0
  94. package/lib/query-creator/query-creator.types.d.ts +13 -0
  95. package/lib/query-form/query-form.d.ts +91 -0
  96. package/lib/query-form/query-form.types.d.ts +145 -0
  97. package/lib/query-form/query-form.utils.d.ts +13 -0
  98. package/lib/query-store/query-store.d.ts +31 -0
  99. package/lib/request/request.d.ts +3 -0
  100. package/lib/request/request.types.d.ts +126 -0
  101. package/lib/request/request.util.d.ts +92 -0
  102. package/lib/symfony/symfony.types.d.ts +19 -0
  103. package/lib/symfony/symfony.utils.d.ts +6 -0
  104. package/lib/utils/data.utils.d.ts +59 -0
  105. package/lib/utils/deep-freeze.util.d.ts +1 -0
  106. package/{src/lib/utils/def.util.ts → lib/utils/def.util.d.ts} +1 -1
  107. package/package.json +19 -2
  108. package/.eslintrc.json +0 -40
  109. package/jest.config.ts +0 -23
  110. package/ng-package.json +0 -8
  111. package/project.json +0 -37
  112. package/src/lib/auth/auth-provider.types.ts +0 -160
  113. package/src/lib/auth/auth-provider.utils.ts +0 -39
  114. package/src/lib/auth/basic-auth-provider.ts +0 -17
  115. package/src/lib/auth/bearer-auth-provider.ts +0 -243
  116. package/src/lib/auth/custom-header-auth-provider.ts +0 -13
  117. package/src/lib/class-validator/class-validator.utils.ts +0 -5
  118. package/src/lib/devtools/components/query-devtools/query-devtools.component.html +0 -402
  119. package/src/lib/devtools/components/query-devtools/query-devtools.component.scss +0 -360
  120. package/src/lib/devtools/components/query-devtools/query-devtools.component.ts +0 -427
  121. package/src/lib/devtools/pipes/query-short-name.pipe.ts +0 -24
  122. package/src/lib/devtools/utils/query-client.utils.ts +0 -25
  123. package/src/lib/directives/infinity-query-trigger.directive.ts +0 -58
  124. package/src/lib/directives/infinity-query.directive.ts +0 -208
  125. package/src/lib/directives/query.directive.ts +0 -201
  126. package/src/lib/entity/entity-store.ts +0 -180
  127. package/src/lib/entity/entity.types.ts +0 -34
  128. package/src/lib/entity/entity.utils.ts +0 -51
  129. package/src/lib/gql/gql.ts +0 -22
  130. package/src/lib/infinite-query/infinity-query.ts +0 -245
  131. package/src/lib/infinite-query/infinity-query.types.ts +0 -149
  132. package/src/lib/infinite-query/infinity-query.utils.ts +0 -14
  133. package/src/lib/logger/logger.ts +0 -30
  134. package/src/lib/query/query.ts +0 -631
  135. package/src/lib/query/query.types.ts +0 -532
  136. package/src/lib/query/query.utils.spec.ts +0 -92
  137. package/src/lib/query/query.utils.ts +0 -450
  138. package/src/lib/query-client/query-client.spec.ts +0 -77
  139. package/src/lib/query-client/query-client.ts +0 -195
  140. package/src/lib/query-client/query-client.types.ts +0 -101
  141. package/src/lib/query-client/query-client.utils.spec.ts +0 -61
  142. package/src/lib/query-client/query-client.utils.ts +0 -28
  143. package/src/lib/query-creator/query-creator.ts +0 -103
  144. package/src/lib/query-creator/query-creator.types.ts +0 -74
  145. package/src/lib/query-form/query-form.ts +0 -526
  146. package/src/lib/query-form/query-form.types.ts +0 -169
  147. package/src/lib/query-form/query-form.utils.ts +0 -116
  148. package/src/lib/query-store/query-store.ts +0 -192
  149. package/src/lib/request/request.ts +0 -253
  150. package/src/lib/request/request.types.ts +0 -164
  151. package/src/lib/request/request.util.spec.ts +0 -177
  152. package/src/lib/request/request.util.ts +0 -399
  153. package/src/lib/stories/angular-example-page.mdx +0 -85
  154. package/src/lib/stories/authentication-page.mdx +0 -35
  155. package/src/lib/stories/changelog-page.mdx +0 -9
  156. package/src/lib/stories/client-page.mdx +0 -100
  157. package/src/lib/stories/queries-page.mdx +0 -117
  158. package/src/lib/symfony/symfony.types.ts +0 -21
  159. package/src/lib/symfony/symfony.utils.ts +0 -43
  160. package/src/lib/utils/data.utils.ts +0 -280
  161. package/src/lib/utils/deep-freeze.util.ts +0 -21
  162. package/src/test-setup.ts +0 -1
  163. package/tsconfig.json +0 -29
  164. package/tsconfig.lib.json +0 -12
  165. package/tsconfig.lib.prod.json +0 -10
  166. package/tsconfig.spec.json +0 -11
  167. /package/{src/lib/auth/index.ts → lib/auth/index.d.ts} +0 -0
  168. /package/{src/lib/class-validator/index.ts → lib/class-validator/index.d.ts} +0 -0
  169. /package/{src/lib/devtools/components/query-devtools/index.ts → lib/devtools/components/query-devtools/index.d.ts} +0 -0
  170. /package/{src/lib/devtools/pipes/index.ts → lib/devtools/pipes/index.d.ts} +0 -0
  171. /package/{src/lib/devtools/utils/index.ts → lib/devtools/utils/index.d.ts} +0 -0
  172. /package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +0 -0
  173. /package/{src/lib/entity/index.ts → lib/entity/index.d.ts} +0 -0
  174. /package/{src/lib/gql/index.ts → lib/gql/index.d.ts} +0 -0
  175. /package/{src/lib/infinite-query/index.ts → lib/infinite-query/index.d.ts} +0 -0
  176. /package/{src/lib/logger/index.ts → lib/logger/index.d.ts} +0 -0
  177. /package/{src/lib/query/index.ts → lib/query/index.d.ts} +0 -0
  178. /package/{src/lib/query-client/index.ts → lib/query-client/index.d.ts} +0 -0
  179. /package/{src/lib/query-creator/index.ts → lib/query-creator/index.d.ts} +0 -0
  180. /package/{src/lib/query-form/index.ts → lib/query-form/index.d.ts} +0 -0
  181. /package/{src/lib/query-store/index.ts → lib/query-store/index.d.ts} +0 -0
  182. /package/{src/lib/request/index.ts → lib/request/index.d.ts} +0 -0
  183. /package/{src/lib/symfony/index.ts → lib/symfony/index.d.ts} +0 -0
  184. /package/{src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
@@ -1,360 +0,0 @@
1
- $primary: rgb(0 255 161);
2
- $secondary: rgb(37 41 46);
3
-
4
- :host {
5
- position: fixed;
6
- top: 0;
7
- z-index: 1000000;
8
- font-size: 14px;
9
- color: #fff;
10
- }
11
-
12
- .et-query-devtools-container {
13
- position: fixed;
14
- inset: 0;
15
- background-color: $secondary;
16
- z-index: 10000;
17
- overflow: auto;
18
- font-family: monospace;
19
- display: grid;
20
- grid-template-rows: auto auto auto minmax(0, 1fr);
21
-
22
- &.et-query-devtools-container--transparent {
23
- opacity: 0.25;
24
- pointer-events: none;
25
-
26
- .et-query-devtools-translucent-btn {
27
- pointer-events: all;
28
- }
29
- }
30
-
31
- &.et-query-devtools-container--snap-left {
32
- inset-inline-start: 0;
33
- inset-block-start: 0;
34
- inset-block-end: 0;
35
- width: 50%;
36
- border-right: 1px solid $secondary;
37
- }
38
-
39
- &.et-query-devtools-container--snap-right {
40
- inset-inline-start: unset;
41
- inset-inline-end: 0;
42
- inset-block-start: 0;
43
- inset-block-end: 0;
44
- width: 50%;
45
- border-left: 1px solid $secondary;
46
- }
47
-
48
- &.et-query-devtools-container--snap-top {
49
- inset-inline-start: 0;
50
- inset-block-start: 0;
51
- inset-inline-end: 0;
52
- height: 50%;
53
- border-bottom: 1px solid $secondary;
54
- }
55
-
56
- &.et-query-devtools-container--snap-bottom {
57
- inset-inline-start: 0;
58
- inset-block-start: unset;
59
- inset-block-end: 0;
60
- inset-inline-end: 0;
61
- height: 50%;
62
- border-top: 1px solid $secondary;
63
- }
64
- }
65
-
66
- button.et-query-devtools-open-btn {
67
- position: fixed;
68
- inset-inline-end: 20px;
69
- inset-block-end: 0;
70
- z-index: 9999;
71
- font-family: monospace;
72
- border-bottom-left-radius: 0;
73
- border-bottom-right-radius: 0;
74
- border-top-left-radius: 3px;
75
- border-top-right-radius: 3px;
76
- line-height: 14px;
77
- font-size: 12px;
78
- }
79
-
80
- .et-qd-header {
81
- background-color: $primary;
82
- padding: 12px;
83
- display: grid;
84
- grid-template-columns: 1fr auto auto;
85
- gap: 12px;
86
- align-items: center;
87
-
88
- &__title {
89
- color: $secondary;
90
- margin: 0;
91
- font-size: 22px;
92
- }
93
-
94
- &__select {
95
- display: grid;
96
- background-color: $secondary;
97
- border-radius: 10px;
98
- overflow: hidden;
99
-
100
- select {
101
- width: 250px;
102
- color: white;
103
- padding: 3px 10px 2px 10px;
104
- border: none;
105
- background-color: $secondary;
106
- font-family: monospace;
107
- }
108
-
109
- label {
110
- padding: 3px 10px 3px 10px;
111
- color: $secondary;
112
- font-size: 12px;
113
- font-weight: 700;
114
- color: white;
115
- border-bottom: 1px solid gray;
116
- }
117
- }
118
- }
119
-
120
- .et-qd-sub-header {
121
- background-color: darken($primary, 15%);
122
- padding: 12px;
123
- display: flex;
124
- gap: 12px;
125
- flex-wrap: wrap;
126
-
127
- &__divider {
128
- width: 1px;
129
- background-color: $secondary;
130
- }
131
- }
132
-
133
- .et-qd-btn {
134
- background-color: $primary;
135
- color: $secondary;
136
- border: none;
137
- padding: 12px;
138
- cursor: pointer;
139
- font-size: 14px;
140
- font-weight: bold;
141
- text-align: center;
142
- text-decoration: none;
143
- display: inline-block;
144
- width: 100%;
145
- transition: all 0.3s ease-in-out;
146
- font-family: monospace;
147
- border-radius: 10px;
148
-
149
- &:hover {
150
- background-color: darken($primary, 10%);
151
- }
152
-
153
- &.et-qd-btn-secondary {
154
- background-color: $secondary;
155
- color: $primary;
156
-
157
- &:hover {
158
- background-color: lighten($secondary, 10%);
159
- }
160
- }
161
- }
162
-
163
- .et-qd-chip {
164
- background-color: $primary;
165
- color: $secondary;
166
- border: none;
167
- padding: 4px 9px;
168
- cursor: pointer;
169
- font-size: 12px;
170
- font-weight: bold;
171
- text-align: center;
172
- text-decoration: none;
173
- display: inline-block;
174
- transition: all 0.3s ease-in-out;
175
- font-family: monospace;
176
- border-radius: 10px;
177
-
178
- &:hover {
179
- background-color: darken($primary, 10%);
180
- }
181
-
182
- &.et-qd-chip-secondary {
183
- background-color: $secondary;
184
- color: $primary;
185
-
186
- &:hover {
187
- background-color: lighten($secondary, 10%);
188
- }
189
- }
190
-
191
- &.et-qd-chip-bordered {
192
- border: 1px solid $primary;
193
- }
194
- }
195
-
196
- .et-qd-translucent-clickable {
197
- pointer-events: all;
198
- }
199
-
200
- .et-qd-client {
201
- border-bottom: 1px solid lighten($secondary, 10%);
202
- padding: 12px;
203
-
204
- &__title {
205
- margin: 0;
206
- font-size: 14px;
207
- color: white;
208
- font-weight: 700;
209
- }
210
-
211
- &__actions {
212
- display: flex;
213
- gap: 12px;
214
- margin-top: 12px;
215
- }
216
- }
217
-
218
- .et-qd-queries {
219
- padding: 12px;
220
- display: grid;
221
- grid-template-rows: auto auto minmax(0, 1fr);
222
-
223
- &__actions {
224
- display: flex;
225
- gap: 12px;
226
- margin-top: 12px;
227
- margin-bottom: 16px;
228
- }
229
-
230
- &__title {
231
- margin: 0;
232
- font-size: 14px;
233
- color: white;
234
- font-weight: 700;
235
- }
236
-
237
- &__divider {
238
- width: 1px;
239
- background-color: lighten($secondary, 10%);
240
- }
241
-
242
- &__browser {
243
- display: grid;
244
- grid-template-columns: 1fr minmax(0, 3fr);
245
- margin-left: -12px;
246
- margin-right: -12px;
247
- border-top: 1px solid lighten($secondary, 10%);
248
- margin-bottom: -12px;
249
- }
250
-
251
- &__browser-list {
252
- border-right: 1px solid lighten($secondary, 10%);
253
- list-style: none;
254
- padding: 0;
255
- margin: 0;
256
- display: grid;
257
- grid-auto-flow: row;
258
- grid-auto-rows: 55px;
259
- overflow-y: auto;
260
- overflow-x: hidden;
261
-
262
- li {
263
- margin: 0;
264
-
265
- button {
266
- all: unset;
267
- font-family: monospace;
268
- box-sizing: border-box;
269
- width: 100%;
270
- border: none;
271
- border-bottom: 1px solid lighten($secondary, 10%);
272
- background-color: $secondary;
273
- color: white;
274
- text-align: left;
275
- padding: 12px;
276
- height: 100%;
277
- transition: all 0.3s ease-in-out;
278
- cursor: pointer;
279
- display: grid;
280
- grid-template-columns: auto minmax(0, 1fr);
281
- gap: 2px;
282
- display: block;
283
-
284
- span {
285
- white-space: nowrap;
286
- overflow: hidden;
287
- text-overflow: ellipsis;
288
-
289
- &:first-of-type {
290
- font-weight: 700;
291
- }
292
- }
293
-
294
- &:hover {
295
- background-color: lighten($secondary, 5%);
296
- }
297
-
298
- &.et-qd-query--active {
299
- background-color: lighten($secondary, 5%);
300
- }
301
- }
302
- }
303
- }
304
-
305
- &__browser-detail {
306
- padding: 12px;
307
- overflow-y: auto;
308
- overflow-x: hidden;
309
-
310
- &__title {
311
- margin: 0;
312
- font-size: 14px;
313
- color: white;
314
- font-weight: 700;
315
- }
316
- }
317
- }
318
-
319
- .et-qd-auth-provider__viewer {
320
- border-top: 1px solid lighten($secondary, 10%);
321
- margin-left: -12px;
322
- margin-right: -12px;
323
- margin-bottom: -12px;
324
-
325
- padding: 12px;
326
- overflow-y: auto;
327
- overflow-x: hidden;
328
- }
329
-
330
- .et-qd-list {
331
- display: grid;
332
- gap: 12px;
333
- }
334
-
335
- .et-qd-list-item {
336
- display: grid;
337
-
338
- p {
339
- font-weight: 700;
340
- margin: 0;
341
- padding-bottom: 8px;
342
-
343
- + p {
344
- margin-top: -8px;
345
- }
346
- }
347
-
348
- div + pre {
349
- margin-top: 8px;
350
- }
351
-
352
- pre {
353
- margin: 0;
354
- padding: 4px;
355
- background-color: darken($secondary, 10%);
356
- border-radius: 4px;
357
- max-height: 450px;
358
- overflow: auto;
359
- }
360
- }