@juit/vue-z 0.0.0 → 0.0.2

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/globals.d.ts CHANGED
@@ -13,6 +13,7 @@ import type {
13
13
  ZControlToggle,
14
14
  ZCountry,
15
15
  ZDate,
16
+ ZDateRange,
16
17
  ZDialog,
17
18
  ZEan13,
18
19
  ZForm,
@@ -98,6 +99,8 @@ declare module 'vue' {
98
99
  ZCountry: ComponentConstructor<ZCountry>,
99
100
  /** Date input */
100
101
  ZDate: ComponentConstructor<ZDate>,
102
+ /** Date Range input */
103
+ ZDateRange: ComponentConstructor<ZDateRange>,
101
104
  /** EAN13 input */
102
105
  ZEan13: ComponentConstructor<ZEan13>,
103
106
  /** Label */
package/dist/index.d.ts CHANGED
@@ -2475,6 +2475,12 @@ export declare function createBoundTableState<T extends {
2475
2475
  */
2476
2476
  export declare function createLoader(detached?: boolean): ZLoader;
2477
2477
 
2478
+ /** The type for the Date Range*/
2479
+ declare type DateRange = {
2480
+ from: string;
2481
+ to: string;
2482
+ };
2483
+
2478
2484
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
2479
2485
 
2480
2486
  declare const _default_10: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
@@ -3101,6 +3107,160 @@ default: undefined;
3101
3107
  };
3102
3108
  /** The icon to display within the control */
3103
3109
  icon: {
3110
+ type: PropType<string>;
3111
+ required: false;
3112
+ default: "sym_r_calendar_today";
3113
+ };
3114
+ /** Indicates that the field is required (and errors when empty). */
3115
+ required: {
3116
+ type: BooleanConstructor;
3117
+ required: false;
3118
+ default: boolean;
3119
+ };
3120
+ /** Indicates that the field can be cleared (sets the date to ''). */
3121
+ clearable: {
3122
+ type: PropType<boolean | "today">;
3123
+ required: false;
3124
+ default: boolean;
3125
+ };
3126
+ modelValue: {
3127
+ type: PropType<DateRange>;
3128
+ };
3129
+ }>, {
3130
+ /** Reset validation for this field */
3131
+ resetValidation: () => void | undefined;
3132
+ /** Force validation of this field */
3133
+ validate: () => boolean | Promise<boolean>;
3134
+ /** If the field has validation errors or not */
3135
+ hasError: ComputedRef<boolean>;
3136
+ /** Return _today_ in date format (`yyyy-mm-dd`) in the current timezone */
3137
+ today: () => string;
3138
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3139
+ "update:modelValue": (value: DateRange) => any;
3140
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
3141
+ readonly: {
3142
+ readonly type: PropType<boolean | undefined>;
3143
+ readonly required: false;
3144
+ readonly default: undefined;
3145
+ };
3146
+ bottomSlots: {
3147
+ readonly type: PropType<boolean | undefined>;
3148
+ readonly required: false;
3149
+ readonly default: undefined;
3150
+ };
3151
+ editable: {
3152
+ readonly type: PropType<boolean | undefined>;
3153
+ readonly required: false;
3154
+ readonly default: undefined;
3155
+ };
3156
+ disabled: {
3157
+ readonly type: PropType<boolean | undefined>;
3158
+ readonly required: false;
3159
+ readonly default: undefined;
3160
+ };
3161
+ lazyRules: {
3162
+ readonly type: PropType<boolean | "ondemand">;
3163
+ readonly required: false;
3164
+ readonly default: undefined;
3165
+ };
3166
+ /** The label for this input text */
3167
+ label: {
3168
+ type: StringConstructor;
3169
+ required: true;
3170
+ };
3171
+ /** The placeholder text when no input was entered */
3172
+ placeholder: {
3173
+ type: StringConstructor;
3174
+ required: false;
3175
+ default: string;
3176
+ };
3177
+ /** The hint to display below the input field */
3178
+ hint: {
3179
+ type: PropType<string | undefined>;
3180
+ required: false;
3181
+ default: undefined;
3182
+ };
3183
+ /** The icon to display within the control */
3184
+ icon: {
3185
+ type: PropType<string>;
3186
+ required: false;
3187
+ default: "sym_r_calendar_today";
3188
+ };
3189
+ /** Indicates that the field is required (and errors when empty). */
3190
+ required: {
3191
+ type: BooleanConstructor;
3192
+ required: false;
3193
+ default: boolean;
3194
+ };
3195
+ /** Indicates that the field can be cleared (sets the date to ''). */
3196
+ clearable: {
3197
+ type: PropType<boolean | "today">;
3198
+ required: false;
3199
+ default: boolean;
3200
+ };
3201
+ modelValue: {
3202
+ type: PropType<DateRange>;
3203
+ };
3204
+ }>> & Readonly<{
3205
+ "onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
3206
+ }>, {
3207
+ icon: string;
3208
+ required: boolean;
3209
+ editable: boolean | undefined;
3210
+ disabled: boolean | undefined;
3211
+ lazyRules: boolean | "ondemand";
3212
+ bottomSlots: boolean | undefined;
3213
+ readonly: boolean | undefined;
3214
+ placeholder: string;
3215
+ hint: string | undefined;
3216
+ clearable: boolean | "today";
3217
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3218
+
3219
+ declare const _default_21: DefineComponent<ExtractPropTypes< {
3220
+ readonly: {
3221
+ readonly type: PropType<boolean | undefined>;
3222
+ readonly required: false;
3223
+ readonly default: undefined;
3224
+ };
3225
+ bottomSlots: {
3226
+ readonly type: PropType<boolean | undefined>;
3227
+ readonly required: false;
3228
+ readonly default: undefined;
3229
+ };
3230
+ editable: {
3231
+ readonly type: PropType<boolean | undefined>;
3232
+ readonly required: false;
3233
+ readonly default: undefined;
3234
+ };
3235
+ disabled: {
3236
+ readonly type: PropType<boolean | undefined>;
3237
+ readonly required: false;
3238
+ readonly default: undefined;
3239
+ };
3240
+ lazyRules: {
3241
+ readonly type: PropType<boolean | "ondemand">;
3242
+ readonly required: false;
3243
+ readonly default: undefined;
3244
+ };
3245
+ /** The label for this input text */
3246
+ label: {
3247
+ type: StringConstructor;
3248
+ required: true;
3249
+ };
3250
+ /** The placeholder text when no input was entered */
3251
+ placeholder: {
3252
+ type: StringConstructor;
3253
+ required: false;
3254
+ default: string;
3255
+ };
3256
+ /** The hint to display below the input field */
3257
+ hint: {
3258
+ type: PropType<string | undefined>;
3259
+ required: false;
3260
+ default: undefined;
3261
+ };
3262
+ /** The icon to display within the control */
3263
+ icon: {
3104
3264
  type: PropType<string | undefined>;
3105
3265
  required: false;
3106
3266
  default: "sym_r_barcode";
@@ -3210,7 +3370,7 @@ hint: string | undefined;
3210
3370
  rules: ZValidator<string>[];
3211
3371
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3212
3372
 
3213
- declare const _default_21: DefineComponent<ExtractPropTypes< {
3373
+ declare const _default_22: DefineComponent<ExtractPropTypes< {
3214
3374
  /** The value to display in this label */
3215
3375
  value: {
3216
3376
  type: PropType<string | number | boolean | null | undefined>;
@@ -3329,7 +3489,7 @@ hint: string | undefined;
3329
3489
  minimal: boolean;
3330
3490
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3331
3491
 
3332
- declare const _default_22: DefineComponent<ExtractPropTypes< {
3492
+ declare const _default_23: DefineComponent<ExtractPropTypes< {
3333
3493
  readonly: {
3334
3494
  readonly type: PropType<boolean | undefined>;
3335
3495
  readonly required: false;
@@ -3537,7 +3697,7 @@ minimum: number | undefined;
3537
3697
  maximum: number | undefined;
3538
3698
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3539
3699
 
3540
- declare const _default_23: DefineComponent<ExtractPropTypes< {
3700
+ declare const _default_24: DefineComponent<ExtractPropTypes< {
3541
3701
  readonly: {
3542
3702
  readonly type: PropType<boolean | undefined>;
3543
3703
  readonly required: false;
@@ -3717,7 +3877,7 @@ minimum: number | undefined;
3717
3877
  maximum: number | undefined;
3718
3878
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3719
3879
 
3720
- declare const _default_24: DefineComponent<ExtractPropTypes< {
3880
+ declare const _default_25: DefineComponent<ExtractPropTypes< {
3721
3881
  readonly: {
3722
3882
  readonly type: PropType<boolean | undefined>;
3723
3883
  readonly required: false;
@@ -3874,13 +4034,13 @@ rules: ZValidator<string>[];
3874
4034
  minLength: number;
3875
4035
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3876
4036
 
3877
- declare const _default_25: __VLS_WithSlots_11<typeof __VLS_component_11, __VLS_Slots_11>;
4037
+ declare const _default_26: __VLS_WithSlots_11<typeof __VLS_component_11, __VLS_Slots_11>;
3878
4038
 
3879
- declare const _default_26: __VLS_WithSlots_12<typeof __VLS_component_12, __VLS_Slots_12>;
4039
+ declare const _default_27: __VLS_WithSlots_12<typeof __VLS_component_12, __VLS_Slots_12>;
3880
4040
 
3881
- declare const _default_27: __VLS_WithSlots_13<typeof __VLS_component_13, __VLS_Slots_13>;
4041
+ declare const _default_28: __VLS_WithSlots_13<typeof __VLS_component_13, __VLS_Slots_13>;
3882
4042
 
3883
- declare const _default_28: DefineComponent<ExtractPropTypes< {
4043
+ declare const _default_29: DefineComponent<ExtractPropTypes< {
3884
4044
  readonly: {
3885
4045
  readonly type: PropType<boolean | undefined>;
3886
4046
  readonly required: false;
@@ -4031,19 +4191,19 @@ tags: string[];
4031
4191
  noNewValues: boolean;
4032
4192
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
4033
4193
 
4034
- declare const _default_29: __VLS_WithSlots_14<typeof __VLS_component_14, __VLS_Slots_14>;
4035
-
4036
4194
  declare const _default_3: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
4037
4195
 
4038
- declare const _default_30: __VLS_WithSlots_15<typeof __VLS_component_15, __VLS_Slots_15>;
4196
+ declare const _default_30: __VLS_WithSlots_14<typeof __VLS_component_14, __VLS_Slots_14>;
4039
4197
 
4040
- declare const _default_31: __VLS_WithSlots_16<typeof __VLS_component_16, __VLS_Slots_16>;
4198
+ declare const _default_31: __VLS_WithSlots_15<typeof __VLS_component_15, __VLS_Slots_15>;
4041
4199
 
4042
- declare const _default_32: __VLS_WithSlots_17<typeof __VLS_component_17, __VLS_Slots_17>;
4200
+ declare const _default_32: __VLS_WithSlots_16<typeof __VLS_component_16, __VLS_Slots_16>;
4043
4201
 
4044
- declare const _default_33: __VLS_WithSlots_18<typeof __VLS_component_18, __VLS_Slots_18>;
4202
+ declare const _default_33: __VLS_WithSlots_17<typeof __VLS_component_17, __VLS_Slots_17>;
4045
4203
 
4046
- declare const _default_34: DefineComponent<ExtractPropTypes< {
4204
+ declare const _default_34: __VLS_WithSlots_18<typeof __VLS_component_18, __VLS_Slots_18>;
4205
+
4206
+ declare const _default_35: DefineComponent<ExtractPropTypes< {
4047
4207
  tag: {
4048
4208
  type: StringConstructor;
4049
4209
  required: true;
@@ -4897,6 +5057,8 @@ export declare type ZCountry = InstanceType<typeof _default_18>;
4897
5057
 
4898
5058
  export declare type ZDate = InstanceType<typeof _default_19>;
4899
5059
 
5060
+ export declare type ZDateRange = InstanceType<typeof _default_20>;
5061
+
4900
5062
  export declare type ZDialog = InstanceType<typeof _default_11>;
4901
5063
 
4902
5064
  /** Our dialogs */
@@ -4952,7 +5114,7 @@ export declare interface ZDialogs {
4952
5114
  };
4953
5115
  }
4954
5116
 
4955
- export declare type ZEan13 = InstanceType<typeof _default_20>;
5117
+ export declare type ZEan13 = InstanceType<typeof _default_21>;
4956
5118
 
4957
5119
  export declare type ZForm = InstanceType<typeof _default_13>;
4958
5120
 
@@ -4966,11 +5128,11 @@ export declare type ZFormProps = {
4966
5128
  bottomSlots: boolean;
4967
5129
  };
4968
5130
 
4969
- export declare type ZHeader = InstanceType<typeof _default_30>;
5131
+ export declare type ZHeader = InstanceType<typeof _default_31>;
4970
5132
 
4971
5133
  export declare type ZInputGroup = InstanceType<typeof _default_15>;
4972
5134
 
4973
- export declare type ZLabel = InstanceType<typeof _default_21>;
5135
+ export declare type ZLabel = InstanceType<typeof _default_22>;
4974
5136
 
4975
5137
  export declare interface ZListicle {
4976
5138
  offset: number;
@@ -4988,13 +5150,13 @@ export declare interface ZLoader {
4988
5150
  load<T>(callback: () => T | Promise<T>): Promise<T>;
4989
5151
  }
4990
5152
 
4991
- export declare type ZNullableNumber = InstanceType<typeof _default_22>;
5153
+ export declare type ZNullableNumber = InstanceType<typeof _default_23>;
4992
5154
 
4993
- export declare type ZNumber = InstanceType<typeof _default_23>;
5155
+ export declare type ZNumber = InstanceType<typeof _default_24>;
4994
5156
 
4995
- export declare type ZObject = InstanceType<typeof _default_31>;
5157
+ export declare type ZObject = InstanceType<typeof _default_32>;
4996
5158
 
4997
- export declare type ZObjectNew = InstanceType<typeof _default_32>;
5159
+ export declare type ZObjectNew = InstanceType<typeof _default_33>;
4998
5160
 
4999
5161
  /** An option from select components */
5000
5162
  export declare interface ZOption {
@@ -5002,9 +5164,9 @@ export declare interface ZOption {
5002
5164
  value: string;
5003
5165
  }
5004
5166
 
5005
- export declare type ZPassword = InstanceType<typeof _default_24>;
5167
+ export declare type ZPassword = InstanceType<typeof _default_25>;
5006
5168
 
5007
- export declare type ZPicker = InstanceType<typeof _default_25>;
5169
+ export declare type ZPicker = InstanceType<typeof _default_26>;
5008
5170
 
5009
5171
  export declare type ZProgressDialog = InstanceType<typeof _default_12>;
5010
5172
 
@@ -5044,11 +5206,11 @@ export declare type ZQueryReactiveObject = Record<string, ZQueryReactiveValue |
5044
5206
  /** Types accepted by our reactive object */
5045
5207
  export declare type ZQueryReactiveValue = string | number | boolean;
5046
5208
 
5047
- export declare type ZSelect = InstanceType<typeof _default_26>;
5209
+ export declare type ZSelect = InstanceType<typeof _default_27>;
5048
5210
 
5049
- export declare type ZString = InstanceType<typeof _default_27>;
5211
+ export declare type ZString = InstanceType<typeof _default_28>;
5050
5212
 
5051
- export declare type ZTable = InstanceType<typeof _default_33>;
5213
+ export declare type ZTable = InstanceType<typeof _default_34>;
5052
5214
 
5053
5215
  /** A single column definition */
5054
5216
  export declare interface ZTableColumn<T = any> {
@@ -5092,11 +5254,11 @@ export declare interface ZTableState {
5092
5254
  desc: boolean;
5093
5255
  }
5094
5256
 
5095
- export declare type ZTag = InstanceType<typeof _default_34>;
5257
+ export declare type ZTag = InstanceType<typeof _default_35>;
5096
5258
 
5097
- export declare type ZTags = InstanceType<typeof _default_28>;
5259
+ export declare type ZTags = InstanceType<typeof _default_29>;
5098
5260
 
5099
- export declare type ZText = InstanceType<typeof _default_29>;
5261
+ export declare type ZText = InstanceType<typeof _default_30>;
5100
5262
 
5101
5263
  /** A non-async validation rule */
5102
5264
  export declare interface ZValidator<T> {