@pequity/squirrel 10.1.0 → 11.0.0

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,7 +1,8 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
3
  const useInputClasses = require("../useInputClasses.js");
4
- const VueDatePicker = require("@vuepic/vue-datepicker");
4
+ const dateLocale = require("../dateLocale.js");
5
+ const vueDatepicker = require("@vuepic/vue-datepicker");
5
6
  const vueI18n = require("vue-i18n");
6
7
  const _hoisted_1 = ["data-has-error"];
7
8
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -11,112 +12,73 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
11
12
  },
12
13
  __name: "p-inline-date-picker",
13
14
  props: /* @__PURE__ */ vue.mergeModels({
14
- label: { default: "" },
15
- errorMsg: { default: "" },
16
- required: { type: Boolean, default: false },
17
- uid: {},
18
- name: {},
19
- is24: { type: Boolean },
20
- enableTimePicker: { type: Boolean, default: false },
21
- range: { type: [Boolean, Object] },
22
15
  multiCalendars: { type: [Boolean, Number, String, Object] },
23
- modelValue: {},
24
- locale: {},
25
- position: {},
16
+ modelType: { default: "yyyy-MM-dd" },
26
17
  dark: { type: Boolean },
27
- placeholder: {},
28
- weekNumbers: {},
29
- hoursIncrement: {},
30
- hoursGridIncrement: {},
31
- secondsGridIncrement: {},
32
- minutesGridIncrement: {},
33
- minutesIncrement: {},
34
- secondsIncrement: {},
35
- minDate: {},
36
- maxDate: {},
37
- minTime: {},
38
- maxTime: {},
39
- weekStart: { default: 0 },
40
- disabled: { type: Boolean },
41
- readonly: { type: Boolean },
42
- format: {},
43
- previewFormat: {},
44
- hideInputIcon: { type: Boolean },
45
- state: { type: Boolean },
46
- clearable: { type: Boolean },
47
- alwaysClearable: { type: Boolean },
48
- autoApply: { type: Boolean, default: true },
49
- filters: {},
50
- disableMonthYearSelect: { type: Boolean },
18
+ transitions: { type: [Boolean, Object] },
19
+ ariaLabels: {},
20
+ hideNavigation: {},
21
+ timezone: {},
22
+ vertical: { type: Boolean },
23
+ hideMonthYearSelect: { type: Boolean },
24
+ disableYearSelect: { type: Boolean },
51
25
  yearRange: {},
26
+ autoApply: { type: Boolean, default: true },
52
27
  disabledDates: {},
53
- inline: { type: [Boolean, Object], default: true },
54
- selectText: {},
55
- cancelText: {},
56
- weekNumName: {},
57
- autoPosition: { type: [Boolean, String] },
58
- monthPicker: { type: Boolean },
59
- timePicker: { type: Boolean },
60
- textInput: { type: [Boolean, Object] },
61
- monthNameFormat: {},
62
28
  startDate: {},
63
- startTime: {},
64
29
  hideOffsetDates: { type: Boolean, default: true },
65
30
  noToday: { type: Boolean },
66
- noHoursOverlay: { type: Boolean },
67
- noMinutesOverlay: { type: Boolean },
68
- noSecondsOverlay: { type: Boolean },
69
- altPosition: {},
70
- disabledWeekDays: {},
71
31
  allowedDates: {},
72
- nowButtonLabel: {},
73
- monthChangeOnScroll: { type: [Boolean, String] },
74
32
  markers: {},
75
- transitions: { type: [Boolean, Object] },
76
- enableSeconds: { type: Boolean },
77
- escClose: { type: Boolean },
78
- spaceConfirm: { type: Boolean },
79
- monthChangeOnArrows: { type: Boolean },
80
- formatLocale: {},
81
- autocomplete: {},
82
- multiDates: { type: [Boolean, Object] },
83
33
  presetDates: {},
84
34
  flow: {},
85
- partialFlow: { type: Boolean },
86
35
  preventMinMaxNavigation: { type: Boolean },
87
- utc: { type: [Boolean, String] },
88
36
  reverseYears: { type: Boolean },
89
37
  weekPicker: { type: Boolean },
90
- vertical: { type: Boolean },
91
- ariaLabels: {},
38
+ filters: {},
92
39
  arrowNavigation: { type: Boolean },
93
- yearPicker: { type: Boolean },
40
+ highlight: {},
41
+ teleport: { type: [String, Boolean] },
42
+ centered: { type: Boolean },
43
+ locale: {},
44
+ weekStart: { default: 0 },
45
+ weekNumbers: { type: [Boolean, Object] },
94
46
  dayNames: {},
95
- modelType: { default: "yyyy-MM-dd" },
47
+ monthPicker: { type: Boolean },
48
+ yearPicker: { type: Boolean },
96
49
  modelAuto: { type: Boolean },
97
- highlight: {},
98
- offset: {},
99
- teleportCenter: { type: Boolean },
100
- teleport: { type: [Boolean, String] },
101
- ignoreTimeValidation: { type: Boolean },
102
- dayClass: {},
103
- hideNavigation: {},
50
+ formats: {},
51
+ multiDates: { type: [Boolean, Object] },
52
+ minDate: {},
53
+ maxDate: {},
54
+ minTime: {},
55
+ maxTime: {},
56
+ inputAttrs: {},
57
+ timeConfig: { default: () => ({ enableTimePicker: false }) },
58
+ placeholder: { default: "" },
59
+ timePicker: { type: Boolean },
60
+ range: { type: [Boolean, Object] },
61
+ menuId: {},
62
+ disabled: { type: Boolean },
63
+ readonly: { type: Boolean },
64
+ inline: { type: [Boolean, Object] },
65
+ textInput: { type: [Boolean, Object], default: false },
104
66
  sixWeeks: { type: [Boolean, String] },
105
- timezone: {},
106
- disableYearSelect: { type: Boolean },
67
+ actionRow: {},
107
68
  focusStartDate: { type: Boolean },
108
69
  disabledTimes: {},
109
- timePickerInline: { type: Boolean },
110
70
  calendar: {},
111
71
  config: {},
112
72
  quarterPicker: { type: Boolean },
113
73
  yearFirst: { type: Boolean },
114
74
  loading: { type: Boolean },
115
- onInternalModelChange: {},
116
- enableMinutes: { type: Boolean },
117
- ui: {}
75
+ ui: {},
76
+ floating: {},
77
+ label: { default: "" },
78
+ errorMsg: { default: "" },
79
+ required: { type: Boolean, default: false }
118
80
  }, {
119
- "modelValue": { default: "" },
81
+ "modelValue": {},
120
82
  "modelModifiers": {}
121
83
  }),
