fds-vue-core 6.2.7 → 6.2.8

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.
@@ -3000,13 +3000,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
3000
3000
  const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
3001
3001
  function mergeConfig$1(config1, config2) {
3002
3002
  config2 = config2 || {};
3003
- const config = /* @__PURE__ */ Object.create(null);
3004
- Object.defineProperty(config, "hasOwnProperty", {
3005
- value: Object.prototype.hasOwnProperty,
3006
- enumerable: false,
3007
- writable: true,
3008
- configurable: true
3009
- });
3003
+ const config = {};
3010
3004
  function getMergedValue(target, source, prop, caseless) {
3011
3005
  if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
3012
3006
  return utils$1.merge.call({ caseless }, target, source);
@@ -3070,7 +3064,6 @@ function mergeConfig$1(config1, config2) {
3070
3064
  httpsAgent: defaultToConfig2,
3071
3065
  cancelToken: defaultToConfig2,
3072
3066
  socketPath: defaultToConfig2,
3073
- allowedSocketPaths: defaultToConfig2,
3074
3067
  responseEncoding: defaultToConfig2,
3075
3068
  validateStatus: mergeDirectKeys,
3076
3069
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
@@ -3087,19 +3080,10 @@ function mergeConfig$1(config1, config2) {
3087
3080
  }
3088
3081
  const resolveConfig = (config) => {
3089
3082
  const newConfig = mergeConfig$1({}, config);
3090
- const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
3091
- const data = own2("data");
3092
- let withXSRFToken = own2("withXSRFToken");
3093
- const xsrfHeaderName = own2("xsrfHeaderName");
3094
- const xsrfCookieName = own2("xsrfCookieName");
3095
- let headers = own2("headers");
3096
- const auth = own2("auth");
3097
- const baseURL = own2("baseURL");
3098
- const allowAbsoluteUrls = own2("allowAbsoluteUrls");
3099
- const url = own2("url");
3083
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
3100
3084
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
3101
3085
  newConfig.url = buildURL(
3102
- buildFullPath(baseURL, url, allowAbsoluteUrls),
3086
+ buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
3103
3087
  config.params,
3104
3088
  config.paramsSerializer
3105
3089
  );
@@ -3723,7 +3707,7 @@ function dispatchRequest(config) {
3723
3707
  }
3724
3708
  );
3725
3709
  }
3726
- const VERSION$1 = "1.15.2";
3710
+ const VERSION$1 = "1.15.1";
3727
3711
  const validators$1 = {};
3728
3712
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
3729
3713
  validators$1[type] = function validator2(thing) {
@@ -3768,7 +3752,7 @@ function assertOptions(options, schema, allowUnknown) {
3768
3752
  let i = keys.length;
3769
3753
  while (i-- > 0) {
3770
3754
  const opt = keys[i];
3771
- const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
3755
+ const validator2 = schema[opt];
3772
3756
  if (validator2) {
3773
3757
  const value = options[opt];
3774
3758
  const result = value === void 0 || validator2(value, opt, options);
@@ -15164,6 +15148,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15164
15148
  disableNextWeek: { type: Boolean, default: false },
15165
15149
  enableHorizontalAnimation: { type: Boolean, default: true },
15166
15150
  minWeek: { default: void 0 },
15151
+ goToWeek: {},
15167
15152
  maxDate: { default: void 0 },
15168
15153
  previewOtherDays: { type: Boolean, default: false },
15169
15154
  selected: { default: null },
@@ -15243,6 +15228,17 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15243
15228
  emit("select-date", newSelected ?? null);
15244
15229
  }
15245
15230
  );
15231
+ watch(
15232
+ () => props.goToWeek?.getTime(),
15233
+ (newTimestamp) => {
15234
+ if (!newTimestamp) return;
15235
+ const normalizedWeek = startOfISOWeek(new Date(newTimestamp));
15236
+ if (isSameWeek(normalizedWeek, currentWeek.value, { weekStartsOn: 1 })) return;
15237
+ slideDirection.value = normalizedWeek.getTime() > currentWeek.value.getTime() ? "left" : "right";
15238
+ onHandleSetCurrentWeek(normalizedWeek);
15239
+ },
15240
+ { immediate: true }
15241
+ );
15246
15242
  const onHandleSelectedDay = (weekDay) => {
15247
15243
  selectedDay.value = weekDay;
15248
15244
  emit("select-date", weekDay);
@@ -15253,17 +15249,22 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15253
15249
  }
15254
15250
  currentWeek.value = week;
15255
15251
  };
15252
+ const navigateToWeek = (week) => {
15253
+ const normalizedWeek = startOfISOWeek(week);
15254
+ if (isSameWeek(normalizedWeek, currentWeek.value, { weekStartsOn: 1 })) return;
15255
+ const isForward = normalizedWeek.getTime() > currentWeek.value.getTime();
15256
+ if (isForward && disableNextWeekInteraction.value) return;
15257
+ if (!isForward && disableLastWeekInteraction.value) return;
15258
+ slideDirection.value = isForward ? "left" : "right";
15259
+ onHandleSetCurrentWeek(normalizedWeek);
15260
+ };
15256
15261
  const incrementWeek = () => {
15257
- if (disableNextWeekInteraction.value) return;
15258
- slideDirection.value = "left";
15259
15262
  emit("increment-week");
15260
- onHandleSetCurrentWeek(addWeeks(currentWeek.value, 1));
15263
+ navigateToWeek(addWeeks(currentWeek.value, 1));
15261
15264
  };
15262
15265
  const decrementWeek = () => {
15263
- if (disableLastWeekInteraction.value) return;
15264
- slideDirection.value = "right";
15265
15266
  emit("decrement-week");
15266
- onHandleSetCurrentWeek(subWeeks(currentWeek.value));
15267
+ navigateToWeek(subWeeks(currentWeek.value));
15267
15268
  };
15268
15269
  const isWeekDayDisabled = (weekDay) => checkIfDateIsBeforeToday(weekDay) || !checkIfDateIsEnabled(weekDay, props.enabledDates);
15269
15270
  const isTodayDate = (weekDay) => isSameDay(weekDay, /* @__PURE__ */ new Date());