@emuanalytics/flow-rdf-ui 4.3.1 → 4.4.0

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.
@@ -283,154 +283,6 @@
283
283
  }
284
284
  ]
285
285
  },
286
- {
287
- "kind": "javascript-module",
288
- "path": "components/badge/badge.component.js",
289
- "declarations": [
290
- {
291
- "kind": "class",
292
- "description": "",
293
- "name": "FlowUiBadge",
294
- "cssParts": [
295
- {
296
- "description": "The component's base wrapper.",
297
- "name": "base"
298
- }
299
- ],
300
- "slots": [
301
- {
302
- "description": "The badge's content.",
303
- "name": ""
304
- }
305
- ],
306
- "members": [
307
- {
308
- "kind": "field",
309
- "name": "tagName",
310
- "type": {
311
- "text": "string"
312
- },
313
- "static": true,
314
- "default": "'flow-ui-badge'"
315
- },
316
- {
317
- "kind": "field",
318
- "name": "variant",
319
- "type": {
320
- "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
321
- },
322
- "default": "'primary'",
323
- "description": "The badge's theme variant.",
324
- "attribute": "variant",
325
- "reflects": true
326
- },
327
- {
328
- "kind": "field",
329
- "name": "size",
330
- "type": {
331
- "text": "'small' | 'medium' | 'large'"
332
- },
333
- "default": "'medium'",
334
- "description": "The badge size.",
335
- "attribute": "size",
336
- "reflects": true
337
- },
338
- {
339
- "kind": "field",
340
- "name": "pill",
341
- "type": {
342
- "text": "boolean"
343
- },
344
- "default": "false",
345
- "description": "Draws a pill-style badge with rounded edges.",
346
- "attribute": "pill",
347
- "reflects": true
348
- },
349
- {
350
- "kind": "field",
351
- "name": "pulse",
352
- "type": {
353
- "text": "boolean"
354
- },
355
- "default": "false",
356
- "description": "Makes the badge pulsate to draw attention.",
357
- "attribute": "pulse",
358
- "reflects": true
359
- }
360
- ],
361
- "attributes": [
362
- {
363
- "name": "variant",
364
- "type": {
365
- "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
366
- },
367
- "default": "'primary'",
368
- "description": "The badge's theme variant.",
369
- "fieldName": "variant"
370
- },
371
- {
372
- "name": "size",
373
- "type": {
374
- "text": "'small' | 'medium' | 'large'"
375
- },
376
- "default": "'medium'",
377
- "description": "The badge size.",
378
- "fieldName": "size"
379
- },
380
- {
381
- "name": "pill",
382
- "type": {
383
- "text": "boolean"
384
- },
385
- "default": "false",
386
- "description": "Draws a pill-style badge with rounded edges.",
387
- "fieldName": "pill"
388
- },
389
- {
390
- "name": "pulse",
391
- "type": {
392
- "text": "boolean"
393
- },
394
- "default": "false",
395
- "description": "Makes the badge pulsate to draw attention.",
396
- "fieldName": "pulse"
397
- }
398
- ],
399
- "superclass": {
400
- "name": "FlowRdfElement",
401
- "module": "/src/internal/flow-ui-rdf-element"
402
- },
403
- "tagName": "flow-ui-badge",
404
- "summary": "Badges are used to draw attention and display statuses or counts.",
405
- "customElement": true
406
- }
407
- ],
408
- "exports": [
409
- {
410
- "kind": "js",
411
- "name": "default",
412
- "declaration": {
413
- "name": "FlowUiBadge",
414
- "module": "components/badge/badge.component.js"
415
- }
416
- }
417
- ]
418
- },
419
- {
420
- "kind": "javascript-module",
421
- "path": "components/badge/badge.js",
422
- "declarations": [],
423
- "exports": [
424
- {
425
- "kind": "js",
426
- "name": "default",
427
- "declaration": {
428
- "name": "FlowUiBadge",
429
- "module": "components/badge/badge.js"
430
- }
431
- }
432
- ]
433
- },
434
286
  {
435
287
  "kind": "javascript-module",
436
288
  "path": "components/avatar/avatar.component.js",
@@ -636,16 +488,78 @@
636
488
  },
