@dcodegroup-au/dsg-vue 1.0.10-next → 1.0.12-next

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,5 +1,5 @@
1
1
  import { nextTick } from 'vue';
2
- import { RangeConfig, UIConfig, FloatingConfig, TimeConfig, FormatsConfig } from '@vuepic/vue-datepicker';
2
+ import { RangeConfig, UIConfig, FloatingConfig, TimeConfig, FormatsConfig, TextInputConfig } from '@vuepic/vue-datepicker';
3
3
  import { Locale } from 'date-fns';
4
4
  /**
5
5
  * ------------------------------------------------
@@ -14,6 +14,8 @@ export type DsgUiClasses = UIConfig;
14
14
  export type DsgDatepickerFloatingConfig = FloatingConfig;
15
15
  export type DsgDatepickerTimeConfig = TimeConfig;
16
16
  export type DsgDatepickerFormatsConfig = FormatsConfig;
17
+ export type DsgDatepickerTextInputConfig = TextInputConfig;
18
+ export type DsgDatepickerTextInput = boolean | Partial<DsgDatepickerTextInputConfig>;
17
19
  /**
18
20
  * The model type determines the format of the v-model value.
19
21
  * - `undefined` (default): returns `Date` objects
@@ -47,6 +49,12 @@ export interface DsgDatepickerProps {
47
49
  */
48
50
  modelType?: DsgDatepickerModelType;
49
51
  requiredLabel?: boolean;
52
+ /**
53
+ * Enable keyboard editing in the input field.
54
+ * Pass `false` to disable, or a config object to customise parsing / submit behaviour.
55
+ * @see https://vue3datepicker.com/props/modes/#text-input
56
+ */
57
+ textInput?: DsgDatepickerTextInput;
50
58
  }
51
59
  type __VLS_Props = DsgDatepickerProps;
52
60
  type __VLS_PublicProps = {
@@ -127,7 +135,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
127
135
  readonly inline?: boolean | {
128
136
  input?: boolean;
129
137
  } | undefined;
130
- readonly textInput?: (boolean | Partial<import('@vuepic/vue-datepicker').TextInputConfig>) | undefined;
138
+ readonly textInput?: (boolean | Partial<TextInputConfig>) | undefined;
131
139
  readonly sixWeeks?: (boolean | import('@vuepic/vue-datepicker').SixWeekMode) | undefined;
132
140
  readonly actionRow?: Partial<import('@vuepic/vue-datepicker').ActionRowConfig> | undefined;
133
141
  readonly focusStartDate?: boolean | undefined;
@@ -675,7 +683,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
675
683
  open: boolean;
676
684
  overlay: import('@vuepic/vue-datepicker').PickerSection;
677
685
  }) => any) | undefined;
678
- }>, "dark" | "loading" | "range" | "disableYearSelect" | "centered" | "ui" | "locale" | "transitions" | "hideNavigation" | "vertical" | "hideMonthYearSelect" | "yearRange" | "autoApply" | "disabledDates" | "hideOffsetDates" | "noToday" | "markers" | "presetDates" | "preventMinMaxNavigation" | "reverseYears" | "weekPicker" | "arrowNavigation" | "weekStart" | "monthPicker" | "yearPicker" | "modelAuto" | "multiDates" | "timePicker" | "inline" | "sixWeeks" | "focusStartDate" | "quarterPicker" | "yearFirst" | "openMenu" | "closeMenu" | "selectDate" | "clearValue" | "formatInputValue" | "updateInternalModelValue" | "setMonthYear" | "parseModel" | "switchView" | "handleFlow" | "toggleMenu" | "dpMenuRef" | "dpWrapMenuRef" | "inputRef"> & {
686
+ }>, "dark" | "loading" | "range" | "disableYearSelect" | "centered" | "ui" | "locale" | "openMenu" | "transitions" | "hideNavigation" | "vertical" | "hideMonthYearSelect" | "yearRange" | "autoApply" | "disabledDates" | "hideOffsetDates" | "noToday" | "markers" | "presetDates" | "preventMinMaxNavigation" | "reverseYears" | "weekPicker" | "arrowNavigation" | "weekStart" | "monthPicker" | "yearPicker" | "modelAuto" | "multiDates" | "timePicker" | "inline" | "sixWeeks" | "focusStartDate" | "quarterPicker" | "yearFirst" | "closeMenu" | "selectDate" | "clearValue" | "formatInputValue" | "updateInternalModelValue" | "setMonthYear" | "parseModel" | "switchView" | "handleFlow" | "toggleMenu" | "dpMenuRef" | "dpWrapMenuRef" | "inputRef"> & {
679
687
  openMenu: () => void;
680
688
  closeMenu: () => void;
681
689
  selectDate: () => void;