122
84
  emits: ["update:modelValue"],
@@ -127,9 +89,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
127
89
  const attrs = vue.useAttrs();
128
90
  const { labelClasses, errorMsgClasses } = useInputClasses.useInputClasses(props);
129
91
  const datePickerProps = vue.computed(() => {
130
- const { modelValue: _, ...propsWithoutModelValue } = props;
92
+ const { label, errorMsg, required, ...vueDatePickerProps } = props;
131
93
  const { class: classes, style: style2, ...attrsWithoutClassAndStyle } = attrs;
132
- return { ...propsWithoutModelValue, ...attrsWithoutClassAndStyle, locale: locale.value };
94
+ return {
95
+ ...vueDatePickerProps,
96
+ ...attrsWithoutClassAndStyle,
97
+ locale: dateLocale.getDateFnsLocale(locale.value),
98
+ inline: true
99
+ };
133
100
  });
134
101
  const style = vue.computed(() => {
135
102
  return attrs.style;
@@ -149,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
149
116
  class: vue.normalizeClass(vue.unref(labelClasses))
150
117
  }, vue.toDisplayString(__props.label), 3)) : vue.createCommentVNode("", true)
151
118
  ]),
152
- vue.createVNode(vue.unref(VueDatePicker), vue.mergeProps({
119
+ vue.createVNode(vue.unref(vueDatepicker.VueDatePicker), vue.mergeProps({
153
120
  modelValue: model.value,
154
121
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
155
122
  }, datePickerProps.value), null, 16, ["modelValue"]),