@acorex/core 19.12.0 → 19.13.0-next.1

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.
Files changed (75) hide show
  1. package/date-time/index.d.ts +5 -5
  2. package/date-time/lib/calendar.service.d.ts +8 -3
  3. package/date-time/lib/dateTime.config.d.ts +1 -1
  4. package/date-time/lib/datetime.pipe.d.ts +2 -1
  5. package/date-time/lib/{datetime.class.d.ts → datetime.types.d.ts} +2 -2
  6. package/date-time/lib/formatters/date.formatter.d.ts +12 -0
  7. package/date-time/lib/formatters/{datetime-formatter.d.ts → datetime.formatter.d.ts} +3 -1
  8. package/date-time/lib/formatters/time.formatter.d.ts +12 -0
  9. package/date-time/lib/{georgian.calendar.d.ts → gregorian.calendar.d.ts} +2 -2
  10. package/date-time/lib/{jalali.calendar.d.ts → solar-hijri.calendar.d.ts} +8 -8
  11. package/events/index.d.ts +0 -1
  12. package/fesm2022/acorex-core-components.mjs +3 -3
  13. package/fesm2022/acorex-core-config.mjs +3 -3
  14. package/fesm2022/acorex-core-date-time.mjs +282 -119
  15. package/fesm2022/acorex-core-date-time.mjs.map +1 -1
  16. package/fesm2022/acorex-core-events.mjs +4 -10
  17. package/fesm2022/acorex-core-events.mjs.map +1 -1
  18. package/fesm2022/acorex-core-file.mjs +10 -10
  19. package/fesm2022/acorex-core-format.mjs +78 -63
  20. package/fesm2022/acorex-core-format.mjs.map +1 -1
  21. package/fesm2022/acorex-core-image.mjs +3 -3
  22. package/fesm2022/acorex-core-locale-en-AU.profile-BW-_9tgT.mjs +64 -0
  23. package/fesm2022/acorex-core-locale-en-AU.profile-BW-_9tgT.mjs.map +1 -0
  24. package/fesm2022/acorex-core-locale.mjs +341 -0
  25. package/fesm2022/acorex-core-locale.mjs.map +1 -0
  26. package/fesm2022/acorex-core-network.mjs +3 -3
  27. package/fesm2022/acorex-core-pipes.mjs +3 -3
  28. package/fesm2022/acorex-core-platform.mjs +3 -3
  29. package/fesm2022/acorex-core-storage.mjs +9 -9
  30. package/fesm2022/acorex-core-translation.mjs +246 -206
  31. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  32. package/fesm2022/acorex-core-utils.mjs +143 -18
  33. package/fesm2022/acorex-core-utils.mjs.map +1 -1
  34. package/fesm2022/acorex-core-validation.mjs +40 -40
  35. package/format/index.d.ts +2 -2
  36. package/format/lib/format.directive.d.ts +1 -1
  37. package/format/lib/format.module.d.ts +3 -3
  38. package/format/lib/format.service.d.ts +8 -7
  39. package/locale/README.md +3 -0
  40. package/locale/index.d.ts +8 -0
  41. package/locale/lib/formatters/currency.formatter.d.ts +10 -0
  42. package/locale/lib/locale-profile-provider.service.d.ts +24 -0
  43. package/locale/lib/locale.config.d.ts +5 -0
  44. package/locale/lib/locale.module.d.ts +7 -0
  45. package/locale/lib/locale.service.d.ts +20 -0
  46. package/locale/lib/locale.types.d.ts +61 -0
  47. package/locale/lib/profiles/en-AU.profile.d.ts +2 -0
  48. package/locale/lib/profiles/en-US.profile.d.ts +2 -0
  49. package/locale/lib/profiles/fa-IR.profile.d.ts +2 -0
  50. package/package.json +5 -1
  51. package/translation/index.d.ts +1 -1
  52. package/translation/lib/translation-loader.service.d.ts +20 -0
  53. package/translation/lib/translation.config.d.ts +19 -6
  54. package/translation/lib/translation.loader.d.ts +2 -2
  55. package/translation/lib/translation.parser.d.ts +7 -0
  56. package/translation/lib/translation.resolver.d.ts +9 -0
  57. package/translation/lib/translation.service.d.ts +12 -31
  58. package/translation/lib/translation.types.d.ts +8 -2
  59. package/translation/lib/translator.pipe.d.ts +0 -2
  60. package/types/README.md +2 -2
  61. package/utils/index.d.ts +6 -5
  62. package/utils/lib/execution.utils.d.ts +33 -0
  63. package/utils/lib/string.utils.d.ts +4 -0
  64. package/events/lib/event.type.d.ts +0 -5
  65. package/i18n/en/common.json +0 -191
  66. package/i18n/fa/common.json +0 -190
  67. package/utils/lib/string-util.d.ts +0 -6
  68. /package/date-time/lib/formatters/{time-duration-formatter.d.ts → time-duration.formatter.d.ts} +0 -0
  69. /package/date-time/lib/formatters/{timeleft-formatter.d.ts → timeleft.formatter.d.ts} +0 -0
  70. /package/format/lib/formatters/{number-formatter.d.ts → number.formatter.d.ts} +0 -0
  71. /package/format/lib/formatters/{string-formatter.d.ts → string.formatter.d.ts} +0 -0
  72. /package/utils/lib/{color-util.d.ts → color.utils.d.ts} +0 -0
  73. /package/utils/lib/{drawing-util.d.ts → drawing.utils.d.ts} +0 -0
  74. /package/utils/lib/{html-util.d.ts → html-utils.d.ts} +0 -0
  75. /package/utils/lib/{auto-unsubscribe.d.ts → lifecycle-helpers.utils.d.ts} +0 -0
