Skip to content

Commit ef3c18b

Browse files
committed
Smart UI 9.0.0
1 parent bbb9542 commit ef3c18b

27 files changed

+1478
-295
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ Smart HTML Elements takes the JavaScript & HTML UI development to a new level. I
2626
[Theme Builder](https://www.htmlelements.com/themebuilder/)
2727

2828

29-
3029
Download and Installation
3130
-------------------------
3231

3332
[Download Smart HTML Elements](http://www.htmlelements.com/download/)
3433

35-
* ### The SDK files are located in the "source" directory
34+
* ### The SDK files are located in the source directory
3635

3736
In general you need to use files from this directory only.
3837

3938
#### Files list & description:
4039

4140
##### Files required in all projects using the SDK
4241

42+
* smart.element.js: Core Smart HTML Elements framework
43+
* smart.elements.js: Smart HTML Elements bundle
4344
* Stylesheet files. Include at least one stylesheet Theme file and the images folder:
4445
* styles/smart.default.css: Stylesheet for the base Theme.
4546
The smart.default.css file should be always included in your project.

bootstrap/source/smart.element.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework/smart.element.js

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
/* Smart UI v8.1.1 (2020-Nov)
3-
Copyright (c) 2011-2020 jQWidgets.
2+
/* Smart UI v9.0.0 (2020-Dec)
3+
Copyright (c) 2011-2021 jQWidgets.
44
License: https://htmlelements.com/license/ */ //
55

66
(function () {
@@ -4179,7 +4179,7 @@ License: https://htmlelements.com/license/ */ //
41794179
continue;
41804180
}
41814181

4182-
if (propertyValue.constructor === Smart.DataAdapter || propertyValue.constructor.name === 'smartDataAdapter' || (typeof propertyValue === 'object' && Smart.DataAdapter && propertyValue instanceof Smart.DataAdapter) || propertyValue instanceof Smart.Observable || propertyValue.constructor === Smart.Observable || typeof propertyValue !== 'object' || Utilities.Types.isArray(propertyValue)) {
4182+
if (propertyValue.constructor === Smart.DataAdapter || propertyValue.constructor.name === 'smartDataAdapter' || (typeof propertyValue === 'object' && Smart.DataAdapter && propertyValue instanceof Smart.DataAdapter) || propertyValue instanceof Smart.Observable || propertyValue.constructor === Smart.Observable || typeof propertyValue !== 'object' || Utilities.Types.isArray(propertyValue) || propertyValue instanceof Date) {
41834183
if (that[propertyName] === undefined && ['onReady', 'onAttached', 'onDetached', 'onCreated', 'onCompleted'].indexOf(propertyName) === -1) {
41844184
const localizedError = that.localize('propertyUnknownName', {
41854185
name: propertyName
@@ -4191,7 +4191,7 @@ License: https://htmlelements.com/license/ */ //
41914191
continue;
41924192
}
41934193

4194-
if (propertyName === 'messages') {
4194+
if (propertyName === 'messages' || propertyName === 'dataSourceMap') {
41954195
that[propertyName] = propertyValue;
41964196
continue;
41974197
}
@@ -4687,6 +4687,10 @@ License: https://htmlelements.com/license/ */ //
46874687
if (Smart(that._selector) && Smart(that._selector).detached) {
46884688
Smart(that._selector).detached();
46894689
}
4690+
4691+
if (data && data[that._selector]) {
4692+
delete data[that._selector];
4693+
}
46904694
}
46914695

46924696
/** Called when a property value is changed. */
@@ -7668,8 +7672,10 @@ License: https://htmlelements.com/license/ */ //
76687672
});
76697673

76707674
for (let i = 0; i < registeredLoadedCallbacks.length; i++) {
7675+
window[namespace].RenderMode = '';
76717676
registeredLoadedCallbacks[i].element.isLoading = false;
76727677
registeredLoadedCallbacks[i].callback();
7678+
window[namespace].RenderMode = '';
76737679
}
76747680

76757681
registeredLoadedCallbacks = [];
@@ -7770,6 +7776,10 @@ License: https://htmlelements.com/license/ */ //
77707776
that.applyContent();
77717777
}
77727778

7779+
refresh() {
7780+
7781+
}
7782+
77737783
clearContent() {
77747784
const that = this;
77757785

@@ -8240,6 +8250,10 @@ License: https://htmlelements.com/license/ */ //
82408250
const that = this;
82418251

82428252
function getScrollWidth() {
8253+
const refreshScrollStyle = that.$.scrollViewerContainer.classList.contains('vscroll');
8254+
8255+
that.$.scrollViewerContainer.classList.remove('vscroll');
8256+
82438257
const scrollWidth = that.$.scrollViewerContentContainer.offsetWidth - that.$.scrollViewerContainer.offsetWidth;
82448258

82458259
if (scrollWidth > 0 && that.horizontalScrollBarVisibility !== 'hidden' || that.horizontalScrollBarVisibility === 'visible') {
@@ -8249,12 +8263,20 @@ License: https://htmlelements.com/license/ */ //
82498263
that.$.scrollViewerContainer.classList.remove('hscroll');
82508264
}
82518265

8266+
if (refreshScrollStyle) {
8267+
that.$.scrollViewerContainer.classList.add('vscroll');
8268+
}
8269+
82528270
return scrollWidth;
82538271
}
82548272

82558273
function getScrollHeight() {
82568274
let scrollHeight;
82578275

8276+
const refreshScrollStyle = that.$.scrollViewerContainer.classList.contains('hscroll');
8277+
8278+
that.$.scrollViewerContainer.classList.remove('hscroll');
8279+
82588280
//NOTE: Safari has an issue where it rounds the parent's height to the lowest integer number ignoring the decimal part
82598281
if (Smart.Utilities.Core.Browser.Safari) {
82608282
const contentContainerHeight = that.$.scrollViewerContentContainer.getBoundingClientRect().height,
@@ -8271,13 +8293,18 @@ License: https://htmlelements.com/license/ */ //
82718293
scrollHeight = that.$.scrollViewerContentContainer.offsetHeight - that.$.scrollViewerContainer.offsetHeight;
82728294
}
82738295

8296+
82748297
if (scrollHeight > 0 && that.verticalScrollBarVisibility !== 'hidden' || that.verticalScrollBarVisibility === 'visible') {
82758298
that.$.scrollViewerContainer.classList.add('vscroll');
82768299
}
82778300
else {
82788301
that.$.scrollViewerContainer.classList.remove('vscroll');
82798302
}
82808303

8304+
if (refreshScrollStyle) {
8305+
that.$.scrollViewerContainer.classList.add('hscroll');
8306+
}
8307+
82818308
return scrollHeight;
82828309
}
82838310

@@ -8309,6 +8336,12 @@ License: https://htmlelements.com/license/ */ //
83098336
if (that.computedHorizontalScrollBarVisibility) {
83108337
that.scrollWidth += that._scrollView.vScrollBar.offsetWidth;
83118338
}
8339+
8340+
if (that.scrollHeight === 0 && that.scrollWidth > 0) {
8341+
if (that.$.container.offsetHeight - that.$.content.offsetHeight < 5) {
8342+
that.$.container.style.paddingBottom = that._scrollView.hScrollBar.offsetHeight + 'px';
8343+
}
8344+
}
83128345
}
83138346

83148347
attached() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{"name":"smart-webcomponents-community","version": "8.1.1",
1+
{"name":"smart-webcomponents-community","version": "9.0.0",
22
"description":"Web Components &amp; Custom Elements Community Version","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/HTMLElements/smart-elements.git"},"author":"https://htmlelements.com","bugs":{"url":"https://github.com/HTMLElements/smart-elements/issues"},"homepage":"https://github.com/HTMLElements/smart-elements#readme","keywords":["custom","element","bootstrap","chart","treegrid","gantt","gantt chart","query builder","colorpicker","colorpanel","chart web component","chart custom element","tables","table","docking layot","charting","datagridview","bootstrap grid","tabs","combobox","dropdownlist","listbox","input","password","ui components","user interface","components","bootstrap components","smart components","custom elements","grid web component","grid custom element","chart custom element","chart web component","javascript grid","javascript datagrid","javascript datatable","datatable","bootstrap datagrid","material datagrid","bootstrap datatable","bootstrap table","grid","grid web component","datagrid web component","data grid","datagrid bootstrap","bootstrap grid","carousel custom element","html carousel","material web components","webcomponents","material webcomponents","custom elements","material customelements"],"license":"ISC"}

source/components/smart.ui.menu.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/components/smart.ui.table.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/components/smart.ui.tabs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/components/smart.ui.tree.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/modules/smart.menu.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/modules/smart.table.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)