@bootkit/ng0 0.0.0-alpha.5 → 0.0.0-alpha.6
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.
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Locale } from '@bootkit/ng0/localization';
|
|
2
|
+
|
|
3
|
+
const formatNumber$1 = (n) => n.toLocaleString();
|
|
4
|
+
const EN_US_LOCALE = new Locale({
|
|
5
|
+
name: 'en-US',
|
|
6
|
+
rtl: false,
|
|
7
|
+
dictionary: {
|
|
8
|
+
ok: 'Ok',
|
|
9
|
+
cancel: 'Cancel',
|
|
10
|
+
warning: 'Warning',
|
|
11
|
+
areYouSure: 'Are you sure?',
|
|
12
|
+
noRecords: 'No records.',
|
|
13
|
+
first: 'First',
|
|
14
|
+
last: 'Last',
|
|
15
|
+
next: 'Next',
|
|
16
|
+
previous: 'Previous',
|
|
17
|
+
pageXofY: 'Page {0} of {1}',
|
|
18
|
+
},
|
|
19
|
+
form: {
|
|
20
|
+
validation: {
|
|
21
|
+
errors: {
|
|
22
|
+
'*': (e) => 'Invalid',
|
|
23
|
+
required: (e) => `Required`,
|
|
24
|
+
min: (e) => `Minimum: ${formatNumber$1(e.min)}`,
|
|
25
|
+
max: (e) => `Maximum: ${formatNumber$1(e.max)}`,
|
|
26
|
+
minlength: (e) => `Minimum length: ${e.requiredLength}`,
|
|
27
|
+
maxlength: (e) => `Maximum length: ${e.requiredLength}`,
|
|
28
|
+
email: (e) => `Invalid email`,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const formatNumber = (n) => n.toLocaleString();
|
|
35
|
+
const FA_IR_LOCALE = new Locale({
|
|
36
|
+
name: 'fa-IR',
|
|
37
|
+
rtl: true,
|
|
38
|
+
dictionary: {
|
|
39
|
+
ok: 'تایید',
|
|
40
|
+
cancel: 'لغو',
|
|
41
|
+
warning: 'هشدار',
|
|
42
|
+
areYouSure: 'آیا مطمئن هستید?',
|
|
43
|
+
noRecords: 'بدون رکورد',
|
|
44
|
+
first: 'اولین',
|
|
45
|
+
last: 'آخرین',
|
|
46
|
+
next: 'بعدی',
|
|
47
|
+
previous: 'قبلی',
|
|
48
|
+
pageXofY: 'صفحه {0} از {1}',
|
|
49
|
+
},
|
|
50
|
+
form: {
|
|
51
|
+
validation: {
|
|
52
|
+
errors: {
|
|
53
|
+
'*': (e) => 'نامعتبر',
|
|
54
|
+
required: (e) => `الزامی`,
|
|
55
|
+
min: (e) => `حداقل: ${formatNumber(e.min)}`,
|
|
56
|
+
max: (e) => `حداکثر: ${formatNumber(e.max)}`,
|
|
57
|
+
minlength: (e) => `حداقل ${e.requiredLength} کاراکتر`,
|
|
58
|
+
maxlength: (e) => `حداکثر ${e.requiredLength} کاراکتر`,
|
|
59
|
+
email: (e) => `ایمیل نامعتبر است`,
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Generated bundle index. Do not edit.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
export { EN_US_LOCALE, FA_IR_LOCALE };
|
|
70
|
+
//# sourceMappingURL=bootkit-ng0-localization-locales.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootkit-ng0-localization-locales.mjs","sources":["../../../projects/ng0/localization/locales/en-us.ts","../../../projects/ng0/localization/locales/fa-ir.ts","../../../projects/ng0/localization/locales/bootkit-ng0-localization-locales.ts"],"sourcesContent":["import { Locale } from '@bootkit/ng0/localization';\r\n\r\nconst formatNumber = (n: number) => n.toLocaleString();\r\n\r\nexport const EN_US_LOCALE = new Locale({\r\n name: 'en-US',\r\n rtl: false,\r\n dictionary: {\r\n ok: 'Ok',\r\n cancel: 'Cancel',\r\n warning: 'Warning',\r\n areYouSure: 'Are you sure?',\r\n noRecords: 'No records.',\r\n first: 'First',\r\n last: 'Last',\r\n next: 'Next',\r\n previous: 'Previous',\r\n pageXofY: 'Page {0} of {1}',\r\n },\r\n form: {\r\n validation: {\r\n errors: {\r\n '*': (e) => 'Invalid',\r\n required: (e) => `Required`,\r\n min: (e) => `Minimum: ${formatNumber(e.min)}`,\r\n max: (e) => `Maximum: ${formatNumber(e.max)}`,\r\n minlength: (e) => `Minimum length: ${e.requiredLength}`,\r\n maxlength: (e) => `Maximum length: ${e.requiredLength}`,\r\n email: (e) => `Invalid email`,\r\n }\r\n }\r\n }\r\n});\r\n","import { Locale } from '@bootkit/ng0/localization';\r\n\r\nconst formatNumber = (n: number) => n.toLocaleString();\r\n\r\nexport const FA_IR_LOCALE = new Locale({\r\n name: 'fa-IR',\r\n rtl: true,\r\n dictionary: {\r\n ok: 'تایید',\r\n cancel: 'لغو',\r\n warning: 'هشدار',\r\n areYouSure: 'آیا مطمئن هستید?',\r\n noRecords: 'بدون رکورد',\r\n first: 'اولین',\r\n last: 'آخرین',\r\n next: 'بعدی',\r\n previous: 'قبلی',\r\n pageXofY: 'صفحه {0} از {1}',\r\n },\r\n form: {\r\n validation: {\r\n errors: {\r\n '*': (e) => 'نامعتبر',\r\n required: (e) => `الزامی`,\r\n min: (e) => `حداقل: ${formatNumber(e.min)}`,\r\n max: (e) => `حداکثر: ${formatNumber(e.max)}`,\r\n minlength: (e) => `حداقل ${e.requiredLength} کاراکتر`,\r\n maxlength: (e) => `حداکثر ${e.requiredLength} کاراکتر`,\r\n email: (e) => `ایمیل نامعتبر است`,\r\n }\r\n }\r\n }\r\n});\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["formatNumber"],"mappings":";;AAEA,MAAMA,cAAY,GAAG,CAAC,CAAS,KAAK,CAAC,CAAC,cAAc,EAAE;AAEzC,MAAA,YAAY,GAAG,IAAI,MAAM,CAAC;AACnC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,UAAU,EAAE;AACR,QAAA,E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b,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,UAAU,EAAE,kBAAkB;AAC9B,QAAA,SAAS,EAAE,YAAY;AACvB,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,QAAQ,EAAE,iBAAiB;AAC9B,KAAA;AACD,IAAA,IAAI,EAAE;AACF,QAAA,UAAU,EAAE;AACR,YAAA,MAAM,EAAE;AACJ,gBAAA,GAAG,EAAE,CAAC,CAAC,KAAK,SAAS;AACrB,gBAAA,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAQ,MAAA,CAAA;AACzB,gBAAA,GAAG,EAAE,CAAC,CAAC,KAAK,CAAU,OAAA,EAAA,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAE,CAAA;AAC3C,gBAAA,GAAG,EAAE,CAAC,CAAC,KAAK,CAAW,QAAA,EAAA,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAE,CAAA;gBAC5C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAS,MAAA,EAAA,CAAC,CAAC,cAAc,CAAU,QAAA,CAAA;gBACrD,SAAS,EAAE,CAAC,CAAC,KAAK,CAAU,OAAA,EAAA,CAAC,CAAC,cAAc,CAAU,QAAA,CAAA;AACtD,gBAAA,KAAK,EAAE,CAAC,CAAC,KAAK,CAAmB,iBAAA,CAAA;AACpC;AACJ;AACJ;AACJ,CAAA;;AChCD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootkit/ng0",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.6",
|
|
4
4
|
"description": "Angular+Bootstrap Component Library",
|
|
5
5
|
"homepage": "https://bootkitlib.github.io/",
|
|
6
6
|
"author": "BootKit",
|
|
@@ -43,10 +43,6 @@
|
|
|
43
43
|
"types": "./data/index.d.ts",
|
|
44
44
|
"default": "./fesm2022/bootkit-ng0-data.mjs"
|
|
45
45
|
},
|
|
46
|
-
"./form": {
|
|
47
|
-
"types": "./form/index.d.ts",
|
|
48
|
-
"default": "./fesm2022/bootkit-ng0-form.mjs"
|
|
49
|
-
},
|
|
50
46
|
"./file": {
|
|
51
47
|
"types": "./file/index.d.ts",
|
|
52
48
|
"default": "./fesm2022/bootkit-ng0-file.mjs"
|
|
@@ -55,6 +51,10 @@
|
|
|
55
51
|
"types": "./http/index.d.ts",
|
|
56
52
|
"default": "./fesm2022/bootkit-ng0-http.mjs"
|
|
57
53
|
},
|
|
54
|
+
"./form": {
|
|
55
|
+
"types": "./form/index.d.ts",
|
|
56
|
+
"default": "./fesm2022/bootkit-ng0-form.mjs"
|
|
57
|
+
},
|
|
58
58
|
"./localization": {
|
|
59
59
|
"types": "./localization/index.d.ts",
|
|
60
60
|
"default": "./fesm2022/bootkit-ng0-localization.mjs"
|
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
"types": "./components/accordion/index.d.ts",
|
|
72
72
|
"default": "./fesm2022/bootkit-ng0-components-accordion.mjs"
|
|
73
73
|
},
|
|
74
|
+
"./components/card": {
|
|
75
|
+
"types": "./components/card/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/bootkit-ng0-components-card.mjs"
|
|
77
|
+
},
|
|
74
78
|
"./components/button": {
|
|
75
79
|
"types": "./components/button/index.d.ts",
|
|
76
80
|
"default": "./fesm2022/bootkit-ng0-components-button.mjs"
|
|
@@ -79,18 +83,14 @@
|
|
|
79
83
|
"types": "./components/code/index.d.ts",
|
|
80
84
|
"default": "./fesm2022/bootkit-ng0-components-code.mjs"
|
|
81
85
|
},
|
|
82
|
-
"./components/
|
|
83
|
-
"types": "./components/
|
|
84
|
-
"default": "./fesm2022/bootkit-ng0-components-
|
|
86
|
+
"./components/collapse": {
|
|
87
|
+
"types": "./components/collapse/index.d.ts",
|
|
88
|
+
"default": "./fesm2022/bootkit-ng0-components-collapse.mjs"
|
|
85
89
|
},
|
|
86
90
|
"./components/confirmation": {
|
|
87
91
|
"types": "./components/confirmation/index.d.ts",
|
|
88
92
|
"default": "./fesm2022/bootkit-ng0-components-confirmation.mjs"
|
|
89
93
|
},
|
|
90
|
-
"./components/collapse": {
|
|
91
|
-
"types": "./components/collapse/index.d.ts",
|
|
92
|
-
"default": "./fesm2022/bootkit-ng0-components-collapse.mjs"
|
|
93
|
-
},
|
|
94
94
|
"./components/form-field": {
|
|
95
95
|
"types": "./components/form-field/index.d.ts",
|
|
96
96
|
"default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
|
|
@@ -123,14 +123,14 @@
|
|
|
123
123
|
"types": "./components/stepper/index.d.ts",
|
|
124
124
|
"default": "./fesm2022/bootkit-ng0-components-stepper.mjs"
|
|
125
125
|
},
|
|
126
|
-
"./components/toast": {
|
|
127
|
-
"types": "./components/toast/index.d.ts",
|
|
128
|
-
"default": "./fesm2022/bootkit-ng0-components-toast.mjs"
|
|
129
|
-
},
|
|
130
126
|
"./components/table": {
|
|
131
127
|
"types": "./components/table/index.d.ts",
|
|
132
128
|
"default": "./fesm2022/bootkit-ng0-components-table.mjs"
|
|
133
129
|
},
|
|
130
|
+
"./components/toast": {
|
|
131
|
+
"types": "./components/toast/index.d.ts",
|
|
132
|
+
"default": "./fesm2022/bootkit-ng0-components-toast.mjs"
|
|
133
|
+
},
|
|
134
134
|
"./components/tooltip": {
|
|
135
135
|
"types": "./components/tooltip/index.d.ts",
|
|
136
136
|
"default": "./fesm2022/bootkit-ng0-components-tooltip.mjs"
|
|
@@ -138,6 +138,10 @@
|
|
|
138
138
|
"./components/vertical-menu": {
|
|
139
139
|
"types": "./components/vertical-menu/index.d.ts",
|
|
140
140
|
"default": "./fesm2022/bootkit-ng0-components-vertical-menu.mjs"
|
|
141
|
+
},
|
|
142
|
+
"./localization/locales": {
|
|
143
|
+
"types": "./localization/locales/index.d.ts",
|
|
144
|
+
"default": "./fesm2022/bootkit-ng0-localization-locales.mjs"
|
|
141
145
|
}
|
|
142
146
|
}
|
|
143
147
|
}
|