package/utils/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export * from './lib/auto-unsubscribe';
2
- export * from './lib/color-util';
3
- export * from './lib/drawing-util';
4
- export * from './lib/html-util';
5
- export * from './lib/string-util';
1
+ export * from './lib/lifecycle-helpers.utils';
2
+ export * from './lib/color.utils';
3
+ export * from './lib/drawing.utils';
4
+ export * from './lib/html-utils';
5
+ export * from './lib/string.utils';
6
+ export * from './lib/execution.utils';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Blocks until a condition returns a value or the timeout is reached.
3
+ * Useful for simulating sync behavior with cached async results.
4
+ */
5
+ export declare function waitFor<T>(peekFn: () => T | null | undefined, loadFn: () => void, timeoutMs?: number): T | null;
6
+ /**
7
+ * Delays for a specific amount of time.
8
+ */
9
+ export declare function delay(ms: number): Promise<void>;
10
+ /**
11
+ * Retries an async function until it succeeds or a max attempt count is reached.
12
+ */
13
+ export declare function retryUntil<T>(fn: () => Promise<T>, attempts?: number, delayMs?: number): Promise<T>;
14
+ /**
15
+ * Continuously polls a condition until it returns true or a timeout is reached.
16
+ */
17
+ export declare function pollUntil(condition: () => boolean, intervalMs?: number, timeoutMs?: number): Promise<boolean>;
18
+ /**
19
+ * Throttles an async function to ensure only one instance runs at a time.
20
+ */
21
+ export declare function throttleAsync<T extends (...args: any[]) => Promise<any>>(fn: T): T;
22
+ /**
23
+ * Polls a condition with cancel support via AbortSignal.
24
+ */
25
+ export declare function pollUntilAbortable(condition: () => boolean, intervalMs?: number, timeoutMs?: number, signal?: AbortSignal): Promise<boolean>;
26
+ /**
27
+ * Debounces an async function to run only after no calls are made within the wait window.
28
+ */
29
+ export declare function debounceAsync<T extends (...args: any[]) => Promise<any>>(fn: T, waitMs: number): T;
30
+ /**
31
+ * Runs a list of fallback functions until one resolves without throwing.
32
+ */
33
+ export declare function fallbackChain<T>(tasks: Array<() => Promise<T>>): Promise<T>;
@@ -0,0 +1,4 @@
1
+ export declare function getWordBoundsAtPosition(str: string, position: number): {
2
+ start: number;
3
+ end: number;
4
+ };
@@ -1,5 +0,0 @@
1
- export declare const AXEventTypes: {
2
- AXLanguageChanged: string;
3
- AXLanguageLoaded: string;
4
- AXCalendarChanged: string;
5
- };
@@ -1,191 +0,0 @@
1
- {
2
- "search": "Search...",
3
- "yes": "yes",
4
- "no": "No",
5
- "confirm": "Confirm",
6
- "okay": "Okay",
7
- "accept": "Accept",
8
- "decline": "Decline",
9
- "cancel": "Cancel",
10
- "canceled": "Canceled",
11
- "failed": "Failed",
12
- "remove": "Remove",
13
- "edit": "Edit",
14
- "delete": "Delete",
15
- "create": "Create",
16
- "configs": "Configs",
17
- "no-result-found": "No results found",
18
- "no-result-for": "No results for &nbsp<b>\"{{ exp }}\"</b>",
19
- "searching": "searching ...",
20
- "save": "Save",
21
- "save-as": "Save As...",
22
- "title": "Title",
23
- "description": "Description",
24
- "name": "Name",
25
- "uniquename": "Unique Name",
26
- "size": "Size",
27
- "add-item": "Add Item",
28
- "color": "Color",
29
- "display": "Display",
30
- "min-value": "Min Value",
31
- "value": "Value",
32
- "max-value": "Max Value",
33
- "refresh-rate": "Refresh Rate",
34
- "condition": "Condition",
35
- "loading": "loading",
36
- "firstname": "Firstname",
37
- "required": "Required",
38
- "next": "Next",
39
- "prev": "Previous",
40
- "error": {
41
- "message": "Error: {{ message }}"
42
- },
43
- "dateTime": {
44
- "weekdays": {
45
- "short": {
46
- "0": "Sun",
47
- "1": "Mon",
48
- "2": "Tue",
49
- "3": "Wed",
50
- "4": "Thu",
51
- "5": "Fri",
52
- "6": "Sat"
53
- },
54
- "long": {
55
- "0": "Sunday",
56
- "1": "Monday",
57
- "2": "Tuesday",
58
- "3": "Wednesday",
59
- "4": "Thursday",
60
- "5": "Friday",
61
- "6": "Saturday"
62
- }
63
- },
64
- "months": {
65
- "georgian": {
66
- "short": {
67
- "0": "Jan",
68
- "1": "Feb",
69
- "2": "Mar",
70
- "3": "Apr",
71
- "4": "May",
72
- "5": "Jun",
73
- "6": "Jul",
74
- "7": "Aug",
75
- "8": "Sep",
76
- "9": "Oct",
77
- "10": "Nov",
78
- "11": "Dec"
79
- },
80
- "long": {
81
- "0": "January",
82
- "1": "February",
83
- "2": "March",
84
- "3": "April",
85
- "4": "May",
86
- "5": "June",
87
- "6": "July",
88
- "7": "August",
89
- "8": "September",
90
- "9": "October",
91
- "10": "November",
92
- "11": "December"
93
- }
94
- },
95
- "jalali": {
96
- "short": {
97
- "0": "Far",
98
- "1": "Ordi",
99
- "2": "Khor",
100
- "3": "Tir",
101
- "4": "Mordad",
102
- "5": "Shah",
103
- "6": "Mehr",
104
- "7": "Aban",
105
- "8": "Azar",
106
- "9": "Dey",
107
- "10": "Bah",
108
- "11": "Esf"
109
- },
110
- "long": {
111
- "0": "Farvardin",
112
- "1": "Ordibehesht",
113
- "2": "Khordad",
114
- "3": "Tir",
115
- "4": "Mordad",
116
- "5": "Shahrivar",
117
- "6": "Mehr",
118
- "7": "Aban",
119
- "8": "Azar",
120
- "9": "Dey",
121
- "10": "Bahman",
122
- "11": "Esfand"
123
- }
124
- }
125
- },
126
- "dayTime": {
127
- "am": "am",
128
- "pm": "pm",
129
- "m": "m",
130
- "a": "a",
131
- "p": "p"
132
- },
133
- "set": "Set",
134
- "ago": "Ago",
135
- "left": "Left",
136
- "today": "Today",
137
- "now": "Now",
138
- "year": "Year",
139
- "month": "Month",
140
- "day": "Day",
141
- "hour": "Hour",
142
- "minute": "Minute",
143
- "second": "Second",
144
- "date": "Date",
145
- "time": "Time",
146
- "duration": {
147
- "format_second": "{0} second(s)",
148
- "format_minute": "{0} minute(s)"
149
- }
150
- },
151
- "validation": {
152
- "messages": {
153
- "title": "Please fix the following error(s):",
154
- "required": "{{ title }} is required",
155
- "email": "Please enter a valid email address {{ title }}!",
156
- "phone": "Please enter a valid phone number!",
157
- "invalid-rull-name": "Invalid rule name: &nbsp<b>\"{{ name }}\"</b>"
158
- }
159
- },
160
- "selectbox": {
161
- "popover": {
162
- "title": "Choose an items..."
163
- }
164
- },
165
- "datepicker": {
166
- "popover": {
167
- "title": "Choose a date..."
168
- }
169
- },
170
- "datapager": {
171
- "info": {
172
- "text": "[page] of [totalPages] pages ([totalItems] items)"
173
- }
174
- },
175
- "uploader": {
176
- "zone": {
177
- "text": "Drop files to upload them",
178
- "drag": "Drag & Drop or ",
179
- "choose": "Choose File",
180
- "to-upload": " to Upload"
181
- }
182
- },
183
- "action-sheet": {
184
- "title": "Action Sheet..."
185
- },
186
- "comment": {
187
- "view": "View",
188
- "reply": "Reply",
189
- "replies": "Replies"
190
- }
191
- }
@@ -1,190 +0,0 @@
1
- {
2
- "search": "جستجو",
3
- "yes": "بله",
4
- "no": "خیر",
5
- "confirm": "تایید",
6
- "accept": "تایید",
7
- "decline": "رد",
8
- "okay": "باشه",
9
- "cancel": "لغو",
10
- "canceled": "لغو شد",
11
- "failed": "ناموفق",
12
- "remove": "حذف",
13
- "edit": "ویرایش",
14
- "delete": "حذف",
15
- "create": "ایجاد",
16
- "configs": "پیکره بندی",
17
- "no-result-found": "نتیجه ای یافت نشد",
18
- "no-result-for": "نتیجه ای برای &nbsp<b>\"${exp}\" یافت نشد.</b>",
19
- "searching": "درحال جستجو ...",
20
- "save": "ذخیره",
21
- "save-as": "ذخیره به عنوان...",
22
- "title": "عنوان",
23
- "description": "توضیحات",
24
- "name": "نام",
25
- "uniquename": "نام یکتا",
26
- "size": "اندازه",
27
- "add-item": "آیتم جدید",
28
- "color": "رنگ",
29
- "display": "نمایش",
30
- "min-value": "کمترین مقدار",
31
- "value": "مقدار",
32
- "max-value": "بیشترین مقدار",
33
- "refresh-rate": "نرخ بروزرسانی",
34
- "condition": "شرط",
35
- "loading": "در حال بارگذاری",
36
- "firstname": "اسم",
37
- "next": "بعدی",
38
- "prev": "قبلی",
39
- "error": {
40
- "message": "خطا: {{message}}"
41
- },
42
- "dateTime": {
43
- "weekdays": {
44
- "short": {
45
- "0": "ی",
46
- "1": "د",
47
- "2": "س",
48
- "3": "چ",
49
- "4": "پ",
50
- "5": "ج",
51
- "6": "ش"
52
- },
53
- "long": {
54
- "0": "یکشنبه",
55
- "1": "دوشنبه",
56
- "2": "سه شنبه",
57
- "3": "چهارشنبه",
58
- "4": "پنجشنبه",
59
- "5": "جمعه",
60
- "6": "شنبه"
61
- }
62
- },
63
- "months": {
64
- "georgian": {
65
- "short": {
66
- "0": "ژانویه",
67
- "1": "فوریه",
68
- "2": "مارس",
69
- "3": "آوریل",
70
- "4": "مه",
71
- "5": "ژوئن",
72
- "6": "ژوئیه",
73
- "7": "اوت",
74
- "8": "سپتامبر",
75
- "9": "اکتبر",
76
- "10": "نوامبر",
77
- "11": "دسامبر"
78
- },
79
- "long": {
80
- "0": "ژانویه",
81
- "1": "فوریه",
82
- "2": "مارس",
83
- "3": "آوریل",
84
- "4": "مه",
85
- "5": "ژوئن",
86
- "6": "ژوئیه",
87
- "7": "اوت",
88
- "8": "سپتامبر",
89
- "9": "اکتبر",
90
- "10": "نوامبر",
91
- "11": "دسامبر"
92
- }
93
- },
94
- "jalali": {
95
- "short": {
96
- "0": "فروردین",
97
- "1": "اردیبهشت",
98
- "2": "خرداد",
99
- "3": "تیر",
100
- "4": "مرداد",
101
- "5": "شهریور",
102
- "6": "مهر",
103
- "7": "آبان",
104
- "8": "آذر",
105
- "9": "دی",
106
- "10": "بهمن",
107
- "11": "اسفند"
108
- },
109
- "long": {
110
- "0": "فروردین",
111
- "1": "اردیبهشت",
112
- "2": "خرداد",
113
- "3": "تیر",
114
- "4": "مرداد",
115
- "5": "شهریور",
116
- "6": "مهر",
117
- "7": "آبان",
118
- "8": "آذر",
119
- "9": "دی",
120
- "10": "بهمن",
121
- "11": "اسفند"
122
- }
123
- }
124
- },
125
- "dayTime": {
126
- "am": "am",
127
- "pm": "pm",
128
- "m": "m",
129
- "a": "a",
130
- "p": "p"
131
- },
132
- "set": "تنظیم",
133
- "ago": "پیش",
134
- "left": "مانده",
135
- "today": "امروز",
136
- "now": "اکنون",
137
- "year": "سال",
138
- "month": "ماه",
139
- "day": "روز",
140
- "hour": "ساعت",
141
- "minute": "دقیقه",
142
- "second": "ثانیه",
143
- "date": "تاریخ",
144
- "time": "زمان",
145
- "duration": {
146
- "format_second": "{0} ثانیه(s)",
147
- "format_minute": "{0} دقیقه(s)"
148
- }
149
- },
150
- "validation": {
151
- "messages": {
152
- "title": "لطفا این خطاها را بررسی کنید(s):",
153
- "required": "\"<b>{{ title }}</b>\" اجباری است!",
154
- "email": "!لطفا یک ایمیل معتبر وارد کنید",
155
- "phone": "!لطفا یک شماره معتبر وارد کنید",
156
- "invalid-rull-name": "خطای اعتبارسنجی: &nbsp<b>\"{{ name }}\"</b>"
157
- }
158
- },
159
- "selectbox": {
160
- "popover": {
161
- "title": "انتخاب کنید ..."
162
- }
163
- },
164
- "datepicker": {
165
- "popover": {
166
- "title": "انتخاب تاریخ ..."
167
- }
168
- },
169
- "datapager": {
170
- "info": {
171
- "text": "[page] از [totalPages] صفحه ( [totalItems] رکورد)"
172
- }
173
- },
174
- "uploader": {
175
- "zone": {
176
- "text": "برای آپلود فایل را رها کنید",
177
- "drag": "بکشید یا رها کنید یا ",
178
- "choose": "فایل را انتخاب کنید",
179
- "to-upload": " "
180
- }
181
- },
182
- "action-sheet": {
183
- "title": "اکشن شیت"
184
- },
185
- "comment": {
186
- "view": "مشاهده",
187
- "reply": "پاسخ",
188
- "replies": "پاسخ‌ها"
189
- }
190
- }
@@ -1,6 +0,0 @@
1
- export declare class AXStringUtil {
2
- static getWordBoundsAtPosition(str: string, position: number): {
3
- start: number;
4
- end: number;
5
- };
6
- }
File without changes
File without changes