Skip to content

Commit 113ff49

Browse files
committed
feat(api): diff translate
1 parent e7bdaed commit 113ff49

19 files changed

+960
-18
lines changed

scripts/data/translated-api.json

Lines changed: 320 additions & 6 deletions
Large diffs are not rendered by default.
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
{
2+
"filePath": "./src/components/datetime-button/datetime-button.tsx",
3+
"encapsulation": "shadow",
4+
"tag": "ion-datetime-button",
5+
"docs": "",
6+
"docsTags": [
7+
{
8+
"name": "virtualProp",
9+
"text": "{\"ios\" | \"md\"} mode - The mode determines which platform styles to use."
10+
},
11+
{
12+
"name": "slot",
13+
"text": "date-target - Content displayed inside of the date button."
14+
},
15+
{
16+
"name": "slot",
17+
"text": "time-target - Content displayed inside of the time button."
18+
},
19+
{
20+
"name": "part",
21+
"text": "native - The native HTML button that wraps the slotted text."
22+
}
23+
],
24+
"usage": {},
25+
"props": [
26+
{
27+
"name": "color",
28+
"type": "\"danger\" | \"dark\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | string & Record<never, never> | undefined",
29+
"mutable": false,
30+
"attr": "color",
31+
"reflectToAttr": true,
32+
"docs": "The color to use from your application's color palette.\nDefault options are: `\"primary\"`, `\"secondary\"`, `\"tertiary\"`, `\"success\"`, `\"warning\"`, `\"danger\"`, `\"light\"`, `\"medium\"`, and `\"dark\"`.\nFor more information on colors, see [theming](/docs/theming/basics).",
33+
"docsTags": [],
34+
"default": "'primary'",
35+
"values": [
36+
{
37+
"value": "danger",
38+
"type": "string"
39+
},
40+
{
41+
"value": "dark",
42+
"type": "string"
43+
},
44+
{
45+
"value": "light",
46+
"type": "string"
47+
},
48+
{
49+
"value": "medium",
50+
"type": "string"
51+
},
52+
{
53+
"value": "primary",
54+
"type": "string"
55+
},
56+
{
57+
"value": "secondary",
58+
"type": "string"
59+
},
60+
{
61+
"value": "success",
62+
"type": "string"
63+
},
64+
{
65+
"value": "tertiary",
66+
"type": "string"
67+
},
68+
{
69+
"value": "warning",
70+
"type": "string"
71+
},
72+
{
73+
"type": "string & Record<never, never>"
74+
},
75+
{
76+
"type": "undefined"
77+
}
78+
],
79+
"optional": true,
80+
"required": false
81+
},
82+
{
83+
"name": "datetime",
84+
"type": "string | undefined",
85+
"mutable": false,
86+
"attr": "datetime",
87+
"reflectToAttr": false,
88+
"docs": "The ID of the `ion-datetime` instance\nassociated with the datetime button.",
89+
"docsTags": [],
90+
"values": [
91+
{
92+
"type": "string"
93+
},
94+
{
95+
"type": "undefined"
96+
}
97+
],
98+
"optional": true,
99+
"required": false
100+
},
101+
{
102+
"name": "disabled",
103+
"type": "boolean",
104+
"mutable": false,
105+
"attr": "disabled",
106+
"reflectToAttr": true,
107+
"docs": "If `true`, the user cannot interact with the button.",
108+
"docsTags": [],
109+
"default": "false",
110+
"values": [
111+
{
112+
"type": "boolean"
113+
}
114+
],
115+
"optional": false,
116+
"required": false
117+
},
118+
{
119+
"name": "mode",
120+
"type": "\"ios\" | \"md\"",
121+
"mutable": false,
122+
"attr": "mode",
123+
"reflectToAttr": false,
124+
"docs": "The mode determines which platform styles to use.",
125+
"docsTags": [],
126+
"values": [
127+
{
128+
"value": "ios",
129+
"type": "string"
130+
},
131+
{
132+
"value": "md",
133+
"type": "string"
134+
}
135+
],
136+
"optional": true,
137+
"required": false
138+
}
139+
],
140+
"methods": [],
141+
"events": [],
142+
"listeners": [],
143+
"styles": [],
144+
"slots": [
145+
{
146+
"name": "date-target",
147+
"docs": "Content displayed inside of the date button."
148+
},
149+
{
150+
"name": "time-target",
151+
"docs": "Content displayed inside of the time button."
152+
}
153+
],
154+
"parts": [
155+
{
156+
"name": "native",
157+
"docs": "The native HTML button that wraps the slotted text."
158+
}
159+
],
160+
"dependents": [],
161+
"dependencies": [
162+
"ion-ripple-effect"
163+
],
164+
"dependencyGraph": {
165+
"ion-datetime-button": [
166+
"ion-ripple-effect"
167+
]
168+
}
169+
}

