backend-plus 1.17.2 → 1.17.3
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ForeignKey, FieldDefinition } from "backend-plus";
|
|
2
|
-
export type Key = string[];
|
|
3
|
-
export type Stores = {
|
|
2
|
+
export declare type Key = string[];
|
|
3
|
+
export declare type Stores = {
|
|
4
4
|
[key: string]: IDBObjectStore;
|
|
5
5
|
};
|
|
6
|
-
export type StoreDefs = {
|
|
6
|
+
export declare type StoreDefs = {
|
|
7
7
|
[key: string]: Key | string;
|
|
8
8
|
};
|
|
9
|
-
export type Record = {
|
|
9
|
+
export declare type Record = {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
12
|
export interface TableDefinition {
|
|
@@ -16,12 +16,12 @@ export interface TableDefinition {
|
|
|
16
16
|
softForeignKeys?: ForeignKey[];
|
|
17
17
|
fields: FieldDefinition[];
|
|
18
18
|
}
|
|
19
|
-
type RegisterResult = {
|
|
19
|
+
declare type RegisterResult = {
|
|
20
20
|
new?: true;
|
|
21
21
|
dataErased?: true;
|
|
22
22
|
changed: boolean;
|
|
23
23
|
};
|
|
24
|
-
type DetectFeatures = {
|
|
24
|
+
declare type DetectFeatures = {
|
|
25
25
|
needToUnwrapArrayKeys: boolean;
|
|
26
26
|
};
|
|
27
27
|
export declare var detectedFeatures: DetectFeatures;
|
package/for-client/my-localdb.js
CHANGED
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (
|
|
16
|
+
while (_) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
package/for-client/my-tables.js
CHANGED
|
@@ -613,7 +613,8 @@ myOwn.tableGrid = function tableGrid(tableName, mainElement, opts){
|
|
|
613
613
|
} else if (!depot) {
|
|
614
614
|
var depot = grid.createDepotFromRow(row);
|
|
615
615
|
grid.depots.push(depot);
|
|
616
|
-
grid.
|
|
616
|
+
grid.sortColumns(grid.depots);
|
|
617
|
+
grid.createRowElements(grid.depots.findIndex((myDepot)=>myDepot===depot), depot);
|
|
617
618
|
grid.updateRowData(depot);
|
|
618
619
|
depot.tick = tick
|
|
619
620
|
}
|
|
@@ -2570,6 +2571,18 @@ myOwn.TableGrid.prototype.displayGrid = function displayGrid(){
|
|
|
2570
2571
|
}else{
|
|
2571
2572
|
depotsToDisplay = grid.depots;
|
|
2572
2573
|
}
|
|
2574
|
+
grid.sortColumns = function sortColumns(depotsToDisplay){
|
|
2575
|
+
return depotsToDisplay.sort(function(depot1, depot2){
|
|
2576
|
+
grid.view.sortColumns.forEach(function(orderColumn){
|
|
2577
|
+
if(!grid.def.field[orderColumn.column]){
|
|
2578
|
+
my.log(orderColumn.column+' order no está en '+grid.def.name);
|
|
2579
|
+
}
|
|
2580
|
+
orderColumn.func=myOwn.sortMethods[grid.def.field[orderColumn.column].sortMethod||'default'];
|
|
2581
|
+
})
|
|
2582
|
+
return bestGlobals.compareForOrder(grid.view.sortColumns)(depot1.row, depot2.row);
|
|
2583
|
+
});
|
|
2584
|
+
}
|
|
2585
|
+
grid.sortColumns(depotsToDisplay);
|
|
2573
2586
|
if(grid.view.sortColumns.length>0){
|
|
2574
2587
|
depotsToDisplay.sort(function(depot1, depot2){
|
|
2575
2588
|
grid.view.sortColumns.forEach(function(orderColumn){
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="websql" />
|
|
2
2
|
import { TableDefinition } from "backend-plus";
|
|
3
|
-
export type Key = string[];
|
|
4
|
-
type DetectFeatures = {
|
|
3
|
+
export declare type Key = string[];
|
|
4
|
+
declare type DetectFeatures = {
|
|
5
5
|
needToCopyResults: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare var detectedFeatures: DetectFeatures;
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (
|
|
16
|
+
while (_) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
package/package.json
CHANGED