@selfeesas/shared-components 0.3.2 → 0.3.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.
@@ -1 +1 @@
1
- .row[data-v-c5e3fee0]{width:100%;gap:8px}.smooth-rotate[data-v-0094cb2e]{transition:transform .3s ease}.logo[data-v-67697ca7]{width:260px;height:auto}label[data-v-40c069f1]{width:50%}
1
+ .row[data-v-c5e3fee0]{width:100%;gap:8px}.smooth-rotate[data-v-0094cb2e]{transition:transform .3s ease}.logo[data-v-ab7c0ff6]{width:260px;height:auto}label[data-v-618766fa],[data-v-e97e0b6e] label{width:50%}.icon-same-size[data-v-e97e0b6e]{margin-left:10px;margin-top:10px;font-size:30px;height:30px;width:30px;opacity:.55;display:flex;align-items:center;justify-content:center}
@@ -161,6 +161,10 @@ declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
161
161
  breadcrumbConfig: BreadcrumbConfig[];
162
162
  }
163
163
 
164
+ export declare const DATE_FORMAT_REGEX: RegExp;
165
+
166
+ declare type DateInput = string | Date;
167
+
164
168
  export declare const DatePicker: DefineComponent<DatePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
165
169
  "update:date": (value: string) => any;
166
170
  }, string, PublicProps, Readonly<DatePickerProps> & Readonly<{
@@ -193,8 +197,84 @@ declare interface DatePickerProps {
193
197
  closeLabel?: string;
194
198
  }
195
199
 
200
+ export declare const DateRange: DefineComponent<DateRangeProps, {
201
+ resetDate: () => void;
202
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
203
+ "update:dateRange": (value: {
204
+ from: string;
205
+ to: string;
206
+ }) => any;
207
+ }, string, PublicProps, Readonly<DateRangeProps> & Readonly<{
208
+ "onUpdate:dateRange"?: ((value: {
209
+ from: string;
210
+ to: string;
211
+ }) => any) | undefined;
212
+ }>, {
213
+ to: string;
214
+ from: string;
215
+ required: boolean;
216
+ disabled: boolean;
217
+ rules: Array<(val: string) => boolean | string>;
218
+ minDate: string;
219
+ maxDate: string;
220
+ datesDisabled: Array<string | DisabledDateObject>;
221
+ requiredErrorMessage: string;
222
+ closeLabel: string;
223
+ locale: DateRangeLocale;
224
+ labelStart: string;
225
+ labelEnd: string;
226
+ startDateHint: string;
227
+ resetLabel: string;
228
+ highlightEvents: string[];
229
+ idCy: string;
230
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
231
+
232
+ declare interface DateRangeLocale {
233
+ days?: string[];
234
+ daysShort?: string[];
235
+ months?: string[];
236
+ monthsShort?: string[];
237
+ firstDayOfWeek?: number;
238
+ format24h?: boolean;
239
+ pluralDay?: string;
240
+ }
241
+
242
+ declare interface DateRangeProps {
243
+ from?: string;
244
+ to?: string;
245
+ labelStart?: string;
246
+ labelEnd?: string;
247
+ startDateHint?: string;
248
+ resetLabel?: string;
249
+ closeLabel?: string;
250
+ locale?: DateRangeLocale;
251
+ required?: boolean;
252
+ requiredErrorMessage?: string;
253
+ rules?: Array<(val: string) => boolean | string>;
254
+ minDate?: string;
255
+ maxDate?: string;
256
+ datesDisabled?: Array<string | DisabledDateObject>;
257
+ highlightEvents?: string[];
258
+ disabled?: boolean;
259
+ idCy?: string;
260
+ }
261
+
262
+ export declare interface DateRangeType {
263
+ from: string;
264
+ to: string;
265
+ }
266
+
267
+ export declare const dateRangeUtils: {
268
+ validateAndUpdate(currentRange: DateRangeType, newValue: string, isStartDate: boolean): DateRangeType;
269
+ handlePickerUpdate(value: DateRangeType | string | null): DateRangeType;
270
+ reset(): DateRangeType;
271
+ handleInput(value: string | number | null, callback: (value: string) => void): void;
272
+ };
273
+
196
274
  export declare function dateWithoutTimezone(date: Date): Date;
197
275
 
276
+ export declare const defaultLocale: DateRangeLocale;
277
+
198
278
  export declare type DisabledDate = string | DisabledDateObject;
199
279
 
200
280
  export declare type DisabledDateObject = {
@@ -204,7 +284,7 @@ export declare type DisabledDateObject = {
204
284
 
205
285
  export declare function formatDate(dateStr: string): string;
206
286
 
207
- export declare function isDateSelectable(date: string, minDateProps?: string | Date, maxDateProps?: string | Date, datesDisabled?: DisabledDate[]): boolean;
287
+ export declare function isDateSelectable(date: DateInput, minDateProps?: DateInput | null, maxDateProps?: DateInput | null, datesDisabled?: DisabledDate[]): boolean;
208
288
 
209
289
  export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
210
290