637
489
  {
638
490
  "kind": "javascript-module",
639
- "path": "components/animation/animation.component.js",
491
+ "path": "components/autocomplete/autocomplete.component.js",
640
492
  "declarations": [
641
493
  {
642
494
  "kind": "class",
643
- "description": "",
644
- "name": "FlowUiAnimation",
495
+ "description": "The autocomplete component does not filter its options itself. Listen for the `flow-ui-input` event, read the text\nthat the user has typed with `getInputText()`, and replace the slotted `<flow-ui-option>` elements with the options\nthat match. The autocomplete's value is the option value of the selected option. Use `displayWith` to show a label\nin the input instead of the option value.",
496
+ "name": "FlowUiAutocomplete",
497
+ "cssParts": [
498
+ {
499
+ "description": "The form control that wraps the label, input, and help text.",
500
+ "name": "form-control"
501
+ },
502
+ {
503
+ "description": "The label's wrapper.",
504
+ "name": "label"
505
+ },
506
+ {
507
+ "description": "The help text's wrapper.",
508
+ "name": "help-text"
509
+ },
510
+ {
511
+ "description": "The input's wrapper.",
512
+ "name": "control"
513
+ },
514
+ {
515
+ "description": "The container that wraps the prefix, suffix, input and clear button.",
516
+ "name": "combobox"
517
+ },
518
+ {
519
+ "description": "The container that wraps the prefix.",
520
+ "name": "prefix"
521
+ },
522
+ {
523
+ "description": "The container that wraps the suffix.",
524
+ "name": "suffix"
525
+ },
526
+ {
527
+ "description": "The text input, an `<input>` element.",
528
+ "name": "display-input"
529
+ },
530
+ {
531
+ "description": "The listbox container where options are slotted.",
532
+ "name": "listbox"
533
+ },
534
+ {
535
+ "description": "The clear button.",
536
+ "name": "clear-button"
537
+ }
538
+ ],
645
539
  "slots": [
646
540
  {
647
- "description": "The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<flow-ui-animation>` elements.",
541
+ "description": "The listbox options. Must be `<flow-ui-option>` elements. You can use `<flow-ui-divider>` to group items visually.",
648
542
  "name": ""
543
+ },
544
+ {
545
+ "description": "The autocomplete's label. Alternatively, you can use the `label` attribute.",
546
+ "name": "label"
547
+ },
548
+ {
549
+ "description": "Used to prepend a presentational icon or similar element to the combobox.",
550
+ "name": "prefix"
551
+ },
552
+ {
553
+ "description": "Used to append a presentational icon or similar element to the combobox.",
554
+ "name": "suffix"
555
+ },
556
+ {
557
+ "description": "An icon to use in lieu of the default clear icon.",
558
+ "name": "clear-icon"
559
+ },
560
+ {
561
+ "description": "Text that describes how to use the autocomplete. Alternatively, you can use the `help-text` attribute.",
562
+ "name": "help-text"
649
563
  }
650
564
  ],
651
565
  "members": [
@@ -656,1088 +570,984 @@
656
570
  "text": "string"
657
571
  },
658
572
  "static": true,
659
- "default": "'flow-ui-animation'"
573
+ "default": "'flow-ui-autocomplete'"
660
574
  },
661
575
  {
662
576
  "kind": "field",
663
- "name": "animation",
577
+ "name": "dependencies",
664
578
  "type": {
665
- "text": "Animation | undefined"
579
+ "text": "array"
666
580
  },
667
- "privacy": "private"
581
+ "static": true,
582
+ "default": "[FlowUiDivider, FlowIcon, FlowPopup]"
668
583
  },
669
584
  {
670
585
  "kind": "field",
671
- "name": "hasStarted",
672
- "type": {
673
- "text": "boolean"
674
- },
586
+ "name": "hasSlotController",
675
587
  "privacy": "private",
676
- "default": "false"
588
+ "readonly": true,
589
+ "default": "new HasSlotController(this, 'help-text', 'label')"
677
590
  },
678
591
  {
679
592
  "kind": "field",
680
- "name": "defaultSlot",
681
- "type": {
682
- "text": "Promise<HTMLSlotElement>"
683
- },
684
- "privacy": "private"
593
+ "name": "localize",
594
+ "privacy": "private",
595
+ "readonly": true,
596
+ "default": "new LocalizeController(this)"
685
597
  },
686
598
  {
687
599
  "kind": "field",
688
- "name": "name",
600
+ "name": "pendingChangeEvent",
689
601
  "type": {
690
- "text": "string"
602
+ "text": "boolean"
691
603
  },
692
- "default": "'none'",
693
- "description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.\nUse `getAnimationNames()` to retrieve a list of available animations.",
694
- "attribute": "name"
604
+ "privacy": "private",
605
+ "default": "false"
695
606
  },
696
607
  {
697
608
  "kind": "field",
698
- "name": "play",
609
+ "name": "pendingInputEvent",
699
610
  "type": {
700
611
  "text": "boolean"
701
612
  },
702
- "default": "false",
703
- "description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.",
704
- "attribute": "play",
705
- "reflects": true
613
+ "privacy": "private",
614
+ "default": "false"
706
615
  },
707
616
  {
708
617
  "kind": "field",
709
- "name": "delay",
618
+ "name": "hasOptions",
710
619
  "type": {
711
- "text": "number"
620
+ "text": "boolean"
712
621
  },
713
- "default": "0",
714
- "description": "The number of milliseconds to delay the start of the animation.",
715
- "attribute": "delay"
622
+ "privacy": "private",
623
+ "default": "false"
716
624
  },
717
625
  {
718
626
  "kind": "field",
719
- "name": "direction",
720
- "type": {
721
- "text": "PlaybackDirection"
722
- },
723
- "default": "'normal'",
724
- "description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)",
725
- "attribute": "direction"
627
+ "name": "formControlController",
628
+ "privacy": "private",
629
+ "readonly": true,
630
+ "default": "new FormControlController(this, {\n assumeInteractionOn: ['flow-ui-blur', 'flow-ui-input']\n })"
726
631
  },
727
632
  {
728
633
  "kind": "field",
729
- "name": "duration",
634
+ "name": "size",
730
635
  "type": {
731
- "text": "number"
636
+ "text": "'small' | 'medium' | 'large'"
732
637
  },
733
- "default": "1000",
734
- "description": "The number of milliseconds each iteration of the animation takes to complete.",
735
- "attribute": "duration"
638
+ "default": "'medium'",
639
+ "description": "The autocomplete's size.",
640
+ "attribute": "size",
641
+ "reflects": true
736
642
  },
737
643
  {
738
644
  "kind": "field",
739
- "name": "easing",
645
+ "name": "filled",
740
646
  "type": {
741
- "text": "string"
647
+ "text": "boolean"
742
648
  },
743
- "default": "'linear'",
744
- "description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.",
745
- "attribute": "easing"
649
+ "default": "false",
650
+ "description": "Draws a filled autocomplete input.",
651
+ "attribute": "filled",
652
+ "reflects": true
746
653
  },
747
654
  {
748
655
  "kind": "field",
749
- "name": "endDelay",
656
+ "name": "pill",
750
657
  "type": {
751
- "text": "number"
658
+ "text": "boolean"
752
659
  },
753
- "default": "0",
754
- "description": "The number of milliseconds to delay after the active period of an animation sequence.",
755
- "attribute": "end-delay"
660
+ "default": "false",
661
+ "description": "Draws a pill-style autocomplete input with rounded edges.",
662
+ "attribute": "pill",
663
+ "reflects": true
756
664
  },
757
665
  {
758
666
  "kind": "field",
759
- "name": "fill",
667
+ "name": "label",
760
668
  "type": {
761
- "text": "FillMode"
669
+ "text": "string"
762
670
  },
763
- "default": "'auto'",
764
- "description": "Sets how the animation applies styles to its target before and after its execution.",
765
- "attribute": "fill"
671
+ "default": "''",
672
+ "description": "The autocomplete's label. If you need to display HTML, use the `label` slot instead.",
673
+ "attribute": "label"
766
674
  },
767
675
  {
768
676
  "kind": "field",
769
- "name": "iterations",
770
- "default": "Infinity",
771
- "description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.",
772
- "attribute": "iterations"
677
+ "name": "helpText",
678
+ "type": {
679
+ "text": "string"
680
+ },
681
+ "default": "''",
682
+ "description": "The autocomplete's help text. If you need to display HTML, use the `help-text` slot instead.",
683
+ "attribute": "help-text"
773
684
  },
774
685
  {
775
686
  "kind": "field",
776
- "name": "iterationStart",
687
+ "name": "placeholder",
777
688
  "type": {
778
- "text": "number"
689
+ "text": "string"
779
690
  },
780
- "default": "0",
781
- "description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).",
782
- "attribute": "iteration-start"
691
+ "default": "''",
692
+ "description": "The autocomplete's placeholder text.",
693
+ "attribute": "placeholder"
783
694
  },
784
695
  {
785
696
  "kind": "field",
786
- "name": "keyframes",
697
+ "name": "disabled",
787
698
  "type": {
788
- "text": "Keyframe[] | undefined"
699
+ "text": "boolean"
789
700
  },
790
- "description": "The keyframes to use for the animation. If this is set, `name` will be ignored."
701
+ "default": "false",
702
+ "description": "Disables the autocomplete.",
703
+ "attribute": "disabled",
704
+ "reflects": true
791
705
  },
792
706
  {
793
707
  "kind": "field",
794
- "name": "playbackRate",
708
+ "name": "form",
795
709
  "type": {
796
- "text": "number"
710
+ "text": "string"
797
711
  },
798
- "default": "1",
799
- "description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.",
800
- "attribute": "playback-rate"
712
+ "description": "The \"form owner\" to associate the autocomplete with. If omitted, the closest containing form will be used\ninstead. The value of this attribute must be an id of a form in the same document or shadow root as the\nautocomplete.",
713
+ "attribute": "form"
801
714
  },
802
715
  {
803
716
  "kind": "field",
804
- "name": "currentTime",
717
+ "name": "required",
805
718
  "type": {
806
- "text": "CSSNumberish"
719
+ "text": "boolean"
807
720
  },
808
- "description": "Gets and sets the current animation time."
721
+ "default": "false",
722
+ "description": "Makes the autocomplete a required field.",
723
+ "attribute": "required",
724
+ "reflects": true
809
725
  },
810
726
  {
811
727
  "kind": "field",
812
- "name": "handleAnimationFinish",
813
- "privacy": "private"
728
+ "name": "inline",
729
+ "type": {
730
+ "text": "boolean"
731
+ },
732
+ "default": "false",
733
+ "description": "Set to `true` to display the autocomplete in the inline form control style.",
734
+ "attribute": "inline",
735
+ "reflects": true
814
736
  },
815
737
  {
816
738
  "kind": "field",
817
- "name": "handleAnimationCancel",
818
- "privacy": "private"
819
- },
820
- {
821
- "kind": "method",
822
- "name": "handleSlotChange",
823
- "privacy": "private"
824
- },
825
- {
826
- "kind": "method",
827
- "name": "createAnimation",
828
- "privacy": "private"
829
- },
830
- {
831
- "kind": "method",
832
- "name": "destroyAnimation",
833
- "privacy": "private"
834
- },
835
- {
836
- "kind": "method",
837
- "name": "cancel",
838
- "description": "Clears all keyframe effects caused by this animation and aborts its playback."
739
+ "name": "divider",
740
+ "type": {
741
+ "text": "boolean"
742
+ },
743
+ "default": "false",
744
+ "description": "Set to `true` to display a divider below the control.",
745
+ "attribute": "divider",
746
+ "reflects": true
839
747
  },
840
748
  {
841
- "kind": "method",
842
- "name": "finish",
843
- "description": "Sets the playback time to the end of the animation corresponding to the current playback direction."
844
- }
845
- ],
846
- "events": [
847
- {
848
- "description": "Emitted when the animation is canceled.",
849
- "name": "flow-ui-cancel",
850
- "reactName": "onFlowUiCancel"
749
+ "kind": "field",
750
+ "name": "hoist",
751
+ "type": {
752
+ "text": "boolean"
753
+ },
754
+ "default": "false",
755
+ "description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
756
+ "attribute": "hoist"
851
757
  },
852
758
  {
853
- "description": "Emitted when the animation finishes.",
854
- "name": "flow-ui-finish",
855
- "reactName": "onFlowUiFinish"
759
+ "kind": "field",
760
+ "name": "placement",
761
+ "type": {
762
+ "text": "'top' | 'bottom'"
763
+ },
764
+ "default": "'bottom'",
765
+ "description": "The preferred placement of the autocomplete's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
766
+ "attribute": "placement",
767
+ "reflects": true
856
768
  },
857
769
  {
858
- "description": "Emitted when the animation starts or restarts.",
859
- "name": "flow-ui-start",
860
- "reactName": "onFlowUiStart"
861
- }
862
- ],
863
- "attributes": [
864
- {
865
- "name": "name",
770
+ "kind": "field",
771
+ "name": "value",
866
772
  "type": {
867
773
  "text": "string"
868
774
  },
869
- "default": "'none'",
870
- "description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.\nUse `getAnimationNames()` to retrieve a list of available animations.",
871
- "fieldName": "name"
775
+ "default": "''",
776
+ "description": "The option value of the selected option.",
777
+ "attribute": "value"
872
778
  },
873
779
  {
874
- "name": "play",
780
+ "kind": "field",
781
+ "name": "displayWith",
875
782
  "type": {
876
- "text": "boolean"
783
+ "text": "((value: string) => string) | ((value: string) => Promise<string>)"
877
784
  },
878
- "default": "false",
879
- "description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.",
880
- "fieldName": "play"
785
+ "description": "The function that returns the text to show in the input for a given `value`. It can return a promise. If not set,\nthe input shows the value itself.",
786
+ "attribute": "displayWith"
881
787
  },
882
788
  {
883
- "name": "delay",
789
+ "kind": "field",
790
+ "name": "debounceDelay",
884
791
  "type": {
885
792
  "text": "number"
886
793
  },
887
794
  "default": "0",
888
- "description": "The number of milliseconds to delay the start of the animation.",
889
- "fieldName": "delay"
795
+ "description": "The delay in milliseconds between the user's last keystroke and the `flow-ui-input` event.",
796
+ "attribute": "debounce-delay",
797
+ "reflects": true
890
798
  },
891
799
  {
892
- "name": "direction",
800
+ "kind": "field",
801
+ "name": "clearable",
893
802
  "type": {
894
- "text": "PlaybackDirection"
803
+ "text": "boolean"
895
804
  },
896
- "default": "'normal'",
897
- "description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)",
898
- "fieldName": "direction"
805
+ "default": "false",
806
+ "description": "Set to `true` to show a clear button when the autocomplete has a value.",
807
+ "attribute": "clearable",
808
+ "reflects": true
899
809
  },
900
810
  {
901
- "name": "duration",
811
+ "kind": "field",
812
+ "name": "clearOnFocus",
902
813
  "type": {
903
- "text": "number"
814
+ "text": "boolean"
904
815
  },
905
- "default": "1000",
906
- "description": "The number of milliseconds each iteration of the animation takes to complete.",
907
- "fieldName": "duration"
816
+ "default": "false",
817
+ "description": "Set to `true` to clear the value when the autocomplete gains focus.",
818
+ "attribute": "clear-on-focus",
819
+ "reflects": true
908
820
  },
909
821
  {
910
- "name": "easing",
822
+ "kind": "field",
823
+ "name": "inputText",
911
824
  "type": {
912
825
  "text": "string"
913
826
  },
914
- "default": "'linear'",
915
- "description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.",
916
- "fieldName": "easing"
827
+ "privacy": "private",
828
+ "default": "''",
829
+ "description": "Current value displayed by the control; this can be what the user is typing or the label of the selected option"
917
830
  },
918
831
  {
919
- "name": "end-delay",
832
+ "kind": "field",
833
+ "name": "selectedOption",
920
834
  "type": {
921
- "text": "number"
835
+ "text": "FlowOption | null"
922
836
  },
923
- "default": "0",
924
- "description": "The number of milliseconds to delay after the active period of an animation sequence.",
925
- "fieldName": "endDelay"
837
+ "privacy": "private",
838
+ "default": "null"
926
839
  },
927
840
  {
928
- "name": "fill",
841
+ "kind": "field",
842
+ "name": "currentOption",
929
843
  "type": {
930
- "text": "FillMode"
844
+ "text": "FlowOption | null"
931
845
  },
932
- "default": "'auto'",
933
- "description": "Sets how the animation applies styles to its target before and after its execution.",
934
- "fieldName": "fill"
846
+ "privacy": "private",
847
+ "default": "null"
935
848
  },
936
849
  {
937
- "name": "iterations",
938
- "default": "Infinity",
939
- "description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.",
940
- "resolveInitializer": {
941
- "module": "src/components/animation/animation.component.ts"
850
+ "kind": "field",
851
+ "name": "input",
852
+ "type": {
853
+ "text": "HTMLInputElement"
942
854
  },
943
- "fieldName": "iterations"
855
+ "privacy": "private"
944
856
  },
945
857
  {
946
- "name": "iteration-start",
858
+ "kind": "field",
859
+ "name": "popup",
947
860
  "type": {
948
- "text": "number"
861
+ "text": "FlowPopup"
949
862
  },
950
- "default": "0",
951
- "description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).",
952
- "fieldName": "iterationStart"
863
+ "privacy": "private"
953
864
  },
954
865
  {
955
- "name": "playback-rate",
866
+ "kind": "field",
867
+ "name": "listbox",
956
868
  "type": {
957
- "text": "number"
869
+ "text": "HTMLElement"
958
870
  },
959
- "default": "1",
960
- "description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.",
961
- "fieldName": "playbackRate"
962
- }
963
- ],
964
- "superclass": {
965
- "name": "FlowRdfElement",
966
- "module": "/src/internal/flow-ui-rdf-element"
967
- },
968
- "tagName": "flow-ui-animation",
969
- "summary": "Animate elements declaratively with over 100 animation presets. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).",
970
- "customElement": true
971
- }
972
- ],
973
- "exports": [
974
- {
975
- "kind": "js",
976
- "name": "default",
977
- "declaration": {
978
- "name": "FlowUiAnimation",
979
- "module": "components/animation/animation.component.js"
980
- }
981
- }
982
- ]
983
- },
984
- {
985
- "kind": "javascript-module",
986
- "path": "components/animation/animation.js",
987
- "declarations": [],
988
- "exports": [
989
- {
990
- "kind": "js",
991
- "name": "*",
992
- "declaration": {
993
- "name": "*",
994
- "package": "./animation.component"
995
- }
996
- },
997
- {
998
- "kind": "js",
999
- "name": "default",
1000
- "declaration": {
1001
- "name": "FlowUiAnimation",
1002
- "module": "components/animation/animation.js"
1003
- }
1004
- }
1005
- ]
1006
- },
1007
- {
1008
- "kind": "javascript-module",
1009
- "path": "components/animation/animations.js",
1010
- "declarations": [
1011
- {
1012
- "kind": "function",
1013
- "name": "getAnimationNames",
1014
- "description": "Returns a list of all supported animation names.\n\nSupply the required animation as the `name` property of the\n`<flow-ui-animation>` component."
1015
- },
1016
- {
1017
- "kind": "function",
1018
- "name": "getEasingNames",
1019
- "description": "Returns a list of all supported easing method names.\n\nSupply the required easing method as the `easing` property of the\n`<flow-ui-animation>` component."
1020
- }
1021
- ],
1022
- "exports": [
1023
- {
1024
- "kind": "js",
1025
- "name": "animations",
1026
- "declaration": {
1027
- "name": "animations",
1028
- "module": "components/animation/animations.js"
1029
- }
1030
- },
1031
- {
1032
- "kind": "js",
1033
- "name": "getAnimationNames",
1034
- "declaration": {
1035
- "name": "getAnimationNames",
1036
- "module": "components/animation/animations.js"
1037
- }
1038
- },
1039
- {
1040
- "kind": "js",
1041
- "name": "getEasingNames",
1042
- "declaration": {
1043
- "name": "getEasingNames",
1044
- "module": "components/animation/animations.js"
1045
- }
1046
- }
1047
- ]
1048
- },
1049
- {
1050
- "kind": "javascript-module",
1051
- "path": "components/autocomplete/autocomplete.component.js",
1052
- "declarations": [
1053
- {
1054
- "kind": "class",
1055
- "description": "The autocomplete component does not filter its options itself. Listen for the `flow-ui-input` event, read the text\nthat the user has typed with `getInputText()`, and replace the slotted `<flow-ui-option>` elements with the options\nthat match. The autocomplete's value is the option value of the selected option. Use `displayWith` to show a label\nin the input instead of the option value.",
1056
- "name": "FlowUiAutocomplete",
1057
- "cssParts": [
871
+ "privacy": "private"
872
+ },
1058
873
  {
1059
- "description": "The form control that wraps the label, input, and help text.",
1060
- "name": "form-control"
874
+ "kind": "method",
875
+ "name": "getForm",
876
+ "return": {
877
+ "type": {
878
+ "text": "HTMLFormElement | null"
879
+ }
880
+ },
881
+ "description": "Gets the associated form, if one exists."
1061
882
  },
1062
883
  {
1063
- "description": "The label's wrapper.",
1064
- "name": "label"
884
+ "kind": "field",
885
+ "name": "validity",
886
+ "description": "Gets the validity state object.",
887
+ "readonly": true
1065
888
  },
1066
889
  {
1067
- "description": "The help text's wrapper.",
1068
- "name": "help-text"
890
+ "kind": "field",
891
+ "name": "validationMessage",
892
+ "description": "Gets the validation message.",
893
+ "readonly": true
1069
894
  },
1070
895
  {
1071
- "description": "The input's wrapper.",
1072
- "name": "control"
896
+ "kind": "method",
897
+ "name": "checkValidity",
898
+ "return": {
899
+ "type": {
900
+ "text": "boolean"
901
+ }
902
+ },
903
+ "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
1073
904
  },
1074
905
  {
1075
- "description": "The container that wraps the prefix, suffix, input and clear button.",
1076
- "name": "combobox"
906
+ "kind": "method",
907
+ "name": "reportValidity",
908
+ "return": {
909
+ "type": {
910
+ "text": "boolean"
911
+ }
912
+ },
913
+ "description": "Checks for validity and shows the browser's validation message if the control is invalid."
1077
914
  },
1078
915
  {
1079
- "description": "The container that wraps the prefix.",
1080
- "name": "prefix"
916
+ "kind": "method",
917
+ "name": "setCustomValidity",
918
+ "parameters": [
919
+ {
920
+ "name": "_",
921
+ "type": {
922
+ "text": "string"
923
+ }
924
+ }
925
+ ],
926
+ "description": "Sets a custom validation message. Pass an empty string to restore validity."
1081
927
  },
1082
928
  {
1083
- "description": "The container that wraps the suffix.",
1084
- "name": "suffix"
929
+ "kind": "method",
930
+ "name": "handleClearClick",
931
+ "parameters": [
932
+ {
933
+ "name": "event",
934
+ "type": {
935
+ "text": "MouseEvent"
936
+ }
937
+ }
938
+ ]
1085
939
  },
1086
940
  {
1087
- "description": "The text input, an `<input>` element.",
1088
- "name": "display-input"
941
+ "kind": "method",
942
+ "name": "focus",
943
+ "description": "Focuses on the control"
1089
944
  },
1090
945
  {
1091
- "description": "The listbox container where options are slotted.",
1092
- "name": "listbox"
946
+ "kind": "method",
947
+ "name": "blur",
948
+ "description": "Blurs from the control."
1093
949
  },
1094
950
  {
1095
- "description": "The clear button.",
1096
- "name": "clear-button"
951
+ "kind": "method",
952
+ "name": "show",
953
+ "description": "Shows the listbox."
954
+ },
955
+ {
956
+ "kind": "method",
957
+ "name": "hide",
958
+ "description": "Hides the listbox."
959
+ },
960
+ {
961
+ "kind": "method",
962
+ "name": "getInputText",
963
+ "description": "Gets the current value of the text input"
1097
964
  }
1098
965
  ],
1099
- "slots": [
966
+ "events": [
1100
967
  {
1101
- "description": "The listbox options. Must be `<flow-ui-option>` elements. You can use `<flow-ui-divider>` to group items visually.",
1102
- "name": ""
968
+ "description": "Emitted when the input text changes. When the user types, the event is emitted after the `debounce-delay`. Call `getInputText()` to read the text, for example to update the options.",
969
+ "name": "flow-ui-input",
970
+ "reactName": "onFlowUiInput"
1103
971
  },
1104
972
  {
1105
- "description": "The autocomplete's label. Alternatively, you can use the `label` attribute.",
1106
- "name": "label"
973
+ "description": "Emitted when the autocomplete's value changes.",
974
+ "name": "flow-ui-change",
975
+ "reactName": "onFlowUiChange"
1107
976
  },
1108
977
  {
1109
- "description": "Used to prepend a presentational icon or similar element to the combobox.",
1110
- "name": "prefix"
978
+ "description": "Emitted when the autocomplete gains focus.",
979
+ "name": "flow-ui-focus",
980
+ "reactName": "onFlowUiFocus"
1111
981
  },
1112
982
  {
1113
- "description": "Used to append a presentational icon or similar element to the combobox.",
1114
- "name": "suffix"
983
+ "description": "Emitted when the autocomplete loses focus.",
984
+ "name": "flow-ui-blur",
985
+ "reactName": "onFlowUiBlur"
1115
986
  },
1116
987
  {
1117
- "description": "An icon to use in lieu of the default clear icon.",
1118
- "name": "clear-icon"
988
+ "description": "Emitted when the listbox opens.",
989
+ "name": "flow-ui-show",
990
+ "reactName": "onFlowUiShow"
1119
991
  },
1120
992
  {
1121
- "description": "Text that describes how to use the autocomplete. Alternatively, you can use the `help-text` attribute.",
1122
- "name": "help-text"
993
+ "description": "Emitted after the listbox opens and all animations are complete.",
994
+ "name": "flow-ui-after-show",
995
+ "reactName": "onFlowUiAfterShow"
996
+ },
997
+ {
998
+ "description": "Emitted when the listbox closes.",
999
+ "name": "flow-ui-hide",
1000
+ "reactName": "onFlowUiHide"
1001
+ },
1002
+ {
1003
+ "description": "Emitted after the listbox closes and all animations are complete.",
1004
+ "name": "flow-ui-after-hide",
1005
+ "reactName": "onFlowUiAfterHide"
1123
1006
  }
1124
1007
  ],
1125
- "members": [
1008
+ "attributes": [
1126
1009
  {
1127
- "kind": "field",
1128
- "name": "tagName",
1010
+ "name": "size",
1011
+ "type": {
1012
+ "text": "'small' | 'medium' | 'large'"
1013
+ },
1014
+ "default": "'medium'",
1015
+ "description": "The autocomplete's size.",
1016
+ "fieldName": "size"
1017
+ },
1018
+ {
1019
+ "name": "filled",
1020
+ "type": {
1021
+ "text": "boolean"
1022
+ },
1023
+ "default": "false",
1024
+ "description": "Draws a filled autocomplete input.",
1025
+ "fieldName": "filled"
1026
+ },
1027
+ {
1028
+ "name": "pill",
1029
+ "type": {
1030
+ "text": "boolean"
1031
+ },
1032
+ "default": "false",
1033
+ "description": "Draws a pill-style autocomplete input with rounded edges.",
1034
+ "fieldName": "pill"
1035
+ },
1036
+ {
1037
+ "name": "label",
1129
1038
  "type": {
1130
1039
  "text": "string"
1131
1040
  },
1132
- "static": true,
1133
- "default": "'flow-ui-autocomplete'"
1041
+ "default": "''",
1042
+ "description": "The autocomplete's label. If you need to display HTML, use the `label` slot instead.",
1043
+ "fieldName": "label"
1134
1044
  },
1135
1045
  {
1136
- "kind": "field",
1137
- "name": "dependencies",
1046
+ "name": "help-text",
1138
1047
  "type": {
1139
- "text": "array"
1048
+ "text": "string"
1140
1049
  },
1141
- "static": true,
1142
- "default": "[FlowUiDivider, FlowIcon, FlowPopup]"
1050
+ "default": "''",
1051
+ "description": "The autocomplete's help text. If you need to display HTML, use the `help-text` slot instead.",
1052
+ "fieldName": "helpText"
1143
1053
  },
1144
1054
  {
1145
- "kind": "field",
1146
- "name": "hasSlotController",
1147
- "privacy": "private",
1148
- "readonly": true,
1149
- "default": "new HasSlotController(this, 'help-text', 'label')"
1055
+ "name": "placeholder",
1056
+ "type": {
1057
+ "text": "string"
1058
+ },
1059
+ "default": "''",
1060
+ "description": "The autocomplete's placeholder text.",
1061
+ "fieldName": "placeholder"
1150
1062
  },
1151
1063
  {
1152
- "kind": "field",
1153
- "name": "localize",
1154
- "privacy": "private",
1155
- "readonly": true,
1156
- "default": "new LocalizeController(this)"
1064
+ "name": "disabled",
1065
+ "type": {
1066
+ "text": "boolean"
1067
+ },
1068
+ "default": "false",
1069
+ "description": "Disables the autocomplete.",
1070
+ "fieldName": "disabled"
1157
1071
  },
1158
1072
  {
1159
- "kind": "field",
1160
- "name": "pendingChangeEvent",
1073
+ "name": "form",
1074
+ "type": {
1075
+ "text": "string"
1076
+ },
1077
+ "description": "The \"form owner\" to associate the autocomplete with. If omitted, the closest containing form will be used\ninstead. The value of this attribute must be an id of a form in the same document or shadow root as the\nautocomplete.",
1078
+ "fieldName": "form"
1079
+ },
1080
+ {
1081
+ "name": "required",
1161
1082
  "type": {
1162
1083
  "text": "boolean"
1163
1084
  },
1164
- "privacy": "private",
1165
- "default": "false"
1085
+ "default": "false",
1086
+ "description": "Makes the autocomplete a required field.",
1087
+ "fieldName": "required"
1166
1088
  },
1167
1089
  {
1168
- "kind": "field",
1169
- "name": "pendingInputEvent",
1090
+ "name": "inline",
1170
1091
  "type": {
1171
1092
  "text": "boolean"
1172
1093
  },
1173
- "privacy": "private",
1174
- "default": "false"
1094
+ "default": "false",
1095
+ "description": "Set to `true` to display the autocomplete in the inline form control style.",
1096
+ "fieldName": "inline"
1175
1097
  },
1176
1098
  {
1177
- "kind": "field",
1178
- "name": "hasOptions",
1099
+ "name": "divider",
1179
1100
  "type": {
1180
1101
  "text": "boolean"
1181
1102
  },
1182
- "privacy": "private",
1183
- "default": "false"
1103
+ "default": "false",
1104
+ "description": "Set to `true` to display a divider below the control.",
1105
+ "fieldName": "divider"
1184
1106
  },
1185
1107
  {
1186
- "kind": "field",
1187
- "name": "formControlController",
1188
- "privacy": "private",
1189
- "readonly": true,
1190
- "default": "new FormControlController(this, {\n assumeInteractionOn: ['flow-ui-blur', 'flow-ui-input']\n })"
1108
+ "name": "hoist",
1109
+ "type": {
1110
+ "text": "boolean"
1111
+ },
1112
+ "default": "false",
1113
+ "description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
1114
+ "fieldName": "hoist"
1191
1115
  },
1192
1116
  {
1193
- "kind": "field",
1194
- "name": "size",
1117
+ "name": "placement",
1195
1118
  "type": {
1196
- "text": "'small' | 'medium' | 'large'"
1119
+ "text": "'top' | 'bottom'"
1197
1120
  },
1198
- "default": "'medium'",
1199
- "description": "The autocomplete's size.",
1200
- "attribute": "size",
1201
- "reflects": true
1121
+ "default": "'bottom'",
1122
+ "description": "The preferred placement of the autocomplete's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
1123
+ "fieldName": "placement"
1202
1124
  },
1203
1125
  {
1204
- "kind": "field",
1205
- "name": "filled",
1126
+ "name": "value",
1127
+ "type": {
1128
+ "text": "string"
1129
+ },
1130
+ "default": "''",
1131
+ "description": "The option value of the selected option.",
1132
+ "fieldName": "value"
1133
+ },
1134
+ {
1135
+ "name": "displayWith",
1136
+ "type": {
1137
+ "text": "((value: string) => string) | ((value: string) => Promise<string>)"
1138
+ },
1139
+ "description": "The function that returns the text to show in the input for a given `value`. It can return a promise. If not set,\nthe input shows the value itself.",
1140
+ "fieldName": "displayWith"
1141
+ },
1142
+ {
1143
+ "name": "debounce-delay",
1144
+ "type": {
1145
+ "text": "number"
1146
+ },
1147
+ "default": "0",
1148
+ "description": "The delay in milliseconds between the user's last keystroke and the `flow-ui-input` event.",
1149
+ "fieldName": "debounceDelay"
1150
+ },
1151
+ {
1152
+ "name": "clearable",
1206
1153
  "type": {
1207
1154
  "text": "boolean"
1208
1155
  },
1209
1156
  "default": "false",
1210
- "description": "Draws a filled autocomplete input.",
1211
- "attribute": "filled",
1212
- "reflects": true
1157
+ "description": "Set to `true` to show a clear button when the autocomplete has a value.",
1158
+ "fieldName": "clearable"
1213
1159
  },
1214
1160
  {
1215
- "kind": "field",
1216
- "name": "pill",
1161
+ "name": "clear-on-focus",
1217
1162
  "type": {
1218
1163
  "text": "boolean"
1219
1164
  },
1220
1165
  "default": "false",
1221
- "description": "Draws a pill-style autocomplete input with rounded edges.",
1222
- "attribute": "pill",
1223
- "reflects": true
1224
- },
1166
+ "description": "Set to `true` to clear the value when the autocomplete gains focus.",
1167
+ "fieldName": "clearOnFocus"
1168
+ }
1169
+ ],
1170
+ "superclass": {
1171
+ "name": "FlowRdfFormControl",
1172
+ "module": "/src/internal/flow-ui-rdf-element"
1173
+ },
1174
+ "tagName": "flow-ui-autocomplete",
1175
+ "summary": "Autocompletes allow users to type into a text input and choose a value from a list of suggested [options](./flow-ui-option).",
1176
+ "dependencies": [
1177
+ "flow-ui-divider",
1178
+ "flow-ui-icon",
1179
+ "flow-ui-popup"
1180
+ ],
1181
+ "customElement": true
1182
+ }
1183
+ ],
1184
+ "exports": [
1185
+ {
1186
+ "kind": "js",
1187
+ "name": "default",
1188
+ "declaration": {
1189
+ "name": "FlowUiAutocomplete",
1190
+ "module": "components/autocomplete/autocomplete.component.js"
1191
+ }
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "kind": "javascript-module",
1197
+ "path": "components/autocomplete/autocomplete.js",
1198
+ "declarations": [],
1199
+ "exports": [
1200
+ {
1201
+ "kind": "js",
1202
+ "name": "*",
1203
+ "declaration": {
1204
+ "name": "*",
1205
+ "package": "./autocomplete.component"
1206
+ }
1207
+ },
1208
+ {
1209
+ "kind": "js",
1210
+ "name": "default",
1211
+ "declaration": {
1212
+ "name": "FlowUiAutocomplete",
1213
+ "module": "components/autocomplete/autocomplete.js"
1214
+ }
1215
+ }
1216
+ ]
1217
+ },
1218
+ {
1219
+ "kind": "javascript-module",
1220
+ "path": "components/animation/animation.component.js",
1221
+ "declarations": [
1222
+ {
1223
+ "kind": "class",
1224
+ "description": "",
1225
+ "name": "FlowUiAnimation",
1226
+ "slots": [
1225
1227
  {
1226
- "kind": "field",
1227
- "name": "label",
1228
- "type": {
1229
- "text": "string"
1230
- },
1231
- "default": "''",
1232
- "description": "The autocomplete's label. If you need to display HTML, use the `label` slot instead.",
1233
- "attribute": "label"
1234
- },
1228
+ "description": "The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<flow-ui-animation>` elements.",
1229
+ "name": ""
1230
+ }
1231
+ ],
1232
+ "members": [
1235
1233
  {
1236
1234
  "kind": "field",
1237
- "name": "helpText",
1235
+ "name": "tagName",
1238
1236
  "type": {
1239
1237
  "text": "string"
1240
1238
  },
1241
- "default": "''",
1242
- "description": "The autocomplete's help text. If you need to display HTML, use the `help-text` slot instead.",
1243
- "attribute": "help-text"
1239
+ "static": true,
1240
+ "default": "'flow-ui-animation'"
1244
1241
  },
1245
1242
  {
1246
1243
  "kind": "field",
1247
- "name": "placeholder",
1244
+ "name": "animation",
1248
1245
  "type": {
1249
- "text": "string"
1246
+ "text": "Animation | undefined"
1250
1247
  },
1251
- "default": "''",
1252
- "description": "The autocomplete's placeholder text.",
1253
- "attribute": "placeholder"
1248
+ "privacy": "private"
1254
1249
  },
1255
1250
  {
1256
1251
  "kind": "field",
1257
- "name": "disabled",
1252
+ "name": "hasStarted",
1258
1253
  "type": {
1259
1254
  "text": "boolean"
1260
1255
  },
1261
- "default": "false",
1262
- "description": "Disables the autocomplete.",
1263
- "attribute": "disabled",
1264
- "reflects": true
1256
+ "privacy": "private",
1257
+ "default": "false"
1265
1258
  },
1266
1259
  {
1267
1260
  "kind": "field",
1268
- "name": "form",
1261
+ "name": "defaultSlot",
1269
1262
  "type": {
1270
- "text": "string"
1263
+ "text": "Promise<HTMLSlotElement>"
1271
1264
  },
1272
- "description": "The \"form owner\" to associate the autocomplete with. If omitted, the closest containing form will be used\ninstead. The value of this attribute must be an id of a form in the same document or shadow root as the\nautocomplete.",
1273
- "attribute": "form"
1265
+ "privacy": "private"
1274
1266
  },
1275
1267
  {
1276
1268
  "kind": "field",
1277
- "name": "required",
1269
+ "name": "name",
1278
1270
  "type": {
1279
- "text": "boolean"
1271
+ "text": "string"
1280
1272
  },
1281
- "default": "false",
1282
- "description": "Makes the autocomplete a required field.",
1283
- "attribute": "required",
1284
- "reflects": true
1273
+ "default": "'none'",
1274
+ "description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.\nUse `getAnimationNames()` to retrieve a list of available animations.",
1275
+ "attribute": "name"
1285
1276
  },
1286
1277
  {
1287
1278
  "kind": "field",
1288
- "name": "inline",
1279
+ "name": "play",
1289
1280
  "type": {
1290
1281
  "text": "boolean"
1291
1282
  },
1292
1283
  "default": "false",
1293
- "description": "Set to `true` to display the autocomplete in the inline form control style.",
1294
- "attribute": "inline",
1284
+ "description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.",
1285
+ "attribute": "play",
1295
1286
  "reflects": true
1296
1287
  },
1297
1288
  {
1298
1289
  "kind": "field",
1299
- "name": "divider",
1290
+ "name": "delay",
1300
1291
  "type": {
1301
- "text": "boolean"
1292
+ "text": "number"
1302
1293
  },
1303
- "default": "false",
1304
- "description": "Set to `true` to display a divider below the control.",
1305
- "attribute": "divider",
1306
- "reflects": true
1294
+ "default": "0",
1295
+ "description": "The number of milliseconds to delay the start of the animation.",
1296
+ "attribute": "delay"
1307
1297
  },
1308
1298
  {
1309
1299
  "kind": "field",
1310
- "name": "hoist",
1300
+ "name": "direction",
1311
1301
  "type": {
1312
- "text": "boolean"
1302
+ "text": "PlaybackDirection"
1313
1303
  },
1314
- "default": "false",
1315
- "description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
1316
- "attribute": "hoist"
1304
+ "default": "'normal'",
1305
+ "description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)",
1306
+ "attribute": "direction"
1317
1307
  },
1318
1308
  {
1319
1309
  "kind": "field",
1320
- "name": "placement",
1310
+ "name": "duration",
1321
1311
  "type": {
1322
- "text": "'top' | 'bottom'"
1312
+ "text": "number"
1323
1313
  },
1324
- "default": "'bottom'",
1325
- "description": "The preferred placement of the autocomplete's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
1326
- "attribute": "placement",
1327
- "reflects": true
1314
+ "default": "1000",
1315
+ "description": "The number of milliseconds each iteration of the animation takes to complete.",
1316
+ "attribute": "duration"
1328
1317
  },
1329
1318
  {
1330
1319
  "kind": "field",
1331
- "name": "value",
1320
+ "name": "easing",
1332
1321
  "type": {
1333
1322
  "text": "string"
1334
1323
  },
1335
- "default": "''",
1336
- "description": "The option value of the selected option.",
1337
- "attribute": "value"
1338
- },
1339
- {
1340
- "kind": "field",
1341
- "name": "displayWith",
1342
- "type": {
1343
- "text": "((value: string) => string) | ((value: string) => Promise<string>)"
1344
- },
1345
- "description": "The function that returns the text to show in the input for a given `value`. It can return a promise. If not set,\nthe input shows the value itself.",
1346
- "attribute": "displayWith"
1324
+ "default": "'linear'",
1325
+ "description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.",
1326
+ "attribute": "easing"
1347
1327
  },
1348
1328
  {
1349
1329
  "kind": "field",
1350
- "name": "debounceDelay",
1330
+ "name": "endDelay",
1351
1331
  "type": {
1352
1332
  "text": "number"
1353
1333
  },
1354
1334
  "default": "0",
1355
- "description": "The delay in milliseconds between the user's last keystroke and the `flow-ui-input` event.",
1356
- "attribute": "debounce-delay",
1357
- "reflects": true
1358
- },
1359
- {
1360
- "kind": "field",
1361
- "name": "clearable",
1362
- "type": {
1363
- "text": "boolean"
1364
- },
1365
- "default": "false",
1366
- "description": "Set to `true` to show a clear button when the autocomplete has a value.",
1367
- "attribute": "clearable",
1368
- "reflects": true
1335
+ "description": "The number of milliseconds to delay after the active period of an animation sequence.",
1336
+ "attribute": "end-delay"
1369
1337
  },
1370
1338
  {
1371
1339
  "kind": "field",
1372
- "name": "clearOnFocus",
1340
+ "name": "fill",
1373
1341
  "type": {
1374
- "text": "boolean"
1342
+ "text": "FillMode"
1375
1343
  },
1376
- "default": "false",
1377
- "description": "Set to `true` to clear the value when the autocomplete gains focus.",
1378
- "attribute": "clear-on-focus",
1379
- "reflects": true
1344
+ "default": "'auto'",
1345
+ "description": "Sets how the animation applies styles to its target before and after its execution.",
1346
+ "attribute": "fill"
1380
1347
  },
1381
1348
  {
1382
1349
  "kind": "field",
1383
- "name": "inputText",
1384
- "type": {
1385
- "text": "string"
1386
- },
1387
- "privacy": "private",
1388
- "default": "''",
1389
- "description": "Current value displayed by the control; this can be what the user is typing or the label of the selected option"
1350
+ "name": "iterations",
1351
+ "default": "Infinity",
1352
+ "description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.",
1353
+ "attribute": "iterations"
1390
1354
  },
1391
1355
  {
1392
1356
  "kind": "field",
1393
- "name": "selectedOption",
1357
+ "name": "iterationStart",
1394
1358
  "type": {
1395
- "text": "FlowOption | null"
1359
+ "text": "number"
1396
1360
  },
1397
- "privacy": "private",
1398
- "default": "null"
1361
+ "default": "0",
1362
+ "description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).",
1363
+ "attribute": "iteration-start"
1399
1364
  },
1400
1365
  {
1401
1366
  "kind": "field",
1402
- "name": "currentOption",
1367
+ "name": "keyframes",
1403
1368
  "type": {
1404
- "text": "FlowOption | null"
1369
+ "text": "Keyframe[] | undefined"
1405
1370
  },
1406
- "privacy": "private",
1407
- "default": "null"
1371
+ "description": "The keyframes to use for the animation. If this is set, `name` will be ignored."
1408
1372
  },
1409
1373
  {
1410
1374
  "kind": "field",
1411
- "name": "input",
1375
+ "name": "playbackRate",
1412
1376
  "type": {
1413
- "text": "HTMLInputElement"
1377
+ "text": "number"
1414
1378
  },
1415
- "privacy": "private"
1379
+ "default": "1",
1380
+ "description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.",
1381
+ "attribute": "playback-rate"
1416
1382
  },
1417
1383
  {
1418
1384
  "kind": "field",
1419
- "name": "popup",
1385
+ "name": "currentTime",
1420
1386
  "type": {
1421
- "text": "FlowPopup"
1387
+ "text": "CSSNumberish"
1422
1388
  },
1423
- "privacy": "private"
1389
+ "description": "Gets and sets the current animation time."
1424
1390
  },
1425
1391
  {
1426
1392
  "kind": "field",
1427
- "name": "listbox",
1428
- "type": {
1429
- "text": "HTMLElement"
1430
- },
1393
+ "name": "handleAnimationFinish",
1431
1394
  "privacy": "private"
1432
1395
  },
1433
- {
1434
- "kind": "method",
1435
- "name": "getForm",
1436
- "return": {
1437
- "type": {
1438
- "text": "HTMLFormElement | null"
1439
- }
1440
- },
1441
- "description": "Gets the associated form, if one exists."
1442
- },
1443
- {
1444
- "kind": "field",
1445
- "name": "validity",
1446
- "description": "Gets the validity state object.",
1447
- "readonly": true
1448
- },
1449
1396
  {
1450
1397
  "kind": "field",
1451
- "name": "validationMessage",
1452
- "description": "Gets the validation message.",
1453
- "readonly": true
1454
- },
1455
- {
1456
- "kind": "method",
1457
- "name": "checkValidity",
1458
- "return": {
1459
- "type": {
1460
- "text": "boolean"
1461
- }
1462
- },
1463
- "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
1464
- },
1465
- {
1466
- "kind": "method",
1467
- "name": "reportValidity",
1468
- "return": {
1469
- "type": {
1470
- "text": "boolean"
1471
- }
1472
- },
1473
- "description": "Checks for validity and shows the browser's validation message if the control is invalid."
1474
- },
1475
- {
1476
- "kind": "method",
1477
- "name": "setCustomValidity",
1478
- "parameters": [
1479
- {
1480
- "name": "_",
1481
- "type": {
1482
- "text": "string"
1483
- }
1484
- }
1485
- ],
1486
- "description": "Sets a custom validation message. Pass an empty string to restore validity."
1487
- },
1488
- {
1489
- "kind": "method",
1490
- "name": "handleClearClick",
1491
- "parameters": [
1492
- {
1493
- "name": "event",
1494
- "type": {
1495
- "text": "MouseEvent"
1496
- }
1497
- }
1498
- ]
1398
+ "name": "handleAnimationCancel",
1399
+ "privacy": "private"
1499
1400
  },
1500
1401
  {
1501
1402
  "kind": "method",
1502
- "name": "focus",
1503
- "description": "Focuses on the control"
1403
+ "name": "handleSlotChange",
1404
+ "privacy": "private"
1504
1405
  },
1505
1406
  {
1506
1407
  "kind": "method",
1507
- "name": "blur",
1508
- "description": "Blurs from the control."
1408
+ "name": "createAnimation",
1409
+ "privacy": "private"
1509
1410
  },
1510
1411
  {
1511
1412
  "kind": "method",
1512
- "name": "show",
1513
- "description": "Shows the listbox."
1413
+ "name": "destroyAnimation",
1414
+ "privacy": "private"
1514
1415
  },
1515
1416
  {
1516
1417
  "kind": "method",
1517
- "name": "hide",
1518
- "description": "Hides the listbox."
1418
+ "name": "cancel",
1419
+ "description": "Clears all keyframe effects caused by this animation and aborts its playback."
1519
1420
  },
1520
1421
  {
1521
1422
  "kind": "method",
1522
- "name": "getInputText",
1523
- "description": "Gets the current value of the text input"
1423
+ "name": "finish",
1424
+ "description": "Sets the playback time to the end of the animation corresponding to the current playback direction."
1524
1425
  }
1525
1426
  ],
1526
1427
  "events": [
1527
1428
  {
1528
- "description": "Emitted when the input text changes. When the user types, the event is emitted after the `debounce-delay`. Call `getInputText()` to read the text, for example to update the options.",
1529
- "name": "flow-ui-input",
1530
- "reactName": "onFlowUiInput"
1531
- },
1532
- {
1533
- "description": "Emitted when the autocomplete's value changes.",
1534
- "name": "flow-ui-change",
1535
- "reactName": "onFlowUiChange"
1536
- },
1537
- {
1538
- "description": "Emitted when the autocomplete gains focus.",
1539
- "name": "flow-ui-focus",
1540
- "reactName": "onFlowUiFocus"
1541
- },
1542
- {
1543
- "description": "Emitted when the autocomplete loses focus.",
1544
- "name": "flow-ui-blur",
1545
- "reactName": "onFlowUiBlur"
1546
- },
1547
- {
1548
- "description": "Emitted when the listbox opens.",
1549
- "name": "flow-ui-show",
1550
- "reactName": "onFlowUiShow"
1551
- },
1552
- {
1553
- "description": "Emitted after the listbox opens and all animations are complete.",
1554
- "name": "flow-ui-after-show",
1555
- "reactName": "onFlowUiAfterShow"
1429
+ "description": "Emitted when the animation is canceled.",
1430
+ "name": "flow-ui-cancel",
1431
+ "reactName": "onFlowUiCancel"
1556
1432
  },
1557
1433
  {
1558
- "description": "Emitted when the listbox closes.",
1559
- "name": "flow-ui-hide",
1560
- "reactName": "onFlowUiHide"
1434
+ "description": "Emitted when the animation finishes.",
1435
+ "name": "flow-ui-finish",
1436
+ "reactName": "onFlowUiFinish"
1561
1437
  },
1562
1438
  {
1563
- "description": "Emitted after the listbox closes and all animations are complete.",
1564
- "name": "flow-ui-after-hide",
1565
- "reactName": "onFlowUiAfterHide"
1439
+ "description": "Emitted when the animation starts or restarts.",
1440
+ "name": "flow-ui-start",
1441
+ "reactName": "onFlowUiStart"
1566
1442
  }
1567
1443
  ],
1568
1444
  "attributes": [
1569
1445
  {
1570
- "name": "size",
1571
- "type": {
1572
- "text": "'small' | 'medium' | 'large'"
1573
- },
1574
- "default": "'medium'",
1575
- "description": "The autocomplete's size.",
1576
- "fieldName": "size"
1577
- },
1578
- {
1579
- "name": "filled",
1580
- "type": {
1581
- "text": "boolean"
1582
- },
1583
- "default": "false",
1584
- "description": "Draws a filled autocomplete input.",
1585
- "fieldName": "filled"
1586
- },
1587
- {
1588
- "name": "pill",
1589
- "type": {
1590
- "text": "boolean"
1591
- },
1592
- "default": "false",
1593
- "description": "Draws a pill-style autocomplete input with rounded edges.",
1594
- "fieldName": "pill"
1595
- },
1596
- {
1597
- "name": "label",
1598
- "type": {
1599
- "text": "string"
1600
- },
1601
- "default": "''",
1602
- "description": "The autocomplete's label. If you need to display HTML, use the `label` slot instead.",
1603
- "fieldName": "label"
1604
- },
1605
- {
1606
- "name": "help-text",
1607
- "type": {
1608
- "text": "string"
1609
- },
1610
- "default": "''",
1611
- "description": "The autocomplete's help text. If you need to display HTML, use the `help-text` slot instead.",
1612
- "fieldName": "helpText"
1613
- },
1614
- {
1615
- "name": "placeholder",
1446
+ "name": "name",
1616
1447
  "type": {
1617
1448
  "text": "string"
1618
1449
  },
1619
- "default": "''",
1620
- "description": "The autocomplete's placeholder text.",
1621
- "fieldName": "placeholder"
1450
+ "default": "'none'",
1451
+ "description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.\nUse `getAnimationNames()` to retrieve a list of available animations.",
1452
+ "fieldName": "name"
1622
1453
  },
1623
1454
  {
1624
- "name": "disabled",
1455
+ "name": "play",
1625
1456
  "type": {
1626
1457
  "text": "boolean"
1627
1458
  },
1628
1459
  "default": "false",
1629
- "description": "Disables the autocomplete.",
1630
- "fieldName": "disabled"
1631
- },
1632
- {
1633
- "name": "form",
1634
- "type": {
1635
- "text": "string"
1636
- },
1637
- "description": "The \"form owner\" to associate the autocomplete with. If omitted, the closest containing form will be used\ninstead. The value of this attribute must be an id of a form in the same document or shadow root as the\nautocomplete.",
1638
- "fieldName": "form"
1460
+ "description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.",
1461
+ "fieldName": "play"
1639
1462
  },
1640
1463
  {
1641
- "name": "required",
1464
+ "name": "delay",
1642
1465
  "type": {
1643
- "text": "boolean"
1466
+ "text": "number"
1644
1467
  },
1645
- "default": "false",
1646
- "description": "Makes the autocomplete a required field.",
1647
- "fieldName": "required"
1468
+ "default": "0",
1469
+ "description": "The number of milliseconds to delay the start of the animation.",
1470
+ "fieldName": "delay"
1648
1471
  },
1649
1472
  {
1650
- "name": "inline",
1473
+ "name": "direction",
1651
1474
  "type": {
1652
- "text": "boolean"
1475
+ "text": "PlaybackDirection"
1653
1476
  },
1654
- "default": "false",
1655
- "description": "Set to `true` to display the autocomplete in the inline form control style.",
1656
- "fieldName": "inline"
1477
+ "default": "'normal'",
1478
+ "description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)",
1479
+ "fieldName": "direction"
1657
1480
  },
1658
1481
  {
1659
- "name": "divider",
1482
+ "name": "duration",
1660
1483
  "type": {
1661
- "text": "boolean"
1484
+ "text": "number"
1662
1485
  },
1663
- "default": "false",
1664
- "description": "Set to `true` to display a divider below the control.",
1665
- "fieldName": "divider"
1486
+ "default": "1000",
1487
+ "description": "The number of milliseconds each iteration of the animation takes to complete.",
1488
+ "fieldName": "duration"
1666
1489
  },
1667
1490
  {
1668
- "name": "hoist",
1491
+ "name": "easing",
1669
1492
  "type": {
1670
- "text": "boolean"
1493
+ "text": "string"
1671
1494
  },
1672
- "default": "false",
1673
- "description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
1674
- "fieldName": "hoist"
1495
+ "default": "'linear'",
1496
+ "description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.",
1497
+ "fieldName": "easing"
1675
1498
  },
1676
1499
  {
1677
- "name": "placement",
1500
+ "name": "end-delay",
1678
1501
  "type": {
1679
- "text": "'top' | 'bottom'"
1502
+ "text": "number"
1680
1503
  },
1681
- "default": "'bottom'",
1682
- "description": "The preferred placement of the autocomplete's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
1683
- "fieldName": "placement"
1504
+ "default": "0",
1505
+ "description": "The number of milliseconds to delay after the active period of an animation sequence.",
1506
+ "fieldName": "endDelay"
1684
1507
  },
1685
1508
  {
1686
- "name": "value",
1509
+ "name": "fill",
1687
1510
  "type": {
1688
- "text": "string"
1511
+ "text": "FillMode"
1689
1512
  },
1690
- "default": "''",
1691
- "description": "The option value of the selected option.",
1692
- "fieldName": "value"
1513
+ "default": "'auto'",
1514
+ "description": "Sets how the animation applies styles to its target before and after its execution.",
1515
+ "fieldName": "fill"
1693
1516
  },
1694
1517
  {
1695
- "name": "displayWith",
1696
- "type": {
1697
- "text": "((value: string) => string) | ((value: string) => Promise<string>)"
1518
+ "name": "iterations",
1519
+ "default": "Infinity",
1520
+ "description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.",
1521
+ "resolveInitializer": {
1522
+ "module": "src/components/animation/animation.component.ts"
1698
1523
  },
1699
- "description": "The function that returns the text to show in the input for a given `value`. It can return a promise. If not set,\nthe input shows the value itself.",
1700
- "fieldName": "displayWith"
1524
+ "fieldName": "iterations"
1701
1525
  },
1702
1526
  {
1703
- "name": "debounce-delay",
1527
+ "name": "iteration-start",
1704
1528
  "type": {
1705
1529
  "text": "number"
1706
1530
  },
1707
1531
  "default": "0",
1708
- "description": "The delay in milliseconds between the user's last keystroke and the `flow-ui-input` event.",
1709
- "fieldName": "debounceDelay"
1710
- },
1711
- {
1712
- "name": "clearable",
1713
- "type": {
1714
- "text": "boolean"
1715
- },
1716
- "default": "false",
1717
- "description": "Set to `true` to show a clear button when the autocomplete has a value.",
1718
- "fieldName": "clearable"
1532
+ "description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).",
1533
+ "fieldName": "iterationStart"
1719
1534
  },
1720
1535
  {
1721
- "name": "clear-on-focus",
1536
+ "name": "playback-rate",
1722
1537
  "type": {
1723
- "text": "boolean"
1538
+ "text": "number"
1724
1539
  },
1725
- "default": "false",
1726
- "description": "Set to `true` to clear the value when the autocomplete gains focus.",
1727
- "fieldName": "clearOnFocus"
1540
+ "default": "1",
1541
+ "description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.",
1542
+ "fieldName": "playbackRate"
1728
1543
  }
1729
1544
  ],
1730
1545
  "superclass": {
1731
- "name": "FlowRdfFormControl",
1546
+ "name": "FlowRdfElement",
1732
1547
  "module": "/src/internal/flow-ui-rdf-element"
1733
1548
  },
1734
- "tagName": "flow-ui-autocomplete",
1735
- "summary": "Autocompletes allow users to type into a text input and choose a value from a list of suggested [options](./flow-ui-option).",
1736
- "dependencies": [
1737
- "flow-ui-divider",
1738
- "flow-ui-icon",
1739
- "flow-ui-popup"
1740
- ],
1549
+ "tagName": "flow-ui-animation",
1550
+ "summary": "Animate elements declaratively with over 100 animation presets. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).",
1741
1551
  "customElement": true
1742
1552
  }
1743
1553
  ],
@@ -1746,31 +1556,73 @@
1746
1556
  "kind": "js",
1747
1557
  "name": "default",
1748
1558
  "declaration": {
1749
- "name": "FlowUiAutocomplete",
1750
- "module": "components/autocomplete/autocomplete.component.js"
1559
+ "name": "FlowUiAnimation",
1560
+ "module": "components/animation/animation.component.js"
1561
+ }
1562
+ }
1563
+ ]
1564
+ },
1565
+ {
1566
+ "kind": "javascript-module",
1567
+ "path": "components/animation/animation.js",
1568
+ "declarations": [],
1569
+ "exports": [
1570
+ {
1571
+ "kind": "js",
1572
+ "name": "*",
1573
+ "declaration": {
1574
+ "name": "*",
1575
+ "package": "./animation.component"
1576
+ }
1577
+ },
1578
+ {
1579
+ "kind": "js",
1580
+ "name": "default",
1581
+ "declaration": {
1582
+ "name": "FlowUiAnimation",
1583
+ "module": "components/animation/animation.js"
1751
1584
  }
1752
1585
  }
1753
1586
  ]
1754
1587
  },
