Skip to content

Commit 8785c07

Browse files
committed
version 7.6.0
1 parent 65a34f1 commit 8785c07

File tree

531 files changed

+32281
-19834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

531 files changed

+32281
-19834
lines changed

accordion/accordion.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface AccordionProps extends AccordionProperties {
2222
export declare class Accordion extends React.Component<React.HTMLProps<Element> & AccordionProps, any> {
2323
private _id;
2424
private nativeElement;
25+
private componentRef;
2526
get id(): string;
2627
/** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
2728
* Property type: Animation
@@ -166,6 +167,8 @@ export declare class Accordion extends React.Component<React.HTMLProps<Element>
166167
componentDidMount(): void;
167168
componentDidUpdate(): void;
168169
componentWillUnmount(): void;
169-
render(): React.DOMElement<React.DOMAttributes<Element>, Element>;
170+
render(): React.ReactElement<{
171+
ref: any;
172+
}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
170173
}
171174
export default Accordion;

accordion/accordion.esm.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const Smart = window.Smart;
1010
class AccordionItem extends React.Component {
1111
constructor(props) {
1212
super(props);
13+
this.componentRef = React.createRef();
1314
}
1415
// Gets the id of the React component.
1516
get id() {
@@ -90,7 +91,7 @@ class AccordionItem extends React.Component {
9091
props[prop] = that.props[prop];
9192
}
9293
if (initialize) {
93-
that.nativeElement = this.refs[this.id];
94+
that.nativeElement = this.componentRef.current;
9495
}
9596
for (let prop in props) {
9697
if (prop === 'class') {
@@ -153,7 +154,7 @@ class AccordionItem extends React.Component {
153154
}
154155
}
155156
render() {
156-
return (React.createElement("smart-accordion-item", { ref: this.id }, this.props.children));
157+
return (React.createElement("smart-accordion-item", { ref: this.componentRef }, this.props.children));
157158
}
158159
}
159160

@@ -164,6 +165,7 @@ const Smart$1 = window.Smart;
164165
class Accordion extends React.Component {
165166
constructor(props) {
166167
super(props);
168+
this.componentRef = React.createRef();
167169
}
168170
// Gets the id of the React component.
169171
get id() {
@@ -399,7 +401,7 @@ class Accordion extends React.Component {
399401
props[prop] = that.props[prop];
400402
}
401403
if (initialize) {
402-
that.nativeElement = this.refs[this.id];
404+
that.nativeElement = this.componentRef.current;
403405
}
404406
for (let prop in props) {
405407
if (prop === 'class') {
@@ -462,7 +464,7 @@ class Accordion extends React.Component {
462464
}
463465
}
464466
render() {
465-
return (React.createElement("smart-accordion", { ref: this.id }, this.props.children));
467+
return (React.createElement("smart-accordion", { ref: this.componentRef }, this.props.children));
466468
}
467469
}
468470

accordion/accordion.umd.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ require('../source/modules/smart.accordion');
1616
class AccordionItem extends React.Component {
1717
constructor(props) {
1818
super(props);
19+
this.componentRef = React.createRef();
1920
}
2021
// Gets the id of the React component.
2122
get id() {
@@ -96,7 +97,7 @@ require('../source/modules/smart.accordion');
9697
props[prop] = that.props[prop];
9798
}
9899
if (initialize) {
99-
that.nativeElement = this.refs[this.id];
100+
that.nativeElement = this.componentRef.current;
100101
}
101102
for (let prop in props) {
102103
if (prop === 'class') {
@@ -159,7 +160,7 @@ require('../source/modules/smart.accordion');
159160
}
160161
}
161162
render() {
162-
return (React.createElement("smart-accordion-item", { ref: this.id }, this.props.children));
163+
return (React.createElement("smart-accordion-item", { ref: this.componentRef }, this.props.children));
163164
}
164165
}
165166

@@ -170,6 +171,7 @@ require('../source/modules/smart.accordion');
170171
class Accordion extends React.Component {
171172
constructor(props) {
172173
super(props);
174+
this.componentRef = React.createRef();
173175
}
174176
// Gets the id of the React component.
175177
get id() {
@@ -405,7 +407,7 @@ require('../source/modules/smart.accordion');
405407
props[prop] = that.props[prop];
406408
}
407409
if (initialize) {
408-
that.nativeElement = this.refs[this.id];
410+
that.nativeElement = this.componentRef.current;
409411
}
410412
for (let prop in props) {
411413
if (prop === 'class') {
@@ -468,7 +470,7 @@ require('../source/modules/smart.accordion');
468470
}
469471
}
470472
render() {
471-
return (React.createElement("smart-accordion", { ref: this.id }, this.props.children));
473+
return (React.createElement("smart-accordion", { ref: this.componentRef }, this.props.children));
472474
}
473475
}
474476

accordion/accordionitem.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface AccordionItemProps extends AccordionItemProperties {
1616
export declare class AccordionItem extends React.Component<React.HTMLProps<Element> & AccordionItemProps, any> {
1717
private _id;
1818
private nativeElement;
19+
private componentRef;
1920
get id(): string;
2021
/** Sets or gets header's arrow position. If the value is 'none' the arrow is not shown.
2122
* Property type: AccordionItemArrow
@@ -56,6 +57,8 @@ export declare class AccordionItem extends React.Component<React.HTMLProps<Eleme
5657
componentDidMount(): void;
5758
componentDidUpdate(): void;
5859
componentWillUnmount(): void;
59-
render(): React.DOMElement<React.DOMAttributes<Element>, Element>;
60+
render(): React.ReactElement<{
61+
ref: any;
62+
}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
6063
}
6164
export default AccordionItem;

array/array.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export interface ArrayProps extends ArrayProperties {
2020
export declare class Array extends React.Component<React.HTMLProps<Element> & ArrayProps, any> {
2121
private _id;
2222
private nativeElement;
23+
private componentRef;
2324
get id(): string;
2425
/** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
2526
* Property type: Animation
@@ -300,6 +301,8 @@ export declare class Array extends React.Component<React.HTMLProps<Element> & Ar
300301
componentDidMount(): void;
301302
componentDidUpdate(): void;
302303
componentWillUnmount(): void;
303-
render(): React.DOMElement<React.DOMAttributes<Element>, Element>;
304+
render(): React.ReactElement<{
305+
ref: any;
306+
}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
304307
}
305308
export default Array;

array/array.esm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const Smart = window.Smart;
3535
class Array$1 extends React.Component {
3636
constructor(props) {
3737
super(props);
38+
this.componentRef = React.createRef();
3839
}
3940
// Gets the id of the React component.
4041
get id() {
@@ -753,7 +754,7 @@ class Array$1 extends React.Component {
753754
props[prop] = that.props[prop];
754755
}
755756
if (initialize) {
756-
that.nativeElement = this.refs[this.id];
757+
that.nativeElement = this.componentRef.current;
757758
}
758759
for (let prop in props) {
759760
if (prop === 'class') {
@@ -816,7 +817,7 @@ class Array$1 extends React.Component {
816817
}
817818
}
818819
render() {
819-
return (React.createElement("smart-array", { ref: this.id }, this.props.children));
820+
return (React.createElement("smart-array", { ref: this.componentRef }, this.props.children));
820821
}
821822
}
822823

array/array.umd.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ require('../source/modules/smart.array');
4141
class Array$1 extends React.Component {
4242
constructor(props) {
4343
super(props);
44+
this.componentRef = React.createRef();
4445
}
4546
// Gets the id of the React component.
4647
get id() {
@@ -759,7 +760,7 @@ require('../source/modules/smart.array');
759760
props[prop] = that.props[prop];
760761
}
761762
if (initialize) {
762-
that.nativeElement = this.refs[this.id];
763+
that.nativeElement = this.componentRef.current;
763764
}
764765
for (let prop in props) {
765766
if (prop === 'class') {
@@ -822,7 +823,7 @@ require('../source/modules/smart.array');
822823
}
823824
}
824825
render() {
825-
return (React.createElement("smart-array", { ref: this.id }, this.props.children));
826+
return (React.createElement("smart-array", { ref: this.componentRef }, this.props.children));
826827
}
827828
}
828829

breadcrumb/breadcrumb.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export interface BreadcrumbProps extends BreadcrumbProperties {
1919
export declare class Breadcrumb extends React.Component<React.HTMLProps<Element> & BreadcrumbProps, any> {
2020
private _id;
2121
private nativeElement;
22+
private componentRef;
2223
get id(): string;
2324
/** Enables or disables the "Add new item" (+) button.
2425
* Property type: boolean
@@ -136,6 +137,8 @@ export declare class Breadcrumb extends React.Component<React.HTMLProps<Element>
136137
componentDidMount(): void;
137138
componentDidUpdate(): void;
138139
componentWillUnmount(): void;
139-
render(): React.DOMElement<React.DOMAttributes<Element>, Element>;
140+
render(): React.ReactElement<{
141+
ref: any;
142+
}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
140143
}
141144
export default Breadcrumb;

breadcrumb/breadcrumb.esm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const Smart = window.Smart;
1010
class Breadcrumb extends React.Component {
1111
constructor(props) {
1212
super(props);
13+
this.componentRef = React.createRef();
1314
}
1415
// Gets the id of the React component.
1516
get id() {
@@ -228,7 +229,7 @@ class Breadcrumb extends React.Component {
228229
props[prop] = that.props[prop];
229230
}
230231
if (initialize) {
231-
that.nativeElement = this.refs[this.id];
232+
that.nativeElement = this.componentRef.current;
232233
}
233234
for (let prop in props) {
234235
if (prop === 'class') {
@@ -291,7 +292,7 @@ class Breadcrumb extends React.Component {
291292
}
292293
}
293294
render() {
294-
return (React.createElement("smart-breadcrumb", { ref: this.id }, this.props.children));
295+
return (React.createElement("smart-breadcrumb", { ref: this.componentRef }, this.props.children));
295296
}
296297
}
297298

breadcrumb/breadcrumb.umd.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ require('../source/modules/smart.breadcrumb');
1616
class Breadcrumb extends React.Component {
1717
constructor(props) {
1818
super(props);
19+
this.componentRef = React.createRef();
1920
}
2021
// Gets the id of the React component.
2122
get id() {
@@ -234,7 +235,7 @@ require('../source/modules/smart.breadcrumb');
234235
props[prop] = that.props[prop];
235236
}
236237
if (initialize) {
237-
that.nativeElement = this.refs[this.id];
238+
that.nativeElement = this.componentRef.current;
238239
}
239240
for (let prop in props) {
240241
if (prop === 'class') {
@@ -297,7 +298,7 @@ require('../source/modules/smart.breadcrumb');
297298
}
298299
}
299300
render() {
300-
return (React.createElement("smart-breadcrumb", { ref: this.id }, this.props.children));
301+
return (React.createElement("smart-breadcrumb", { ref: this.componentRef }, this.props.children));
301302
}
302303
}
303304

button/button.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface ButtonProps extends ButtonProperties {
2121
export declare class Button extends React.Component<React.HTMLProps<Element> & ButtonProps, any> {
2222
private _id;
2323
private nativeElement;
24+
private componentRef;
2425
get id(): string;
2526
/** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
2627
* Property type: Animation
@@ -108,6 +109,8 @@ export declare class Button extends React.Component<React.HTMLProps<Element> & B
108109
componentDidMount(): void;
109110
componentDidUpdate(): void;
110111
componentWillUnmount(): void;
111-
render(): React.DOMElement<React.DOMAttributes<Element>, Element>;
112+
render(): React.ReactElement<{
113+
ref: any;
114+
}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
112115
}
113116
export default Button;

0 commit comments

Comments
 (0)