@masterteam/system-settings 0.0.24 → 0.0.26

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 { s as DEFAULT_DATE_FORMAT_OPTIONS, x as DEFAULT_EMAIL_DELIVERY_OPTIONS, D as DEFAULT_GENERAL_CONFIGURATION, t as DEFAULT_TIME_FORMAT_OPTIONS, u as DOTNET_DAY_DEFINITIONS, b as EMAIL_DELIVERY_ATTEMPT_STATUSES, y as EMAIL_DELIVERY_OPTIONS, f as EMAIL_DELIVERY_PERMISSIONS, J as EMAIL_DELIVERY_ROUTES, K as EMAIL_FONT_FAMILIES, N as EMAIL_FONT_LABELS, M as EMAIL_FONT_WEIGHTS, k as EMAIL_LAYOUT_CONTENT_SLOT, l as EMAIL_LAYOUT_MAX_BYTES, P as EMAIL_STYLE_ADVANCED_SECTIONS, L as EMAIL_STYLE_RANGES, O as EMAIL_STYLE_SECTIONS, I as EMAIL_USER_INITIATED_TEST_OPERATION_KIND, q as EXPLORE_DEFAULT_VIEW_OPTIONS, n as EmailContentStylesEditor, A as EmailDeliveryAccessService, o as EmailHtmlPreview, h as EmailLayoutFacade, H as EmailUserTestDialog, m as EmailVisualEditor, F as FIXED_CURRENCIES, G as GENERAL_CONFIGURATION_SETTING_KEY, R as RATE_SOURCE_OPTIONS, v as SCHEDULE_ITEM_TYPE_OPTIONS, S as SystemSettings, w as SystemSettingsHolidayEditor, T as TIMESHEET_FREQUENCY_OPTIONS, W as WEEKEND_DAY_DEFINITIONS, d as areEmailTestRecipientsValid, Y as buildEmailPreviewDocument, C as buildEmailTemplatePlaceholderFields, B as collectEmailTemplatePlaceholders, c as createEmailTestRequestId, X as emailDesignLeaveGuard, j as emailStylesKey, i as isConnectionTestAttempt, e as isEmailTestRequestPending, V as normalizeEmailColor, p as parseEmailTestRecipients, z as provideEmailDelivery, Q as readEmailStyle, r as readLayoutErrorDiagnostics, U as writeEmailStyle } from './masterteam-system-settings-masterteam-system-settings-KfJrvCL9.mjs';
1
+ export { s as DEFAULT_DATE_FORMAT_OPTIONS, x as DEFAULT_EMAIL_DELIVERY_OPTIONS, D as DEFAULT_GENERAL_CONFIGURATION, t as DEFAULT_TIME_FORMAT_OPTIONS, u as DOTNET_DAY_DEFINITIONS, b as EMAIL_DELIVERY_ATTEMPT_STATUSES, y as EMAIL_DELIVERY_OPTIONS, f as EMAIL_DELIVERY_PERMISSIONS, J as EMAIL_DELIVERY_ROUTES, K as EMAIL_FONT_FAMILIES, N as EMAIL_FONT_LABELS, M as EMAIL_FONT_WEIGHTS, k as EMAIL_LAYOUT_CONTENT_SLOT, l as EMAIL_LAYOUT_MAX_BYTES, P as EMAIL_STYLE_ADVANCED_SECTIONS, L as EMAIL_STYLE_RANGES, O as EMAIL_STYLE_SECTIONS, I as EMAIL_USER_INITIATED_TEST_OPERATION_KIND, q as EXPLORE_DEFAULT_VIEW_OPTIONS, n as EmailContentStylesEditor, A as EmailDeliveryAccessService, o as EmailHtmlPreview, h as EmailLayoutFacade, H as EmailUserTestDialog, m as EmailVisualEditor, F as FIXED_CURRENCIES, G as GENERAL_CONFIGURATION_SETTING_KEY, R as RATE_SOURCE_OPTIONS, v as SCHEDULE_ITEM_TYPE_OPTIONS, S as SystemSettings, w as SystemSettingsHolidayEditor, T as TIMESHEET_FREQUENCY_OPTIONS, W as WEEKEND_DAY_DEFINITIONS, d as areEmailTestRecipientsValid, Y as buildEmailPreviewDocument, C as buildEmailTemplatePlaceholderFields, B as collectEmailTemplatePlaceholders, c as createEmailTestRequestId, X as emailDesignLeaveGuard, j as emailStylesKey, i as isConnectionTestAttempt, e as isEmailTestRequestPending, V as normalizeEmailColor, p as parseEmailTestRecipients, z as provideEmailDelivery, Q as readEmailStyle, r as readLayoutErrorDiagnostics, U as writeEmailStyle } from './masterteam-system-settings-masterteam-system-settings-XqDwBrIa.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.24",
3
+ "version": "0.0.26",
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.328",
23
- "@masterteam/forms": "^0.0.169",
22
+ "@masterteam/components": "^0.0.331",
23
+ "@masterteam/forms": "^0.0.170",
24
24
  "@masterteam/icons": "^0.0.17"