1755
1588
  {
1756
1589
  "kind": "javascript-module",
1757
- "path": "components/autocomplete/autocomplete.js",
1758
- "declarations": [],
1590
+ "path": "components/animation/animations.js",
1591
+ "declarations": [
1592
+ {
1593
+ "kind": "function",
1594
+ "name": "getAnimationNames",
1595
+ "description": "Returns a list of all supported animation names.\n\nSupply the required animation as the `name` property of the\n`<flow-ui-animation>` component."
1596
+ },
1597
+ {
1598
+ "kind": "function",
1599
+ "name": "getEasingNames",
1600
+ "description": "Returns a list of all supported easing method names.\n\nSupply the required easing method as the `easing` property of the\n`<flow-ui-animation>` component."
1601
+ }
1602
+ ],
1759
1603
  "exports": [
1760
1604
  {
1761
1605
  "kind": "js",
1762
- "name": "*",
1606
+ "name": "animations",
1763
1607
  "declaration": {
1764
- "name": "*",
1765
- "package": "./autocomplete.component"
1608
+ "name": "animations",
1609
+ "module": "components/animation/animations.js"
1766
1610
  }
1767
1611
  },
1768
1612
  {
1769
1613
  "kind": "js",
1770
- "name": "default",
1614
+ "name": "getAnimationNames",
1771
1615
  "declaration": {
1772
- "name": "FlowUiAutocomplete",
1773
- "module": "components/autocomplete/autocomplete.js"
1616
+ "name": "getAnimationNames",
1617
+ "module": "components/animation/animations.js"
1618
+ }
1619
+ },
1620
+ {
1621
+ "kind": "js",
1622
+ "name": "getEasingNames",
1623
+ "declaration": {
1624
+ "name": "getEasingNames",
1625
+ "module": "components/animation/animations.js"
1774
1626
  }
1775
1627
  }
1776
1628
  ]
@@ -2552,6 +2404,154 @@
2552
2404
  }