src/translate/.detection/api/datetime-button.readme.md

Whitespace-only changes.

src/translate/.detection/api/datetime.json

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,23 @@
382382
"optional": true,
383383
"required": false
384384
},
385+
{
386+
"name": "multiple",
387+
"type": "boolean",
388+
"mutable": false,
389+
"attr": "multiple",
390+
"reflectToAttr": false,
391+
"docs": "If `true`, multiple dates can be selected at once. Only\napplies to `presentation=\"date\"` and `preferWheel=\"false\"`.",
392+
"docsTags": [],
393+
"default": "false",
394+
"values": [
395+
{
396+
"type": "boolean"
397+
}
398+
],
399+
"optional": false,
400+
"required": false
401+
},
385402
{
386403
"name": "name",
387404
"type": "string",
@@ -399,6 +416,23 @@
399416
"optional": false,
400417
"required": false
401418
},
419+
{
420+
"name": "preferWheel",
421+
"type": "boolean",
422+
"mutable": false,
423+
"attr": "prefer-wheel",
424+
"reflectToAttr": false,
425+
"docs": "If `true`, a wheel picker will be rendered instead of a calendar grid\nwhere possible. If `false`, a calendar grid will be rendered instead of\na wheel picker where possible.\n\nA wheel picker can be rendered instead of a grid when `presentation` is\none of the following values: `'date'`, `'date-time'`, or `'time-date'`.\n\nA wheel picker will always be rendered regardless of\nthe `preferWheel` value when `presentation` is one of the following values:\n`'time'`, `'month'`, `'month-year'`, or `'year'`.",
426+
"docsTags": [],
427+
"default": "false",
428+
"values": [
429+
{
430+
"type": "boolean"
431+
}
432+
],
433+
"optional": false,
434+
"required": false
435+
},
402436
{
403437
"name": "presentation",
404438
"type": "\"date\" | \"date-time\" | \"month\" | \"month-year\" | \"time\" | \"time-date\" | \"year\"",
@@ -550,11 +584,11 @@
550584
},
551585
{
552586
"name": "value",
553-
"type": "null | string | undefined",
587+
"type": "null | string | string[] | undefined",
554588
"mutable": true,
555589
"attr": "value",
556590
"reflectToAttr": false,
557-
"docs": "The value of the datetime as a valid ISO 8601 datetime string.",
591+
"docs": "The value of the datetime as a valid ISO 8601 datetime string.\nShould be an array of strings if `multiple=\"true\"`.",
558592
"docsTags": [],
559593
"values": [
560594
{
@@ -563,6 +597,9 @@
563597
{
564598
"type": "string"
565599
},
600+
{
601+
"type": "string[]"
602+
},
566603
{
567604
"type": "undefined"
568605
}

src/translate/.detection/api/modal.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,31 @@
155155
"optional": true,
156156
"required": false
157157
},
158+
{
159+
"name": "handleBehavior",
160+
"type": "\"cycle\" | \"none\" | undefined",
161+
"mutable": false,
162+
"attr": "handle-behavior",
163+
"reflectToAttr": false,
164+
"docs": "The interaction behavior for the sheet modal when the handle is pressed.\n\nDefaults to `\"none\"`, which means the modal will not change size or position when the handle is pressed.\nSet to `\"cycle\"` to let the modal cycle between available breakpoints when pressed.\n\nHandle behavior is unavailable when the `handle` property is set to `false` or\nwhen the `breakpoints` property is not set (using a fullscreen or card modal).",
165+
"docsTags": [],
166+
"default": "'none'",
167+
"values": [
168+
{
169+
"value": "cycle",
170+
"type": "string"
171+
},
172+
{
173+
"value": "none",
174+
"type": "string"
175+
},
176+
{
177+
"type": "undefined"
178+
}
179+
],
180+
"optional": true,
181+
"required": false
182+
},
158183
{
159184
"name": "htmlAttributes",
160185
"type": "undefined | { [key: string]: any; }",
@@ -209,6 +234,23 @@
209234
"optional": false,
210235
"required": false
211236
},
237+
{
238+
"name": "keepContentsMounted",
239+
"type": "boolean",
240+
"mutable": false,
241+
"attr": "keep-contents-mounted",
242+
"reflectToAttr": false,
243+
"docs": "If `true`, the component passed into `ion-modal` will\nautomatically be mounted when the modal is created. The\ncomponent will remain mounted even when the modal is dismissed.\nHowever, the component will be destroyed when the modal is\ndestroyed. This property is not reactive and should only be\nused when initially creating a modal.\n\nNote: This feature only applies to inline modals in JavaScript\nframeworks such as Angular, React, and Vue.",
244+
"docsTags": [],
245+
"default": "false",
246+
"values": [
247+
{
248+
"type": "boolean"
249+
}
250+
],
251+
"optional": false,
252+
"required": false
253+
},
212254
{
213255
"name": "keyboardClose",
214256
"type": "boolean",

src/translate/.detection/api/popover.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,23 @@
238238
"optional": false,
239239
"required": false
240240
},
241+
{
242+
"name": "keepContentsMounted",
243+
"type": "boolean",
244+
"mutable": false,
245+
"attr": "keep-contents-mounted",
246+
"reflectToAttr": false,
247+
"docs": "If `true`, the component passed into `ion-popover` will\nautomatically be mounted when the popover is created. The\ncomponent will remain mounted even when the popover is dismissed.\nHowever, the component will be destroyed when the popover is\ndestroyed. This property is not reactive and should only be\nused when initially creating a popover.\n\nNote: This feature only applies to inline popovers in JavaScript\nframeworks such as Angular, React, and Vue.",
248+
"docsTags": [],
249+
"default": "false",
250+
"values": [
251+
{
252+
"type": "boolean"
253+
}
254+
],
255+
"optional": false,
256+
"required": false
257+
},
241258
{
242259
"name": "keyboardClose",
243260
"type": "boolean",

src/translate/.detection/api/range.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,25 @@
4343
],
4444
"usage": {},
4545
"props": [
46+
{
47+
"name": "activeBarStart",
48+
"type": "number | undefined",
49+
"mutable": true,
50+
"attr": "active-bar-start",
51+
"reflectToAttr": false,
52+
"docs": "The start position of the range active bar. This feature is only available with a single knob (dualKnobs=\"false\").\nValid values are greater than or equal to the min value and less than or equal to the max value.",
53+
"docsTags": [],
54+
"values": [
55+
{
56+
"type": "number"
57+
},
58+
{
59+
"type": "undefined"
60+
}
61+
],
62+
"optional": true,
63+
"required": false
64+
},
4665
{
4766
"name": "color",
4867
"type": "\"danger\" | \"dark\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | string & Record<never, never> | undefined",

src/translate/.detection/api/ripple-effect.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"ion-button",
6464
"ion-card",
6565
"ion-chip",
66+
"ion-datetime-button",
6667
"ion-fab-button",
6768
"ion-item",
6869
"ion-item-option",
@@ -91,6 +92,9 @@
9192
"ion-chip": [
9293
"ion-ripple-effect"
9394
],
95+
"ion-datetime-button": [
96+
"ion-ripple-effect"
97+
],
9498
"ion-fab-button": [
9599
"ion-ripple-effect"
96100
],

src/translate/.detection/api/textarea.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"type": "boolean",
1717
"mutable": false,
1818
"attr": "auto-grow",
19-
"reflectToAttr": false,
20-
"docs": "If `true`, the element height will increase based on the value.",
19+
"reflectToAttr": true,
20+
"docs": "If `true`, the textarea container will grow and shrink based\non the contents of the textarea.",
2121
"docsTags": [],
2222
"default": "false",
2323
"values": [

0 commit comments

Comments
 (0)