@masterteam/system-settings 0.0.20 → 0.0.22

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.
@@ -1,2 +1,2 @@
1
- export { j as DEFAULT_DATE_FORMAT_OPTIONS, o as DEFAULT_EMAIL_DELIVERY_OPTIONS, D as DEFAULT_GENERAL_CONFIGURATION, k as DEFAULT_TIME_FORMAT_OPTIONS, l as DOTNET_DAY_DEFINITIONS, b as EMAIL_DELIVERY_ATTEMPT_STATUSES, q as EMAIL_DELIVERY_OPTIONS, f as EMAIL_DELIVERY_PERMISSIONS, x as EMAIL_DELIVERY_ROUTES, w as EMAIL_USER_INITIATED_TEST_OPERATION_KIND, h as EXPLORE_DEFAULT_VIEW_OPTIONS, s as EmailDeliveryAccessService, v as EmailUserTestDialog, F as FIXED_CURRENCIES, G as GENERAL_CONFIGURATION_SETTING_KEY, R as RATE_SOURCE_OPTIONS, m as SCHEDULE_ITEM_TYPE_OPTIONS, S as SystemSettings, n as SystemSettingsHolidayEditor, T as TIMESHEET_FREQUENCY_OPTIONS, W as WEEKEND_DAY_DEFINITIONS, d as areEmailTestRecipientsValid, u as buildEmailTemplatePlaceholderFields, t as collectEmailTemplatePlaceholders, c as createEmailTestRequestId, i as isConnectionTestAttempt, e as isEmailTestRequestPending, p as parseEmailTestRecipients, r as provideEmailDelivery } from './masterteam-system-settings-masterteam-system-settings-DbsjQ7c7.mjs';
1
+ export { j as DEFAULT_DATE_FORMAT_OPTIONS, o as DEFAULT_EMAIL_DELIVERY_OPTIONS, D as DEFAULT_GENERAL_CONFIGURATION, k as DEFAULT_TIME_FORMAT_OPTIONS, l as DOTNET_DAY_DEFINITIONS, b as EMAIL_DELIVERY_ATTEMPT_STATUSES, q as EMAIL_DELIVERY_OPTIONS, f as EMAIL_DELIVERY_PERMISSIONS, x as EMAIL_DELIVERY_ROUTES, w as EMAIL_USER_INITIATED_TEST_OPERATION_KIND, h as EXPLORE_DEFAULT_VIEW_OPTIONS, s as EmailDeliveryAccessService, v as EmailUserTestDialog, F as FIXED_CURRENCIES, G as GENERAL_CONFIGURATION_SETTING_KEY, R as RATE_SOURCE_OPTIONS, m as SCHEDULE_ITEM_TYPE_OPTIONS, S as SystemSettings, n as SystemSettingsHolidayEditor, T as TIMESHEET_FREQUENCY_OPTIONS, W as WEEKEND_DAY_DEFINITIONS, d as areEmailTestRecipientsValid, u as buildEmailTemplatePlaceholderFields, t as collectEmailTemplatePlaceholders, c as createEmailTestRequestId, i as isConnectionTestAttempt, e as isEmailTestRequestPending, p as parseEmailTestRecipients, r as provideEmailDelivery } from './masterteam-system-settings-masterteam-system-settings-7I4TfgwP.mjs';
2
2
  //# sourceMappingURL=masterteam-system-settings.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/system-settings",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/system-settings",
6
6
  "linkDirectory": false,
@@ -19,8 +19,8 @@
19
19
  "rxjs": "^7.8.2",
20
20
  "tailwindcss": "^4.2.2",
21
21
  "tailwindcss-primeui": "^0.6.1",
22
- "@masterteam/components": "^0.0.282",
23
- "@masterteam/forms": "^0.0.147",
22
+ "@masterteam/components": "^0.0.301",
23
+ "@masterteam/forms": "^0.0.156",
24
24
  "@masterteam/icons": "^0.0.17"
25
25
  },
26
26
  "sideEffects": false,
@@ -466,6 +466,15 @@ declare class SystemSettings implements OnInit {
466
466
  private buildWeekendValue;
467
467
  private buildTimeSheetPolicyValue;
468
468
  private buildGlobalWorkingHoursValue;
469
+ /**
470
+ * Built via a method (not a module-level constant like the other
471
+ * GlobalWorkingHours/TimeSheet validator arrays) because
472
+ * `greaterThanZeroValidator` needs `this.transloco` to resolve its message
473
+ * - safe to call from the `form` field initializer since `transloco` is
474
+ * declared and `inject()`-ed earlier in the class body and field
475
+ * initializers run in declaration order.
476
+ */
477
+ private buildHoursPerDayValidators;
469
478
  private findSettingByKey;
470
479
  private extractGeneralConfigurationValue;
471
480
  private extractHolidaysValue;
@@ -502,6 +511,13 @@ declare class SystemSettings implements OnInit {
502
511
  * Builds a localized, human-readable label for a date/time format key by
503
512
  * translating each format token (e.g. `dd-MM-yyyy` → `يوم-شهر-سنة`) while
504
513
  * preserving the original separators. Unknown characters are left as-is.
514
+ *
515
+ * `H` (24-hour) and `h` (12-hour) map to distinct translation keys -
516
+ * NOT the same `format-token-hour` key. They used to share one key, which
517
+ * made 'H:mm:ss' and 'hh:mm:ss' render as the identical label
518
+ * "Hour:Minute:Second" despite submitting genuinely different backend
519
+ * values (`H:mm:ss` vs `hh:mm:ss`), so an admin had no way to tell the two
520
+ * Time Format options apart before selecting one.
505
521
  */
506
522
  private formatOptionLabel;
507
523
  private serializeHolidaysValue;