2553
2405
  ]
2554
2406
  },
2407
+ {
2408
+ "kind": "javascript-module",
2409
+ "path": "components/badge/badge.component.js",
2410
+ "declarations": [
2411
+ {
2412
+ "kind": "class",
2413
+ "description": "",
2414
+ "name": "FlowUiBadge",
2415
+ "cssParts": [
2416
+ {
2417
+ "description": "The component's base wrapper.",
2418
+ "name": "base"
2419
+ }
2420
+ ],
2421
+ "slots": [
2422
+ {
2423
+ "description": "The badge's content.",
2424
+ "name": ""
2425
+ }
2426
+ ],
2427
+ "members": [
2428
+ {
2429
+ "kind": "field",
2430
+ "name": "tagName",
2431
+ "type": {
2432
+ "text": "string"
2433
+ },
2434
+ "static": true,
2435
+ "default": "'flow-ui-badge'"
2436
+ },
2437
+ {
2438
+ "kind": "field",
2439
+ "name": "variant",
2440
+ "type": {
2441
+ "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
2442
+ },
2443
+ "default": "'primary'",
2444
+ "description": "The badge's theme variant.",
2445
+ "attribute": "variant",
2446
+ "reflects": true
2447
+ },
2448
+ {
2449
+ "kind": "field",
2450
+ "name": "size",
2451
+ "type": {
2452
+ "text": "'small' | 'medium' | 'large'"
2453
+ },
2454
+ "default": "'medium'",
2455
+ "description": "The badge size.",
2456
+ "attribute": "size",
2457
+ "reflects": true
2458
+ },
2459
+ {
2460
+ "kind": "field",
2461
+ "name": "pill",
2462
+ "type": {
2463
+ "text": "boolean"
2464
+ },
2465
+ "default": "false",
2466
+ "description": "Draws a pill-style badge with rounded edges.",
2467
+ "attribute": "pill",
2468
+ "reflects": true
2469
+ },
2470
+ {
2471
+ "kind": "field",
2472
+ "name": "pulse",
2473
+ "type": {
2474
+ "text": "boolean"
2475
+ },
2476
+ "default": "false",
2477
+ "description": "Makes the badge pulsate to draw attention.",
2478
+ "attribute": "pulse",
2479
+ "reflects": true
2480
+ }
2481
+ ],
2482
+ "attributes": [
2483
+ {
2484
+ "name": "variant",
2485
+ "type": {
2486
+ "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
2487
+ },
2488
+ "default": "'primary'",
2489
+ "description": "The badge's theme variant.",
2490
+ "fieldName": "variant"
2491
+ },
2492
+ {
2493
+ "name": "size",
2494
+ "type": {
2495
+ "text": "'small' | 'medium' | 'large'"
2496
+ },
2497
+ "default": "'medium'",
2498
+ "description": "The badge size.",
2499
+ "fieldName": "size"
2500
+ },
2501
+ {
2502
+ "name": "pill",
2503
+ "type": {
2504
+ "text": "boolean"
2505
+ },
2506
+ "default": "false",
2507
+ "description": "Draws a pill-style badge with rounded edges.",
2508
+ "fieldName": "pill"
2509
+ },
2510
+ {
2511
+ "name": "pulse",
2512
+ "type": {
2513
+ "text": "boolean"
2514
+ },
2515
+ "default": "false",
2516
+ "description": "Makes the badge pulsate to draw attention.",
2517
+ "fieldName": "pulse"
2518
+ }
2519
+ ],
2520
+ "superclass": {
2521
+ "name": "FlowRdfElement",
2522
+ "module": "/src/internal/flow-ui-rdf-element"
2523
+ },
2524
+ "tagName": "flow-ui-badge",
2525
+ "summary": "Badges are used to draw attention and display statuses or counts.",
2526
+ "customElement": true
2527
+ }
2528
+ ],
2529
+ "exports": [
2530
+ {
2531
+ "kind": "js",
2532
+ "name": "default",
2533
+ "declaration": {
2534
+ "name": "FlowUiBadge",
2535
+ "module": "components/badge/badge.component.js"
2536
+ }
2537
+ }
2538
+ ]
2539
+ },
2540
+ {
2541
+ "kind": "javascript-module",
2542
+ "path": "components/badge/badge.js",
2543
+ "declarations": [],
2544
+ "exports": [
2545
+ {
2546
+ "kind": "js",
2547
+ "name": "default",
2548
+ "declaration": {
2549
+ "name": "FlowUiBadge",
2550
+ "module": "components/badge/badge.js"
2551
+ }
2552
+ }
2553
+ ]
2554
+ },
2555
2555
  {
2556
2556
  "kind": "javascript-module",
2557
2557
  "path": "components/busy-overlay/busy-overlay.component.js",
@@ -19012,14 +19012,44 @@
19012
19012
  },
