@genesislcap/foundation-utils 14.203.2 → 14.204.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/custom-elements.json +399 -399
- package/package.json +10 -10
@@ -167,6 +167,204 @@
|
|
167
167
|
}
|
168
168
|
]
|
169
169
|
},
|
170
|
+
{
|
171
|
+
"kind": "javascript-module",
|
172
|
+
"path": "src/data/inMemoryDatabase.ts",
|
173
|
+
"declarations": [
|
174
|
+
{
|
175
|
+
"kind": "class",
|
176
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
177
|
+
"name": "InMemoryDatabase",
|
178
|
+
"members": [
|
179
|
+
{
|
180
|
+
"kind": "field",
|
181
|
+
"name": "isWorking",
|
182
|
+
"type": {
|
183
|
+
"text": "boolean"
|
184
|
+
},
|
185
|
+
"privacy": "public",
|
186
|
+
"default": "false"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"kind": "field",
|
190
|
+
"name": "records",
|
191
|
+
"type": {
|
192
|
+
"text": "Record<string, T>"
|
193
|
+
},
|
194
|
+
"privacy": "private",
|
195
|
+
"default": "{}"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"kind": "field",
|
199
|
+
"name": "beforeUpdateListeners",
|
200
|
+
"privacy": "private"
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"kind": "field",
|
204
|
+
"name": "afterUpdateListeners",
|
205
|
+
"privacy": "private"
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"kind": "method",
|
209
|
+
"name": "create",
|
210
|
+
"privacy": "public",
|
211
|
+
"return": {
|
212
|
+
"type": {
|
213
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
214
|
+
}
|
215
|
+
},
|
216
|
+
"parameters": [
|
217
|
+
{
|
218
|
+
"name": "newValue",
|
219
|
+
"type": {
|
220
|
+
"text": "Omit<T, 'id'>"
|
221
|
+
}
|
222
|
+
}
|
223
|
+
]
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"kind": "method",
|
227
|
+
"name": "read",
|
228
|
+
"privacy": "public",
|
229
|
+
"return": {
|
230
|
+
"type": {
|
231
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
232
|
+
}
|
233
|
+
},
|
234
|
+
"parameters": [
|
235
|
+
{
|
236
|
+
"name": "id",
|
237
|
+
"type": {
|
238
|
+
"text": "string"
|
239
|
+
}
|
240
|
+
}
|
241
|
+
]
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"kind": "method",
|
245
|
+
"name": "update",
|
246
|
+
"privacy": "public",
|
247
|
+
"return": {
|
248
|
+
"type": {
|
249
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
250
|
+
}
|
251
|
+
},
|
252
|
+
"parameters": [
|
253
|
+
{
|
254
|
+
"name": "id",
|
255
|
+
"type": {
|
256
|
+
"text": "string"
|
257
|
+
}
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"name": "newValue",
|
261
|
+
"type": {
|
262
|
+
"text": "Omit<Partial<T>, 'id'>"
|
263
|
+
}
|
264
|
+
}
|
265
|
+
]
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"kind": "method",
|
269
|
+
"name": "delete",
|
270
|
+
"privacy": "public",
|
271
|
+
"return": {
|
272
|
+
"type": {
|
273
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"parameters": [
|
277
|
+
{
|
278
|
+
"name": "id",
|
279
|
+
"type": {
|
280
|
+
"text": "string"
|
281
|
+
}
|
282
|
+
}
|
283
|
+
]
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"kind": "method",
|
287
|
+
"name": "visit",
|
288
|
+
"privacy": "public",
|
289
|
+
"return": {
|
290
|
+
"type": {
|
291
|
+
"text": "Promise<void>"
|
292
|
+
}
|
293
|
+
},
|
294
|
+
"parameters": [
|
295
|
+
{
|
296
|
+
"name": "visitor",
|
297
|
+
"type": {
|
298
|
+
"text": "(record: T) => void"
|
299
|
+
}
|
300
|
+
}
|
301
|
+
]
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"kind": "method",
|
305
|
+
"name": "onBeforeUpdate",
|
306
|
+
"privacy": "public",
|
307
|
+
"return": {
|
308
|
+
"type": {
|
309
|
+
"text": "() => void"
|
310
|
+
}
|
311
|
+
},
|
312
|
+
"parameters": [
|
313
|
+
{
|
314
|
+
"name": "listener",
|
315
|
+
"type": {
|
316
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
317
|
+
}
|
318
|
+
}
|
319
|
+
]
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"kind": "method",
|
323
|
+
"name": "onAfterUpdate",
|
324
|
+
"privacy": "public",
|
325
|
+
"return": {
|
326
|
+
"type": {
|
327
|
+
"text": "() => void"
|
328
|
+
}
|
329
|
+
},
|
330
|
+
"parameters": [
|
331
|
+
{
|
332
|
+
"name": "listener",
|
333
|
+
"type": {
|
334
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
335
|
+
}
|
336
|
+
}
|
337
|
+
]
|
338
|
+
}
|
339
|
+
]
|
340
|
+
}
|
341
|
+
],
|
342
|
+
"exports": [
|
343
|
+
{
|
344
|
+
"kind": "js",
|
345
|
+
"name": "InMemoryDatabase",
|
346
|
+
"declaration": {
|
347
|
+
"name": "InMemoryDatabase",
|
348
|
+
"module": "src/data/inMemoryDatabase.ts"
|
349
|
+
}
|
350
|
+
}
|
351
|
+
]
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"kind": "javascript-module",
|
355
|
+
"path": "src/data/index.ts",
|
356
|
+
"declarations": [],
|
357
|
+
"exports": [
|
358
|
+
{
|
359
|
+
"kind": "js",
|
360
|
+
"name": "*",
|
361
|
+
"declaration": {
|
362
|
+
"name": "*",
|
363
|
+
"package": "./inMemoryDatabase"
|
364
|
+
}
|
365
|
+
}
|
366
|
+
]
|
367
|
+
},
|
170
368
|
{
|
171
369
|
"kind": "javascript-module",
|
172
370
|
"path": "src/design-system/design-system.ts",
|
@@ -217,6 +415,59 @@
|
|
217
415
|
}
|
218
416
|
]
|
219
417
|
},
|
418
|
+
{
|
419
|
+
"kind": "javascript-module",
|
420
|
+
"path": "src/decorators/index.ts",
|
421
|
+
"declarations": [],
|
422
|
+
"exports": [
|
423
|
+
{
|
424
|
+
"kind": "js",
|
425
|
+
"name": "*",
|
426
|
+
"declaration": {
|
427
|
+
"name": "*",
|
428
|
+
"package": "./renderOnChange"
|
429
|
+
}
|
430
|
+
}
|
431
|
+
]
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"kind": "javascript-module",
|
435
|
+
"path": "src/decorators/renderOnChange.ts",
|
436
|
+
"declarations": [
|
437
|
+
{
|
438
|
+
"kind": "function",
|
439
|
+
"name": "renderOnChange",
|
440
|
+
"parameters": [
|
441
|
+
{
|
442
|
+
"name": "target",
|
443
|
+
"type": {
|
444
|
+
"text": "FASTElement & { render(): void }"
|
445
|
+
},
|
446
|
+
"description": "The target to define the property change handler on."
|
447
|
+
},
|
448
|
+
{
|
449
|
+
"name": "name",
|
450
|
+
"type": {
|
451
|
+
"text": "string"
|
452
|
+
},
|
453
|
+
"description": "The property name."
|
454
|
+
}
|
455
|
+
],
|
456
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
457
|
+
"privacy": "public"
|
458
|
+
}
|
459
|
+
],
|
460
|
+
"exports": [
|
461
|
+
{
|
462
|
+
"kind": "js",
|
463
|
+
"name": "renderOnChange",
|
464
|
+
"declaration": {
|
465
|
+
"name": "renderOnChange",
|
466
|
+
"module": "src/decorators/renderOnChange.ts"
|
467
|
+
}
|
468
|
+
}
|
469
|
+
]
|
470
|
+
},
|
220
471
|
{
|
221
472
|
"kind": "javascript-module",
|
222
473
|
"path": "src/directives/index.ts",
|
@@ -679,258 +930,7 @@
|
|
679
930
|
},
|
680
931
|
{
|
681
932
|
"kind": "javascript-module",
|
682
|
-
"path": "src/
|
683
|
-
"declarations": [
|
684
|
-
{
|
685
|
-
"kind": "class",
|
686
|
-
"description": "An in memory database of specific DatabaseRecord types.",
|
687
|
-
"name": "InMemoryDatabase",
|
688
|
-
"members": [
|
689
|
-
{
|
690
|
-
"kind": "field",
|
691
|
-
"name": "isWorking",
|
692
|
-
"type": {
|
693
|
-
"text": "boolean"
|
694
|
-
},
|
695
|
-
"privacy": "public",
|
696
|
-
"default": "false"
|
697
|
-
},
|
698
|
-
{
|
699
|
-
"kind": "field",
|
700
|
-
"name": "records",
|
701
|
-
"type": {
|
702
|
-
"text": "Record<string, T>"
|
703
|
-
},
|
704
|
-
"privacy": "private",
|
705
|
-
"default": "{}"
|
706
|
-
},
|
707
|
-
{
|
708
|
-
"kind": "field",
|
709
|
-
"name": "beforeUpdateListeners",
|
710
|
-
"privacy": "private"
|
711
|
-
},
|
712
|
-
{
|
713
|
-
"kind": "field",
|
714
|
-
"name": "afterUpdateListeners",
|
715
|
-
"privacy": "private"
|
716
|
-
},
|
717
|
-
{
|
718
|
-
"kind": "method",
|
719
|
-
"name": "create",
|
720
|
-
"privacy": "public",
|
721
|
-
"return": {
|
722
|
-
"type": {
|
723
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
724
|
-
}
|
725
|
-
},
|
726
|
-
"parameters": [
|
727
|
-
{
|
728
|
-
"name": "newValue",
|
729
|
-
"type": {
|
730
|
-
"text": "Omit<T, 'id'>"
|
731
|
-
}
|
732
|
-
}
|
733
|
-
]
|
734
|
-
},
|
735
|
-
{
|
736
|
-
"kind": "method",
|
737
|
-
"name": "read",
|
738
|
-
"privacy": "public",
|
739
|
-
"return": {
|
740
|
-
"type": {
|
741
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
742
|
-
}
|
743
|
-
},
|
744
|
-
"parameters": [
|
745
|
-
{
|
746
|
-
"name": "id",
|
747
|
-
"type": {
|
748
|
-
"text": "string"
|
749
|
-
}
|
750
|
-
}
|
751
|
-
]
|
752
|
-
},
|
753
|
-
{
|
754
|
-
"kind": "method",
|
755
|
-
"name": "update",
|
756
|
-
"privacy": "public",
|
757
|
-
"return": {
|
758
|
-
"type": {
|
759
|
-
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
760
|
-
}
|
761
|
-
},
|
762
|
-
"parameters": [
|
763
|
-
{
|
764
|
-
"name": "id",
|
765
|
-
"type": {
|
766
|
-
"text": "string"
|
767
|
-
}
|
768
|
-
},
|
769
|
-
{
|
770
|
-
"name": "newValue",
|
771
|
-
"type": {
|
772
|
-
"text": "Omit<Partial<T>, 'id'>"
|
773
|
-
}
|
774
|
-
}
|
775
|
-
]
|
776
|
-
},
|
777
|
-
{
|
778
|
-
"kind": "method",
|
779
|
-
"name": "delete",
|
780
|
-
"privacy": "public",
|
781
|
-
"return": {
|
782
|
-
"type": {
|
783
|
-
"text": "Promise<DatabaseAccessResult.Delete>"
|
784
|
-
}
|
785
|
-
},
|
786
|
-
"parameters": [
|
787
|
-
{
|
788
|
-
"name": "id",
|
789
|
-
"type": {
|
790
|
-
"text": "string"
|
791
|
-
}
|
792
|
-
}
|
793
|
-
]
|
794
|
-
},
|
795
|
-
{
|
796
|
-
"kind": "method",
|
797
|
-
"name": "visit",
|
798
|
-
"privacy": "public",
|
799
|
-
"return": {
|
800
|
-
"type": {
|
801
|
-
"text": "Promise<void>"
|
802
|
-
}
|
803
|
-
},
|
804
|
-
"parameters": [
|
805
|
-
{
|
806
|
-
"name": "visitor",
|
807
|
-
"type": {
|
808
|
-
"text": "(record: T) => void"
|
809
|
-
}
|
810
|
-
}
|
811
|
-
]
|
812
|
-
},
|
813
|
-
{
|
814
|
-
"kind": "method",
|
815
|
-
"name": "onBeforeUpdate",
|
816
|
-
"privacy": "public",
|
817
|
-
"return": {
|
818
|
-
"type": {
|
819
|
-
"text": "() => void"
|
820
|
-
}
|
821
|
-
},
|
822
|
-
"parameters": [
|
823
|
-
{
|
824
|
-
"name": "listener",
|
825
|
-
"type": {
|
826
|
-
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
827
|
-
}
|
828
|
-
}
|
829
|
-
]
|
830
|
-
},
|
831
|
-
{
|
832
|
-
"kind": "method",
|
833
|
-
"name": "onAfterUpdate",
|
834
|
-
"privacy": "public",
|
835
|
-
"return": {
|
836
|
-
"type": {
|
837
|
-
"text": "() => void"
|
838
|
-
}
|
839
|
-
},
|
840
|
-
"parameters": [
|
841
|
-
{
|
842
|
-
"name": "listener",
|
843
|
-
"type": {
|
844
|
-
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
845
|
-
}
|
846
|
-
}
|
847
|
-
]
|
848
|
-
}
|
849
|
-
]
|
850
|
-
}
|
851
|
-
],
|
852
|
-
"exports": [
|
853
|
-
{
|
854
|
-
"kind": "js",
|
855
|
-
"name": "InMemoryDatabase",
|
856
|
-
"declaration": {
|
857
|
-
"name": "InMemoryDatabase",
|
858
|
-
"module": "src/data/inMemoryDatabase.ts"
|
859
|
-
}
|
860
|
-
}
|
861
|
-
]
|
862
|
-
},
|
863
|
-
{
|
864
|
-
"kind": "javascript-module",
|
865
|
-
"path": "src/data/index.ts",
|
866
|
-
"declarations": [],
|
867
|
-
"exports": [
|
868
|
-
{
|
869
|
-
"kind": "js",
|
870
|
-
"name": "*",
|
871
|
-
"declaration": {
|
872
|
-
"name": "*",
|
873
|
-
"package": "./inMemoryDatabase"
|
874
|
-
}
|
875
|
-
}
|
876
|
-
]
|
877
|
-
},
|
878
|
-
{
|
879
|
-
"kind": "javascript-module",
|
880
|
-
"path": "src/decorators/index.ts",
|
881
|
-
"declarations": [],
|
882
|
-
"exports": [
|
883
|
-
{
|
884
|
-
"kind": "js",
|
885
|
-
"name": "*",
|
886
|
-
"declaration": {
|
887
|
-
"name": "*",
|
888
|
-
"package": "./renderOnChange"
|
889
|
-
}
|
890
|
-
}
|
891
|
-
]
|
892
|
-
},
|
893
|
-
{
|
894
|
-
"kind": "javascript-module",
|
895
|
-
"path": "src/decorators/renderOnChange.ts",
|
896
|
-
"declarations": [
|
897
|
-
{
|
898
|
-
"kind": "function",
|
899
|
-
"name": "renderOnChange",
|
900
|
-
"parameters": [
|
901
|
-
{
|
902
|
-
"name": "target",
|
903
|
-
"type": {
|
904
|
-
"text": "FASTElement & { render(): void }"
|
905
|
-
},
|
906
|
-
"description": "The target to define the property change handler on."
|
907
|
-
},
|
908
|
-
{
|
909
|
-
"name": "name",
|
910
|
-
"type": {
|
911
|
-
"text": "string"
|
912
|
-
},
|
913
|
-
"description": "The property name."
|
914
|
-
}
|
915
|
-
],
|
916
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
917
|
-
"privacy": "public"
|
918
|
-
}
|
919
|
-
],
|
920
|
-
"exports": [
|
921
|
-
{
|
922
|
-
"kind": "js",
|
923
|
-
"name": "renderOnChange",
|
924
|
-
"declaration": {
|
925
|
-
"name": "renderOnChange",
|
926
|
-
"module": "src/decorators/renderOnChange.ts"
|
927
|
-
}
|
928
|
-
}
|
929
|
-
]
|
930
|
-
},
|
931
|
-
{
|
932
|
-
"kind": "javascript-module",
|
933
|
-
"path": "src/formatters/datetime.ts",
|
933
|
+
"path": "src/formatters/datetime.ts",
|
934
934
|
"declarations": [
|
935
935
|
{
|
936
936
|
"kind": "function",
|
@@ -1285,61 +1285,23 @@
|
|
1285
1285
|
"kind": "js",
|
1286
1286
|
"name": "defaultLoggerOptions",
|
1287
1287
|
"declaration": {
|
1288
|
-
"name": "defaultLoggerOptions",
|
1289
|
-
"module": "src/logger/logger.ts"
|
1290
|
-
}
|
1291
|
-
},
|
1292
|
-
{
|
1293
|
-
"kind": "js",
|
1294
|
-
"name": "createLogger",
|
1295
|
-
"declaration": {
|
1296
|
-
"name": "createLogger",
|
1297
|
-
"module": "src/logger/logger.ts"
|
1298
|
-
}
|
1299
|
-
}
|
1300
|
-
]
|
1301
|
-
},
|
1302
|
-
{
|
1303
|
-
"kind": "javascript-module",
|
1304
|
-
"path": "src/mappers/index.ts",
|
1305
|
-
"declarations": [],
|
1306
|
-
"exports": [
|
1307
|
-
{
|
1308
|
-
"kind": "js",
|
1309
|
-
"name": "*",
|
1310
|
-
"declaration": {
|
1311
|
-
"name": "*",
|
1312
|
-
"package": "./dto"
|
1313
|
-
}
|
1314
|
-
}
|
1315
|
-
]
|
1316
|
-
},
|
1317
|
-
{
|
1318
|
-
"kind": "javascript-module",
|
1319
|
-
"path": "src/mixins/index.ts",
|
1320
|
-
"declarations": [],
|
1321
|
-
"exports": [
|
1322
|
-
{
|
1323
|
-
"kind": "js",
|
1324
|
-
"name": "*",
|
1325
|
-
"declaration": {
|
1326
|
-
"name": "*",
|
1327
|
-
"package": "./pendingState"
|
1288
|
+
"name": "defaultLoggerOptions",
|
1289
|
+
"module": "src/logger/logger.ts"
|
1328
1290
|
}
|
1329
1291
|
},
|
1330
1292
|
{
|
1331
1293
|
"kind": "js",
|
1332
|
-
"name": "
|
1294
|
+
"name": "createLogger",
|
1333
1295
|
"declaration": {
|
1334
|
-
"name": "
|
1335
|
-
"
|
1296
|
+
"name": "createLogger",
|
1297
|
+
"module": "src/logger/logger.ts"
|
1336
1298
|
}
|
1337
1299
|
}
|
1338
1300
|
]
|
1339
1301
|
},
|
1340
1302
|
{
|
1341
1303
|
"kind": "javascript-module",
|
1342
|
-
"path": "src/
|
1304
|
+
"path": "src/mappers/index.ts",
|
1343
1305
|
"declarations": [],
|
1344
1306
|
"exports": [
|
1345
1307
|
{
|
@@ -1347,64 +1309,30 @@
|
|
1347
1309
|
"name": "*",
|
1348
1310
|
"declaration": {
|
1349
1311
|
"name": "*",
|
1350
|
-
"package": "./
|
1312
|
+
"package": "./dto"
|
1351
1313
|
}
|
1352
1314
|
}
|
1353
1315
|
]
|
1354
1316
|
},
|
1355
1317
|
{
|
1356
1318
|
"kind": "javascript-module",
|
1357
|
-
"path": "src/
|
1358
|
-
"declarations": [
|
1359
|
-
{
|
1360
|
-
"kind": "function",
|
1361
|
-
"name": "createObserver",
|
1362
|
-
"return": {
|
1363
|
-
"type": {
|
1364
|
-
"text": "Observer<EventType>"
|
1365
|
-
}
|
1366
|
-
},
|
1367
|
-
"description": "Creates a new event observer instance.",
|
1368
|
-
"privacy": "public"
|
1369
|
-
},
|
1370
|
-
{
|
1371
|
-
"kind": "function",
|
1372
|
-
"name": "respondToVisibility",
|
1373
|
-
"parameters": [
|
1374
|
-
{
|
1375
|
-
"name": "element",
|
1376
|
-
"type": {
|
1377
|
-
"text": "HTMLElement"
|
1378
|
-
},
|
1379
|
-
"description": "HTMLElement to observe"
|
1380
|
-
},
|
1381
|
-
{
|
1382
|
-
"name": "callback",
|
1383
|
-
"type": {
|
1384
|
-
"text": "(arg0: boolean) => any"
|
1385
|
-
},
|
1386
|
-
"description": "any function called when the visibility changes"
|
1387
|
-
}
|
1388
|
-
],
|
1389
|
-
"description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
|
1390
|
-
"privacy": "public"
|
1391
|
-
}
|
1392
|
-
],
|
1319
|
+
"path": "src/mixins/index.ts",
|
1320
|
+
"declarations": [],
|
1393
1321
|
"exports": [
|
1394
1322
|
{
|
1395
1323
|
"kind": "js",
|
1396
|
-
"name": "
|
1324
|
+
"name": "*",
|
1397
1325
|
"declaration": {
|
1398
|
-
"name": "
|
1399
|
-
"
|
1326
|
+
"name": "*",
|
1327
|
+
"package": "./pendingState"
|
1400
1328
|
}
|
1401
1329
|
},
|
1402
1330
|
{
|
1403
1331
|
"kind": "js",
|
1404
|
-
"name": "
|
1332
|
+
"name": "*",
|
1405
1333
|
"declaration": {
|
1406
|
-
"name": "
|
1407
|
-
"
|
1334
|
+
"name": "*",
|
1335
|
+
"package": "./lifecycle"
|
1408
1336
|
}
|
1409
1337
|
}
|
1410
1338
|
]
|
@@ -1647,6 +1575,78 @@
|
|
1647
1575
|
}
|
1648
1576
|
]
|
1649
1577
|
},
|
1578
|
+
{
|
1579
|
+
"kind": "javascript-module",
|
1580
|
+
"path": "src/observer/index.ts",
|
1581
|
+
"declarations": [],
|
1582
|
+
"exports": [
|
1583
|
+
{
|
1584
|
+
"kind": "js",
|
1585
|
+
"name": "*",
|
1586
|
+
"declaration": {
|
1587
|
+
"name": "*",
|
1588
|
+
"package": "./observer"
|
1589
|
+
}
|
1590
|
+
}
|
1591
|
+
]
|
1592
|
+
},
|
1593
|
+
{
|
1594
|
+
"kind": "javascript-module",
|
1595
|
+
"path": "src/observer/observer.ts",
|
1596
|
+
"declarations": [
|
1597
|
+
{
|
1598
|
+
"kind": "function",
|
1599
|
+
"name": "createObserver",
|
1600
|
+
"return": {
|
1601
|
+
"type": {
|
1602
|
+
"text": "Observer<EventType>"
|
1603
|
+
}
|
1604
|
+
},
|
1605
|
+
"description": "Creates a new event observer instance.",
|
1606
|
+
"privacy": "public"
|
1607
|
+
},
|
1608
|
+
{
|
1609
|
+
"kind": "function",
|
1610
|
+
"name": "respondToVisibility",
|
1611
|
+
"parameters": [
|
1612
|
+
{
|
1613
|
+
"name": "element",
|
1614
|
+
"type": {
|
1615
|
+
"text": "HTMLElement"
|
1616
|
+
},
|
1617
|
+
"description": "HTMLElement to observe"
|
1618
|
+
},
|
1619
|
+
{
|
1620
|
+
"name": "callback",
|
1621
|
+
"type": {
|
1622
|
+
"text": "(arg0: boolean) => any"
|
1623
|
+
},
|
1624
|
+
"description": "any function called when the visibility changes"
|
1625
|
+
}
|
1626
|
+
],
|
1627
|
+
"description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
|
1628
|
+
"privacy": "public"
|
1629
|
+
}
|
1630
|
+
],
|
1631
|
+
"exports": [
|
1632
|
+
{
|
1633
|
+
"kind": "js",
|
1634
|
+
"name": "createObserver",
|
1635
|
+
"declaration": {
|
1636
|
+
"name": "createObserver",
|
1637
|
+
"module": "src/observer/observer.ts"
|
1638
|
+
}
|
1639
|
+
},
|
1640
|
+
{
|
1641
|
+
"kind": "js",
|
1642
|
+
"name": "respondToVisibility",
|
1643
|
+
"declaration": {
|
1644
|
+
"name": "respondToVisibility",
|
1645
|
+
"module": "src/observer/observer.ts"
|
1646
|
+
}
|
1647
|
+
}
|
1648
|
+
]
|
1649
|
+
},
|
1650
1650
|
{
|
1651
1651
|
"kind": "javascript-module",
|
1652
1652
|
"path": "src/styles/color.ts",
|
@@ -2218,7 +2218,7 @@
|
|
2218
2218
|
},
|
2219
2219
|
{
|
2220
2220
|
"kind": "javascript-module",
|
2221
|
-
"path": "src/directives/
|
2221
|
+
"path": "src/directives/when-else/index.ts",
|
2222
2222
|
"declarations": [],
|
2223
2223
|
"exports": [
|
2224
2224
|
{
|
@@ -2226,28 +2226,18 @@
|
|
2226
2226
|
"name": "*",
|
2227
2227
|
"declaration": {
|
2228
2228
|
"name": "*",
|
2229
|
-
"package": "./
|
2229
|
+
"package": "./when-else"
|
2230
2230
|
}
|
2231
2231
|
}
|
2232
2232
|
]
|
2233
2233
|
},
|
2234
2234
|
{
|
2235
2235
|
"kind": "javascript-module",
|
2236
|
-
"path": "src/directives/
|
2236
|
+
"path": "src/directives/when-else/when-else.ts",
|
2237
2237
|
"declarations": [
|
2238
|
-
{
|
2239
|
-
"kind": "variable",
|
2240
|
-
"name": "defaultEventMap",
|
2241
|
-
"type": {
|
2242
|
-
"text": "Map<string, EventName>"
|
2243
|
-
},
|
2244
|
-
"default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
|
2245
|
-
"description": "A map that associates specific HTML element tags with their corresponding default event names.",
|
2246
|
-
"privacy": "public"
|
2247
|
-
},
|
2248
2238
|
{
|
2249
2239
|
"kind": "function",
|
2250
|
-
"name": "
|
2240
|
+
"name": "whenElse",
|
2251
2241
|
"return": {
|
2252
2242
|
"type": {
|
2253
2243
|
"text": "CaptureType<TSource>"
|
@@ -2258,56 +2248,42 @@
|
|
2258
2248
|
"name": "binding",
|
2259
2249
|
"type": {
|
2260
2250
|
"text": "Binding<TSource, TReturn>"
|
2261
|
-
}
|
2262
|
-
|
2263
|
-
{
|
2264
|
-
"name": "conversionType",
|
2265
|
-
"default": "'string'",
|
2266
|
-
"type": {
|
2267
|
-
"text": "ConversionType"
|
2268
|
-
}
|
2251
|
+
},
|
2252
|
+
"description": "The condition to test for rendering."
|
2269
2253
|
},
|
2270
2254
|
{
|
2271
|
-
"name": "
|
2272
|
-
"default": "'default'",
|
2255
|
+
"name": "trueTemplateOrTemplateBinding",
|
2273
2256
|
"type": {
|
2274
|
-
"text": "
|
2275
|
-
}
|
2257
|
+
"text": "WhenTemplate<TSource>"
|
2258
|
+
},
|
2259
|
+
"description": "The template or a binding that gets the template to render when the condition is true."
|
2276
2260
|
},
|
2277
2261
|
{
|
2278
|
-
"name": "
|
2279
|
-
"optional": true,
|
2262
|
+
"name": "falseTemplateOrTemplateBinding",
|
2280
2263
|
"type": {
|
2281
|
-
"text": "
|
2282
|
-
}
|
2264
|
+
"text": "WhenTemplate<TSource>"
|
2265
|
+
},
|
2266
|
+
"description": "The template or a binding that gets the template to render when the condition is false."
|
2283
2267
|
}
|
2284
2268
|
],
|
2285
|
-
"description": "
|
2269
|
+
"description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
|
2286
2270
|
"privacy": "public"
|
2287
2271
|
}
|
2288
2272
|
],
|
2289
2273
|
"exports": [
|
2290
2274
|
{
|
2291
2275
|
"kind": "js",
|
2292
|
-
"name": "
|
2293
|
-
"declaration": {
|
2294
|
-
"name": "defaultEventMap",
|
2295
|
-
"module": "src/directives/sync/sync.ts"
|
2296
|
-
}
|
2297
|
-
},
|
2298
|
-
{
|
2299
|
-
"kind": "js",
|
2300
|
-
"name": "sync",
|
2276
|
+
"name": "whenElse",
|
2301
2277
|
"declaration": {
|
2302
|
-
"name": "
|
2303
|
-
"module": "src/directives/
|
2278
|
+
"name": "whenElse",
|
2279
|
+
"module": "src/directives/when-else/when-else.ts"
|
2304
2280
|
}
|
2305
2281
|
}
|
2306
2282
|
]
|
2307
2283
|
},
|
2308
2284
|
{
|
2309
2285
|
"kind": "javascript-module",
|
2310
|
-
"path": "src/directives/
|
2286
|
+
"path": "src/directives/sync/index.ts",
|
2311
2287
|
"declarations": [],
|
2312
2288
|
"exports": [
|
2313
2289
|
{
|
@@ -2315,18 +2291,28 @@
|
|
2315
2291
|
"name": "*",
|
2316
2292
|
"declaration": {
|
2317
2293
|
"name": "*",
|
2318
|
-
"package": "./
|
2294
|
+
"package": "./sync"
|
2319
2295
|
}
|
2320
2296
|
}
|
2321
2297
|
]
|
2322
2298
|
},
|
2323
2299
|
{
|
2324
2300
|
"kind": "javascript-module",
|
2325
|
-
"path": "src/directives/
|
2301
|
+
"path": "src/directives/sync/sync.ts",
|
2326
2302
|
"declarations": [
|
2303
|
+
{
|
2304
|
+
"kind": "variable",
|
2305
|
+
"name": "defaultEventMap",
|
2306
|
+
"type": {
|
2307
|
+
"text": "Map<string, EventName>"
|
2308
|
+
},
|
2309
|
+
"default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
|
2310
|
+
"description": "A map that associates specific HTML element tags with their corresponding default event names.",
|
2311
|
+
"privacy": "public"
|
2312
|
+
},
|
2327
2313
|
{
|
2328
2314
|
"kind": "function",
|
2329
|
-
"name": "
|
2315
|
+
"name": "sync",
|
2330
2316
|
"return": {
|
2331
2317
|
"type": {
|
2332
2318
|
"text": "CaptureType<TSource>"
|
@@ -2337,35 +2323,49 @@
|
|
2337
2323
|
"name": "binding",
|
2338
2324
|
"type": {
|
2339
2325
|
"text": "Binding<TSource, TReturn>"
|
2340
|
-
}
|
2341
|
-
"description": "The condition to test for rendering."
|
2326
|
+
}
|
2342
2327
|
},
|
2343
2328
|
{
|
2344
|
-
"name": "
|
2329
|
+
"name": "conversionType",
|
2330
|
+
"default": "'string'",
|
2345
2331
|
"type": {
|
2346
|
-
"text": "
|
2347
|
-
}
|
2348
|
-
"description": "The template or a binding that gets the template to render when the condition is true."
|
2332
|
+
"text": "ConversionType"
|
2333
|
+
}
|
2349
2334
|
},
|
2350
2335
|
{
|
2351
|
-
"name": "
|
2336
|
+
"name": "eventName",
|
2337
|
+
"default": "'default'",
|
2352
2338
|
"type": {
|
2353
|
-
"text": "
|
2354
|
-
}
|
2355
|
-
|
2339
|
+
"text": "EventName"
|
2340
|
+
}
|
2341
|
+
},
|
2342
|
+
{
|
2343
|
+
"name": "keyAttr",
|
2344
|
+
"optional": true,
|
2345
|
+
"type": {
|
2346
|
+
"text": "string"
|
2347
|
+
}
|
2356
2348
|
}
|
2357
2349
|
],
|
2358
|
-
"description": "
|
2350
|
+
"description": "Creates a synchronization directive that binds a data source to an HTML element,",
|
2359
2351
|
"privacy": "public"
|
2360
2352
|
}
|
2361
2353
|
],
|
2362
2354
|
"exports": [
|
2363
2355
|
{
|
2364
2356
|
"kind": "js",
|
2365
|
-
"name": "
|
2357
|
+
"name": "defaultEventMap",
|
2366
2358
|
"declaration": {
|
2367
|
-
"name": "
|
2368
|
-
"module": "src/directives/
|
2359
|
+
"name": "defaultEventMap",
|
2360
|
+
"module": "src/directives/sync/sync.ts"
|
2361
|
+
}
|
2362
|
+
},
|
2363
|
+
{
|
2364
|
+
"kind": "js",
|
2365
|
+
"name": "sync",
|
2366
|
+
"declaration": {
|
2367
|
+
"name": "sync",
|
2368
|
+
"module": "src/directives/sync/sync.ts"
|
2369
2369
|
}
|
2370
2370
|
}
|
2371
2371
|
]
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
3
3
|
"description": "Genesis Foundation Utils",
|
4
|
-
"version": "14.
|
4
|
+
"version": "14.204.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -27,17 +27,17 @@
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@genesislcap/foundation-testing": "14.
|
31
|
-
"@genesislcap/genx": "14.
|
32
|
-
"@genesislcap/rollup-builder": "14.
|
33
|
-
"@genesislcap/ts-builder": "14.
|
34
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
35
|
-
"@genesislcap/vite-builder": "14.
|
36
|
-
"@genesislcap/webpack-builder": "14.
|
30
|
+
"@genesislcap/foundation-testing": "14.204.0",
|
31
|
+
"@genesislcap/genx": "14.204.0",
|
32
|
+
"@genesislcap/rollup-builder": "14.204.0",
|
33
|
+
"@genesislcap/ts-builder": "14.204.0",
|
34
|
+
"@genesislcap/uvu-playwright-builder": "14.204.0",
|
35
|
+
"@genesislcap/vite-builder": "14.204.0",
|
36
|
+
"@genesislcap/webpack-builder": "14.204.0",
|
37
37
|
"rimraf": "^5.0.0"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@genesislcap/foundation-logger": "14.
|
40
|
+
"@genesislcap/foundation-logger": "14.204.0",
|
41
41
|
"@microsoft/fast-components": "^2.30.6",
|
42
42
|
"@microsoft/fast-element": "^1.12.0",
|
43
43
|
"@microsoft/fast-foundation": "^2.49.4",
|
@@ -55,5 +55,5 @@
|
|
55
55
|
"access": "public"
|
56
56
|
},
|
57
57
|
"customElements": "dist/custom-elements.json",
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "8394ff8dd41ae065ab90d2afb7ca789c3aad0f9e"
|
59
59
|
}
|