@masterteam/system-settings 0.0.8 → 0.0.10
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/README.md +34 -0
- package/assets/i18n/ar.json +18 -0
- package/assets/i18n/en.json +18 -0
- package/assets/system-settings.css +1 -1
- package/fesm2022/masterteam-system-settings.mjs +130 -162
- package/fesm2022/masterteam-system-settings.mjs.map +1 -1
- package/package.json +2 -2
- package/types/masterteam-system-settings.d.ts +37 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/system-settings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/system-settings",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"rxjs": "^7.8.2",
|
|
20
20
|
"tailwindcss": "^4.2.2",
|
|
21
21
|
"tailwindcss-primeui": "^0.6.1",
|
|
22
|
-
"@masterteam/components": "^0.0.
|
|
22
|
+
"@masterteam/components": "^0.0.228",
|
|
23
23
|
"@masterteam/icons": "^0.0.17"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
@@ -76,28 +76,20 @@ interface SmtpSettingValue extends SystemSettingObject {
|
|
|
76
76
|
host: string;
|
|
77
77
|
port: number | null;
|
|
78
78
|
}
|
|
79
|
+
type TimeSheetFrequency = 'Daily' | 'Weekly' | 'BiWeekly' | 'Monthly';
|
|
79
80
|
interface TimeSheetPolicySettingValue extends SystemSettingObject {
|
|
80
|
-
|
|
81
|
-
generationEnabled: boolean;
|
|
82
|
-
manualGenerationEnabled: boolean;
|
|
83
|
-
regularDailyHours: number;
|
|
81
|
+
frequency: TimeSheetFrequency;
|
|
84
82
|
maxDailyHours: number;
|
|
85
|
-
allowOvertime: boolean;
|
|
86
|
-
requireOvertimeReason: boolean;
|
|
87
83
|
requireDescription: boolean;
|
|
88
84
|
allowFutureEntry: boolean;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
allowZeroHourSubmit: boolean;
|
|
93
|
-
costEnabled: boolean;
|
|
94
|
-
rateSource: string;
|
|
85
|
+
allowBackdatedEntry: boolean;
|
|
86
|
+
autoLockOnApprove: boolean;
|
|
87
|
+
submissionDeadlineDays: number;
|
|
95
88
|
}
|
|
96
89
|
interface GlobalWorkingHoursSettingValue extends SystemSettingObject {
|
|
97
90
|
timeZoneId: string;
|
|
98
|
-
workDayStartMinute: number;
|
|
99
|
-
workDayEndMinute: number;
|
|
100
91
|
workingDays: number[];
|
|
92
|
+
hoursPerDay: number;
|
|
101
93
|
holidays: string[];
|
|
102
94
|
}
|
|
103
95
|
interface CurrencyCatalogItem {
|
|
@@ -154,27 +146,18 @@ type SystemSettingsForm = FormGroup<{
|
|
|
154
146
|
port: FormControl<string>;
|
|
155
147
|
}>;
|
|
156
148
|
timeSheetPolicy: FormGroup<{
|
|
157
|
-
|
|
158
|
-
generationEnabled: FormControl<boolean>;
|
|
159
|
-
manualGenerationEnabled: FormControl<boolean>;
|
|
160
|
-
regularDailyHours: FormControl<number | null>;
|
|
149
|
+
frequency: FormControl<TimeSheetFrequency | null>;
|
|
161
150
|
maxDailyHours: FormControl<number | null>;
|
|
162
|
-
allowOvertime: FormControl<boolean>;
|
|
163
|
-
requireOvertimeReason: FormControl<boolean>;
|
|
164
151
|
requireDescription: FormControl<boolean>;
|
|
165
152
|
allowFutureEntry: FormControl<boolean>;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
allowZeroHourSubmit: FormControl<boolean>;
|
|
170
|
-
costEnabled: FormControl<boolean>;
|
|
171
|
-
rateSource: FormControl<string | null>;
|
|
153
|
+
allowBackdatedEntry: FormControl<boolean>;
|
|
154
|
+
autoLockOnApprove: FormControl<boolean>;
|
|
155
|
+
submissionDeadlineDays: FormControl<number | null>;
|
|
172
156
|
}>;
|
|
173
157
|
globalWorkingHours: FormGroup<{
|
|
174
158
|
timeZoneId: FormControl<string | null>;
|
|
175
|
-
workDayStart: FormControl<string>;
|
|
176
|
-
workDayEnd: FormControl<string>;
|
|
177
159
|
workingDays: FormControl<number[]>;
|
|
160
|
+
hoursPerDay: FormControl<number | null>;
|
|
178
161
|
holidaysCsv: FormControl<string>;
|
|
179
162
|
}>;
|
|
180
163
|
}>;
|
|
@@ -225,6 +208,19 @@ declare const DOTNET_DAY_DEFINITIONS: readonly [{
|
|
|
225
208
|
readonly dayNumber: 6;
|
|
226
209
|
readonly translationKey: "saturday";
|
|
227
210
|
}];
|
|
211
|
+
declare const TIMESHEET_FREQUENCY_OPTIONS: readonly [{
|
|
212
|
+
readonly id: "Daily";
|
|
213
|
+
readonly translationKey: "frequency-daily";
|
|
214
|
+
}, {
|
|
215
|
+
readonly id: "Weekly";
|
|
216
|
+
readonly translationKey: "frequency-weekly";
|
|
217
|
+
}, {
|
|
218
|
+
readonly id: "BiWeekly";
|
|
219
|
+
readonly translationKey: "frequency-biweekly";
|
|
220
|
+
}, {
|
|
221
|
+
readonly id: "Monthly";
|
|
222
|
+
readonly translationKey: "frequency-monthly";
|
|
223
|
+
}];
|
|
228
224
|
declare const SCHEDULE_ITEM_TYPE_OPTIONS: readonly [{
|
|
229
225
|
readonly itemType: "Task";
|
|
230
226
|
readonly translationKey: "schedule-item-task";
|
|
@@ -296,27 +292,18 @@ declare class SystemSettings implements OnInit {
|
|
|
296
292
|
port: string;
|
|
297
293
|
}>;
|
|
298
294
|
timeSheetPolicy: Partial<{
|
|
299
|
-
|
|
300
|
-
generationEnabled: boolean;
|
|
301
|
-
manualGenerationEnabled: boolean;
|
|
302
|
-
regularDailyHours: number | null;
|
|
295
|
+
frequency: TimeSheetFrequency | null;
|
|
303
296
|
maxDailyHours: number | null;
|
|
304
|
-
allowOvertime: boolean;
|
|
305
|
-
requireOvertimeReason: boolean;
|
|
306
297
|
requireDescription: boolean;
|
|
307
298
|
allowFutureEntry: boolean;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
allowZeroHourSubmit: boolean;
|
|
312
|
-
costEnabled: boolean;
|
|
313
|
-
rateSource: string | null;
|
|
299
|
+
allowBackdatedEntry: boolean;
|
|
300
|
+
autoLockOnApprove: boolean;
|
|
301
|
+
submissionDeadlineDays: number | null;
|
|
314
302
|
}>;
|
|
315
303
|
globalWorkingHours: Partial<{
|
|
316
304
|
timeZoneId: string | null;
|
|
317
|
-
workDayStart: string;
|
|
318
|
-
workDayEnd: string;
|
|
319
305
|
workingDays: number[];
|
|
306
|
+
hoursPerDay: number | null;
|
|
320
307
|
holidaysCsv: string;
|
|
321
308
|
}>;
|
|
322
309
|
}> | {
|
|
@@ -340,27 +327,18 @@ declare class SystemSettings implements OnInit {
|
|
|
340
327
|
port: string;
|
|
341
328
|
};
|
|
342
329
|
timeSheetPolicy: {
|
|
343
|
-
|
|
344
|
-
generationEnabled: boolean;
|
|
345
|
-
manualGenerationEnabled: boolean;
|
|
346
|
-
regularDailyHours: number | null;
|
|
330
|
+
frequency: TimeSheetFrequency | null;
|
|
347
331
|
maxDailyHours: number | null;
|
|
348
|
-
allowOvertime: boolean;
|
|
349
|
-
requireOvertimeReason: boolean;
|
|
350
332
|
requireDescription: boolean;
|
|
351
333
|
allowFutureEntry: boolean;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
allowZeroHourSubmit: boolean;
|
|
356
|
-
costEnabled: boolean;
|
|
357
|
-
rateSource: string | null;
|
|
334
|
+
allowBackdatedEntry: boolean;
|
|
335
|
+
autoLockOnApprove: boolean;
|
|
336
|
+
submissionDeadlineDays: number | null;
|
|
358
337
|
};
|
|
359
338
|
globalWorkingHours: {
|
|
360
339
|
timeZoneId: string | null;
|
|
361
|
-
workDayStart: string;
|
|
362
|
-
workDayEnd: string;
|
|
363
340
|
workingDays: number[];
|
|
341
|
+
hoursPerDay: number | null;
|
|
364
342
|
holidaysCsv: string;
|
|
365
343
|
};
|
|
366
344
|
}>;
|
|
@@ -386,8 +364,7 @@ declare class SystemSettings implements OnInit {
|
|
|
386
364
|
readonly currencyFormatOptions: _angular_core.Signal<SelectOption[]>;
|
|
387
365
|
readonly weekendOptions: _angular_core.Signal<WeekendDayOption[]>;
|
|
388
366
|
readonly dotnetDayOptions: _angular_core.Signal<WeekendDayOption[]>;
|
|
389
|
-
readonly
|
|
390
|
-
readonly rateSourceOptions: _angular_core.Signal<SelectOption[]>;
|
|
367
|
+
readonly frequencyOptions: _angular_core.Signal<SelectOption[]>;
|
|
391
368
|
readonly isReady: _angular_core.Signal<boolean>;
|
|
392
369
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
393
370
|
readonly hasChanges: _angular_core.Signal<boolean>;
|
|
@@ -473,5 +450,5 @@ declare class SystemSettingsHolidayEditor {
|
|
|
473
450
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SystemSettingsHolidayEditor, "mt-system-settings-holiday-editor", never, { "holiday": { "alias": "holiday"; "required": false; "isSignal": true; }; "isEditMode": { "alias": "isEditMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
474
451
|
}
|
|
475
452
|
|
|
476
|
-
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_TIME_FORMAT_OPTIONS, DOTNET_DAY_DEFINITIONS, FIXED_CURRENCIES, RATE_SOURCE_OPTIONS, SCHEDULE_ITEM_TYPE_OPTIONS, SystemSettings, SystemSettingsHolidayEditor, WEEKEND_DAY_DEFINITIONS };
|
|
477
|
-
export type { ApiResponse, CurrencyCatalogItem, CurrencySettingValue, CurrencyUnitLabel, FormatSchemaOption, GlobalWorkingHoursSettingValue, HolidayItem, HolidayTableRow, HolidaysSettingValue, ScheduleItemTypeOption, SelectOption, SmtpSettingValue, SystemSetting, SystemSettingObject, SystemSettingPrimitive, SystemSettingValue, SystemSettingsForm, SystemSettingsFormatSchema, SystemSettingsSnapshot, TimeSheetPolicySettingValue, TimezoneRegionOption, TimezoneSettingValue, UpdateSystemSettingItem, WeekendDayOption, WeekendSettingValue };
|
|
453
|
+
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_TIME_FORMAT_OPTIONS, DOTNET_DAY_DEFINITIONS, FIXED_CURRENCIES, RATE_SOURCE_OPTIONS, SCHEDULE_ITEM_TYPE_OPTIONS, SystemSettings, SystemSettingsHolidayEditor, TIMESHEET_FREQUENCY_OPTIONS, WEEKEND_DAY_DEFINITIONS };
|
|
454
|
+
export type { ApiResponse, CurrencyCatalogItem, CurrencySettingValue, CurrencyUnitLabel, FormatSchemaOption, GlobalWorkingHoursSettingValue, HolidayItem, HolidayTableRow, HolidaysSettingValue, ScheduleItemTypeOption, SelectOption, SmtpSettingValue, SystemSetting, SystemSettingObject, SystemSettingPrimitive, SystemSettingValue, SystemSettingsForm, SystemSettingsFormatSchema, SystemSettingsSnapshot, TimeSheetFrequency, TimeSheetPolicySettingValue, TimezoneRegionOption, TimezoneSettingValue, UpdateSystemSettingItem, WeekendDayOption, WeekendSettingValue };
|