19013
19013
  "privacy": "private"
19014
19014
  },
19015
+ {
19016
+ "kind": "field",
19017
+ "name": "_mapContainer",
19018
+ "type": {
19019
+ "text": "HTMLElement | undefined"
19020
+ },
19021
+ "privacy": "private"
19022
+ },
19023
+ {
19024
+ "kind": "field",
19025
+ "name": "_build",
19026
+ "type": {
19027
+ "text": "MapBuild | undefined"
19028
+ },
19029
+ "privacy": "private"
19030
+ },
19031
+ {
19032
+ "kind": "field",
19033
+ "name": "_abandonedBuilds",
19034
+ "privacy": "private",
19035
+ "default": "new Set<MapBuild>()"
19036
+ },
19015
19037
  {
19016
19038
  "kind": "field",
19017
19039
  "name": "_initialized",
19018
19040
  "type": {
19019
19041
  "text": "Promise<FlowCoreMap>"
19020
19042
  },
19043
+ "privacy": "private"
19044
+ },
19045
+ {
19046
+ "kind": "field",
19047
+ "name": "_initializedResolved",
19048
+ "type": {
19049
+ "text": "boolean"
19050
+ },
19021
19051
  "privacy": "private",
19022
- "default": "new Promise<FlowCoreMap>((resolve) => {\n this._resolveInitialized = resolve;\n })"
19052
+ "default": "false"
19023
19053
  },
