@noctuatech/uswds 0.0.27 → 0.0.28
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/package.json +5 -5
- package/src/lib/file-input/file-input-preview/file-input-preview.element.ts +11 -2
- package/src/lib/file-input/file-input.element.ts +9 -7
- package/assets/uswds.min.js +0 -1
- package/target/lib/accordion/accordion.element.d.ts +0 -19
- package/target/lib/accordion/accordion.element.js +0 -166
- package/target/lib/accordion/accordion.element.js.map +0 -1
- package/target/lib/accordion/accordion.stories.d.ts +0 -12
- package/target/lib/accordion/accordion.stories.js +0 -42
- package/target/lib/accordion/accordion.stories.js.map +0 -1
- package/target/lib/accordion/accordion.test.d.ts +0 -1
- package/target/lib/accordion/accordion.test.js +0 -113
- package/target/lib/accordion/accordion.test.js.map +0 -1
- package/target/lib/alert/alert-types.d.ts +0 -7
- package/target/lib/alert/alert-types.js +0 -25
- package/target/lib/alert/alert-types.js.map +0 -1
- package/target/lib/alert/alert.element.d.ts +0 -11
- package/target/lib/alert/alert.element.js +0 -122
- package/target/lib/alert/alert.element.js.map +0 -1
- package/target/lib/alert/alert.stories.d.ts +0 -11
- package/target/lib/alert/alert.stories.js +0 -56
- package/target/lib/alert/alert.stories.js.map +0 -1
- package/target/lib/alert/alert.test.d.ts +0 -1
- package/target/lib/alert/alert.test.js +0 -20
- package/target/lib/alert/alert.test.js.map +0 -1
- package/target/lib/button/button.element.d.ts +0 -20
- package/target/lib/button/button.element.js +0 -263
- package/target/lib/button/button.element.js.map +0 -1
- package/target/lib/button/button.stories.d.ts +0 -12
- package/target/lib/button/button.stories.js +0 -22
- package/target/lib/button/button.stories.js.map +0 -1
- package/target/lib/button/button.test.d.ts +0 -1
- package/target/lib/button/button.test.js +0 -14
- package/target/lib/button/button.test.js.map +0 -1
- package/target/lib/card/card-body/card-body.element.d.ts +0 -7
- package/target/lib/card/card-body/card-body.element.js +0 -35
- package/target/lib/card/card-body/card-body.element.js.map +0 -1
- package/target/lib/card/card-footer/card-footer.element.d.ts +0 -7
- package/target/lib/card/card-footer/card-footer.element.js +0 -33
- package/target/lib/card/card-footer/card-footer.element.js.map +0 -1
- package/target/lib/card/card-group/card-group.element.d.ts +0 -8
- package/target/lib/card/card-group/card-group.element.js +0 -51
- package/target/lib/card/card-group/card-group.element.js.map +0 -1
- package/target/lib/card/card-header/card-header.element.d.ts +0 -7
- package/target/lib/card/card-header/card-header.element.js +0 -43
- package/target/lib/card/card-header/card-header.element.js.map +0 -1
- package/target/lib/card/card-media/card-media.element.d.ts +0 -8
- package/target/lib/card/card-media/card-media.element.js +0 -71
- package/target/lib/card/card-media/card-media.element.js.map +0 -1
- package/target/lib/card/card.element.d.ts +0 -9
- package/target/lib/card/card.element.js +0 -79
- package/target/lib/card/card.element.js.map +0 -1
- package/target/lib/card/card.stories.d.ts +0 -12
- package/target/lib/card/card.stories.js +0 -126
- package/target/lib/card/card.stories.js.map +0 -1
- package/target/lib/card/card.test.d.ts +0 -6
- package/target/lib/card/card.test.js +0 -33
- package/target/lib/card/card.test.js.map +0 -1
- package/target/lib/checkbox/checkbox.element.d.ts +0 -17
- package/target/lib/checkbox/checkbox.element.js +0 -206
- package/target/lib/checkbox/checkbox.element.js.map +0 -1
- package/target/lib/checkbox/checkbox.stories.d.ts +0 -31
- package/target/lib/checkbox/checkbox.stories.js +0 -46
- package/target/lib/checkbox/checkbox.stories.js.map +0 -1
- package/target/lib/checkbox/checkbox.test.d.ts +0 -1
- package/target/lib/checkbox/checkbox.test.js +0 -52
- package/target/lib/checkbox/checkbox.test.js.map +0 -1
- package/target/lib/config/config.element.d.ts +0 -6
- package/target/lib/config/config.element.js +0 -53
- package/target/lib/config/config.element.js.map +0 -1
- package/target/lib/config/config.test.d.ts +0 -1
- package/target/lib/config/config.test.js +0 -11
- package/target/lib/config/config.test.js.map +0 -1
- package/target/lib/define.d.ts +0 -32
- package/target/lib/define.js +0 -33
- package/target/lib/define.js.map +0 -1
- package/target/lib/description/description.element.d.ts +0 -7
- package/target/lib/description/description.element.js +0 -34
- package/target/lib/description/description.element.js.map +0 -1
- package/target/lib/description/description.test.d.ts +0 -1
- package/target/lib/description/description.test.js +0 -11
- package/target/lib/description/description.test.js.map +0 -1
- package/target/lib/file-input/file-input-preview/file-input-preview.element.d.ts +0 -12
- package/target/lib/file-input/file-input-preview/file-input-preview.element.js +0 -144
- package/target/lib/file-input/file-input-preview/file-input-preview.element.js.map +0 -1
- package/target/lib/file-input/file-input-preview/file-input-preview.test.d.ts +0 -2
- package/target/lib/file-input/file-input-preview/file-input-preview.test.js +0 -67
- package/target/lib/file-input/file-input-preview/file-input-preview.test.js.map +0 -1
- package/target/lib/file-input/file-input.element.d.ts +0 -16
- package/target/lib/file-input/file-input.element.js +0 -172
- package/target/lib/file-input/file-input.element.js.map +0 -1
- package/target/lib/file-input/file-input.stories.d.ts +0 -12
- package/target/lib/file-input/file-input.stories.js +0 -34
- package/target/lib/file-input/file-input.stories.js.map +0 -1
- package/target/lib/file-input/file-input.test.d.ts +0 -1
- package/target/lib/file-input/file-input.test.js +0 -37
- package/target/lib/file-input/file-input.test.js.map +0 -1
- package/target/lib/icon/icon-types.d.ts +0 -2
- package/target/lib/icon/icon-types.js +0 -262
- package/target/lib/icon/icon-types.js.map +0 -1
- package/target/lib/icon/icon.element.d.ts +0 -13
- package/target/lib/icon/icon.element.js +0 -72
- package/target/lib/icon/icon.element.js.map +0 -1
- package/target/lib/icon/icon.stories.d.ts +0 -12
- package/target/lib/icon/icon.stories.js +0 -39
- package/target/lib/icon/icon.stories.js.map +0 -1
- package/target/lib/input/input.element.d.ts +0 -24
- package/target/lib/input/input.element.js +0 -235
- package/target/lib/input/input.element.js.map +0 -1
- package/target/lib/input/input.stories.d.ts +0 -12
- package/target/lib/input/input.stories.js +0 -25
- package/target/lib/input/input.stories.js.map +0 -1
- package/target/lib/input/input.test.d.ts +0 -1
- package/target/lib/input/input.test.js +0 -50
- package/target/lib/input/input.test.js.map +0 -1
- package/target/lib/input-mask/format.d.ts +0 -15
- package/target/lib/input-mask/format.js +0 -47
- package/target/lib/input-mask/format.js.map +0 -1
- package/target/lib/input-mask/input-mask.element.d.ts +0 -12
- package/target/lib/input-mask/input-mask.element.js +0 -106
- package/target/lib/input-mask/input-mask.element.js.map +0 -1
- package/target/lib/input-mask/input-mask.stories.d.ts +0 -14
- package/target/lib/input-mask/input-mask.stories.js +0 -30
- package/target/lib/input-mask/input-mask.stories.js.map +0 -1
- package/target/lib/input-mask/input-mask.test.d.ts +0 -2
- package/target/lib/input-mask/input-mask.test.js +0 -89
- package/target/lib/input-mask/input-mask.test.js.map +0 -1
- package/target/lib/input-mask/maskable.element.d.ts +0 -5
- package/target/lib/input-mask/maskable.element.js +0 -2
- package/target/lib/input-mask/maskable.element.js.map +0 -1
- package/target/lib/link/link.element.d.ts +0 -13
- package/target/lib/link/link.element.js +0 -93
- package/target/lib/link/link.element.js.map +0 -1
- package/target/lib/link/link.stories.d.ts +0 -16
- package/target/lib/link/link.stories.js +0 -23
- package/target/lib/link/link.stories.js.map +0 -1
- package/target/lib/modal/modal-close/modal-close.element.d.ts +0 -8
- package/target/lib/modal/modal-close/modal-close.element.js +0 -76
- package/target/lib/modal/modal-close/modal-close.element.js.map +0 -1
- package/target/lib/modal/modal-close/modal-close.test.d.ts +0 -1
- package/target/lib/modal/modal-close/modal-close.test.js +0 -11
- package/target/lib/modal/modal-close/modal-close.test.js.map +0 -1
- package/target/lib/modal/modal-heading/modal-heading.element.d.ts +0 -7
- package/target/lib/modal/modal-heading/modal-heading.element.js +0 -50
- package/target/lib/modal/modal-heading/modal-heading.element.js.map +0 -1
- package/target/lib/modal/modal-heading/modal-heading.test.d.ts +0 -1
- package/target/lib/modal/modal-heading/modal-heading.test.js +0 -11
- package/target/lib/modal/modal-heading/modal-heading.test.js.map +0 -1
- package/target/lib/modal/modal.element.d.ts +0 -13
- package/target/lib/modal/modal.element.js +0 -91
- package/target/lib/modal/modal.element.js.map +0 -1
- package/target/lib/modal/modal.stories.d.ts +0 -12
- package/target/lib/modal/modal.stories.js +0 -34
- package/target/lib/modal/modal.stories.js.map +0 -1
- package/target/lib/modal/modal.test.d.ts +0 -3
- package/target/lib/modal/modal.test.js +0 -21
- package/target/lib/modal/modal.test.js.map +0 -1
- package/target/lib/radio/context.d.ts +0 -7
- package/target/lib/radio/context.js +0 -3
- package/target/lib/radio/context.js.map +0 -1
- package/target/lib/radio/radio-option/radio-option.element.d.ts +0 -12
- package/target/lib/radio/radio-option/radio-option.element.js +0 -89
- package/target/lib/radio/radio-option/radio-option.element.js.map +0 -1
- package/target/lib/radio/radio-option/radio-option.test.d.ts +0 -2
- package/target/lib/radio/radio-option/radio-option.test.js +0 -15
- package/target/lib/radio/radio-option/radio-option.test.js.map +0 -1
- package/target/lib/radio/radio.element.d.ts +0 -17
- package/target/lib/radio/radio.element.js +0 -169
- package/target/lib/radio/radio.element.js.map +0 -1
- package/target/lib/radio/radio.stories.d.ts +0 -17
- package/target/lib/radio/radio.stories.js +0 -46
- package/target/lib/radio/radio.stories.js.map +0 -1
- package/target/lib/radio/radio.test.d.ts +0 -2
- package/target/lib/radio/radio.test.js +0 -143
- package/target/lib/radio/radio.test.js.map +0 -1
- package/target/lib/select/context.d.ts +0 -6
- package/target/lib/select/context.js +0 -3
- package/target/lib/select/context.js.map +0 -1
- package/target/lib/select/select-option/select-option.element.d.ts +0 -14
- package/target/lib/select/select-option/select-option.element.js +0 -74
- package/target/lib/select/select-option/select-option.element.js.map +0 -1
- package/target/lib/select/select.element.d.ts +0 -17
- package/target/lib/select/select.element.js +0 -141
- package/target/lib/select/select.element.js.map +0 -1
- package/target/lib/select/select.stories.d.ts +0 -12
- package/target/lib/select/select.stories.js +0 -26
- package/target/lib/select/select.stories.js.map +0 -1
- package/target/lib/select/select.test.d.ts +0 -2
- package/target/lib/select/select.test.js +0 -105
- package/target/lib/select/select.test.js.map +0 -1
- package/target/lib/services/http.service.d.ts +0 -3
- package/target/lib/services/http.service.js +0 -24
- package/target/lib/services/http.service.js.map +0 -1
- package/target/lib/services/icon.service.d.ts +0 -4
- package/target/lib/services/icon.service.js +0 -60
- package/target/lib/services/icon.service.js.map +0 -1
- package/target/lib/services/icon.service.test.d.ts +0 -1
- package/target/lib/services/icon.service.test.js +0 -52
- package/target/lib/services/icon.service.test.js.map +0 -1
- package/target/lib/side-nav/side-nav-item/side-nav-item.element.d.ts +0 -8
- package/target/lib/side-nav/side-nav-item/side-nav-item.element.js +0 -107
- package/target/lib/side-nav/side-nav-item/side-nav-item.element.js.map +0 -1
- package/target/lib/side-nav/side-nav.element.d.ts +0 -8
- package/target/lib/side-nav/side-nav.element.js +0 -47
- package/target/lib/side-nav/side-nav.element.js.map +0 -1
- package/target/lib/side-nav/side-nav.stories.d.ts +0 -12
- package/target/lib/side-nav/side-nav.stories.js +0 -55
- package/target/lib/side-nav/side-nav.stories.js.map +0 -1
- package/target/lib/side-nav/side-nav.test.d.ts +0 -3
- package/target/lib/side-nav/side-nav.test.js +0 -93
- package/target/lib/side-nav/side-nav.test.js.map +0 -1
- package/target/lib/step-indicator/step/step.element.d.ts +0 -10
- package/target/lib/step-indicator/step/step.element.js +0 -151
- package/target/lib/step-indicator/step/step.element.js.map +0 -1
- package/target/lib/step-indicator/step-indicator.element.d.ts +0 -8
- package/target/lib/step-indicator/step-indicator.element.js +0 -48
- package/target/lib/step-indicator/step-indicator.element.js.map +0 -1
- package/target/lib/step-indicator/step-indicator.stories.d.ts +0 -21
- package/target/lib/step-indicator/step-indicator.stories.js +0 -45
- package/target/lib/step-indicator/step-indicator.stories.js.map +0 -1
- package/target/lib/step-indicator/step-indicator.test.d.ts +0 -2
- package/target/lib/step-indicator/step-indicator.test.js +0 -18
- package/target/lib/step-indicator/step-indicator.test.js.map +0 -1
- package/target/lib/summary-box/summary-box.element.d.ts +0 -7
- package/target/lib/summary-box/summary-box.element.js +0 -40
- package/target/lib/summary-box/summary-box.element.js.map +0 -1
- package/target/lib/summary-box/summary-box.stories.d.ts +0 -12
- package/target/lib/summary-box/summary-box.stories.js +0 -17
- package/target/lib/summary-box/summary-box.stories.js.map +0 -1
- package/target/lib/summary-box/summary-box.test.d.ts +0 -1
- package/target/lib/summary-box/summary-box.test.js +0 -11
- package/target/lib/summary-box/summary-box.test.js.map +0 -1
- package/target/lib/tag/tag.element.d.ts +0 -10
- package/target/lib/tag/tag.element.js +0 -57
- package/target/lib/tag/tag.element.js.map +0 -1
- package/target/lib/tag/tag.stories.d.ts +0 -19
- package/target/lib/tag/tag.stories.js +0 -25
- package/target/lib/tag/tag.stories.js.map +0 -1
- package/target/lib/tag/tag.test.d.ts +0 -1
- package/target/lib/tag/tag.test.js +0 -11
- package/target/lib/tag/tag.test.js.map +0 -1
- package/target/lib/textarea/textarea.element.d.ts +0 -19
- package/target/lib/textarea/textarea.element.js +0 -171
- package/target/lib/textarea/textarea.element.js.map +0 -1
- package/target/lib/textarea/textarea.stories.d.ts +0 -12
- package/target/lib/textarea/textarea.stories.js +0 -17
- package/target/lib/textarea/textarea.stories.js.map +0 -1
- package/target/lib/textarea/textarea.test.d.ts +0 -1
- package/target/lib/textarea/textarea.test.js +0 -50
- package/target/lib/textarea/textarea.test.js.map +0 -1
- package/target/lib.d.ts +0 -32
- package/target/lib.js +0 -33
- package/target/lib.js.map +0 -1
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
export const ICON_TYPES = [
|
|
2
|
-
"accessibility_new",
|
|
3
|
-
"accessible_forward",
|
|
4
|
-
"account_balance",
|
|
5
|
-
"account_box",
|
|
6
|
-
"account_circle",
|
|
7
|
-
"add",
|
|
8
|
-
"add_circle",
|
|
9
|
-
"add_circle_outline",
|
|
10
|
-
"alarm",
|
|
11
|
-
"alternate_email",
|
|
12
|
-
"announcement",
|
|
13
|
-
"arrow_back",
|
|
14
|
-
"arrow_downward",
|
|
15
|
-
"arrow_drop_down",
|
|
16
|
-
"arrow_drop_up",
|
|
17
|
-
"arrow_forward",
|
|
18
|
-
"arrow_upward",
|
|
19
|
-
"api",
|
|
20
|
-
"assessment",
|
|
21
|
-
"attach_file",
|
|
22
|
-
"attach_money",
|
|
23
|
-
"autorenew",
|
|
24
|
-
"backpack",
|
|
25
|
-
"bathtub",
|
|
26
|
-
"bedding",
|
|
27
|
-
"bookmark",
|
|
28
|
-
"bug_report",
|
|
29
|
-
"build",
|
|
30
|
-
"calendar_today",
|
|
31
|
-
"campaign",
|
|
32
|
-
"camping",
|
|
33
|
-
"cancel",
|
|
34
|
-
"chat",
|
|
35
|
-
"check",
|
|
36
|
-
"check_box_outline_blank",
|
|
37
|
-
"check_circle",
|
|
38
|
-
"check_circle_outline",
|
|
39
|
-
"checkroom",
|
|
40
|
-
"clean_hands",
|
|
41
|
-
"clothes",
|
|
42
|
-
"close",
|
|
43
|
-
"closed_caption",
|
|
44
|
-
"cloud",
|
|
45
|
-
"code",
|
|
46
|
-
"comment",
|
|
47
|
-
"connect_without_contact",
|
|
48
|
-
"construction",
|
|
49
|
-
"construction_worker",
|
|
50
|
-
"contact_page",
|
|
51
|
-
"content_copy",
|
|
52
|
-
"coronavirus",
|
|
53
|
-
"credit_card",
|
|
54
|
-
"deck",
|
|
55
|
-
"delete",
|
|
56
|
-
"device_thermostat",
|
|
57
|
-
"directions",
|
|
58
|
-
"directions_bike",
|
|
59
|
-
"directions_bus",
|
|
60
|
-
"directions_car",
|
|
61
|
-
"directions_walk",
|
|
62
|
-
"do_not_disturb",
|
|
63
|
-
"do_not_touch",
|
|
64
|
-
"drag_handle",
|
|
65
|
-
"eco",
|
|
66
|
-
"edit",
|
|
67
|
-
"electrical_services",
|
|
68
|
-
"emoji_events",
|
|
69
|
-
"error",
|
|
70
|
-
"error_outline",
|
|
71
|
-
"event",
|
|
72
|
-
"expand_less",
|
|
73
|
-
"expand_more",
|
|
74
|
-
"facebook",
|
|
75
|
-
"fast_forward",
|
|
76
|
-
"fast_rewind",
|
|
77
|
-
"favorite",
|
|
78
|
-
"favorite_border",
|
|
79
|
-
"fax",
|
|
80
|
-
"file_download",
|
|
81
|
-
"file_present",
|
|
82
|
-
"file_upload",
|
|
83
|
-
"filter_alt",
|
|
84
|
-
"filter_list",
|
|
85
|
-
"fingerprint",
|
|
86
|
-
"first_page",
|
|
87
|
-
"flag",
|
|
88
|
-
"flickr",
|
|
89
|
-
"flight",
|
|
90
|
-
"flooding",
|
|
91
|
-
"folder",
|
|
92
|
-
"folder_open",
|
|
93
|
-
"format_quote",
|
|
94
|
-
"format_size",
|
|
95
|
-
"forum",
|
|
96
|
-
"github",
|
|
97
|
-
"grid_view",
|
|
98
|
-
"group_add",
|
|
99
|
-
"groups",
|
|
100
|
-
"hearing",
|
|
101
|
-
"help",
|
|
102
|
-
"help_outline",
|
|
103
|
-
"highlight_off",
|
|
104
|
-
"history",
|
|
105
|
-
"home",
|
|
106
|
-
"hospital",
|
|
107
|
-
"hotel",
|
|
108
|
-
"hourglass_empty",
|
|
109
|
-
"hurricane",
|
|
110
|
-
"identification",
|
|
111
|
-
"image",
|
|
112
|
-
"info",
|
|
113
|
-
"info_outline",
|
|
114
|
-
"insights",
|
|
115
|
-
"instagram",
|
|
116
|
-
"keyboard",
|
|
117
|
-
"label",
|
|
118
|
-
"language",
|
|
119
|
-
"last_page",
|
|
120
|
-
"launch",
|
|
121
|
-
"lightbulb",
|
|
122
|
-
"lightbulb_outline",
|
|
123
|
-
"link",
|
|
124
|
-
"link_off",
|
|
125
|
-
"linkedin",
|
|
126
|
-
"list",
|
|
127
|
-
"local_cafe",
|
|
128
|
-
"local_fire_department",
|
|
129
|
-
"local_gas_station",
|
|
130
|
-
"local_grocery_store",
|
|
131
|
-
"local_hospital",
|
|
132
|
-
"local_laundry_service",
|
|
133
|
-
"local_library",
|
|
134
|
-
"local_offer",
|
|
135
|
-
"local_parking",
|
|
136
|
-
"local_pharmacy",
|
|
137
|
-
"local_police",
|
|
138
|
-
"local_taxi",
|
|
139
|
-
"location_city",
|
|
140
|
-
"location_on",
|
|
141
|
-
"lock",
|
|
142
|
-
"lock_open",
|
|
143
|
-
"lock_outline",
|
|
144
|
-
"login",
|
|
145
|
-
"logout",
|
|
146
|
-
"loop",
|
|
147
|
-
"mail",
|
|
148
|
-
"mail_outline",
|
|
149
|
-
"map",
|
|
150
|
-
"masks",
|
|
151
|
-
"medical_services",
|
|
152
|
-
"menu",
|
|
153
|
-
"military_tech",
|
|
154
|
-
"more_horiz",
|
|
155
|
-
"more_vert",
|
|
156
|
-
"my_location",
|
|
157
|
-
"navigate_before",
|
|
158
|
-
"navigate_next",
|
|
159
|
-
"navigate_far_before",
|
|
160
|
-
"navigate_far_next",
|
|
161
|
-
"near_me",
|
|
162
|
-
"notifications",
|
|
163
|
-
"notifications_active",
|
|
164
|
-
"notifications_none",
|
|
165
|
-
"notifications_off",
|
|
166
|
-
"park",
|
|
167
|
-
"people",
|
|
168
|
-
"person",
|
|
169
|
-
"pets",
|
|
170
|
-
"phone",
|
|
171
|
-
"photo_camera",
|
|
172
|
-
"print",
|
|
173
|
-
"priority_high",
|
|
174
|
-
"public",
|
|
175
|
-
"push_pin",
|
|
176
|
-
"radio_button_unchecked",
|
|
177
|
-
"rain",
|
|
178
|
-
"reduce_capacity",
|
|
179
|
-
"remove",
|
|
180
|
-
"remove_circle",
|
|
181
|
-
"report",
|
|
182
|
-
"restaurant",
|
|
183
|
-
"rss_feed",
|
|
184
|
-
"safety_divider",
|
|
185
|
-
"sanitizer",
|
|
186
|
-
"severe_weather",
|
|
187
|
-
"save_alt",
|
|
188
|
-
"schedule",
|
|
189
|
-
"school",
|
|
190
|
-
"science",
|
|
191
|
-
"search",
|
|
192
|
-
"security",
|
|
193
|
-
"send",
|
|
194
|
-
"sentiment_dissatisfied",
|
|
195
|
-
"sentiment_neutral",
|
|
196
|
-
"sentiment_satisfied",
|
|
197
|
-
"sentiment_satisfied_alt",
|
|
198
|
-
"sentiment_very_dissatisfied",
|
|
199
|
-
"settings",
|
|
200
|
-
"share",
|
|
201
|
-
"shield",
|
|
202
|
-
"shopping_basket",
|
|
203
|
-
"snow",
|
|
204
|
-
"soap",
|
|
205
|
-
"social_distance",
|
|
206
|
-
"sort_arrow",
|
|
207
|
-
"spellcheck",
|
|
208
|
-
"star",
|
|
209
|
-
"star_half",
|
|
210
|
-
"star_outline",
|
|
211
|
-
"store",
|
|
212
|
-
"support",
|
|
213
|
-
"support_agent",
|
|
214
|
-
"text_fields",
|
|
215
|
-
"thumb_down_alt",
|
|
216
|
-
"thumb_up_alt",
|
|
217
|
-
"timer",
|
|
218
|
-
"toggle_off",
|
|
219
|
-
"toggle_on",
|
|
220
|
-
"topic",
|
|
221
|
-
"tornado",
|
|
222
|
-
"translate",
|
|
223
|
-
"trending_down",
|
|
224
|
-
"trending_up",
|
|
225
|
-
"twitter",
|
|
226
|
-
"undo",
|
|
227
|
-
"unfold_less",
|
|
228
|
-
"unfold_more",
|
|
229
|
-
"update",
|
|
230
|
-
"upload_file",
|
|
231
|
-
"verified",
|
|
232
|
-
"verified_user",
|
|
233
|
-
"visibility",
|
|
234
|
-
"visibility_off",
|
|
235
|
-
"volume_off",
|
|
236
|
-
"warning",
|
|
237
|
-
"wash",
|
|
238
|
-
"wifi",
|
|
239
|
-
"work",
|
|
240
|
-
"x",
|
|
241
|
-
"youtube",
|
|
242
|
-
"zoom_in",
|
|
243
|
-
"zoom_out_map",
|
|
244
|
-
"zoom_out",
|
|
245
|
-
"visibility",
|
|
246
|
-
"home",
|
|
247
|
-
"print",
|
|
248
|
-
"search",
|
|
249
|
-
"check_circle",
|
|
250
|
-
"warning",
|
|
251
|
-
"info",
|
|
252
|
-
"cancel",
|
|
253
|
-
"check_circle",
|
|
254
|
-
"warning",
|
|
255
|
-
"info",
|
|
256
|
-
"cancel",
|
|
257
|
-
"help",
|
|
258
|
-
"people",
|
|
259
|
-
"mail",
|
|
260
|
-
"support",
|
|
261
|
-
];
|
|
262
|
-
//# sourceMappingURL=icon-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-types.js","sourceRoot":"","sources":["../../../src/lib/icon/icon-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { USAIcon } from "./icon-types.js";
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
"usa-icon": USAIconElement;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export declare class USAIconElement extends HTMLElement {
|
|
8
|
-
#private;
|
|
9
|
-
accessor icon: USAIcon;
|
|
10
|
-
ariaHidden: string | null;
|
|
11
|
-
onInjected(): void;
|
|
12
|
-
attributeChangedCallback(): void;
|
|
13
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
-
import { inject, injectable, injected } from "@joist/di";
|
|
3
|
-
import { attr, css, element } from "@joist/element";
|
|
4
|
-
import { IconService } from "../services/icon.service.js";
|
|
5
|
-
let USAIconElement = (() => {
|
|
6
|
-
let _classDecorators = [element({
|
|
7
|
-
tagName: "usa-icon",
|
|
8
|
-
shadowDom: [
|
|
9
|
-
css `
|
|
10
|
-
:host {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
height: 2rem;
|
|
13
|
-
position: relative;
|
|
14
|
-
width: 2rem;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
svg {
|
|
18
|
-
fill: currentColor;
|
|
19
|
-
height: 100%;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
`,
|
|
23
|
-
],
|
|
24
|
-
}), injectable()];
|
|
25
|
-
let _classDescriptor;
|
|
26
|
-
let _classExtraInitializers = [];
|
|
27
|
-
let _classThis;
|
|
28
|
-
let _classSuper = HTMLElement;
|
|
29
|
-
let _instanceExtraInitializers = [];
|
|
30
|
-
let _icon_decorators;
|
|
31
|
-
let _icon_initializers = [];
|
|
32
|
-
let _icon_extraInitializers = [];
|
|
33
|
-
let _onInjected_decorators;
|
|
34
|
-
var USAIconElement = class extends _classSuper {
|
|
35
|
-
static { _classThis = this; }
|
|
36
|
-
static {
|
|
37
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
38
|
-
_icon_decorators = [attr()];
|
|
39
|
-
_onInjected_decorators = [injected()];
|
|
40
|
-
__esDecorate(this, null, _icon_decorators, { kind: "accessor", name: "icon", static: false, private: false, access: { has: obj => "icon" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);
|
|
41
|
-
__esDecorate(this, null, _onInjected_decorators, { kind: "method", name: "onInjected", static: false, private: false, access: { has: obj => "onInjected" in obj, get: obj => obj.onInjected }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
42
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
43
|
-
USAIconElement = _classThis = _classDescriptor.value;
|
|
44
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
45
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
46
|
-
}
|
|
47
|
-
#icon_accessor_storage = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _icon_initializers, "accessibility_new"));
|
|
48
|
-
get icon() { return this.#icon_accessor_storage; }
|
|
49
|
-
set icon(value) { this.#icon_accessor_storage = value; }
|
|
50
|
-
ariaHidden = (__runInitializers(this, _icon_extraInitializers), "true");
|
|
51
|
-
#icon = inject(IconService);
|
|
52
|
-
#injected = false;
|
|
53
|
-
onInjected() {
|
|
54
|
-
this.#injected = true;
|
|
55
|
-
this.#updateIcon();
|
|
56
|
-
}
|
|
57
|
-
attributeChangedCallback() {
|
|
58
|
-
if (this.#injected) {
|
|
59
|
-
this.#updateIcon();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
async #updateIcon() {
|
|
63
|
-
const icon = this.#icon();
|
|
64
|
-
if (this.shadowRoot) {
|
|
65
|
-
this.shadowRoot.append(await icon.getIcon(this.icon));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
return USAIconElement = _classThis;
|
|
70
|
-
})();
|
|
71
|
-
export { USAIconElement };
|
|
72
|
-
//# sourceMappingURL=icon.element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon.element.js","sourceRoot":"","sources":["../../../src/lib/icon/icon.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;IA6B7C,cAAc;4BApB1B,OAAO,CAAC;YACP,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;KAaF;aACF;SACF,CAAC,EACD,UAAU,EAAE;;;;sBACuB,WAAW;;;;;;8BAAnB,SAAQ,WAAW;;;;gCAC5C,IAAI,EAAE;sCAQN,QAAQ,EAAE;YAPX,iKAAS,IAAI,6BAAJ,IAAI,mFAAgC;YAQ7C,iLAAA,UAAU,6DAGT;YAbH,6KA4BC;;;YA5BY,uDAAc;;QAEzB,0BAFW,mDAAc,8CAEA,mBAAmB,GAAC;QAA7C,IAAS,IAAI,0CAAgC;QAA7C,IAAS,IAAI,gDAAgC;QAE7C,UAAU,sDAAkB,MAAM,EAAC;QAEnC,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QAC5B,SAAS,GAAG,KAAK,CAAC;QAGlB,UAAU;YACR,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC;QAED,wBAAwB;YACtB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,CAAC;QACH,CAAC;QAED,KAAK,CAAC,WAAW;YACf,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;YAE1B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBACpB,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;;;;SA3BU,cAAc"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/web-components";
|
|
2
|
-
import type { USAIconElement } from "./icon.element.js";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
tags: never[];
|
|
6
|
-
render(args: USAIconElement): import("lit-html").TemplateResult<1>;
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {};
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<USAIconElement>;
|
|
12
|
-
export declare const AllIcons: Story;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
import { ICON_TYPES } from "./icon-types.js";
|
|
3
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "usa-icon",
|
|
6
|
-
tags: [],
|
|
7
|
-
render(args) {
|
|
8
|
-
return html `<usa-icon icon=${args.icon}></usa-icon>`;
|
|
9
|
-
},
|
|
10
|
-
argTypes: {},
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export const AllIcons = {
|
|
15
|
-
render() {
|
|
16
|
-
async function copyIcon(icon) {
|
|
17
|
-
try {
|
|
18
|
-
await navigator.clipboard.writeText(`<usa-icon icon=${icon}></usa-icon>`);
|
|
19
|
-
alert(`copied markup for ${icon}`);
|
|
20
|
-
}
|
|
21
|
-
catch (err) {
|
|
22
|
-
console.error("Failed to copy: ", err);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return html `<div style="display: flex; flex-wrap: wrap; gap: .75rem;">
|
|
26
|
-
${html `${ICON_TYPES.map((icon) => html `
|
|
27
|
-
<button
|
|
28
|
-
@click=${() => copyIcon(icon)}
|
|
29
|
-
style="padding: .5rem 1rem .5rem .5rem; cursor: pointer; background: #fff; border-radius: 4px; gap: .5rem; display: flex; align-items: center"
|
|
30
|
-
>
|
|
31
|
-
<usa-icon icon=${icon}></usa-icon>
|
|
32
|
-
|
|
33
|
-
${icon}
|
|
34
|
-
</button>
|
|
35
|
-
`)}`}
|
|
36
|
-
</div>`;
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=icon.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon.stories.js","sourceRoot":"","sources":["../../../src/lib/icon/icon.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,EAAE;IACR,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA,kBAAkB,IAAI,CAAC,IAAI,cAAc,CAAC;IACvD,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CACsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,MAAM;QACJ,KAAK,UAAU,QAAQ,CAAC,IAAY;YAClC,IAAI,CAAC;gBACH,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CACjC,kBAAkB,IAAI,cAAc,CACrC,CAAC;gBACF,KAAK,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;YACrC,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAA;QACP,IAAI,CAAA,GAAG,UAAU,CAAC,GAAG,CACrB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;qBAED,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;;;6BAGZ,IAAI;;cAEnB,IAAI;;SAET,CACF,EAAE;WACE,CAAC;IACV,CAAC;CACF,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type Changes } from "@joist/observable";
|
|
2
|
-
import type { MaskableElement } from "../input-mask/maskable.element.js";
|
|
3
|
-
declare global {
|
|
4
|
-
interface HTMLElementTagNameMap {
|
|
5
|
-
"usa-input": USATextInputElement;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export declare class USATextInputElement extends HTMLElement implements MaskableElement {
|
|
9
|
-
#private;
|
|
10
|
-
static formAssociated: boolean;
|
|
11
|
-
accessor name: string;
|
|
12
|
-
accessor autocomplete: AutoFill;
|
|
13
|
-
accessor placeholder: string;
|
|
14
|
-
accessor required: boolean;
|
|
15
|
-
accessor detail: "pfx" | "sfx" | "";
|
|
16
|
-
accessor value: string;
|
|
17
|
-
accessor selectionStart: number | null;
|
|
18
|
-
accessor selectionEnd: number | null;
|
|
19
|
-
onReady(): void;
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
onChange(changes: Changes<this>): void;
|
|
22
|
-
onInputChange(): void;
|
|
23
|
-
attributeChangedCallback(attr: string): void;
|
|
24
|
-
}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
-
import { attr, css, element, html, listen, query, ready } from "@joist/element";
|
|
3
|
-
import { effect, observe } from "@joist/observable";
|
|
4
|
-
let USATextInputElement = (() => {
|
|
5
|
-
let _classDecorators = [element({
|
|
6
|
-
tagName: "usa-input",
|
|
7
|
-
shadowDomOpts: {
|
|
8
|
-
mode: "open",
|
|
9
|
-
delegatesFocus: true,
|
|
10
|
-
},
|
|
11
|
-
shadowDom: [
|
|
12
|
-
css `
|
|
13
|
-
* {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host {
|
|
18
|
-
font-size: 1.06rem;
|
|
19
|
-
line-height: 1.3;
|
|
20
|
-
display: block;
|
|
21
|
-
font-weight: 400;
|
|
22
|
-
max-width: 30rem;
|
|
23
|
-
margin-bottom: 1.5rem;
|
|
24
|
-
position: relative;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
input {
|
|
28
|
-
border-width: 1px;
|
|
29
|
-
border-color: #5c5c5c;
|
|
30
|
-
border-style: solid;
|
|
31
|
-
border-radius: 0;
|
|
32
|
-
color: #1b1b1b;
|
|
33
|
-
display: block;
|
|
34
|
-
height: 2.5rem;
|
|
35
|
-
line-height: 1.3;
|
|
36
|
-
font-size: 1.06rem;
|
|
37
|
-
margin-top: 0.5rem;
|
|
38
|
-
padding: 0.5rem;
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
input:not(:disabled):focus {
|
|
43
|
-
outline: 0.25rem solid #2491ff;
|
|
44
|
-
outline-offset: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
slot[name="detail"]::slotted(*) {
|
|
48
|
-
color: #757575;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
slot[name="detail"]::slotted(usa-icon) {
|
|
52
|
-
width: 1.5rem;
|
|
53
|
-
height: 1.5rem;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
slot[name="detail"] {
|
|
57
|
-
display: block;
|
|
58
|
-
position: absolute;
|
|
59
|
-
bottom: 0.21rem;
|
|
60
|
-
left: 0.5rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([detail="pfx"]) input {
|
|
64
|
-
padding-left: 2.5rem;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host([detail="sfx"]) input {
|
|
68
|
-
padding-right: 2.5rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host([detail="sfx"]) slot[name="detail"] {
|
|
72
|
-
right: 0.5rem;
|
|
73
|
-
left: auto;
|
|
74
|
-
}
|
|
75
|
-
`,
|
|
76
|
-
html `
|
|
77
|
-
<label>
|
|
78
|
-
<slot name="detail"></slot>
|
|
79
|
-
|
|
80
|
-
<slot></slot>
|
|
81
|
-
|
|
82
|
-
<input tabindex="0" />
|
|
83
|
-
</label>
|
|
84
|
-
`,
|
|
85
|
-
],
|
|
86
|
-
})];
|
|
87
|
-
let _classDescriptor;
|
|
88
|
-
let _classExtraInitializers = [];
|
|
89
|
-
let _classThis;
|
|
90
|
-
let _classSuper = HTMLElement;
|
|
91
|
-
let _instanceExtraInitializers = [];
|
|
92
|
-
let _name_decorators;
|
|
93
|
-
let _name_initializers = [];
|
|
94
|
-
let _name_extraInitializers = [];
|
|
95
|
-
let _autocomplete_decorators;
|
|
96
|
-
let _autocomplete_initializers = [];
|
|
97
|
-
let _autocomplete_extraInitializers = [];
|
|
98
|
-
let _placeholder_decorators;
|
|
99
|
-
let _placeholder_initializers = [];
|
|
100
|
-
let _placeholder_extraInitializers = [];
|
|
101
|
-
let _required_decorators;
|
|
102
|
-
let _required_initializers = [];
|
|
103
|
-
let _required_extraInitializers = [];
|
|
104
|
-
let _detail_decorators;
|
|
105
|
-
let _detail_initializers = [];
|
|
106
|
-
let _detail_extraInitializers = [];
|
|
107
|
-
let _value_decorators;
|
|
108
|
-
let _value_initializers = [];
|
|
109
|
-
let _value_extraInitializers = [];
|
|
110
|
-
let _selectionStart_decorators;
|
|
111
|
-
let _selectionStart_initializers = [];
|
|
112
|
-
let _selectionStart_extraInitializers = [];
|
|
113
|
-
let _selectionEnd_decorators;
|
|
114
|
-
let _selectionEnd_initializers = [];
|
|
115
|
-
let _selectionEnd_extraInitializers = [];
|
|
116
|
-
let _onReady_decorators;
|
|
117
|
-
let _onChange_decorators;
|
|
118
|
-
let _onInputChange_decorators;
|
|
119
|
-
var USATextInputElement = class extends _classSuper {
|
|
120
|
-
static { _classThis = this; }
|
|
121
|
-
static {
|
|
122
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
123
|
-
_name_decorators = [attr()];
|
|
124
|
-
_autocomplete_decorators = [attr()];
|
|
125
|
-
_placeholder_decorators = [attr()];
|
|
126
|
-
_required_decorators = [attr()];
|
|
127
|
-
_detail_decorators = [attr({
|
|
128
|
-
observed: false,
|
|
129
|
-
})];
|
|
130
|
-
_value_decorators = [attr({
|
|
131
|
-
reflect: false,
|
|
132
|
-
}), observe()];
|
|
133
|
-
_selectionStart_decorators = [observe()];
|
|
134
|
-
_selectionEnd_decorators = [observe()];
|
|
135
|
-
_onReady_decorators = [ready()];
|
|
136
|
-
_onChange_decorators = [effect()];
|
|
137
|
-
_onInputChange_decorators = [listen("input")];
|
|
138
|
-
__esDecorate(this, null, _name_decorators, { kind: "accessor", name: "name", static: false, private: false, access: { has: obj => "name" in obj, get: obj => obj.name, set: (obj, value) => { obj.name = value; } }, metadata: _metadata }, _name_initializers, _name_extraInitializers);
|
|
139
|
-
__esDecorate(this, null, _autocomplete_decorators, { kind: "accessor", name: "autocomplete", static: false, private: false, access: { has: obj => "autocomplete" in obj, get: obj => obj.autocomplete, set: (obj, value) => { obj.autocomplete = value; } }, metadata: _metadata }, _autocomplete_initializers, _autocomplete_extraInitializers);
|
|
140
|
-
__esDecorate(this, null, _placeholder_decorators, { kind: "accessor", name: "placeholder", static: false, private: false, access: { has: obj => "placeholder" in obj, get: obj => obj.placeholder, set: (obj, value) => { obj.placeholder = value; } }, metadata: _metadata }, _placeholder_initializers, _placeholder_extraInitializers);
|
|
141
|
-
__esDecorate(this, null, _required_decorators, { kind: "accessor", name: "required", static: false, private: false, access: { has: obj => "required" in obj, get: obj => obj.required, set: (obj, value) => { obj.required = value; } }, metadata: _metadata }, _required_initializers, _required_extraInitializers);
|
|
142
|
-
__esDecorate(this, null, _detail_decorators, { kind: "accessor", name: "detail", static: false, private: false, access: { has: obj => "detail" in obj, get: obj => obj.detail, set: (obj, value) => { obj.detail = value; } }, metadata: _metadata }, _detail_initializers, _detail_extraInitializers);
|
|
143
|
-
__esDecorate(this, null, _value_decorators, { kind: "accessor", name: "value", static: false, private: false, access: { has: obj => "value" in obj, get: obj => obj.value, set: (obj, value) => { obj.value = value; } }, metadata: _metadata }, _value_initializers, _value_extraInitializers);
|
|
144
|
-
__esDecorate(this, null, _selectionStart_decorators, { kind: "accessor", name: "selectionStart", static: false, private: false, access: { has: obj => "selectionStart" in obj, get: obj => obj.selectionStart, set: (obj, value) => { obj.selectionStart = value; } }, metadata: _metadata }, _selectionStart_initializers, _selectionStart_extraInitializers);
|
|
145
|
-
__esDecorate(this, null, _selectionEnd_decorators, { kind: "accessor", name: "selectionEnd", static: false, private: false, access: { has: obj => "selectionEnd" in obj, get: obj => obj.selectionEnd, set: (obj, value) => { obj.selectionEnd = value; } }, metadata: _metadata }, _selectionEnd_initializers, _selectionEnd_extraInitializers);
|
|
146
|
-
__esDecorate(this, null, _onReady_decorators, { kind: "method", name: "onReady", static: false, private: false, access: { has: obj => "onReady" in obj, get: obj => obj.onReady }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
147
|
-
__esDecorate(this, null, _onChange_decorators, { kind: "method", name: "onChange", static: false, private: false, access: { has: obj => "onChange" in obj, get: obj => obj.onChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
148
|
-
__esDecorate(this, null, _onInputChange_decorators, { kind: "method", name: "onInputChange", static: false, private: false, access: { has: obj => "onInputChange" in obj, get: obj => obj.onInputChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
149
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
150
|
-
USATextInputElement = _classThis = _classDescriptor.value;
|
|
151
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
152
|
-
}
|
|
153
|
-
static formAssociated = true;
|
|
154
|
-
#name_accessor_storage = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _name_initializers, ""));
|
|
155
|
-
get name() { return this.#name_accessor_storage; }
|
|
156
|
-
set name(value) { this.#name_accessor_storage = value; }
|
|
157
|
-
#autocomplete_accessor_storage = (__runInitializers(this, _name_extraInitializers), __runInitializers(this, _autocomplete_initializers, "on"));
|
|
158
|
-
get autocomplete() { return this.#autocomplete_accessor_storage; }
|
|
159
|
-
set autocomplete(value) { this.#autocomplete_accessor_storage = value; }
|
|
160
|
-
#placeholder_accessor_storage = (__runInitializers(this, _autocomplete_extraInitializers), __runInitializers(this, _placeholder_initializers, ""));
|
|
161
|
-
get placeholder() { return this.#placeholder_accessor_storage; }
|
|
162
|
-
set placeholder(value) { this.#placeholder_accessor_storage = value; }
|
|
163
|
-
#required_accessor_storage = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _required_initializers, false));
|
|
164
|
-
get required() { return this.#required_accessor_storage; }
|
|
165
|
-
set required(value) { this.#required_accessor_storage = value; }
|
|
166
|
-
#detail_accessor_storage = (__runInitializers(this, _required_extraInitializers), __runInitializers(this, _detail_initializers, ""));
|
|
167
|
-
get detail() { return this.#detail_accessor_storage; }
|
|
168
|
-
set detail(value) { this.#detail_accessor_storage = value; }
|
|
169
|
-
#value_accessor_storage = (__runInitializers(this, _detail_extraInitializers), __runInitializers(this, _value_initializers, ""));
|
|
170
|
-
get value() { return this.#value_accessor_storage; }
|
|
171
|
-
set value(value) { this.#value_accessor_storage = value; }
|
|
172
|
-
#selectionStart_accessor_storage = (__runInitializers(this, _value_extraInitializers), __runInitializers(this, _selectionStart_initializers, null));
|
|
173
|
-
get selectionStart() { return this.#selectionStart_accessor_storage; }
|
|
174
|
-
set selectionStart(value) { this.#selectionStart_accessor_storage = value; }
|
|
175
|
-
#selectionEnd_accessor_storage = (__runInitializers(this, _selectionStart_extraInitializers), __runInitializers(this, _selectionEnd_initializers, null));
|
|
176
|
-
get selectionEnd() { return this.#selectionEnd_accessor_storage; }
|
|
177
|
-
set selectionEnd(value) { this.#selectionEnd_accessor_storage = value; }
|
|
178
|
-
#internals = (__runInitializers(this, _selectionEnd_extraInitializers), this.attachInternals());
|
|
179
|
-
#input = query("input");
|
|
180
|
-
onReady() {
|
|
181
|
-
const input = this.#input();
|
|
182
|
-
input.autofocus = this.autofocus;
|
|
183
|
-
}
|
|
184
|
-
connectedCallback() {
|
|
185
|
-
this.#syncFormState();
|
|
186
|
-
}
|
|
187
|
-
onChange(changes) {
|
|
188
|
-
const input = this.#input();
|
|
189
|
-
input.value = this.value;
|
|
190
|
-
if (changes.has("selectionStart")) {
|
|
191
|
-
input.selectionStart = this.selectionStart;
|
|
192
|
-
}
|
|
193
|
-
if (changes.has("selectionEnd")) {
|
|
194
|
-
input.selectionEnd = this.selectionEnd;
|
|
195
|
-
}
|
|
196
|
-
this.#syncFormState();
|
|
197
|
-
}
|
|
198
|
-
onInputChange() {
|
|
199
|
-
const input = this.#input();
|
|
200
|
-
this.value = input.value;
|
|
201
|
-
this.selectionStart = input.selectionStart;
|
|
202
|
-
this.selectionEnd = input.selectionEnd;
|
|
203
|
-
}
|
|
204
|
-
attributeChangedCallback(attr) {
|
|
205
|
-
const input = this.#input();
|
|
206
|
-
switch (attr) {
|
|
207
|
-
case "autocomplete":
|
|
208
|
-
input.autocomplete = this.autocomplete;
|
|
209
|
-
break;
|
|
210
|
-
case "placeholder":
|
|
211
|
-
input.placeholder = this.placeholder;
|
|
212
|
-
break;
|
|
213
|
-
case "name":
|
|
214
|
-
input.name = this.name;
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
#syncFormState() {
|
|
219
|
-
const input = this.#input();
|
|
220
|
-
this.#internals.setFormValue(input.value);
|
|
221
|
-
if (this.required && !input.value) {
|
|
222
|
-
this.#internals.setValidity({ valueMissing: true }, "Required", input);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
this.#internals.setValidity({});
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
static {
|
|
229
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
return USATextInputElement = _classThis;
|
|
233
|
-
})();
|
|
234
|
-
export { USATextInputElement };
|
|
235
|
-
//# sourceMappingURL=input.element.js.map
|