@juit/vue-z 0.0.3 → 0.0.4

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.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { Component } from 'vue';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
5
  import { ComputedRef } from 'vue';
6
+ import type { DateTimeFormatAlias } from '@juit/vue-i18n';
6
7
  import { DefineComponent } from 'vue';
7
8
  import { ExtractPropTypes } from 'vue';
8
9
  import { PropType } from 'vue';
@@ -2475,12 +2476,6 @@ export declare function createBoundTableState<T extends {
2475
2476
  */
2476
2477
  export declare function createLoader(detached?: boolean): ZLoader;
2477
2478
 
2478
- /** The type for the Date Range*/
2479
- declare type DateRange = {
2480
- from: string;
2481
- to: string;
2482
- };
2483
-
2484
2479
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
2485
2480
 
2486
2481
  declare const _default_10: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
@@ -2955,6 +2950,11 @@ type: PropType<string>;
2955
2950
  required: false;
2956
2951
  default: "sym_r_calendar_today";
2957
2952
  };
2953
+ format: {
2954
+ type: PropType<DateTimeFormatAlias | Intl.DateTimeFormatOptions>;
2955
+ required: false;
2956
+ default: string;
2957
+ };
2958
2958
  /** Indicates that the field is required (and errors when empty). */
2959
2959
  required: {
2960
2960
  type: BooleanConstructor;
@@ -3030,6 +3030,11 @@ type: PropType<string>;
3030
3030
  required: false;
3031
3031
  default: "sym_r_calendar_today";
3032
3032
  };
3033
+ format: {
3034
+ type: PropType<DateTimeFormatAlias | Intl.DateTimeFormatOptions>;
3035
+ required: false;
3036
+ default: string;
3037
+ };
3033
3038
  /** Indicates that the field is required (and errors when empty). */
3034
3039
  required: {
3035
3040
  type: BooleanConstructor;
@@ -3058,6 +3063,7 @@ readonly: boolean | undefined;
3058
3063
  placeholder: string;
3059
3064
  hint: string | undefined;
3060
3065
  clearable: boolean | "today";
3066
+ format: string | Intl.DateTimeFormatOptions;
3061
3067
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3062
3068
 
3063
3069
  declare const _default_2: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
@@ -3111,6 +3117,11 @@ type: PropType<string>;
3111
3117
  required: false;
3112
3118
  default: "sym_r_calendar_today";
3113
3119
  };
3120
+ format: {
3121
+ type: PropType<DateTimeFormatAlias | Intl.DateTimeFormatOptions>;
3122
+ required: false;
3123
+ default: string;
3124
+ };
3114
3125
  /** Indicates that the field is required (and errors when empty). */
3115
3126
  required: {
3116
3127
  type: BooleanConstructor;
@@ -3124,7 +3135,7 @@ required: false;
3124
3135
  default: boolean;
3125
3136
  };
3126
3137
  modelValue: {
3127
- type: PropType<DateRange>;
3138
+ type: PropType<ZDateRangeData>;
3128
3139
  };
3129
3140
  }>, {
3130
3141
  /** Reset validation for this field */
@@ -3136,7 +3147,7 @@ hasError: ComputedRef<boolean>;
3136
3147
  /** Return _today_ in date format (`yyyy-mm-dd`) in the current timezone */
3137
3148
  today: () => string;
3138
3149
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3139
- "update:modelValue": (value: DateRange) => any;
3150
+ "update:modelValue": (value: ZDateRangeData | undefined) => any;
3140
3151
  }, string, PublicProps, Readonly<ExtractPropTypes< {
3141
3152
  readonly: {
3142
3153
  readonly type: PropType<boolean | undefined>;
@@ -3186,6 +3197,11 @@ type: PropType<string>;
3186
3197
  required: false;
3187
3198
  default: "sym_r_calendar_today";
3188
3199
  };
3200
+ format: {
3201
+ type: PropType<DateTimeFormatAlias | Intl.DateTimeFormatOptions>;
3202
+ required: false;
3203
+ default: string;
3204
+ };
3189
3205
  /** Indicates that the field is required (and errors when empty). */
3190
3206
  required: {
3191
3207
  type: BooleanConstructor;
@@ -3199,10 +3215,10 @@ required: false;
3199
3215
  default: boolean;
3200
3216
  };
3201
3217
  modelValue: {
3202
- type: PropType<DateRange>;
3218
+ type: PropType<ZDateRangeData>;
3203
3219
  };
3204
3220
  }>> & Readonly<{
3205
- "onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
3221
+ "onUpdate:modelValue"?: ((value: ZDateRangeData | undefined) => any) | undefined;
3206
3222
  }>, {
3207
3223
  icon: string;
3208
3224
  required: boolean;
@@ -3214,6 +3230,7 @@ readonly: boolean | undefined;
3214
3230
  placeholder: string;
3215
3231
  hint: string | undefined;
3216
3232
  clearable: boolean | "today";
3233
+ format: string | Intl.DateTimeFormatOptions;
3217
3234
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3218
3235
 
3219
3236
  declare const _default_21: DefineComponent<ExtractPropTypes< {
@@ -5059,6 +5076,12 @@ export declare type ZDate = InstanceType<typeof _default_19>;
5059
5076
 
5060
5077
  export declare type ZDateRange = InstanceType<typeof _default_20>;
5061
5078
 
5079
+ /** A date range (where `from` and `to` are ISO 8601 dates)*/
5080
+ export declare interface ZDateRangeData {
5081
+ from: string;
5082
+ to: string;
5083
+ }
5084
+
5062
5085
  export declare type ZDialog = InstanceType<typeof _default_11>;
5063
5086
 
5064
5087
  /** Our dialogs */