19024
19054
  {
19025
19055
  "kind": "field",
@@ -19151,6 +19181,16 @@
19151
19181
  "description": "Set fade duration in milliseconds for the label collision fade-in/fade-out animation.",
19152
19182
  "attribute": "fade-duration"
19153
19183
  },
19184
+ {
19185
+ "kind": "field",
19186
+ "name": "keepAlive",
19187
+ "type": {
19188
+ "text": "boolean"
19189
+ },
19190
+ "default": "false",
19191
+ "description": "Set to `true` to keep the map when the element is removed from the document, for example when an Angular route\nreuse strategy stashes the view that holds it, so that it is shown again, without reloading, when the element is\nput back.\n\nThe `FlowCoreMap` is kept with its map data sources, map layers, plugins and camera, and the element emits no\nsecond `flow-ui-map-load` event. A kept map keeps following application state while the element is detached, so\nchanges made meanwhile are drawn when it is put back.\n\nNote that a kept map is only destroyed by `destroy()`: call it when the application discards an element with a\nkept map, or the map and its WebGL context are never freed. The Angular `FlowMap` component does this when it is\ndestroyed.",
19192
+ "attribute": "keep-alive"
19193
+ },
19154
19194
  {
19155
19195
  "kind": "field",
19156
19196
  "name": "map",
@@ -19172,8 +19212,38 @@
19172
19212
  },
