manolis-ui 0.5.4 → 0.6.3

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
@@ -1,9 +1,12 @@
1
1
  import { ComponentOptionsMixin } from 'vue';
2
2
  import { ComponentProvideOptions } from 'vue';
3
+ import { ComputedRef } from 'vue';
3
4
  import { default as DatetimePicker } from './components/data-input/datetimePicker.vue';
4
5
  import { DefineComponent } from 'vue';
5
6
  import { ExtractPropTypes } from 'vue';
7
+ import { default as FilterableSelect } from './components/data-input/filterableSelect.vue';
6
8
  import { PublicProps } from 'vue';
9
+ import { Ref } from 'vue';
7
10
 
8
11
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
9
12
  outlined: boolean;
@@ -19,19 +22,19 @@ declare const __VLS_component_10: DefineComponent<__VLS_Props, {}, {}, {}, {}, C
19
22
  inputRef: HTMLInputElement;
20
23
  }, HTMLDivElement>;
21
24
 
22
- declare const __VLS_component_11: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
25
+ declare const __VLS_component_11: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {
23
26
  collapseOnMobile: boolean;
24
27
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
25
28
 
26
29
  declare const __VLS_component_12: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
27
30
 
28
- declare const __VLS_component_13: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {
31
+ declare const __VLS_component_13: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_16> & Readonly<{}>, {
29
32
  isCollapsed: boolean;
30
33
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
31
34
 
32
- declare const __VLS_component_14: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
35
+ declare const __VLS_component_14: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
36
  "tab-changed": (...args: any[]) => void;
34
- }, string, PublicProps, Readonly<Props_16> & Readonly<{
37
+ }, string, PublicProps, Readonly<Props_17> & Readonly<{
35
38
  "onTab-changed"?: ((...args: any[]) => any) | undefined;
36
39
  }>, {
37
40
  withControlls: boolean;
@@ -181,6 +184,13 @@ declare type __VLS_Props = {
181
184
  class?: string;
182
185
  };
183
186
 
187
+ declare type __VLS_Props_2 = {
188
+ options: SelectOption[];
189
+ label?: string;
190
+ placeholder?: string;
191
+ modelValue: string | number | object | null;
192
+ };
193
+
184
194
  declare function __VLS_template(): {
185
195
  attrs: Partial<{}>;
186
196
  slots: {
@@ -486,9 +496,9 @@ declare interface Category {
486
496
  tabs: Tab_3[];
487
497
  }
488
498
 
489
- export declare const CategoryNavigation: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
499
+ export declare const CategoryNavigation: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
490
500
  "update:currentCategory": (category: string) => any;
491
- }, string, PublicProps, Readonly<Props_14> & Readonly<{
501
+ }, string, PublicProps, Readonly<Props_15> & Readonly<{
492
502
  "onUpdate:currentCategory"?: ((category: string) => any) | undefined;
493
503
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
494
504
 
@@ -513,6 +523,10 @@ declare const dropdownPosition: {
513
523
  top: string;
514
524
  };
515
525
 
526
+ declare const errorMessage: Ref<string, string>;
527
+
528
+ export { FilterableSelect }
529
+
516
530
  export declare const Footer: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
517
531
 
518
532
  declare interface FooterNavigation {
@@ -528,7 +542,42 @@ declare interface FooterNavigationItem {
528
542
 
529
543
  export declare const Hero: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
530
544
 
531
- export declare const Loader: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_12> & Readonly<{}>, {
545
+ export declare const InputField: DefineComponent<Props_12, {
546
+ focusInput: () => void;
547
+ isValid: typeof isValid;
548
+ isTouched: typeof isTouched;
549
+ errorMessage: typeof errorMessage;
550
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
551
+ "update:modelValue": (value: string | number | null) => any;
552
+ validate: (isValid: boolean) => any;
553
+ }, string, PublicProps, Readonly<Props_12> & Readonly<{
554
+ "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
555
+ onValidate?: ((isValid: boolean) => any) | undefined;
556
+ }>, {
557
+ type: string;
558
+ size: "xs" | "sm" | "md" | "lg" | "xl";
559
+ label: string;
560
+ style: "" | "ghost";
561
+ color: "" | "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
562
+ modelValue: string | number | null;
563
+ placeholder: string;
564
+ rules: {
565
+ required?: boolean;
566
+ minLength?: number;
567
+ maxLength?: number;
568
+ email?: boolean;
569
+ [key: string]: any;
570
+ };
571
+ successMessage: string;
572
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
573
+ inputElement: HTMLInputElement;
574
+ }, HTMLDivElement>;
575
+
576
+ declare const isTouched: Ref<boolean, boolean>;
577
+
578
+ declare const isValid: ComputedRef<boolean>;
579
+
580
+ export declare const Loader: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
532
581
  loading: boolean;
533
582
  type: "spinner" | "dots" | "ring" | "balls" | "bars" | "infinity";
534
583
  size: "xs" | "sm" | "md" | "lg" | "xl";
@@ -571,29 +620,47 @@ declare interface Props_11 {
571
620
  }
572
621
 
573
622
  declare interface Props_12 {
623
+ modelValue: string | number | null;
624
+ label?: string;
625
+ placeholder?: string;
626
+ type?: string;
627
+ rules?: {
628
+ required?: boolean;
629
+ minLength?: number;
630
+ maxLength?: number;
631
+ email?: boolean;
632
+ [key: string]: any;
633
+ };
634
+ successMessage?: string;
635
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
636
+ color?: "" | "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
637
+ style?: "" | "ghost";
638
+ }
639
+
640
+ declare interface Props_13 {
574
641
  loading?: boolean;
575
642
  size?: "xs" | "sm" | "md" | "lg" | "xl";
576
643
  type: "spinner" | "dots" | "ring" | "balls" | "bars" | "infinity";
577
644
  color: "primary" | "secondary" | "accent" | "neutral" | "info" | "success" | "warning" | "error";
578
645
  }
579
646
 
580
- declare interface Props_13 {
647
+ declare interface Props_14 {
581
648
  items: Array<FooterNavigation>;
582
649
  background?: string;
583
650
  color?: string;
584
651
  collapseOnMobile?: boolean;
585
652
  }
586
653
 
587
- declare interface Props_14 {
654
+ declare interface Props_15 {
588
655
  searchOptions: Array<Category>;
589
656
  currentCategory: string;
590
657
  }
591
658
 
592
- declare interface Props_15 {
659
+ declare interface Props_16 {
593
660
  isCollapsed: boolean;
594
661
  }
595
662
 
596
- declare interface Props_16 {
663
+ declare interface Props_17 {
597
664
  items: Array<string>;
598
665
  withControlls?: boolean;
599
666
  rotateTabsAfter?: number;
@@ -663,6 +730,21 @@ halfStars: boolean;
663
730
  isInteractive: boolean;
664
731
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
665
732
 
733
+ declare interface SelectOption {
734
+ value: any;
735
+ text: string;
736
+ }
737
+
738
+ export declare const Selector: DefineComponent<__VLS_Props_2, {
739
+ focusInput: () => void;
740
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
741
+ "update:modelValue": (value: string) => any;
742
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
743
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
744
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
745
+ selectElement: HTMLSelectElement;
746
+ }, HTMLDivElement>;
747
+
666
748
  export declare const Swap: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
667
749
 
668
750
  export declare const Tab: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;