@ticatec/uniface-element 0.1.15 → 0.1.17
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/dist/action-bar/ActionBar.svelte +2 -2
- package/dist/attachment-files/FileUploadBar.svelte +1 -1
- package/dist/attachment-files/FileUploadPanel.svelte +1 -1
- package/dist/base-calendar/CalendarBase.svelte +7 -3
- package/dist/base-calendar/CalendarBase.svelte.d.ts +0 -3
- package/dist/base-calendar/DateContext.d.ts +0 -9
- package/dist/base-calendar/DateContext.js +7 -68
- package/dist/base-calendar/index.d.ts +2 -2
- package/dist/base-calendar/index.js +2 -2
- package/dist/box/Box.svelte +11 -7
- package/dist/box/Box.svelte.d.ts +8 -3
- package/dist/checkbox/CheckBox.svelte +16 -7
- package/dist/checkbox/CheckBox.svelte.d.ts +1 -1
- package/dist/common/CommonPicker.svelte +14 -8
- package/dist/common/CommonPicker.svelte.d.ts +1 -1
- package/dist/common-editor/CommonEditor.svelte +17 -9
- package/dist/common-editor/CommonEditor.svelte.d.ts +2 -0
- package/dist/common-range-editor/CommonRangeEditor.svelte +8 -9
- package/dist/common-range-editor/CommonRangeEditor.svelte.d.ts +0 -2
- package/dist/criteria-field/CriteriaField.svelte +3 -2
- package/dist/criteria-field/CriteriaField.svelte.d.ts +1 -0
- package/dist/data-table/parts/ActionsPanel.svelte +2 -2
- package/dist/data-table/parts/FixedHeaderPanel.svelte +1 -1
- package/dist/date-picker/DateTimePicker.svelte +3 -7
- package/dist/date-range/DateRangeEditor.svelte +2 -2
- package/dist/dialog/Dialog.svelte +1 -1
- package/dist/form-field/FormField.svelte +9 -11
- package/dist/form-field/FormField.svelte.d.ts +2 -1
- package/dist/i18n_resources/index.d.ts +3 -0
- package/dist/i18n_resources/index.js +3 -0
- package/dist/i18n_resources/uniface_cn_resource.d.ts +29 -0
- package/dist/i18n_resources/uniface_cn_resource.js +37 -0
- package/dist/i18n_resources/uniface_en_resource.d.ts +29 -0
- package/dist/i18n_resources/uniface_en_resource.js +37 -0
- package/dist/input-options-select/InputOptionsSelect.svelte +105 -28
- package/dist/input-options-select/InputOptionsSelect.svelte.d.ts +2 -4
- package/dist/list-box/ListBox.svelte +81 -47
- package/dist/list-box/ListBox.svelte.d.ts +10 -16
- package/dist/message-box/IMessageBox.js +1 -1
- package/dist/nav-menu/NavigatorMenuItem.svelte +1 -1
- package/dist/options-multi-select/OptionsMultiSelect.svelte +1 -1
- package/dist/property-editor/PropertyEditor.svelte +1 -1
- package/dist/search-box/SearchBox.svelte +22 -15
- package/dist/search-box/SearchBox.svelte.d.ts +8 -4
- package/dist/text-editor/TextEditor.svelte +2 -3
- package/dist/ticatec-uniface-web.css +606 -583
- package/package.json +8 -7
- package/dist/UnifaceResource.d.ts +0 -43
- package/dist/UnifaceResource.js +0 -57
- package/dist/assets/arrow_down.svg +0 -1
- package/dist/assets/arrow_up.svg +0 -1
- package/dist/assets/calendar_icon.svg +0 -1
- package/dist/assets/delete_icon.svg +0 -1
- package/dist/assets/icon-dropdown.svg +0 -1
- package/dist/assets/icon_left.svg +0 -1
- package/dist/assets/icon_right.svg +0 -1
- package/dist/assets/pickup-options.svg +0 -1
- package/dist/assets/retry.png +0 -0
- package/dist/i18nContext.d.ts +0 -21
- package/dist/i18nContext.js +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/uniface-element",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "uniface web elements",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"import": "./dist/index.js"
|
|
30
30
|
},
|
|
31
|
-
"./
|
|
32
|
-
"types": "./dist/
|
|
33
|
-
"import": "./dist/
|
|
31
|
+
"./i18n_resources": {
|
|
32
|
+
"types": "./dist/i18n_resources/index.d.ts",
|
|
33
|
+
"import": "./dist/i18n_resources/index.js"
|
|
34
34
|
},
|
|
35
35
|
"./ticatec-uniface-web.css": {
|
|
36
36
|
"default": "./dist/ticatec-uniface-web.css"
|
|
@@ -309,17 +309,18 @@
|
|
|
309
309
|
"@sveltejs/kit": "^2.0.0",
|
|
310
310
|
"@sveltejs/package": "^2.0.0",
|
|
311
311
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
312
|
+
"@ticatec/uniface-icons": "^0.2.0",
|
|
313
|
+
"dayjs": "^1.11.10",
|
|
312
314
|
"publint": "^0.3.2",
|
|
313
315
|
"sass": "^1.57.1",
|
|
314
316
|
"svelte": "^5.0.0",
|
|
315
317
|
"svelte-check": "^4.0.0",
|
|
318
|
+
"svelte-portal": "^2.2.1",
|
|
316
319
|
"svelte-preprocess": "^6.0.3",
|
|
317
320
|
"tslib": "^2.3.1",
|
|
318
321
|
"typescript": "^5.7.3",
|
|
319
322
|
"vite": "^5.4.11",
|
|
320
|
-
"@ticatec/
|
|
321
|
-
"dayjs": "^1.11.10",
|
|
322
|
-
"svelte-portal": "^2.2.1"
|
|
323
|
+
"@ticatec/i18n": "^0.0.4"
|
|
323
324
|
},
|
|
324
325
|
"author": "Henry Feng",
|
|
325
326
|
"license": "MIT",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const resource_en: {
|
|
2
|
-
uniface: {
|
|
3
|
-
upload: {
|
|
4
|
-
btnPickup: string;
|
|
5
|
-
btnCancel: string;
|
|
6
|
-
btnRetry: string;
|
|
7
|
-
btnRemove: string;
|
|
8
|
-
};
|
|
9
|
-
propertyEditor: {
|
|
10
|
-
colName: string;
|
|
11
|
-
colValue: string;
|
|
12
|
-
};
|
|
13
|
-
calendar: {
|
|
14
|
-
months: string[];
|
|
15
|
-
monthsAbbr: string[];
|
|
16
|
-
weekTitle: string[];
|
|
17
|
-
weekTitleAbbr: string[];
|
|
18
|
-
confirmText: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
declare const resource_cn: {
|
|
23
|
-
uniface: {
|
|
24
|
-
upload: {
|
|
25
|
-
btnPickup: string;
|
|
26
|
-
btnCancel: string;
|
|
27
|
-
btnRetry: string;
|
|
28
|
-
btnRemove: string;
|
|
29
|
-
};
|
|
30
|
-
propertyEditor: {
|
|
31
|
-
colName: string;
|
|
32
|
-
colValue: string;
|
|
33
|
-
};
|
|
34
|
-
calendar: {
|
|
35
|
-
months: string[];
|
|
36
|
-
monthsAbbr: string[];
|
|
37
|
-
weekTitle: string[];
|
|
38
|
-
confirmText: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export default resource_en;
|
|
43
|
-
export { resource_cn };
|
package/dist/UnifaceResource.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const resource_en = {
|
|
2
|
-
uniface: {
|
|
3
|
-
upload: {
|
|
4
|
-
btnPickup: "Pickup Files",
|
|
5
|
-
btnCancel: "Cancel",
|
|
6
|
-
btnRetry: "Retry",
|
|
7
|
-
btnRemove: "Delete"
|
|
8
|
-
},
|
|
9
|
-
propertyEditor: {
|
|
10
|
-
colName: "Name",
|
|
11
|
-
colValue: "Value"
|
|
12
|
-
},
|
|
13
|
-
calendar: {
|
|
14
|
-
months: [
|
|
15
|
-
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'
|
|
16
|
-
],
|
|
17
|
-
monthsAbbr: [
|
|
18
|
-
'Jan', 'Feb', 'Mar', 'Api', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
|
|
19
|
-
],
|
|
20
|
-
weekTitle: [
|
|
21
|
-
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
|
|
22
|
-
],
|
|
23
|
-
weekTitleAbbr: [
|
|
24
|
-
"Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat"
|
|
25
|
-
],
|
|
26
|
-
confirmText: "OK"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const resource_cn = {
|
|
31
|
-
uniface: {
|
|
32
|
-
upload: {
|
|
33
|
-
btnPickup: "选择文件",
|
|
34
|
-
btnCancel: "取消",
|
|
35
|
-
btnRetry: "重试",
|
|
36
|
-
btnRemove: "删除"
|
|
37
|
-
},
|
|
38
|
-
propertyEditor: {
|
|
39
|
-
colName: "名称",
|
|
40
|
-
colValue: "值"
|
|
41
|
-
},
|
|
42
|
-
calendar: {
|
|
43
|
-
months: [
|
|
44
|
-
'一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'
|
|
45
|
-
],
|
|
46
|
-
monthsAbbr: [
|
|
47
|
-
'一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'
|
|
48
|
-
],
|
|
49
|
-
weekTitle: [
|
|
50
|
-
"日", "一", "二", "三", "四", "五", "六"
|
|
51
|
-
],
|
|
52
|
-
confirmText: "确认"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
export default resource_en;
|
|
57
|
-
export { resource_cn };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" fill="currentColor" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M98.9,184.7l1.8,2.1l136,156.5c4.6,5.3,11.5,8.6,19.2,8.6c7.7,0,14.6-3.4,19.2-8.6L411,187.1l2.3-2.6 c1.7-2.5,2.7-5.5,2.7-8.7c0-8.7-7.4-15.8-16.6-15.8v0H112.6v0c-9.2,0-16.6,7.1-16.6,15.8C96,179.1,97.1,182.2,98.9,184.7z"/></svg>
|
package/dist/assets/arrow_up.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M413.1,327.3l-1.8-2.1l-136-156.5c-4.6-5.3-11.5-8.6-19.2-8.6c-7.7,0-14.6,3.4-19.2,8.6L101,324.9l-2.3,2.6 C97,330,96,333,96,336.2c0,8.7,7.4,15.8,16.6,15.8v0h286.8v0c9.2,0,16.6-7.1,16.6-15.8C416,332.9,414.9,329.8,413.1,327.3z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 32 32" height="32px" id="Layer_1" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="calendar_1_"><path d="M29.334,3H25V1c0-0.553-0.447-1-1-1s-1,0.447-1,1v2h-6V1c0-0.553-0.448-1-1-1s-1,0.447-1,1v2H9V1 c0-0.553-0.448-1-1-1S7,0.447,7,1v2H2.667C1.194,3,0,4.193,0,5.666v23.667C0,30.806,1.194,32,2.667,32h26.667 C30.807,32,32,30.806,32,29.333V5.666C32,4.193,30.807,3,29.334,3z M30,29.333C30,29.701,29.701,30,29.334,30H2.667 C2.299,30,2,29.701,2,29.333V5.666C2,5.299,2.299,5,2.667,5H7v2c0,0.553,0.448,1,1,1s1-0.447,1-1V5h6v2c0,0.553,0.448,1,1,1 s1-0.447,1-1V5h6v2c0,0.553,0.447,1,1,1s1-0.447,1-1V5h4.334C29.701,5,30,5.299,30,5.666V29.333z" fill="#333332"/><rect fill="#333332" height="3" width="4" x="7" y="12"/><rect fill="#333332" height="3" width="4" x="7" y="17"/><rect fill="#333332" height="3" width="4" x="7" y="22"/><rect fill="#333332" height="3" width="4" x="14" y="22"/><rect fill="#333332" height="3" width="4" x="14" y="17"/><rect fill="#333332" height="3" width="4" x="14" y="12"/><rect fill="#333332" height="3" width="4" x="21" y="22"/><rect fill="#333332" height="3" width="4" x="21" y="17"/><rect fill="#333332" height="3" width="4" x="21" y="12"/></g></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'><svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.0" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="445.2,109.2 402.8,66.8 256,213.6 109.2,66.8 66.8,109.2 213.6,256 66.8,402.8 109.2,445.2 256,298.4 402.8,445.2 445.2,402.8 298.4,256 "/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M33.17 17.17l-9.17 9.17-9.17-9.17-2.83 2.83 12 12 12-12z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><title/><path d="M39.3756,48.0022l30.47-25.39a6.0035,6.0035,0,0,0-7.6878-9.223L26.1563,43.3906a6.0092,6.0092,0,0,0,0,9.2231L62.1578,82.615a6.0035,6.0035,0,0,0,7.6878-9.2231Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><title/><path d="M69.8437,43.3876,33.8422,13.3863a6.0035,6.0035,0,0,0-7.6878,9.223l30.47,25.39-30.47,25.39a6.0035,6.0035,0,0,0,7.6878,9.2231L69.8437,52.6106a6.0091,6.0091,0,0,0,0-9.223Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h48v48h-48z" fill="none"/><path d="M24 11.66l6.34 6.34 2.83-2.83-9.17-9.17-9.17 9.17 2.83 2.83 6.34-6.34zm0 24.68l-6.34-6.34-2.83 2.83 9.17 9.17 9.17-9.17-2.83-2.83-6.34 6.34z"/></svg>
|
package/dist/assets/retry.png
DELETED
|
Binary file
|
package/dist/i18nContext.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare class I18nContext {
|
|
2
|
-
private resource;
|
|
3
|
-
/**
|
|
4
|
-
* 设置语言包
|
|
5
|
-
* @param languagePackage
|
|
6
|
-
*/
|
|
7
|
-
setResource(languagePackage: any): void;
|
|
8
|
-
/**
|
|
9
|
-
* 根据key值获取相应的文本值
|
|
10
|
-
* @param key
|
|
11
|
-
* @param defaultText
|
|
12
|
-
*/
|
|
13
|
-
getText(key: string, defaultText?: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* 根据key获取一个节点
|
|
16
|
-
* @param key
|
|
17
|
-
*/
|
|
18
|
-
get(key: string): any;
|
|
19
|
-
}
|
|
20
|
-
declare const i18n: I18nContext;
|
|
21
|
-
export default i18n;
|
package/dist/i18nContext.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import utils from "./common/utils";
|
|
2
|
-
class I18nContext {
|
|
3
|
-
resource = {};
|
|
4
|
-
/**
|
|
5
|
-
* 设置语言包
|
|
6
|
-
* @param languagePackage
|
|
7
|
-
*/
|
|
8
|
-
setResource(languagePackage) {
|
|
9
|
-
this.resource = languagePackage;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 根据key值获取相应的文本值
|
|
13
|
-
* @param key
|
|
14
|
-
* @param defaultText
|
|
15
|
-
*/
|
|
16
|
-
getText(key, defaultText) {
|
|
17
|
-
let text = utils.getNestedValue(this.resource, key) ?? defaultText ?? `Invalid key: ${key}`;
|
|
18
|
-
return typeof text == "string" ? text : `Invalid key: ${key}`;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 根据key获取一个节点
|
|
22
|
-
* @param key
|
|
23
|
-
*/
|
|
24
|
-
get(key) {
|
|
25
|
-
return utils.getNestedValue(this.resource, key);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const i18n = new I18nContext();
|
|
29
|
-
export default i18n;
|