@quandis/qbo4.ui 4.0.1-CI-20241025-205549 → 4.0.1-CI-20241027-142453
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/package.json +9 -8
- package/src/qbo/qbo-paginate.js +2 -2
- package/src/qbo/qbo-paginate.ts +1 -1
- package/src/qbo/qbo-user-preferences.d.ts +2 -1
- package/src/qbo/qbo-user-preferences.js +5 -0
- package/src/qbo/qbo-user-preferences.ts +9 -1
- package/wwwroot/js/esm/qbo4.ui.js +12 -4
- package/wwwroot/js/esm/qbo4.ui.min.js +7 -7
- package/wwwroot/js/esm/qbo4.ui.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui.js +10 -3
- package/wwwroot/js/qbo4.ui.min.js +7 -7
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
package/package.json
CHANGED
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
"author": "Quandis, Inc.",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "4.0.1-CI-
|
|
6
|
+
"version": "4.0.1-CI-20241027-142453",
|
|
7
7
|
"workspaces": [
|
|
8
8
|
"code"
|
|
9
9
|
],
|
|
10
10
|
"main": "src/qbo/Program.js",
|
|
11
11
|
"private": false,
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "npm run sass && tsc --build --force && npm run packdev && npm run packprod && del *.tgz && npm pack && ren *.tgz qbo4.ui.tgz",
|
|
13
|
+
"build": "ncu -u && npm install && npm run sass && tsc --build --force && npm run packdev && npm run packprod && del *.tgz && npm pack && ren *.tgz qbo4.ui.tgz",
|
|
14
|
+
"quick": "tsc --build --force && npm run packdev && del *.tgz && npm pack && ren *.tgz qbo4.ui.tgz",
|
|
14
15
|
"increment": "node increment",
|
|
15
16
|
"packdev": "webpack --config pack.dev.js --no-color",
|
|
16
17
|
"packprod": "webpack --config pack.prod.js --no-color",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"src/"
|
|
26
27
|
],
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@codemirror/commands": "^6.
|
|
29
|
+
"@codemirror/commands": "^6.7.1",
|
|
29
30
|
"@codemirror/lang-html": "^6.4.9",
|
|
30
31
|
"@codemirror/lang-javascript": "^6.2.2",
|
|
31
32
|
"@codemirror/lang-sql": "^6.8.0",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"bootstrap": "^5.3.3",
|
|
35
36
|
"bootstrap-icons": "^1.11.3",
|
|
36
37
|
"codemirror": "6.0.1",
|
|
37
|
-
"lit": "^3.2.
|
|
38
|
+
"lit": "^3.2.1",
|
|
38
39
|
"reflect-metadata": "^0.2.2",
|
|
39
40
|
"tsyringe": "^4.8.0",
|
|
40
41
|
"zero-md": "^3.1.6"
|
|
@@ -44,14 +45,14 @@
|
|
|
44
45
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
|
45
46
|
"autoprefixer": "^10.4.20",
|
|
46
47
|
"clean-css": "^5.3.3",
|
|
47
|
-
"eslint": "^9.
|
|
48
|
+
"eslint": "^9.13.0",
|
|
48
49
|
"glob": "^11.0.0",
|
|
49
|
-
"html-webpack-plugin": "^5.6.
|
|
50
|
+
"html-webpack-plugin": "^5.6.3",
|
|
50
51
|
"mini-css-extract-plugin": "^2.9.1",
|
|
51
52
|
"postcss": "^8.4.47",
|
|
52
53
|
"postcss-loader": "^8.1.1",
|
|
53
|
-
"sass": "^1.
|
|
54
|
-
"typescript": "^5.6.
|
|
54
|
+
"sass": "^1.80.4",
|
|
55
|
+
"typescript": "^5.6.3",
|
|
55
56
|
"webpack": "^5.95.0",
|
|
56
57
|
"webpack-cli": "^5.1.4",
|
|
57
58
|
"webpack-merge": "^6.0.1"
|
package/src/qbo/qbo-paginate.js
CHANGED
|
@@ -50,8 +50,8 @@ let QboPaginate = class QboPaginate extends LitElement {
|
|
|
50
50
|
let first = (this.maxPage > this.pageLimit)
|
|
51
51
|
? this.currentPage - Math.floor(this.pageLimit / 2)
|
|
52
52
|
: 1;
|
|
53
|
-
if (first <
|
|
54
|
-
first =
|
|
53
|
+
if (first < 1)
|
|
54
|
+
first = 1;
|
|
55
55
|
let last = (this.maxPage > this.pageLimit)
|
|
56
56
|
? first + this.pageLimit - 1
|
|
57
57
|
: this.maxPage;
|
package/src/qbo/qbo-paginate.ts
CHANGED
|
@@ -62,7 +62,7 @@ export class QboPaginate extends LitElement {
|
|
|
62
62
|
let first = (this.maxPage > this.pageLimit)
|
|
63
63
|
? this.currentPage - Math.floor(this.pageLimit / 2)
|
|
64
64
|
: 1;
|
|
65
|
-
if (first <
|
|
65
|
+
if (first < 1) first = 1;
|
|
66
66
|
let last = (this.maxPage > this.pageLimit)
|
|
67
67
|
? first + this.pageLimit - 1
|
|
68
68
|
: this.maxPage;
|
|
@@ -14,4 +14,5 @@ export declare class QboUserPreferences extends LitElement {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function setUserPreference(preference: string, value: any, storageKey?: string): void;
|
|
16
16
|
export declare function getUserPreference(preference: string, storageKey?: string): any;
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function join(values: (string | null | undefined)[], separator?: string): string;
|
|
18
|
+
export declare function formatDate(dateString: string | Date | undefined | null, format?: string | null): string | null;
|
|
@@ -144,7 +144,12 @@ export function getUserPreference(preference, storageKey = 'qbo4.ui.preferences'
|
|
|
144
144
|
}
|
|
145
145
|
return undefined;
|
|
146
146
|
}
|
|
147
|
+
export function join(values, separator = ' ') {
|
|
148
|
+
return values.filter(Boolean).join(separator);
|
|
149
|
+
}
|
|
147
150
|
export function formatDate(dateString, format = null) {
|
|
151
|
+
if (dateString == null || isNaN(new Date(dateString).getTime()))
|
|
152
|
+
return null;
|
|
148
153
|
const f = format ?? getUserPreference('dateFormat') ?? 'MM/dd/yyyy';
|
|
149
154
|
// Map C# date format to Intl.DateTimeFormat options
|
|
150
155
|
const options = {};
|
|
@@ -134,7 +134,15 @@ export function getUserPreference(preference: string, storageKey: string = 'qbo4
|
|
|
134
134
|
return undefined;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export function
|
|
137
|
+
export function join(values: (string | null | undefined)[], separator: string = ' '): string {
|
|
138
|
+
return values.filter(Boolean).join(separator);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function formatDate(dateString: string | Date | undefined | null, format: string | null = null) {
|
|
142
|
+
|
|
143
|
+
if (dateString == null || isNaN(new Date(dateString).getTime()))
|
|
144
|
+
return null;
|
|
145
|
+
|
|
138
146
|
const f = format ?? getUserPreference('dateFormat') ?? 'MM/dd/yyyy';
|
|
139
147
|
// Map C# date format to Intl.DateTimeFormat options
|
|
140
148
|
const options: any = {};
|