19173
19213
  {
19174
19214
  "kind": "method",
19175
- "name": "initializeMap",
19215
+ "name": "destroy",
19216
+ "privacy": "public",
19217
+ "return": {
19218
+ "type": {
19219
+ "text": "void"
19220
+ }
19221
+ },
19222
+ "description": "Destroys the map, which frees its WebGL context and stops it following application state, and removes its\ncontainer from the element. `map` is then `undefined` and `initialized` waits for a new map. A map that is still\nbeing built is destroyed as soon as it exists, with no `flow-ui-map-load` event.\n\nThe element builds a new map when it is next connected to the document, not before. Call this method when the\napplication discards an element with `keep-alive`; without it, the element calls it when it is removed from the\ndocument. Calling it on an element with no map does nothing."
19223
+ },
19224
+ {
19225
+ "kind": "method",
19226
+ "name": "resetInitialized",
19176
19227
  "privacy": "private"
19228
+ },
19229
+ {
19230
+ "kind": "method",
19231
+ "name": "initializeMap",
19232
+ "privacy": "private",
19233
+ "return": {
19234
+ "type": {
19235
+ "text": "Promise<FlowCoreMap | undefined>"
19236
+ }
19237
+ },
19238
+ "parameters": [
19239
+ {
19240
+ "name": "build",
19241
+ "type": {
19242
+ "text": "MapBuild"
19243
+ }
19244
+ }
19245
+ ],
19246
+ "description": "Builds a map in a new container in the map slot. Resolves to `undefined`, with the map destroyed, if `destroy()`\nabandoned the build while the map was being created."
19177
19247
  }
