smart-webcomponents-react 13.1.1 → 13.1.26
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/alertwindow/alertwindow.d.ts +10 -0
- package/alertwindow/alertwindow.esm.js +23 -1
- package/alertwindow/alertwindow.umd.js +23 -1
- package/barcode/barcode.d.ts +4 -2
- package/datetimepicker/datetimepicker.d.ts +8 -0
- package/datetimepicker/datetimepicker.esm.js +55 -0
- package/datetimepicker/datetimepicker.umd.js +860 -805
- package/dialogwindow/dialogwindow.d.ts +10 -0
- package/dialogwindow/dialogwindow.esm.js +23 -1
- package/dialogwindow/dialogwindow.umd.js +23 -1
- package/dockinglayout/dockinglayout.d.ts +6 -0
- package/dockinglayout/dockinglayout.esm.js +15 -0
- package/dockinglayout/dockinglayout.umd.js +15 -0
- package/grid/grid.d.ts +16 -1
- package/grid/grid.esm.js +29 -0
- package/grid/grid.umd.js +29 -0
- package/index.d.ts +225 -7
- package/kanban/kanban.d.ts +26 -1
- package/kanban/kanban.esm.js +56 -1
- package/kanban/kanban.umd.js +56 -1
- package/layout/dockinglayout.d.ts +6 -0
- package/multilinewindow/multilinewindow.d.ts +10 -0
- package/multilinewindow/multilinewindow.esm.js +23 -1
- package/multilinewindow/multilinewindow.umd.js +23 -1
- package/package.json +1 -1
- package/progresswindow/progresswindow.d.ts +10 -0
- package/progresswindow/progresswindow.esm.js +23 -1
- package/progresswindow/progresswindow.umd.js +23 -1
- package/promptwindow/promptwindow.d.ts +10 -0
- package/promptwindow/promptwindow.esm.js +23 -1
- package/promptwindow/promptwindow.umd.js +23 -1
- package/qrcode/package.json +7 -0
- package/qrcode/qrcode.d.ts +141 -0
- package/qrcode/qrcode.esm.js +376 -0
- package/qrcode/qrcode.umd.js +387 -0
- package/source/modules/smart.accordion.js +1 -1
- package/source/modules/smart.array.js +1 -1
- package/source/modules/smart.barcode.js +2 -2
- package/source/modules/smart.breadcrumb.js +1 -1
- package/source/modules/smart.button.js +1 -1
- package/source/modules/smart.buttongroup.js +1 -1
- package/source/modules/smart.calendar.js +2 -2
- package/source/modules/smart.card.js +1 -1
- package/source/modules/smart.cardview.js +5 -5
- package/source/modules/smart.carousel.js +1 -1
- package/source/modules/smart.chart.js +2 -2
- package/source/modules/smart.checkbox.js +1 -1
- package/source/modules/smart.checkinput.js +1 -1
- package/source/modules/smart.chip.js +1 -1
- package/source/modules/smart.colorinput.js +1 -1
- package/source/modules/smart.colorpanel.js +1 -1
- package/source/modules/smart.colorpicker.js +1 -1
- package/source/modules/smart.combobox.js +1 -1
- package/source/modules/smart.common.js +3 -3
- package/source/modules/smart.countryinput.js +1 -1
- package/source/modules/smart.dateinput.js +3 -3
- package/source/modules/smart.daterangeinput.js +3 -3
- package/source/modules/smart.datetimepicker.js +3 -3
- package/source/modules/smart.dockinglayout.js +4 -4
- package/source/modules/smart.dropdownbutton.js +1 -1
- package/source/modules/smart.dropdownlist.js +1 -1
- package/source/modules/smart.editor.js +3 -3
- package/source/modules/smart.element.js +1 -1
- package/source/modules/smart.fileupload.js +1 -1
- package/source/modules/smart.form.js +1 -1
- package/source/modules/smart.formulaparser.js +1 -1
- package/source/modules/smart.ganttchart.js +7 -7
- package/source/modules/smart.gauge.js +2 -2
- package/source/modules/smart.grid.js +16 -16
- package/source/modules/smart.gridpanel.js +5 -5
- package/source/modules/smart.input.js +1 -1
- package/source/modules/smart.kanban.js +6 -6
- package/source/modules/smart.layout.js +1 -1
- package/source/modules/smart.led.js +1 -1
- package/source/modules/smart.listbox.js +1 -1
- package/source/modules/smart.listmenu.js +1 -1
- package/source/modules/smart.map.js +1 -1
- package/source/modules/smart.maskedtextbox.js +1 -1
- package/source/modules/smart.menu.js +1 -1
- package/source/modules/smart.multicomboinput.js +1 -1
- package/source/modules/smart.multiinput.js +1 -1
- package/source/modules/smart.multilinetextbox.js +1 -1
- package/source/modules/smart.multisplitbutton.js +1 -1
- package/source/modules/smart.numberinput.js +1 -1
- package/source/modules/smart.numerictextbox.js +1 -1
- package/source/modules/smart.pager.js +1 -1
- package/source/modules/smart.passwordinput.js +1 -1
- package/source/modules/smart.passwordtextbox.js +1 -1
- package/source/modules/smart.path.js +1 -1
- package/source/modules/smart.phoneinput.js +1 -1
- package/source/modules/smart.pivottable.js +6 -6
- package/source/modules/smart.progressbar.js +1 -1
- package/source/modules/smart.qrcode.js +117 -0
- package/source/modules/smart.querybuilder.js +3 -3
- package/source/modules/smart.radiobutton.js +1 -1
- package/source/modules/smart.rating.js +1 -1
- package/source/modules/smart.router.js +2 -2
- package/source/modules/smart.scheduler.js +5 -5
- package/source/modules/smart.scrollbar.js +1 -1
- package/source/modules/smart.slider.js +2 -2
- package/source/modules/smart.sortable.js +1 -1
- package/source/modules/smart.splitter.js +1 -1
- package/source/modules/smart.switchbutton.js +1 -1
- package/source/modules/smart.table.js +5 -5
- package/source/modules/smart.tabs.js +2 -2
- package/source/modules/smart.tank.js +2 -2
- package/source/modules/smart.textarea.js +1 -1
- package/source/modules/smart.textbox.js +1 -1
- package/source/modules/smart.timeinput.js +1 -1
- package/source/modules/smart.timepicker.js +1 -1
- package/source/modules/smart.toast.js +1 -1
- package/source/modules/smart.tooltip.js +1 -1
- package/source/modules/smart.tree.js +2 -2
- package/source/modules/smart.validator.js +1 -1
- package/source/modules/smart.window.js +2 -2
- package/source/smart.accordion.js +1 -1
- package/source/smart.ajax.js +1 -1
- package/source/smart.array.js +1 -1
- package/source/smart.barcode.js +2 -2
- package/source/smart.bootstrap.js +1 -1
- package/source/smart.breadcrumb.js +1 -1
- package/source/smart.button.js +1 -1
- package/source/smart.buttongroup.js +1 -1
- package/source/smart.calendar.js +1 -1
- package/source/smart.card.js +1 -1
- package/source/smart.cardview.js +1 -1
- package/source/smart.carousel.js +1 -1
- package/source/smart.chart.annotations.js +1 -1
- package/source/smart.chart.api.js +1 -1
- package/source/smart.chart.core.js +1 -1
- package/source/smart.chart.js +1 -1
- package/source/smart.chart.rangeselector.js +1 -1
- package/source/smart.chart.waterfall.js +1 -1
- package/source/smart.checkbox.js +1 -1
- package/source/smart.checkinput.js +1 -1
- package/source/smart.chip.js +1 -1
- package/source/smart.colorinput.js +1 -1
- package/source/smart.colorpanel.js +1 -1
- package/source/smart.colorpicker.js +1 -1
- package/source/smart.combobox.js +1 -1
- package/source/smart.complex.js +1 -1
- package/source/smart.core.js +1 -1
- package/source/smart.countryinput.js +1 -1
- package/source/smart.data.js +2 -2
- package/source/smart.date.js +2 -2
- package/source/smart.dateformatpanel.js +1 -1
- package/source/smart.dateinput.js +2 -2
- package/source/smart.daterangeinput.js +1 -1
- package/source/smart.datetimepicker.js +2 -2
- package/source/smart.dockinglayout.js +2 -2
- package/source/smart.draw.js +1 -1
- package/source/smart.dropdownbutton.js +1 -1
- package/source/smart.dropdownlist.js +1 -1
- package/source/smart.editor.js +2 -2
- package/source/smart.element.js +1 -1
- package/source/smart.elements.js +21 -21
- package/source/smart.export.js +1 -1
- package/source/smart.fileupload.js +1 -1
- package/source/smart.filter.js +1 -1
- package/source/smart.filterbuilder.js +1 -1
- package/source/smart.filterpanel.js +1 -1
- package/source/smart.form.js +1 -1
- package/source/smart.format.js +1 -1
- package/source/smart.formulaparser.js +1 -1
- package/source/smart.ganttchart.js +1 -1
- package/source/smart.gauge.js +1 -1
- package/source/smart.grid.cell.js +2 -2
- package/source/smart.grid.chart.js +1 -1
- package/source/smart.grid.column.js +2 -2
- package/source/smart.grid.core.js +2 -2
- package/source/smart.grid.dialog.js +2 -2
- package/source/smart.grid.edit.js +2 -2
- package/source/smart.grid.export.js +1 -1
- package/source/smart.grid.filter.js +2 -2
- package/source/smart.grid.group.js +1 -1
- package/source/smart.grid.js +1 -1
- package/source/smart.grid.menu.js +1 -1
- package/source/smart.grid.pager.js +1 -1
- package/source/smart.grid.reorder.js +2 -2
- package/source/smart.grid.resize.js +1 -1
- package/source/smart.grid.row.js +1 -1
- package/source/smart.grid.select.js +2 -2
- package/source/smart.grid.sort.js +2 -2
- package/source/smart.grid.toolbar.js +1 -1
- package/source/smart.grid.tree.js +1 -1
- package/source/smart.grid.view.js +2 -2
- package/source/smart.gridpanel.js +1 -1
- package/source/smart.input.js +1 -1
- package/source/smart.kanban.js +2 -2
- package/source/smart.layout.js +1 -1
- package/source/smart.led.js +1 -1
- package/source/smart.listbox.js +1 -1
- package/source/smart.listmenu.js +1 -1
- package/source/smart.map.js +1 -1
- package/source/smart.maskedtextbox.js +1 -1
- package/source/smart.math.js +1 -1
- package/source/smart.menu.js +1 -1
- package/source/smart.multicomboinput.js +1 -1
- package/source/smart.multiinput.js +1 -1
- package/source/smart.multilinetextbox.js +1 -1
- package/source/smart.multisplitbutton.js +1 -1
- package/source/smart.numberformatpanel.js +1 -1
- package/source/smart.numberinput.js +1 -1
- package/source/smart.numeric.js +1 -1
- package/source/smart.numerictextbox.js +1 -1
- package/source/smart.pager.js +1 -1
- package/source/smart.passwordinput.js +1 -1
- package/source/smart.passwordtextbox.js +1 -1
- package/source/smart.path.js +1 -1
- package/source/smart.phoneinput.js +1 -1
- package/source/smart.pivottable.js +1 -1
- package/source/smart.powerbutton.js +1 -1
- package/source/smart.progressbar.js +1 -1
- package/source/smart.qrcode.js +6 -0
- package/source/smart.radiobutton.js +1 -1
- package/source/smart.rating.js +1 -1
- package/source/smart.router.js +1 -1
- package/source/smart.scheduler.js +1 -1
- package/source/smart.scrollbar.js +1 -1
- package/source/smart.slider.js +1 -1
- package/source/smart.sortable.js +1 -1
- package/source/smart.splitter.js +1 -1
- package/source/smart.switchbutton.js +1 -1
- package/source/smart.table.js +2 -2
- package/source/smart.tabs.js +2 -2
- package/source/smart.tank.js +1 -1
- package/source/smart.textarea.js +1 -1
- package/source/smart.textbox.js +1 -1
- package/source/smart.tickintervalhandler.js +1 -1
- package/source/smart.timeinput.js +1 -1
- package/source/smart.timepicker.js +1 -1
- package/source/smart.toast.js +1 -1
- package/source/smart.tooltip.js +1 -1
- package/source/smart.tree.js +2 -2
- package/source/smart.validationpanel.js +1 -1
- package/source/smart.validator.js +1 -1
- package/source/smart.window.js +2 -2
- package/source/styles/components/smart.base.css +1 -1
- package/source/styles/components/smart.grid.css +1 -1
- package/source/styles/components/smart.kanban.css +1 -1
- package/source/styles/default/scss/smart.grid.scss +13 -17
- package/source/styles/default/scss/smart.kanban.scss +289 -233
- package/source/styles/default/scss/smart.qrcode.scss +6 -0
- package/source/styles/default/smart.grid.css +15 -16
- package/source/styles/default/smart.kanban.css +247 -200
- package/source/styles/default/smart.qrcode.css +6 -0
- package/source/styles/default/smart.variables.css +2 -2
- package/source/styles/smart.default.css +3 -3
- package/source/typescript/smart.barcode.d.ts +4 -2
- package/source/typescript/smart.datetimepicker.d.ts +10 -0
- package/source/typescript/smart.dockinglayout.d.ts +7 -0
- package/source/typescript/smart.elements.d.ts +225 -7
- package/source/typescript/smart.grid.d.ts +18 -1
- package/source/typescript/smart.kanban.d.ts +27 -2
- package/source/typescript/smart.qrcode.d.ts +134 -0
- package/source/typescript/smart.tree.d.ts +17 -2
- package/source/typescript/smart.window.d.ts +10 -0
- package/tabs/tabswindow.d.ts +10 -0
- package/tabswindow/tabswindow.d.ts +10 -0
- package/tabswindow/tabswindow.esm.js +23 -1
- package/tabswindow/tabswindow.umd.js +23 -1
- package/timepicker/datetimepicker.d.ts +8 -0
- package/tree/tree.d.ts +14 -2
- package/tree/tree.esm.js +45 -2
- package/tree/tree.umd.js +45 -2
- package/waitwindow/waitwindow.d.ts +10 -0
- package/waitwindow/waitwindow.esm.js +23 -1
- package/waitwindow/waitwindow.umd.js +23 -1
- package/window/alertwindow.d.ts +10 -0
- package/window/dialogwindow.d.ts +10 -0
- package/window/multilinewindow.d.ts +10 -0
- package/window/progresswindow.d.ts +10 -0
- package/window/promptwindow.d.ts +10 -0
- package/window/tabswindow.d.ts +10 -0
- package/window/waitwindow.d.ts +10 -0
- package/window/window.d.ts +10 -0
- package/window/window.esm.js +23 -1
- package/window/window.umd.js +23 -1
|
@@ -97,6 +97,16 @@ export declare class AlertWindow extends React.Component<React.HTMLAttributes<El
|
|
|
97
97
|
*/
|
|
98
98
|
get disableSnap(): boolean;
|
|
99
99
|
set disableSnap(value: boolean);
|
|
100
|
+
/** By default the window is closing after the 'Escape' key is pressed. Set this property to true, if you want to disable that.
|
|
101
|
+
* Property type: boolean
|
|
102
|
+
*/
|
|
103
|
+
get disableEscape(): boolean;
|
|
104
|
+
set disableEscape(value: boolean);
|
|
105
|
+
/** By default the window is handling keyboard keys like 'Arrows', 'Escape', etc. Set this property to true, if you want to disable that.
|
|
106
|
+
* Property type: boolean
|
|
107
|
+
*/
|
|
108
|
+
get disableKeyboard(): boolean;
|
|
109
|
+
set disableKeyboard(value: boolean);
|
|
100
110
|
/** Determines how the characters are displayed inside the input. Applicable to Prompt Window.
|
|
101
111
|
* Property type: WindowDisplayMode
|
|
102
112
|
*/
|
|
@@ -176,6 +176,28 @@ class AlertWindow extends React.Component {
|
|
|
176
176
|
this.nativeElement.disableSnap = value;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
/** By default the window is closing after the 'Escape' key is pressed. Set this property to true, if you want to disable that.
|
|
180
|
+
* Property type: boolean
|
|
181
|
+
*/
|
|
182
|
+
get disableEscape() {
|
|
183
|
+
return this.nativeElement ? this.nativeElement.disableEscape : undefined;
|
|
184
|
+
}
|
|
185
|
+
set disableEscape(value) {
|
|
186
|
+
if (this.nativeElement) {
|
|
187
|
+
this.nativeElement.disableEscape = value;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/** By default the window is handling keyboard keys like 'Arrows', 'Escape', etc. Set this property to true, if you want to disable that.
|
|
191
|
+
* Property type: boolean
|
|
192
|
+
*/
|
|
193
|
+
get disableKeyboard() {
|
|
194
|
+
return this.nativeElement ? this.nativeElement.disableKeyboard : undefined;
|
|
195
|
+
}
|
|
196
|
+
set disableKeyboard(value) {
|
|
197
|
+
if (this.nativeElement) {
|
|
198
|
+
this.nativeElement.disableKeyboard = value;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
179
201
|
/** Determines how the characters are displayed inside the input. Applicable to Prompt Window.
|
|
180
202
|
* Property type: WindowDisplayMode
|
|
181
203
|
*/
|
|
@@ -783,7 +805,7 @@ class AlertWindow extends React.Component {
|
|
|
783
805
|
}
|
|
784
806
|
// Gets the properties of the React component.
|
|
785
807
|
get properties() {
|
|
786
|
-
return ["addNewTab", "animation", "autoCapitalize", "autoExpand", "cancelLabel", "completeLabel", "confirmLabel", "collapsed", "closeOnMaskClick", "dataSource", "disabled", "disableSnap", "displayMode", "dropPosition", "formatFunction", "footerPosition", "footerTemplate", "headerButtons", "headerTemplate", "headerPosition", "hint", "indeterminate", "inverted", "label", "liveResize", "layout", "locale", "locked", "localizeFormatFunction", "maximized", "messages", "modal", "max", "min", "minimized", "maxLength", "minLength", "opened", "pinned", "placeholder", "promptLabel", "readonly", "resizeIndicator", "resizeMode", "rightToLeft", "required", "requiredMessage", "selectAllOnFocus", "selectedIndex", "selectionMode", "selectionEnd", "selectionStart", "showProgressValue", "siblings", "size", "spellCheck", "tabCloseButtons", "tabCloseButtonMode", "tabOverflow", "tabPosition", "tabScrollButtonsPosition", "tabTextOrientation", "theme", "unfocusable", "value", "windowParent", "wrap"];
|
|
808
|
+
return ["addNewTab", "animation", "autoCapitalize", "autoExpand", "cancelLabel", "completeLabel", "confirmLabel", "collapsed", "closeOnMaskClick", "dataSource", "disabled", "disableSnap", "disableEscape", "disableKeyboard", "displayMode", "dropPosition", "formatFunction", "footerPosition", "footerTemplate", "headerButtons", "headerTemplate", "headerPosition", "hint", "indeterminate", "inverted", "label", "liveResize", "layout", "locale", "locked", "localizeFormatFunction", "maximized", "messages", "modal", "max", "min", "minimized", "maxLength", "minLength", "opened", "pinned", "placeholder", "promptLabel", "readonly", "resizeIndicator", "resizeMode", "rightToLeft", "required", "requiredMessage", "selectAllOnFocus", "selectedIndex", "selectionMode", "selectionEnd", "selectionStart", "showProgressValue", "siblings", "size", "spellCheck", "tabCloseButtons", "tabCloseButtonMode", "tabOverflow", "tabPosition", "tabScrollButtonsPosition", "tabTextOrientation", "theme", "unfocusable", "value", "windowParent", "wrap"];
|
|
787
809
|
}
|
|
788
810
|
// Gets the events of the React component.
|
|
789
811
|
get eventListeners() {
|
|
@@ -182,6 +182,28 @@ require('../source/modules/smart.alertwindow');
|
|
|
182
182
|
this.nativeElement.disableSnap = value;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
+
/** By default the window is closing after the 'Escape' key is pressed. Set this property to true, if you want to disable that.
|
|
186
|
+
* Property type: boolean
|
|
187
|
+
*/
|
|
188
|
+
get disableEscape() {
|
|
189
|
+
return this.nativeElement ? this.nativeElement.disableEscape : undefined;
|
|
190
|
+
}
|
|
191
|
+
set disableEscape(value) {
|
|
192
|
+
if (this.nativeElement) {
|
|
193
|
+
this.nativeElement.disableEscape = value;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/** By default the window is handling keyboard keys like 'Arrows', 'Escape', etc. Set this property to true, if you want to disable that.
|
|
197
|
+
* Property type: boolean
|
|
198
|
+
*/
|
|
199
|
+
get disableKeyboard() {
|
|
200
|
+
return this.nativeElement ? this.nativeElement.disableKeyboard : undefined;
|
|
201
|
+
}
|
|
202
|
+
set disableKeyboard(value) {
|
|
203
|
+
if (this.nativeElement) {
|
|
204
|
+
this.nativeElement.disableKeyboard = value;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
185
207
|
/** Determines how the characters are displayed inside the input. Applicable to Prompt Window.
|
|
186
208
|
* Property type: WindowDisplayMode
|
|
187
209
|
*/
|
|
@@ -789,7 +811,7 @@ require('../source/modules/smart.alertwindow');
|
|
|
789
811
|
}
|
|
790
812
|
// Gets the properties of the React component.
|
|
791
813
|
get properties() {
|
|
792
|
-
return ["addNewTab", "animation", "autoCapitalize", "autoExpand", "cancelLabel", "completeLabel", "confirmLabel", "collapsed", "closeOnMaskClick", "dataSource", "disabled", "disableSnap", "displayMode", "dropPosition", "formatFunction", "footerPosition", "footerTemplate", "headerButtons", "headerTemplate", "headerPosition", "hint", "indeterminate", "inverted", "label", "liveResize", "layout", "locale", "locked", "localizeFormatFunction", "maximized", "messages", "modal", "max", "min", "minimized", "maxLength", "minLength", "opened", "pinned", "placeholder", "promptLabel", "readonly", "resizeIndicator", "resizeMode", "rightToLeft", "required", "requiredMessage", "selectAllOnFocus", "selectedIndex", "selectionMode", "selectionEnd", "selectionStart", "showProgressValue", "siblings", "size", "spellCheck", "tabCloseButtons", "tabCloseButtonMode", "tabOverflow", "tabPosition", "tabScrollButtonsPosition", "tabTextOrientation", "theme", "unfocusable", "value", "windowParent", "wrap"];
|
|
814
|
+
return ["addNewTab", "animation", "autoCapitalize", "autoExpand", "cancelLabel", "completeLabel", "confirmLabel", "collapsed", "closeOnMaskClick", "dataSource", "disabled", "disableSnap", "disableEscape", "disableKeyboard", "displayMode", "dropPosition", "formatFunction", "footerPosition", "footerTemplate", "headerButtons", "headerTemplate", "headerPosition", "hint", "indeterminate", "inverted", "label", "liveResize", "layout", "locale", "locked", "localizeFormatFunction", "maximized", "messages", "modal", "max", "min", "minimized", "maxLength", "minLength", "opened", "pinned", "placeholder", "promptLabel", "readonly", "resizeIndicator", "resizeMode", "rightToLeft", "required", "requiredMessage", "selectAllOnFocus", "selectedIndex", "selectionMode", "selectionEnd", "selectionStart", "showProgressValue", "siblings", "size", "spellCheck", "tabCloseButtons", "tabCloseButtonMode", "tabOverflow", "tabPosition", "tabScrollButtonsPosition", "tabTextOrientation", "theme", "unfocusable", "value", "windowParent", "wrap"];
|
|
793
815
|
}
|
|
794
816
|
// Gets the events of the React component.
|
|
795
817
|
get eventListeners() {
|
package/barcode/barcode.d.ts
CHANGED
|
@@ -91,9 +91,11 @@ export declare class BarCode extends React.Component<React.HTMLAttributes<Elemen
|
|
|
91
91
|
set value(value: string);
|
|
92
92
|
get properties(): string[];
|
|
93
93
|
/** This event is triggered when the value of the barcode is invalid.
|
|
94
|
-
* @param event. The custom event. Custom event was created with: event.detail(
|
|
95
|
-
* value - the invalid value of the barcode.
|
|
94
|
+
* @param event. The custom event. Custom event was created with: event.detail( invalidCharacters, lengthValidity, patternValidity, value)
|
|
96
95
|
* invalidCharacters - An array indicating the invalid characters.
|
|
96
|
+
* lengthValidity - A boolean indicating the length validity.
|
|
97
|
+
* patternValidity - A boolean indicating the pattern validity.
|
|
98
|
+
* value - the invalid value of the barcode.
|
|
97
99
|
*/
|
|
98
100
|
onInvalid?: ((event?: Event) => void) | undefined;
|
|
99
101
|
/** This event occurs, when the React component is created.
|
|
@@ -351,6 +351,14 @@ export declare class DateTimePicker extends React.Component<React.HTMLAttributes
|
|
|
351
351
|
/** Selects the text inside the input.
|
|
352
352
|
*/
|
|
353
353
|
select(): void;
|
|
354
|
+
/** Gets a Date object.
|
|
355
|
+
* @returns {Date}
|
|
356
|
+
*/
|
|
357
|
+
getDate(): Promise<any>;
|
|
358
|
+
/** Sets the date of the DateTimePicker.
|
|
359
|
+
* @param {Date} date. The date object to be set.
|
|
360
|
+
*/
|
|
361
|
+
setDate(date: Date): void;
|
|
354
362
|
constructor(props: any);
|
|
355
363
|
componentDidRender(initialize: boolean): void;
|
|
356
364
|
componentDidMount(): void;
|
|
@@ -3,6 +3,31 @@ import '../source/modules/smart.datetimepicker';
|
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
+
/*! *****************************************************************************
|
|
7
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
9
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
10
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
14
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
15
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
16
|
+
|
|
17
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
18
|
+
and limitations under the License.
|
|
19
|
+
***************************************************************************** */
|
|
20
|
+
|
|
21
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
6
31
|
const Smart = window.Smart;
|
|
7
32
|
/**
|
|
8
33
|
Date & time selection component. It allows to select both date and time with the same control.
|
|
@@ -713,6 +738,36 @@ class DateTimePicker extends React.Component {
|
|
|
713
738
|
});
|
|
714
739
|
}
|
|
715
740
|
}
|
|
741
|
+
/** Gets a Date object.
|
|
742
|
+
* @returns {Date}
|
|
743
|
+
*/
|
|
744
|
+
getDate() {
|
|
745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
746
|
+
const getResultOnRender = () => {
|
|
747
|
+
return new Promise(resolve => {
|
|
748
|
+
this.nativeElement.whenRendered(() => {
|
|
749
|
+
const result = this.nativeElement.getDate();
|
|
750
|
+
resolve(result);
|
|
751
|
+
});
|
|
752
|
+
});
|
|
753
|
+
};
|
|
754
|
+
const result = yield getResultOnRender();
|
|
755
|
+
return result;
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
/** Sets the date of the DateTimePicker.
|
|
759
|
+
* @param {Date} date. The date object to be set.
|
|
760
|
+
*/
|
|
761
|
+
setDate(date) {
|
|
762
|
+
if (this.nativeElement.isRendered) {
|
|
763
|
+
this.nativeElement.setDate(date);
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
this.nativeElement.whenRendered(() => {
|
|
767
|
+
this.nativeElement.setDate(date);
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
}
|
|
716
771
|
componentDidRender(initialize) {
|
|
717
772
|
const that = this;
|
|
718
773
|
const props = {};
|