@selfeesas/shared-components 0.2.8 → 0.3.1

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-42c19597]{transition:transform .3s ease}
1
+ .row[data-v-c5e3fee0]{width:100%;gap:8px}.smooth-rotate[data-v-42c19597]{transition:transform .3s ease}.logo[data-v-67697ca7]{width:260px;height:auto}label[data-v-618766fa]{width:50%}
@@ -1,11 +1,84 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
1
3
  import { ComponentOptionsMixin } from 'vue';
2
4
  import { ComponentProvideOptions } from 'vue';
3
5
  import { DefineComponent } from 'vue';
4
6
  import { PublicProps } from 'vue';
5
7
  import { QBreadcrumbsProps } from 'quasar';
8
+ import { QSelectProps } from 'quasar';
9
+ import { QSelectSlots } from 'quasar';
6
10
  import { RouteLocationNormalizedLoaded } from 'vue-router';
7
11
  import { RouteParamsRaw } from 'vue-router';
8
12
  import { Router } from 'vue-router';
13
+ import { VNodeProps } from 'vue';
14
+
15
+ declare const __VLS_component: DefineComponent<SelfeeHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SelfeeHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+
17
+ declare const __VLS_component_2: DefineComponent<LayoutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ 'user-avatar'?(_: {}): any;
23
+ };
24
+ refs: {};
25
+ rootEl: any;
26
+ };
27
+
28
+ declare function __VLS_template_2(): {
29
+ attrs: Partial<{}>;
30
+ slots: Readonly<{
31
+ /**
32
+ * Slot for the layout's header section, typically a `SelfeeHeader` component.
33
+ */
34
+ header?: () => any;
35
+ /**
36
+ * Default slot for the main page content.
37
+ */
38
+ default: () => any;
39
+ /**
40
+ * Slot for the layout's footer section, typically a `SelfeeFooter` component.
41
+ */
42
+ footer?: () => any;
43
+ }> & {
44
+ /**
45
+ * Slot for the layout's header section, typically a `SelfeeHeader` component.
46
+ */
47
+ header?: () => any;
48
+ /**
49
+ * Default slot for the main page content.
50
+ */
51
+ default: () => any;
52
+ /**
53
+ * Slot for the layout's footer section, typically a `SelfeeFooter` component.
54
+ */
55
+ footer?: () => any;
56
+ };
57
+ refs: {};
58
+ rootEl: any;
59
+ };
60
+
61
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
62
+
63
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
64
+
65
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
70
+
71
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
76
+
77
+ declare interface BaseFooterProps {
78
+ frontVersion: string;
79
+ backVersion: string;
80
+ platform: string;
81
+ }
9
82
 
10
83
  export declare interface BreadcrumbConfig {
11
84
  entity: string;
@@ -83,6 +156,59 @@ declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
83
156
  breadcrumbConfig: BreadcrumbConfig[];
84
157
  }
85
158
 
159
+ export declare const DatePicker: DefineComponent<DatePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
160
+ "update:date": (value: string) => any;
161
+ }, string, PublicProps, Readonly<DatePickerProps> & Readonly<{
162
+ "onUpdate:date"?: ((value: string) => any) | undefined;
163
+ }>, {
164
+ label: string;
165
+ required: boolean;
166
+ disabled: boolean;
167
+ outlined: boolean;
168
+ date: string;
169
+ minDate: string;
170
+ maxDate: string;
171
+ datesDisabled: DisabledDate[];
172
+ requiredErrorMessage: string;
173
+ placeholder: string;
174
+ closeLabel: string;
175
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
176
+
177
+ declare interface DatePickerProps {
178
+ label?: string;
179
+ date?: string;
180
+ required?: boolean;
181
+ minDate?: string;
182
+ maxDate?: string;
183
+ datesDisabled?: DisabledDate[];
184
+ requiredErrorMessage?: string;
185
+ disabled?: boolean;
186
+ outlined?: boolean;
187
+ placeholder?: string;
188
+ closeLabel?: string;
189
+ }
190
+
191
+ export declare function dateWithoutTimezone(date: Date): Date;
192
+
193
+ export declare type DisabledDate = string | DisabledDateObject;
194
+
195
+ export declare type DisabledDateObject = {
196
+ start_date: string | Date;
197
+ end_date: string | Date;
198
+ };
199
+
200
+ export declare function formatDate(dateStr: string): string;
201
+
202
+ export declare function isDateSelectable(date: string, minDateProps?: string | Date, maxDateProps?: string | Date, datesDisabled?: DisabledDate[]): boolean;
203
+
204
+ export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
205
+
206
+ declare interface LayoutProps {
207
+ view?: string;
208
+ layoutClass?: string;
209
+ pageContainerClass?: string;
210
+ }
211
+
86
212
  export declare const NavButton: DefineComponent<NavButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavButtonProps> & Readonly<{}>, {
87
213
  params: RouteParamsRaw;
88
214
  to: string;
@@ -102,30 +228,53 @@ export declare interface NavStore {
102
228
  }
103
229
 
104
230
  declare interface SelectOption {
105
- value?: any;
106
- label?: string;
231
+ label: string;
232
+ value: string | number;
107
233
  [key: string]: any;
108
234
  }
109
235
 
110
236
  export declare const SelectSearch: DefineComponent<SelectSearchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
111
- "update:modelValue": (value: SelectOption | null) => any;
237
+ "update:modelValue": (val: string | number | null) => any;
112
238
  }, string, PublicProps, Readonly<SelectSearchProps> & Readonly<{
113
- "onUpdate:modelValue"?: ((value: SelectOption | null) => any) | undefined;
239
+ "onUpdate:modelValue"?: ((val: string | number | null) => any) | undefined;
114
240
  }>, {
115
241
  label: string;
116
242
  options: SelectOption[];
117
- modelValue: SelectOption | null;
118
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
243
+ modelValue: string | number | null;
244
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
245
+ selectRef: {
246
+ $props: VNodeProps & AllowedComponentProps & ComponentCustomProps & QSelectProps;
247
+ $slots: QSelectSlots;
248
+ } | null;
249
+ }, any>;
119
250
 
120
251
  declare interface SelectSearchProps {
121
252
  options?: SelectOption[];
122
- fetchOptions?: (inputValue: string) => Promise<SelectOption[]> | SelectOption[];
253
+ fetchOptions?: (searchTerm: string) => Promise<SelectOption[]>;
123
254
  label?: string;
124
- modelValue?: SelectOption | null;
255
+ modelValue?: string | number | null;
256
+ }
257
+
258
+ export declare const SelfeeFooter: DefineComponent<BaseFooterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BaseFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
259
+
260
+ export declare const SelfeeHeader: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
261
+
262
+ declare interface SelfeeHeaderProps {
263
+ logoSrc: string;
264
+ logoAlt?: string;
265
+ logoTo?: string;
125
266
  }
126
267
 
127
268
  export declare interface Store {
128
269
  [key: string]: any;
129
270
  }
130
271
 
272
+ export declare const UserAvatar: DefineComponent<UserAvatarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<UserAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
273
+
274
+ declare interface UserAvatarProps {
275
+ username: string;
276
+ onLogout: () => void;
277
+ logoutLabel?: string;
278
+ }
279
+
131
280
  export { }