19178
19248
  ],
19179
19249
  "events": [
@@ -19181,7 +19251,7 @@
19181
19251
  "type": {
19182
19252
  "text": "CustomEvent<{ map: FlowCoreMap }>"
19183
19253
  },
19184
- "description": "Dispatched when the map is first initialized and has completed loading. The Flo.w Core map instance can be retrieved from the event `detail` property.",
19254
+ "description": "Emitted when a map that the element builds has been initialized and has completed loading. It is emitted once for each map: again when the element is removed from the document and put back without `keep-alive` (it builds a new map), and not when it is put back with `keep-alive` (it keeps its map). The `FlowCoreMap` instance can be retrieved from the event `detail` property.",
19185
19255
  "name": "flow-ui-map-load",
19186
19256
  "reactName": "onFlowUiMapLoad"
19187
19257
  }
@@ -19273,6 +19343,15 @@
19273
19343
  "default": "300",
19274
19344
  "description": "Set fade duration in milliseconds for the label collision fade-in/fade-out animation.",
19275
19345
  "fieldName": "fadeDuration"
19346
+ },
19347
+ {
19348
+ "name": "keep-alive",
19349
+ "type": {
19350
+ "text": "boolean"
19351
+ },
19352
+ "default": "false",
19353
+ "description": "Set to `true` to keep the map when the element is removed from the document, for example when an Angular route\nreuse strategy stashes the view that holds it, so that it is shown again, without reloading, when the element is\nput back.\n\nThe `FlowCoreMap` is kept with its map data sources, map layers, plugins and camera, and the element emits no\nsecond `flow-ui-map-load` event. A kept map keeps following application state while the element is detached, so\nchanges made meanwhile are drawn when it is put back.\n\nNote that a kept map is only destroyed by `destroy()`: call it when the application discards an element with a\nkept map, or the map and its WebGL context are never freed. The Angular `FlowMap` component does this when it is\ndestroyed.",
19354
+ "fieldName": "keepAlive"
19276
19355
  }
19277
19356
  ],
19278
19357
  "superclass": {
@@ -32766,6 +32845,6 @@
32766
32845
  ],
32767
32846
  "package": {
32768
32847
  "name": "@emuanalytics/flow-rdf-ui",
32769
- "version": "4.3.1"
32848
+ "version": "4.4.0"
32770
32849
  }
32771
32850
  }