25
25
  },
26
26
  "sideEffects": false,
@@ -104,10 +104,13 @@ interface TimeSheetPolicySettingValue extends SystemSettingObject {
104
104
  submissionDeadlineDays: number;
105
105
  }
106
106
  interface GlobalWorkingHoursSettingValue extends SystemSettingObject {
107
- timeZoneId: string;
107
+ /** An IANA id from `GET settings/timezones`; null until one is chosen. */
108
+ timeZoneId: string | null;
108
109
  workingDays: number[];
109
110
  hoursPerDay: number;
110
111
  holidays: string[];
112
+ workDayStartMinute?: number;
113
+ workDayEndMinute?: number;
111
114
  }
112
115
  interface CurrencyCatalogItem {
113
116
  code: string;
@@ -324,6 +327,13 @@ declare class SystemSettings implements OnInit {
324
327
  routerLink?: string;
325
328
  icon?: string;
326
329
  }[]>;
330
+ /**
331
+ * The saved GlobalWorkingHours object, so a save keeps the fields this
332
+ * screen does not edit (start/end minutes, anything newer). Null while the
333
+ * organization calendar is not configured. Declared before `form`: the
334
+ * Working Hours validator reads it as soon as the form is built.
335
+ */
336
+ private readonly savedGlobalWorkingHours;
327
337
  readonly form: SystemSettingsForm;
328
338
  readonly settings: _angular_core.WritableSignal<SystemSetting[] | null>;
329
339
  readonly settingsLoading: _angular_core.WritableSignal<boolean>;
@@ -438,6 +448,11 @@ declare class SystemSettings implements OnInit {
438
448
  readonly allowedExploreDefaultViews: _angular_core.Signal<ExploreDefaultView[]>;
439
449
  readonly exploreDefaultViewOptions: _angular_core.Signal<IconSelectOption[]>;
440
450
  readonly frequencyOptions: _angular_core.Signal<SelectOption[]>;
451
+ /**
452
+ * Organization timezone choices: the catalog name and its stable id. A saved
453
+ * id the catalog no longer lists stays visible so it can be corrected.
454
+ */
455
+ readonly organizationTimeZoneOptions: _angular_core.Signal<SelectOption[]>;
441
456
  readonly isReady: _angular_core.Signal<boolean>;
442
457
  readonly isLoading: _angular_core.Signal<boolean>;
443
458
  readonly hasChanges: _angular_core.Signal<boolean>;
@@ -467,6 +482,17 @@ declare class SystemSettings implements OnInit {
467
482
  private buildWeekendValue;
468
483
  private buildTimeSheetPolicyValue;
469
484
  private buildGlobalWorkingHoursValue;
485
+ /**
486
+ * The saved calendar with this screen's fields applied, so the full object
487
+ * is sent back (the key is replaced as a whole). When the duration changes
488
+ * the saved start/end go: the server re-derives them from the saved start.
489
+ */
490
+ private withSavedCalendarFields;
491
+ /**
492
+ * A calendar that is configured, or being set up now, needs its zone. One
493
+ * that is not configured and left alone does not block saving other settings.
494
+ */
495
+ private organizationTimeZoneRequired;
470
496
  /**
471
497
  * Built via a method (not a module-level constant like the other
472
498
  * GlobalWorkingHours/TimeSheet validator arrays) because