Skip to content

Commit

Permalink
Smart UI 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarkov committed Dec 23, 2020
1 parent 5f48662 commit 0f8301f
Show file tree
Hide file tree
Showing 626 changed files with 44,441 additions and 23,504 deletions.
6 changes: 4 additions & 2 deletions accordion/accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export interface AccordionProps extends AccordionProperties {
onDragStart?: ((event?: Event) => void) | undefined;
onExpand?: ((event?: Event) => void) | undefined;
onExpanding?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Accordion organizes content within collapsable items.
*/
export declare class Accordion extends React.Component<React.HTMLProps<Element> & AccordionProps, any> {
export declare class Accordion extends React.Component<React.HTMLAttributes<Element> & AccordionProps, any> {
private _id;
private nativeElement;
private componentRef;
Expand Down Expand Up @@ -139,7 +141,7 @@ export declare class Accordion extends React.Component<React.HTMLProps<Element>
/** This event occurs, when the React component is completely rendered.
* @param event. The custom event. */
onReady?: ((event?: Event) => void) | undefined;
get events(): string[];
get eventListeners(): string[];
/** Collapses an item at a specified index.
* @param {number} position. The index of the collapsed item.
*/
Expand Down
14 changes: 8 additions & 6 deletions accordion/accordion.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class AccordionItem extends React.Component {
return ["arrow", "content", "expanded", "focused", "label"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onCollapse", "onExpand", "onCreate", "onReady"];
}
componentDidRender(initialize) {
Expand Down Expand Up @@ -148,8 +148,9 @@ class AccordionItem extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down Expand Up @@ -311,7 +312,7 @@ class Accordion extends React.Component {
return ["animation", "disabled", "expandedIndexes", "expandMode", "locale", "localizeFormatFunction", "messages", "readonly", "reorder", "rightToLeft", "theme", "unfocusable"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onCollapse", "onCollapsing", "onDragEnd", "onDragStart", "onExpand", "onExpanding", "onCreate", "onReady"];
}
/** Collapses an item at a specified index.
Expand Down Expand Up @@ -458,8 +459,9 @@ class Accordion extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
14 changes: 8 additions & 6 deletions accordion/accordion.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ require('../source/modules/smart.accordion');
return ["arrow", "content", "expanded", "focused", "label"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onCollapse", "onExpand", "onCreate", "onReady"];
}
componentDidRender(initialize) {
Expand Down Expand Up @@ -154,8 +154,9 @@ require('../source/modules/smart.accordion');
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down Expand Up @@ -317,7 +318,7 @@ require('../source/modules/smart.accordion');
return ["animation", "disabled", "expandedIndexes", "expandMode", "locale", "localizeFormatFunction", "messages", "readonly", "reorder", "rightToLeft", "theme", "unfocusable"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onCollapse", "onCollapsing", "onDragEnd", "onDragStart", "onExpand", "onExpanding", "onCreate", "onReady"];
}
/** Collapses an item at a specified index.
Expand Down Expand Up @@ -464,8 +465,9 @@ require('../source/modules/smart.accordion');
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
6 changes: 4 additions & 2 deletions accordion/accordionitem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ export interface AccordionItemProps extends AccordionItemProperties {
style?: React.CSSProperties;
onCollapse?: ((event?: Event) => void) | undefined;
onExpand?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Single item in an Accordion view.
*/
export declare class AccordionItem extends React.Component<React.HTMLProps<Element> & AccordionItemProps, any> {
export declare class AccordionItem extends React.Component<React.HTMLAttributes<Element> & AccordionItemProps, any> {
private _id;
private nativeElement;
private componentRef;
Expand Down Expand Up @@ -51,7 +53,7 @@ export declare class AccordionItem extends React.Component<React.HTMLProps<Eleme
/** This event occurs, when the React component is completely rendered.
* @param event. The custom event. */
onReady?: ((event?: Event) => void) | undefined;
get events(): string[];
get eventListeners(): string[];
constructor(props: any);
componentDidRender(initialize: boolean): void;
componentDidMount(): void;
Expand Down
6 changes: 4 additions & 2 deletions array/array.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ export interface ArrayProps extends ArrayProperties {
onElementClick?: ((event?: Event) => void) | undefined;
onScroll?: ((event?: Event) => void) | undefined;
onSizeChange?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Array is broadly used in Engineering applications and displays a Grid of values.
*/
export declare class Array extends React.Component<React.HTMLProps<Element> & ArrayProps, any> {
export declare class Array extends React.Component<React.HTMLAttributes<Element> & ArrayProps, any> {
private _id;
private nativeElement;
private componentRef;
Expand Down Expand Up @@ -182,7 +184,7 @@ export declare class Array extends React.Component<React.HTMLProps<Element> & Ar
/** This event occurs, when the React component is completely rendered.
* @param event. The custom event. */
onReady?: ((event?: Event) => void) | undefined;
get events(): string[];
get eventListeners(): string[];
/** Adds a dimension to the array. Note: when adding multiple dimensions simultaneously, it is recommended to do so by dynamically setting the dimensions property.
*/
addDimension(): void;
Expand Down
7 changes: 4 additions & 3 deletions array/array.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class Array$1 extends React.Component {
return ["animation", "arrayIndexingMode", "changeProperty", "columns", "customWidgetDefaultValue", "dimensions", "disabled", "elementHeight", "elementTemplate", "elementWidth", "getElementValue", "indexerHeight", "indexerWidth", "locale", "localizeFormatFunction", "messages", "readonly", "rows", "setElementValue", "showHorizontalScrollbar", "showIndexDisplay", "showSelection", "showVerticalScrollbar", "theme", "type", "unfocusable", "value"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onArraySizeChange", "onChange", "onDimensionChange", "onElementClick", "onScroll", "onSizeChange", "onCreate", "onReady"];
}
/** Adds a dimension to the array. Note: when adding multiple dimensions simultaneously, it is recommended to do so by dynamically setting the dimensions property.
Expand Down Expand Up @@ -811,8 +811,9 @@ class Array$1 extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
7 changes: 4 additions & 3 deletions array/array.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ require('../source/modules/smart.array');
return ["animation", "arrayIndexingMode", "changeProperty", "columns", "customWidgetDefaultValue", "dimensions", "disabled", "elementHeight", "elementTemplate", "elementWidth", "getElementValue", "indexerHeight", "indexerWidth", "locale", "localizeFormatFunction", "messages", "readonly", "rows", "setElementValue", "showHorizontalScrollbar", "showIndexDisplay", "showSelection", "showVerticalScrollbar", "theme", "type", "unfocusable", "value"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onArraySizeChange", "onChange", "onDimensionChange", "onElementClick", "onScroll", "onSizeChange", "onCreate", "onReady"];
}
/** Adds a dimension to the array. Note: when adding multiple dimensions simultaneously, it is recommended to do so by dynamically setting the dimensions property.
Expand Down Expand Up @@ -817,8 +817,9 @@ require('../source/modules/smart.array');
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
6 changes: 4 additions & 2 deletions breadcrumb/breadcrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ export interface BreadcrumbProps extends BreadcrumbProperties {
onDragEnd?: ((event?: Event) => void) | undefined;
onDragging?: ((event?: Event) => void) | undefined;
onAddNewItem?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Breadcrumbs allow users to make selections from a range of values.
*/
export declare class Breadcrumb extends React.Component<React.HTMLProps<Element> & BreadcrumbProps, any> {
export declare class Breadcrumb extends React.Component<React.HTMLAttributes<Element> & BreadcrumbProps, any> {
private _id;
private nativeElement;
private componentRef;
Expand Down Expand Up @@ -117,7 +119,7 @@ export declare class Breadcrumb extends React.Component<React.HTMLProps<Element>
/** This event occurs, when the React component is completely rendered.
* @param event. The custom event. */
onReady?: ((event?: Event) => void) | undefined;
get events(): string[];
get eventListeners(): string[];
/** Adds an item.
* @param {any} itemDetails. An Object with the fields "index", "label", and "value".
*/
Expand Down
7 changes: 4 additions & 3 deletions breadcrumb/breadcrumb.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Breadcrumb extends React.Component {
return ["addNewItem", "allowDrag", "allowDrop", "animation", "closeButtons", "dataSource", "disabled", "itemTemplate", "locale", "messages", "minimizeWidth", "unfocusable"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onClose", "onClosing", "onDragEnd", "onDragging", "onAddNewItem", "onCreate", "onReady"];
}
/** Adds an item.
Expand Down Expand Up @@ -286,8 +286,9 @@ class Breadcrumb extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
7 changes: 4 additions & 3 deletions breadcrumb/breadcrumb.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ require('../source/modules/smart.breadcrumb');
return ["addNewItem", "allowDrag", "allowDrop", "animation", "closeButtons", "dataSource", "disabled", "itemTemplate", "locale", "messages", "minimizeWidth", "unfocusable"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onClose", "onClosing", "onDragEnd", "onDragging", "onAddNewItem", "onCreate", "onReady"];
}
/** Adds an item.
Expand Down Expand Up @@ -292,8 +292,9 @@ require('../source/modules/smart.breadcrumb');
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
6 changes: 4 additions & 2 deletions button/button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ export interface ButtonProps extends ButtonProperties {
className?: string;
style?: React.CSSProperties;
onClick?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Buttons allow users to take actions, and make choices, with a single tap. Buttons communicate actions that users can take.
*/
export declare class Button extends React.Component<React.HTMLProps<Element> & ButtonProps, any> {
export declare class Button extends React.Component<React.HTMLAttributes<Element> & ButtonProps, any> {
private _id;
private nativeElement;
private componentRef;
Expand Down Expand Up @@ -103,7 +105,7 @@ export declare class Button extends React.Component<React.HTMLProps<Element> & B
/** This event occurs, when the React component is completely rendered.
* @param event. The custom event. */
onReady?: ((event?: Event) => void) | undefined;
get events(): string[];
get eventListeners(): string[];
constructor(props: any);
componentDidRender(initialize: boolean): void;
componentDidMount(): void;
Expand Down
28 changes: 16 additions & 12 deletions button/button.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class RepeatButton extends React.Component {
return ["animation", "clickMode", "delay", "disabled", "initialDelay", "innerHTML", "locale", "localizeFormatFunction", "messages", "name", "readonly", "theme", "unfocusable", "value"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onClick", "onCreate", "onReady"];
}
componentDidRender(initialize) {
Expand Down Expand Up @@ -258,8 +258,9 @@ class RepeatButton extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down Expand Up @@ -432,7 +433,7 @@ class ToggleButton extends React.Component {
return ["animation", "checked", "clickMode", "disabled", "innerHTML", "locale", "localizeFormatFunction", "messages", "name", "readonly", "theme", "unfocusable", "value"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onChange", "onCreate", "onReady"];
}
componentDidRender(initialize) {
Expand Down Expand Up @@ -512,8 +513,9 @@ class ToggleButton extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down Expand Up @@ -675,7 +677,7 @@ class PowerButton extends React.Component {
return ["animation", "checked", "clickMode", "disabled", "locale", "localizeFormatFunction", "messages", "name", "readonly", "theme", "unfocusable", "value"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onChange", "onCreate", "onReady"];
}
componentDidRender(initialize) {
Expand Down Expand Up @@ -755,8 +757,9 @@ class PowerButton extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down Expand Up @@ -940,7 +943,7 @@ class Button extends React.Component {
return ["animation", "clickMode", "content", "disabled", "innerHTML", "locale", "localizeFormatFunction", "messages", "name", "readonly", "rightToLeft", "theme", "type", "value", "unfocusable"];
}
// Gets the events of the React component.
get events() {
get eventListeners() {
return ["onClick", "onCreate", "onReady"];
}
componentDidRender(initialize) {
Expand Down Expand Up @@ -1020,8 +1023,9 @@ class Button extends React.Component {
if (!that.nativeElement) {
return;
}
for (let i = 0; i < that.events.length; i++) {
const eventName = that.events[i];
that.nativeElement.whenRenderedCallbacks = [];
for (let i = 0; i < that.eventListeners.length; i++) {
const eventName = that.eventListeners[i];
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
}
}
Expand Down
Loading

0 comments on commit 0f8301f

Please sign in to comment.