@momentum-design/components 0.102.4 → 0.102.5
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.
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +3 -3
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/input/input.component.js +2 -0
- package/dist/components/input/input.types.d.ts +7 -3
- package/dist/components/searchfield/searchfield.component.d.ts +7 -2
- package/dist/components/searchfield/searchfield.component.js +8 -3
- package/dist/components/searchfield/searchfield.types.d.ts +2 -0
- package/dist/components/searchfield/searchfield.types.js +1 -0
- package/dist/custom-elements.json +233 -201
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/input/index.d.ts +3 -1
- package/dist/react/input/index.js +2 -0
- package/dist/react/password/index.d.ts +2 -1
- package/dist/react/password/index.js +1 -0
- package/dist/react/searchfield/index.d.ts +9 -3
- package/dist/react/searchfield/index.js +8 -2
- package/package.json +1 -1
@@ -22,6 +22,7 @@ declare const Input_base: import("../../utils/mixins/index.types").Constructor<i
|
|
22
22
|
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
23
23
|
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
24
24
|
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
25
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
25
26
|
*
|
26
27
|
* @dependency mdc-icon
|
27
28
|
* @dependency mdc-text
|
@@ -36,6 +36,7 @@ import styles from './input.styles';
|
|
36
36
|
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
37
37
|
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
38
38
|
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
39
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
39
40
|
*
|
40
41
|
* @dependency mdc-icon
|
41
42
|
* @dependency mdc-text
|
@@ -252,6 +253,7 @@ class Input extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
252
253
|
this.value = '';
|
253
254
|
// focus the input field after clearing the text
|
254
255
|
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus();
|
256
|
+
this.dispatchEvent(new CustomEvent('clear', { bubbles: true, composed: true }));
|
255
257
|
}
|
256
258
|
/**
|
257
259
|
* Renders the trailing button to clear the input field if the trailingButton is set to true.
|
@@ -1,12 +1,16 @@
|
|
1
|
-
import type { ValueOf } from '../../utils/types';
|
1
|
+
import type { TypedEvent, ValueOf } from '../../utils/types';
|
2
|
+
import type Input from './input.component';
|
2
3
|
import { AUTO_CAPITALIZE, AUTO_COMPLETE, INPUT_TYPE } from './input.constants';
|
3
4
|
type AutoCapitalizeType = ValueOf<typeof AUTO_CAPITALIZE>;
|
4
5
|
type AutoCompleteType = ValueOf<typeof AUTO_COMPLETE>;
|
5
6
|
type InputType = ValueOf<typeof INPUT_TYPE>;
|
7
|
+
type InputClearEvent = TypedEvent<Input>;
|
8
|
+
type InputChangeEvent = TypedEvent<Input>;
|
6
9
|
interface Events {
|
7
10
|
onInputEvent: InputEvent;
|
8
|
-
onChangeEvent:
|
11
|
+
onChangeEvent: InputChangeEvent;
|
9
12
|
onFocusEvent: FocusEvent;
|
10
13
|
onBlurEvent: FocusEvent;
|
14
|
+
onClearEvent: InputClearEvent;
|
11
15
|
}
|
12
|
-
export type { AutoCapitalizeType, AutoCompleteType, InputType, Events };
|
16
|
+
export type { AutoCapitalizeType, AutoCompleteType, InputType, InputClearEvent, InputChangeEvent, Events };
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CSSResult } from 'lit';
|
2
2
|
import Input from '../input/input.component';
|
3
3
|
/**
|
4
|
-
* searchfield component is used as an input field for search functionality.
|
4
|
+
* `mdc-searchfield` component is used as an input field for search functionality.
|
5
5
|
*
|
6
6
|
* It supports `mdc-inputchip` as filters.
|
7
7
|
*
|
@@ -9,8 +9,13 @@ import Input from '../input/input.component';
|
|
9
9
|
*
|
10
10
|
* @tagname mdc-searchfield
|
11
11
|
*
|
12
|
-
* @
|
12
|
+
* @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
|
13
|
+
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
14
|
+
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
15
|
+
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
16
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
13
17
|
*
|
18
|
+
* @slot filters - Slot for input chips
|
14
19
|
*/
|
15
20
|
declare class Searchfield extends Input {
|
16
21
|
inputChips?: Array<HTMLElement>;
|
@@ -15,7 +15,7 @@ import { KEYS } from '../../utils/keys';
|
|
15
15
|
import styles from './searchfield.styles';
|
16
16
|
import { DEFAULTS } from './searchfield.constants';
|
17
17
|
/**
|
18
|
-
* searchfield component is used as an input field for search functionality.
|
18
|
+
* `mdc-searchfield` component is used as an input field for search functionality.
|
19
19
|
*
|
20
20
|
* It supports `mdc-inputchip` as filters.
|
21
21
|
*
|
@@ -23,8 +23,13 @@ import { DEFAULTS } from './searchfield.constants';
|
|
23
23
|
*
|
24
24
|
* @tagname mdc-searchfield
|
25
25
|
*
|
26
|
-
* @
|
26
|
+
* @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
|
27
|
+
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
28
|
+
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
29
|
+
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
30
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
27
31
|
*
|
32
|
+
* @slot filters - Slot for input chips
|
28
33
|
*/
|
29
34
|
class Searchfield extends Input {
|
30
35
|
constructor() {
|
@@ -46,7 +51,7 @@ class Searchfield extends Input {
|
|
46
51
|
*/
|
47
52
|
handleKeyDown(event) {
|
48
53
|
super.handleKeyDown(event);
|
49
|
-
if (event.key ===
|
54
|
+
if (event.key === KEYS.ESCAPE) {
|
50
55
|
this.clearInputText();
|
51
56
|
}
|
52
57
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -477,157 +477,6 @@
|
|
477
477
|
}
|
478
478
|
]
|
479
479
|
},
|
480
|
-
{
|
481
|
-
"kind": "javascript-module",
|
482
|
-
"path": "components/accordiongroup/accordiongroup.component.js",
|
483
|
-
"declarations": [
|
484
|
-
{
|
485
|
-
"kind": "class",
|
486
|
-
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
487
|
-
"name": "AccordionGroup",
|
488
|
-
"cssProperties": [
|
489
|
-
{
|
490
|
-
"description": "The border color of the entire accordiongroup",
|
491
|
-
"name": "--mdc-accordiongroup-border-color"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"slots": [
|
495
|
-
{
|
496
|
-
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
497
|
-
"name": "default"
|
498
|
-
}
|
499
|
-
],
|
500
|
-
"members": [
|
501
|
-
{
|
502
|
-
"kind": "field",
|
503
|
-
"name": "size",
|
504
|
-
"type": {
|
505
|
-
"text": "Size"
|
506
|
-
},
|
507
|
-
"description": "The size of the accordion item.",
|
508
|
-
"default": "'small'",
|
509
|
-
"attribute": "size",
|
510
|
-
"reflects": true
|
511
|
-
},
|
512
|
-
{
|
513
|
-
"kind": "field",
|
514
|
-
"name": "variant",
|
515
|
-
"type": {
|
516
|
-
"text": "Variant"
|
517
|
-
},
|
518
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
519
|
-
"default": "'stacked'",
|
520
|
-
"attribute": "variant",
|
521
|
-
"reflects": true
|
522
|
-
},
|
523
|
-
{
|
524
|
-
"kind": "field",
|
525
|
-
"name": "allowMultiple",
|
526
|
-
"type": {
|
527
|
-
"text": "boolean"
|
528
|
-
},
|
529
|
-
"default": "false",
|
530
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
531
|
-
"attribute": "allow-multiple",
|
532
|
-
"reflects": true
|
533
|
-
},
|
534
|
-
{
|
535
|
-
"kind": "method",
|
536
|
-
"name": "handleAccordionExpanded",
|
537
|
-
"privacy": "private",
|
538
|
-
"return": {
|
539
|
-
"type": {
|
540
|
-
"text": "void"
|
541
|
-
}
|
542
|
-
},
|
543
|
-
"parameters": [
|
544
|
-
{
|
545
|
-
"name": "event",
|
546
|
-
"type": {
|
547
|
-
"text": "Event"
|
548
|
-
},
|
549
|
-
"description": "The event object from the 'shown' event."
|
550
|
-
}
|
551
|
-
],
|
552
|
-
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"kind": "method",
|
556
|
-
"name": "setChildrenAccordionAttributes",
|
557
|
-
"privacy": "private",
|
558
|
-
"return": {
|
559
|
-
"type": {
|
560
|
-
"text": "void"
|
561
|
-
}
|
562
|
-
},
|
563
|
-
"parameters": [
|
564
|
-
{
|
565
|
-
"name": "attributeName",
|
566
|
-
"type": {
|
567
|
-
"text": "string"
|
568
|
-
},
|
569
|
-
"description": "The name of the attribute to set."
|
570
|
-
},
|
571
|
-
{
|
572
|
-
"name": "attributeValue",
|
573
|
-
"type": {
|
574
|
-
"text": "string"
|
575
|
-
},
|
576
|
-
"description": "The value to set the attribute to."
|
577
|
-
}
|
578
|
-
],
|
579
|
-
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
580
|
-
}
|
581
|
-
],
|
582
|
-
"attributes": [
|
583
|
-
{
|
584
|
-
"name": "size",
|
585
|
-
"type": {
|
586
|
-
"text": "Size"
|
587
|
-
},
|
588
|
-
"description": "The size of the accordion item.",
|
589
|
-
"default": "'small'",
|
590
|
-
"fieldName": "size"
|
591
|
-
},
|
592
|
-
{
|
593
|
-
"name": "variant",
|
594
|
-
"type": {
|
595
|
-
"text": "Variant"
|
596
|
-
},
|
597
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
598
|
-
"default": "'stacked'",
|
599
|
-
"fieldName": "variant"
|
600
|
-
},
|
601
|
-
{
|
602
|
-
"name": "allow-multiple",
|
603
|
-
"type": {
|
604
|
-
"text": "boolean"
|
605
|
-
},
|
606
|
-
"default": "false",
|
607
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
608
|
-
"fieldName": "allowMultiple"
|
609
|
-
}
|
610
|
-
],
|
611
|
-
"superclass": {
|
612
|
-
"name": "Component",
|
613
|
-
"module": "/src/models"
|
614
|
-
},
|
615
|
-
"tagName": "mdc-accordiongroup",
|
616
|
-
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
617
|
-
"customElement": true
|
618
|
-
}
|
619
|
-
],
|
620
|
-
"exports": [
|
621
|
-
{
|
622
|
-
"kind": "js",
|
623
|
-
"name": "default",
|
624
|
-
"declaration": {
|
625
|
-
"name": "AccordionGroup",
|
626
|
-
"module": "components/accordiongroup/accordiongroup.component.js"
|
627
|
-
}
|
628
|
-
}
|
629
|
-
]
|
630
|
-
},
|
631
480
|
{
|
632
481
|
"kind": "javascript-module",
|
633
482
|
"path": "components/accordionbutton/accordionbutton.component.js",
|
@@ -968,6 +817,157 @@
|
|
968
817
|
}
|
969
818
|
]
|
970
819
|
},
|
820
|
+
{
|
821
|
+
"kind": "javascript-module",
|
822
|
+
"path": "components/accordiongroup/accordiongroup.component.js",
|
823
|
+
"declarations": [
|
824
|
+
{
|
825
|
+
"kind": "class",
|
826
|
+
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
827
|
+
"name": "AccordionGroup",
|
828
|
+
"cssProperties": [
|
829
|
+
{
|
830
|
+
"description": "The border color of the entire accordiongroup",
|
831
|
+
"name": "--mdc-accordiongroup-border-color"
|
832
|
+
}
|
833
|
+
],
|
834
|
+
"slots": [
|
835
|
+
{
|
836
|
+
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
837
|
+
"name": "default"
|
838
|
+
}
|
839
|
+
],
|
840
|
+
"members": [
|
841
|
+
{
|
842
|
+
"kind": "field",
|
843
|
+
"name": "size",
|
844
|
+
"type": {
|
845
|
+
"text": "Size"
|
846
|
+
},
|
847
|
+
"description": "The size of the accordion item.",
|
848
|
+
"default": "'small'",
|
849
|
+
"attribute": "size",
|
850
|
+
"reflects": true
|
851
|
+
},
|
852
|
+
{
|
853
|
+
"kind": "field",
|
854
|
+
"name": "variant",
|
855
|
+
"type": {
|
856
|
+
"text": "Variant"
|
857
|
+
},
|
858
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
859
|
+
"default": "'stacked'",
|
860
|
+
"attribute": "variant",
|
861
|
+
"reflects": true
|
862
|
+
},
|
863
|
+
{
|
864
|
+
"kind": "field",
|
865
|
+
"name": "allowMultiple",
|
866
|
+
"type": {
|
867
|
+
"text": "boolean"
|
868
|
+
},
|
869
|
+
"default": "false",
|
870
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
871
|
+
"attribute": "allow-multiple",
|
872
|
+
"reflects": true
|
873
|
+
},
|
874
|
+
{
|
875
|
+
"kind": "method",
|
876
|
+
"name": "handleAccordionExpanded",
|
877
|
+
"privacy": "private",
|
878
|
+
"return": {
|
879
|
+
"type": {
|
880
|
+
"text": "void"
|
881
|
+
}
|
882
|
+
},
|
883
|
+
"parameters": [
|
884
|
+
{
|
885
|
+
"name": "event",
|
886
|
+
"type": {
|
887
|
+
"text": "Event"
|
888
|
+
},
|
889
|
+
"description": "The event object from the 'shown' event."
|
890
|
+
}
|
891
|
+
],
|
892
|
+
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"kind": "method",
|
896
|
+
"name": "setChildrenAccordionAttributes",
|
897
|
+
"privacy": "private",
|
898
|
+
"return": {
|
899
|
+
"type": {
|
900
|
+
"text": "void"
|
901
|
+
}
|
902
|
+
},
|
903
|
+
"parameters": [
|
904
|
+
{
|
905
|
+
"name": "attributeName",
|
906
|
+
"type": {
|
907
|
+
"text": "string"
|
908
|
+
},
|
909
|
+
"description": "The name of the attribute to set."
|
910
|
+
},
|
911
|
+
{
|
912
|
+
"name": "attributeValue",
|
913
|
+
"type": {
|
914
|
+
"text": "string"
|
915
|
+
},
|
916
|
+
"description": "The value to set the attribute to."
|
917
|
+
}
|
918
|
+
],
|
919
|
+
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
920
|
+
}
|
921
|
+
],
|
922
|
+
"attributes": [
|
923
|
+
{
|
924
|
+
"name": "size",
|
925
|
+
"type": {
|
926
|
+
"text": "Size"
|
927
|
+
},
|
928
|
+
"description": "The size of the accordion item.",
|
929
|
+
"default": "'small'",
|
930
|
+
"fieldName": "size"
|
931
|
+
},
|
932
|
+
{
|
933
|
+
"name": "variant",
|
934
|
+
"type": {
|
935
|
+
"text": "Variant"
|
936
|
+
},
|
937
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
938
|
+
"default": "'stacked'",
|
939
|
+
"fieldName": "variant"
|
940
|
+
},
|
941
|
+
{
|
942
|
+
"name": "allow-multiple",
|
943
|
+
"type": {
|
944
|
+
"text": "boolean"
|
945
|
+
},
|
946
|
+
"default": "false",
|
947
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
948
|
+
"fieldName": "allowMultiple"
|
949
|
+
}
|
950
|
+
],
|
951
|
+
"superclass": {
|
952
|
+
"name": "Component",
|
953
|
+
"module": "/src/models"
|
954
|
+
},
|
955
|
+
"tagName": "mdc-accordiongroup",
|
956
|
+
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
957
|
+
"customElement": true
|
958
|
+
}
|
959
|
+
],
|
960
|
+
"exports": [
|
961
|
+
{
|
962
|
+
"kind": "js",
|
963
|
+
"name": "default",
|
964
|
+
"declaration": {
|
965
|
+
"name": "AccordionGroup",
|
966
|
+
"module": "components/accordiongroup/accordiongroup.component.js"
|
967
|
+
}
|
968
|
+
}
|
969
|
+
]
|
970
|
+
},
|
971
971
|
{
|
972
972
|
"kind": "javascript-module",
|
973
973
|
"path": "components/alertchip/alertchip.component.js",
|
@@ -14650,6 +14650,14 @@
|
|
14650
14650
|
"text": "EventConstructor"
|
14651
14651
|
}
|
14652
14652
|
},
|
14653
|
+
{
|
14654
|
+
"name": "clear",
|
14655
|
+
"type": {
|
14656
|
+
"text": "CustomEvent"
|
14657
|
+
},
|
14658
|
+
"description": "(React: onClear) This event is dispatched when the input text is cleared.",
|
14659
|
+
"reactName": "onClear"
|
14660
|
+
},
|
14653
14661
|
{
|
14654
14662
|
"description": "(React: onInput) This event is dispatched when the value of the input field changes (every press).",
|
14655
14663
|
"name": "input",
|
@@ -14979,7 +14987,7 @@
|
|
14979
14987
|
"module": "/src/components/formfieldwrapper"
|
14980
14988
|
},
|
14981
14989
|
"tagName": "mdc-input",
|
14982
|
-
"jsDoc": "/**\n * mdc-input is a component that allows users to input text.\n * It contains:\n * - label field - describe the input field.\n * - input field - contains the value\n * - help text or validation message - displayed below the input field.\n * - trailing button - it displays a clear the input field.\n * - prefix text - displayed before the input field.\n * - leading icon - displayed before the input field.\n * - clear-aria-label - aria label for the trailing button.\n * - all the attributes of the input field.\n *\n * @tagname mdc-input\n *\n * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).\n * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).\n * @event focus - (React: onFocus) This event is dispatched when the input receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the input loses focus.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-button\n * @dependency mdc-toggletip\n *\n * @cssproperty --mdc-input-disabled-border-color - Border color for the input container when disabled\n * @cssproperty --mdc-input-disabled-text-color - Text color for the input field when disabled\n * @cssproperty --mdc-input-disabled-background-color - Background color for the input field when disabled\n * @cssproperty --mdc-input-border-color - Border color for the input container\n * @cssproperty --mdc-input-text-color - Text color for the input field\n * @cssproperty --mdc-input-background-color - Background color for the input field\n * @cssproperty --mdc-input-selection-background-color - Background color for the selected text\n * @cssproperty --mdc-input-selection-text-color - Text color for the selected text\n * @cssproperty --mdc-input-support-text-color - Text color for the help text\n * @cssproperty --mdc-input-hover-background-color - Background color for the input field when hovered\n * @cssproperty --mdc-input-focused-background-color - Background color for the input field when focused\n * @cssproperty --mdc-input-focused-border-color - Border color for the input container when focused\n * @cssproperty --mdc-input-error-border-color - Border color for the input container when error\n * @cssproperty --mdc-input-warning-border-color - Border color for the input container when warning\n * @cssproperty --mdc-input-success-border-color - Border color for the input container when success\n * @cssproperty --mdc-input-primary-border-color - Border color for the input container when primary\n *\n */",
|
14990
|
+
"jsDoc": "/**\n * mdc-input is a component that allows users to input text.\n * It contains:\n * - label field - describe the input field.\n * - input field - contains the value\n * - help text or validation message - displayed below the input field.\n * - trailing button - it displays a clear the input field.\n * - prefix text - displayed before the input field.\n * - leading icon - displayed before the input field.\n * - clear-aria-label - aria label for the trailing button.\n * - all the attributes of the input field.\n *\n * @tagname mdc-input\n *\n * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).\n * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).\n * @event focus - (React: onFocus) This event is dispatched when the input receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the input loses focus.\n * @event clear - (React: onClear) This event is dispatched when the input text is cleared.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-button\n * @dependency mdc-toggletip\n *\n * @cssproperty --mdc-input-disabled-border-color - Border color for the input container when disabled\n * @cssproperty --mdc-input-disabled-text-color - Text color for the input field when disabled\n * @cssproperty --mdc-input-disabled-background-color - Background color for the input field when disabled\n * @cssproperty --mdc-input-border-color - Border color for the input container\n * @cssproperty --mdc-input-text-color - Text color for the input field\n * @cssproperty --mdc-input-background-color - Background color for the input field\n * @cssproperty --mdc-input-selection-background-color - Background color for the selected text\n * @cssproperty --mdc-input-selection-text-color - Text color for the selected text\n * @cssproperty --mdc-input-support-text-color - Text color for the help text\n * @cssproperty --mdc-input-hover-background-color - Background color for the input field when hovered\n * @cssproperty --mdc-input-focused-background-color - Background color for the input field when focused\n * @cssproperty --mdc-input-focused-border-color - Border color for the input container when focused\n * @cssproperty --mdc-input-error-border-color - Border color for the input container when error\n * @cssproperty --mdc-input-warning-border-color - Border color for the input container when warning\n * @cssproperty --mdc-input-success-border-color - Border color for the input container when success\n * @cssproperty --mdc-input-primary-border-color - Border color for the input container when primary\n *\n */",
|
14983
14991
|
"customElement": true
|
14984
14992
|
}
|
14985
14993
|
],
|
@@ -26058,6 +26066,18 @@
|
|
26058
26066
|
"name": "Input",
|
26059
26067
|
"module": "src/components/input/input.component.ts"
|
26060
26068
|
}
|
26069
|
+
},
|
26070
|
+
{
|
26071
|
+
"name": "clear",
|
26072
|
+
"type": {
|
26073
|
+
"text": "CustomEvent"
|
26074
|
+
},
|
26075
|
+
"description": "(React: onClear) This event is dispatched when the input text is cleared.",
|
26076
|
+
"reactName": "onClear",
|
26077
|
+
"inheritedFrom": {
|
26078
|
+
"name": "Input",
|
26079
|
+
"module": "src/components/input/input.component.ts"
|
26080
|
+
}
|
26061
26081
|
}
|
26062
26082
|
],
|
26063
26083
|
"attributes": [
|
@@ -30580,7 +30600,7 @@
|
|
30580
30600
|
"declarations": [
|
30581
30601
|
{
|
30582
30602
|
"kind": "class",
|
30583
|
-
"description": "searchfield component is used as an input field for search functionality.\n\nIt supports `mdc-inputchip` as filters.\n\nThis component is built by extending the `mdc-input` component.",
|
30603
|
+
"description": "`mdc-searchfield` component is used as an input field for search functionality.\n\nIt supports `mdc-inputchip` as filters.\n\nThis component is built by extending the `mdc-input` component.",
|
30584
30604
|
"name": "Searchfield",
|
30585
30605
|
"slots": [
|
30586
30606
|
{
|
@@ -31279,12 +31299,71 @@
|
|
31279
31299
|
}
|
31280
31300
|
}
|
31281
31301
|
],
|
31302
|
+
"events": [
|
31303
|
+
{
|
31304
|
+
"description": "(React: onInput) This event is dispatched when the value of the input field changes (every press).",
|
31305
|
+
"name": "input",
|
31306
|
+
"reactName": "onInput",
|
31307
|
+
"inheritedFrom": {
|
31308
|
+
"name": "Input",
|
31309
|
+
"module": "src/components/input/input.component.ts"
|
31310
|
+
}
|
31311
|
+
},
|
31312
|
+
{
|
31313
|
+
"description": "(React: onChange) This event is dispatched when the value of the input field changes (on blur).",
|
31314
|
+
"name": "change",
|
31315
|
+
"reactName": "onChange",
|
31316
|
+
"inheritedFrom": {
|
31317
|
+
"name": "Input",
|
31318
|
+
"module": "src/components/input/input.component.ts"
|
31319
|
+
}
|
31320
|
+
},
|
31321
|
+
{
|
31322
|
+
"description": "(React: onFocus) This event is dispatched when the input receives focus.",
|
31323
|
+
"name": "focus",
|
31324
|
+
"reactName": "onFocus",
|
31325
|
+
"inheritedFrom": {
|
31326
|
+
"name": "Input",
|
31327
|
+
"module": "src/components/input/input.component.ts"
|
31328
|
+
}
|
31329
|
+
},
|
31330
|
+
{
|
31331
|
+
"description": "(React: onBlur) This event is dispatched when the input loses focus.",
|
31332
|
+
"name": "blur",
|
31333
|
+
"reactName": "onBlur",
|
31334
|
+
"inheritedFrom": {
|
31335
|
+
"name": "Input",
|
31336
|
+
"module": "src/components/input/input.component.ts"
|
31337
|
+
}
|
31338
|
+
},
|
31339
|
+
{
|
31340
|
+
"name": "clear",
|
31341
|
+
"type": {
|
31342
|
+
"text": "CustomEvent"
|
31343
|
+
},
|
31344
|
+
"description": "(React: onClear) This event is dispatched when the input text is cleared.",
|
31345
|
+
"reactName": "onClear",
|
31346
|
+
"inheritedFrom": {
|
31347
|
+
"name": "Input",
|
31348
|
+
"module": "src/components/input/input.component.ts"
|
31349
|
+
}
|
31350
|
+
},
|
31351
|
+
{
|
31352
|
+
"type": {
|
31353
|
+
"text": "EventConstructor"
|
31354
|
+
},
|
31355
|
+
"inheritedFrom": {
|
31356
|
+
"name": "Input",
|
31357
|
+
"module": "src/components/input/input.component.ts"
|
31358
|
+
}
|
31359
|
+
}
|
31360
|
+
],
|
31282
31361
|
"superclass": {
|
31283
31362
|
"name": "Input",
|
31284
31363
|
"module": "/src/components/input/input.component"
|
31285
31364
|
},
|
31286
31365
|
"tagName": "mdc-searchfield",
|
31287
|
-
"jsDoc": "/**\n * searchfield component is used as an input field for search functionality.\n *\n * It supports `mdc-inputchip` as filters.\n *\n * This component is built by extending the `mdc-input` component.\n *\n * @tagname mdc-searchfield\n *\n * @slot filters - Slot for input chips\n
|
31366
|
+
"jsDoc": "/**\n * `mdc-searchfield` component is used as an input field for search functionality.\n *\n * It supports `mdc-inputchip` as filters.\n *\n * This component is built by extending the `mdc-input` component.\n *\n * @tagname mdc-searchfield\n * \n * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).\n * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).\n * @event focus - (React: onFocus) This event is dispatched when the input receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the input loses focus.\n * @event clear - (React: onClear) This event is dispatched when the input text is cleared.\n *\n * @slot filters - Slot for input chips\n */",
|
31288
31367
|
"customElement": true,
|
31289
31368
|
"attributes": [
|
31290
31369
|
{
|
@@ -31768,53 +31847,6 @@
|
|
31768
31847
|
"module": "src/components/input/input.component.ts"
|
31769
31848
|
}
|
31770
31849
|
}
|
31771
|
-
],
|
31772
|
-
"events": [
|
31773
|
-
{
|
31774
|
-
"type": {
|
31775
|
-
"text": "EventConstructor"
|
31776
|
-
},
|
31777
|
-
"inheritedFrom": {
|
31778
|
-
"name": "Input",
|
31779
|
-
"module": "src/components/input/input.component.ts"
|
31780
|
-
}
|
31781
|
-
},
|
31782
|
-
{
|
31783
|
-
"description": "(React: onInput) This event is dispatched when the value of the input field changes (every press).",
|
31784
|
-
"name": "input",
|
31785
|
-
"reactName": "onInput",
|
31786
|
-
"inheritedFrom": {
|
31787
|
-
"name": "Input",
|
31788
|
-
"module": "src/components/input/input.component.ts"
|
31789
|
-
}
|
31790
|
-
},
|
31791
|
-
{
|
31792
|
-
"description": "(React: onChange) This event is dispatched when the value of the input field changes (on blur).",
|
31793
|
-
"name": "change",
|
31794
|
-
"reactName": "onChange",
|
31795
|
-
"inheritedFrom": {
|
31796
|
-
"name": "Input",
|
31797
|
-
"module": "src/components/input/input.component.ts"
|
31798
|
-
}
|
31799
|
-
},
|
31800
|
-
{
|
31801
|
-
"description": "(React: onFocus) This event is dispatched when the input receives focus.",
|
31802
|
-
"name": "focus",
|
31803
|
-
"reactName": "onFocus",
|
31804
|
-
"inheritedFrom": {
|
31805
|
-
"name": "Input",
|
31806
|
-
"module": "src/components/input/input.component.ts"
|
31807
|
-
}
|
31808
|
-
},
|
31809
|
-
{
|
31810
|
-
"description": "(React: onBlur) This event is dispatched when the input loses focus.",
|
31811
|
-
"name": "blur",
|
31812
|
-
"reactName": "onBlur",
|
31813
|
-
"inheritedFrom": {
|
31814
|
-
"name": "Input",
|
31815
|
-
"module": "src/components/input/input.component.ts"
|
31816
|
-
}
|
31817
|
-
}
|
31818
31850
|
]
|
31819
31851
|
}
|
31820
31852
|
],
|
package/dist/react/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as Accordion } from './accordion';
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
4
4
|
export { default as AlertChip } from './alertchip';
|
5
5
|
export { default as Animation } from './animation';
|
6
6
|
export { default as Appheader } from './appheader';
|
package/dist/react/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as Accordion } from './accordion';
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
4
4
|
export { default as AlertChip } from './alertchip';
|
5
5
|
export { default as Animation } from './animation';
|
6
6
|
export { default as Appheader } from './appheader';
|
@@ -18,6 +18,7 @@ import Component from '../../components/input';
|
|
18
18
|
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
19
19
|
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
20
20
|
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
21
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
21
22
|
*
|
22
23
|
* @dependency mdc-icon
|
23
24
|
* @dependency mdc-text
|
@@ -43,8 +44,9 @@ import Component from '../../components/input';
|
|
43
44
|
*
|
44
45
|
*/
|
45
46
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
47
|
+
onClear: EventName<import("../../components/input/input.types").InputClearEvent>;
|
46
48
|
onInput: EventName<InputEvent>;
|
47
|
-
onChange: EventName<
|
49
|
+
onChange: EventName<import("../../components/input/input.types").InputChangeEvent>;
|
48
50
|
onFocus: EventName<FocusEvent>;
|
49
51
|
onBlur: EventName<FocusEvent>;
|
50
52
|
}>;
|