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