@yesilyazilim/web.spa 1.0.59 → 1.0.61
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/index.js +20 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +3 -0
- package/types.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -664,7 +664,6 @@ class $b8c3515ddc2cad1c$export$5297c8d5665821a0 {
|
|
|
664
664
|
abortSignal: abortSignal
|
|
665
665
|
});
|
|
666
666
|
if (abortSignal) abortSignal.addEventListener('abort', ()=>{
|
|
667
|
-
console.log("Dinleyici kayd\u0131n\u0131 kald\u0131r: ", listener);
|
|
668
667
|
this.unregister(listener);
|
|
669
668
|
});
|
|
670
669
|
}
|
|
@@ -2074,10 +2073,15 @@ class $b105f6d74b380821$export$3844bbfd4ab296ee extends (0, $8979040586d7fa25$ex
|
|
|
2074
2073
|
this.appendChild(leftSide);
|
|
2075
2074
|
this.appendChild(this.partSide);
|
|
2076
2075
|
}
|
|
2076
|
+
onConnected(isFirst) {
|
|
2077
|
+
const menuitem = Array.from(this.leftMenu.children).find((x)=>x.PP_DEFAULT_ACTIVE === true);
|
|
2078
|
+
if (menuitem) menuitem.click();
|
|
2079
|
+
}
|
|
2077
2080
|
loadParts(items) {
|
|
2078
2081
|
for (const item of items){
|
|
2079
2082
|
if (item.props.auth && !this.authService.hasAuth(item.props.auth)) continue;
|
|
2080
2083
|
const menuItem = (0, $94579973dd0f02f3$export$624631f482c54f59).div('pcp-menu-item', (0, $94579973dd0f02f3$export$624631f482c54f59).label(item.props.title));
|
|
2084
|
+
if (item.props.defaultOpen) menuItem.PP_DEFAULT_ACTIVE = true;
|
|
2081
2085
|
menuItem.addEventListener('click', this._onMenuClicked.bind(this, item, menuItem));
|
|
2082
2086
|
this.leftMenu.appendChild(menuItem);
|
|
2083
2087
|
}
|
|
@@ -2225,7 +2229,8 @@ let $ff6d38504eec951c$export$2a4aa3d46d9c7613 = class NavigationService {
|
|
|
2225
2229
|
props: ppl.props
|
|
2226
2230
|
});
|
|
2227
2231
|
});
|
|
2228
|
-
|
|
2232
|
+
var list2 = list.sort((a, b)=>(a.props.order || 999) - (b.props.order || 999));
|
|
2233
|
+
return list2;
|
|
2229
2234
|
}
|
|
2230
2235
|
_hidePage(page) {
|
|
2231
2236
|
page.classList.remove('pageshow');
|
|
@@ -3660,7 +3665,6 @@ let $5171e0e35cb50421$export$1374f173322d64ce = class MainPanel extends (0, $05c
|
|
|
3660
3665
|
}
|
|
3661
3666
|
}
|
|
3662
3667
|
onResizeStatusChanged(start, pos, affecteds) {
|
|
3663
|
-
console.log('MainPanel.onResizeStatusChanged', start, pos, affecteds);
|
|
3664
3668
|
for (const ap of [
|
|
3665
3669
|
pos,
|
|
3666
3670
|
...affecteds
|
|
@@ -5874,7 +5878,6 @@ let $1b4e3c1abfa7ee85$export$df30df7ec97b32b5 = class DataTable extends (0, $ea0
|
|
|
5874
5878
|
orFilters: arr,
|
|
5875
5879
|
key: '__search'
|
|
5876
5880
|
});
|
|
5877
|
-
console.log("filtre search, all filters > ", this.table.getFilters(false));
|
|
5878
5881
|
}
|
|
5879
5882
|
}
|
|
5880
5883
|
_exportPdf() {
|
|
@@ -6207,6 +6210,7 @@ let $dd8b950d8e086544$var$TreeViewItem = class TreeViewItem extends (0, $05c9103
|
|
|
6207
6210
|
if (prop.key == 'hidden') this.classList.toggle('hide', prop.value);
|
|
6208
6211
|
else if (prop.key == 'passive') this.classList.toggle('passive', prop.value);
|
|
6209
6212
|
else if (prop.key == 'displayClass') this._header.setDisplayClass(prop.value);
|
|
6213
|
+
else if (prop.key == 'busy') (0, $94579973dd0f02f3$export$624631f482c54f59).showHideWorkingAt(this._header, prop.value, 'bottom');
|
|
6210
6214
|
}
|
|
6211
6215
|
};
|
|
6212
6216
|
$dd8b950d8e086544$var$TreeViewItem = $dd8b950d8e086544$var$__decorate([
|
|
@@ -6249,8 +6253,13 @@ let $dd8b950d8e086544$var$TreeViewItemHeader = class TreeViewItemHeader extends
|
|
|
6249
6253
|
this.OnExpand.raise(newstate);
|
|
6250
6254
|
}
|
|
6251
6255
|
set checked(val) {
|
|
6252
|
-
|
|
6256
|
+
let changed = false;
|
|
6257
|
+
if (this.item.checked !== val) {
|
|
6258
|
+
this.item.checked = val;
|
|
6259
|
+
changed = true;
|
|
6260
|
+
}
|
|
6253
6261
|
if (this._checkElm && this._checkElm.checked != val) this._checkElm.checked = val;
|
|
6262
|
+
if (changed) this._childrenLockStatusControl();
|
|
6254
6263
|
}
|
|
6255
6264
|
get parentTreeItem() {
|
|
6256
6265
|
return this.parentElement;
|
|
@@ -6311,10 +6320,13 @@ let $dd8b950d8e086544$var$TreeViewItemHeader = class TreeViewItemHeader extends
|
|
|
6311
6320
|
if (this._locked) return;
|
|
6312
6321
|
if (this.item.checked === this._checkElm.checked) return;
|
|
6313
6322
|
this.item.checked = this._checkElm.checked;
|
|
6323
|
+
this._childrenLockStatusControl();
|
|
6324
|
+
this.root.onChildCheckChanged(this.item, this._checkElm.checked);
|
|
6325
|
+
}
|
|
6326
|
+
_childrenLockStatusControl() {
|
|
6314
6327
|
if (this.root.props.selection.lockChildren && this.parentTreeItem.listManager) this.parentTreeItem.listManager.traverseItems((item)=>{
|
|
6315
6328
|
item.locked = !!this.item.checked;
|
|
6316
6329
|
});
|
|
6317
|
-
this.root.onChildCheckChanged(this.item, this._checkElm.checked);
|
|
6318
6330
|
}
|
|
6319
6331
|
_startObserveItemChanges() {
|
|
6320
6332
|
const oi = this.item;
|
|
@@ -6348,11 +6360,11 @@ class $dd8b950d8e086544$var$TreeListManager {
|
|
|
6348
6360
|
this.addItem(item, ord);
|
|
6349
6361
|
}
|
|
6350
6362
|
}
|
|
6351
|
-
traverseItems(fnc) {
|
|
6363
|
+
traverseItems(fnc, onlyFirstLevel = false) {
|
|
6352
6364
|
var _a;
|
|
6353
6365
|
for (const child of this.body.children)if (child instanceof $dd8b950d8e086544$var$TreeViewItem) {
|
|
6354
6366
|
fnc(child);
|
|
6355
|
-
(_a = child.listManager) === null || _a === void 0 || _a.traverseItems(fnc);
|
|
6367
|
+
if (!onlyFirstLevel) (_a = child.listManager) === null || _a === void 0 || _a.traverseItems(fnc);
|
|
6356
6368
|
}
|
|
6357
6369
|
}
|
|
6358
6370
|
addItem(item, order) {
|
|
@@ -6582,7 +6594,6 @@ let $6c550ef6d841fb66$export$39299b56cfd4e361 = class TagInput extends (0, $05c9
|
|
|
6582
6594
|
this.triggerChanged();
|
|
6583
6595
|
}
|
|
6584
6596
|
addValue(val, silent = false) {
|
|
6585
|
-
console.log('addValue', val);
|
|
6586
6597
|
if (!val) return;
|
|
6587
6598
|
const domItem = new $6c550ef6d841fb66$var$TagInputItem(val);
|
|
6588
6599
|
this.insertBefore(domItem, this._input);
|
|
@@ -7756,7 +7767,6 @@ let $ff47ee4c049939bf$export$72b9695b8216309a = class ComboBox extends (0, $05c9
|
|
|
7756
7767
|
}
|
|
7757
7768
|
set value(key) {
|
|
7758
7769
|
if (this._loading || !this._connected || !this._loaded) {
|
|
7759
|
-
console.log('Async value set to:', key);
|
|
7760
7770
|
this._asyncValue = key;
|
|
7761
7771
|
return;
|
|
7762
7772
|
}
|