@dcodegroup-au/dsg-vue 0.0.11-alpha.1 → 0.0.12-alpha.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.
package/README.md CHANGED
@@ -146,7 +146,7 @@ To configure the Tailwind CSS portion of the package, you will need to create a
146
146
  import type { Config } from "tailwindcss";
147
147
 
148
148
  // # Import: DSG Tailwind Plugin
149
- import { DsgTailwindPlugin, DsgColourConfig, DsgFontFamilyConfig } from '@dcodegroupau/dsg-vue/tailwind';
149
+ import { DsgTailwindPlugin, DsgColourConfig, DsgFontFamilyConfig } from '@dcodegroup-au/dsg-vue/tailwind';
150
150
 
151
151
  // # Extend: DSG Color Config
152
152
  const ColourPalette = {
@@ -209,7 +209,7 @@ To use the Vue components within the package, you will need to import them direc
209
209
 
210
210
  <script setup lang="ts">
211
211
  // # Import: DSG Vue Components
212
- import { DsgButton, DsgInput } from '@dcodegroupau/dsg-vue';
212
+ import { DsgButton, DsgInput } from '@dcodegroup-au/dsg-vue';
213
213
 
214
214
  </script>
215
215
  ```
@@ -234,7 +234,7 @@ To import the styling generated from the `dsg-vue` package, ensure you import th
234
234
  import { createApp } from 'vue';
235
235
 
236
236
  // # Import: DSG Vue CSS (NPM Install)
237
- import '@dcodegroupau/dsg-vue/dsg-vue.css';
237
+ import '@dcodegroup-au/dsg-vue/dsg-vue.css';
238
238
 
239
239
  // # Import: DSG Vue CSS (GitHub/Local Install)
240
240
  import 'dsg-vue/dsg-vue.css';
@@ -15,12 +15,18 @@ export interface DsgInputDropdownProps {
15
15
  isOpen?: boolean;
16
16
  placement?: FloatingVuePlacement;
17
17
  }
18
- declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- "update:fromDate": (...args: any[]) => void;
20
- "update:toDate": (...args: any[]) => void;
21
- }, string, import('vue').PublicProps, Readonly<DsgInputDropdownProps> & Readonly<{
22
- "onUpdate:fromDate"?: ((...args: any[]) => any) | undefined;
23
- "onUpdate:toDate"?: ((...args: any[]) => any) | undefined;
18
+ type __VLS_Props = DsgInputDropdownProps;
19
+ export interface DsgDualModel {
20
+ fromDate: string;
21
+ toDate: string;
22
+ }
23
+ type __VLS_PublicProps = {
24
+ modelValue?: DsgDualModel | string;
25
+ } & __VLS_Props;
26
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ "update:modelValue": (value: string | DsgDualModel) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: string | DsgDualModel) => any) | undefined;
24
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
31
  'dsg-datepicker': HTMLDivElement;
26
32
  floatingVueDatepickerDropdown: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
@@ -516,6 +522,7 @@ declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {},
516
522
  $: import('vue').ComponentInternalInstance;
517
523
  $data: {};
518
524
  $props: {
525
+ readonly modelValue?: any;
519
526
  readonly label?: string | undefined;
520
527
  readonly type?: import('./DsgInput.vue').DsgInputType | undefined;
521
528
  readonly theme?: import('./DsgInput.vue').DsgInputTheme | undefined;
@@ -587,7 +594,9 @@ declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {},
587
594
  $host: Element | null;
588
595
  $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "on-focus", ...args: any[]) => void) & ((event: "on-before-focus", ...args: any[]) => void) & ((event: "on-before-off-focus", ...args: any[]) => void) & ((event: "off-focus", ...args: any[]) => void) & ((event: "on-before-copy", ...args: any[]) => void) & ((event: "on-copy", ...args: any[]) => void) & ((event: "on-before-clear", ...args: any[]) => void) & ((event: "on-clear", ...args: any[]) => void) & ((event: "on-before-format", ...args: any[]) => void) & ((event: "on-format", ...args: any[]) => void) & ((event: "on-before-validate", ...args: any[]) => void) & ((event: "on-validate", ...args: any[]) => void) & ((event: "on-card-detected", ...args: any[]) => void);
589
596
  $el: HTMLDivElement;
590
- $options: import('vue').ComponentOptionsBase<Readonly<import('./DsgInput.vue').DsgInputProps> & Readonly<{
597
+ $options: import('vue').ComponentOptionsBase<Readonly<{
598
+ modelValue?: any;
599
+ } & import('./DsgInput.vue').DsgInputProps> & Readonly<{
591
600
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
592
601
  "onOn-focus"?: ((...args: any[]) => any) | undefined;
593
602
  "onOn-before-focus"?: ((...args: any[]) => any) | undefined;
@@ -643,7 +652,9 @@ declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {},
643
652
  $forceUpdate: () => void;
644
653
  $nextTick: typeof import('vue').nextTick;
645
654
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
646
- } & Readonly<{}> & Omit<Readonly<import('./DsgInput.vue').DsgInputProps> & Readonly<{
655
+ } & Readonly<{}> & Omit<Readonly<{
656
+ modelValue?: any;
657
+ } & import('./DsgInput.vue').DsgInputProps> & Readonly<{
647
658
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
648
659
  "onOn-focus"?: ((...args: any[]) => any) | undefined;
649
660
  "onOn-before-focus"?: ((...args: any[]) => any) | undefined;
@@ -673,6 +684,7 @@ declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {},
673
684
  $: import('vue').ComponentInternalInstance;
674
685
  $data: {};
675
686
  $props: {
687
+ readonly modelValue?: any;
676
688
  readonly label?: string | undefined;
677
689
  readonly type?: import('./DsgInput.vue').DsgInputType | undefined;
678
690
  readonly theme?: import('./DsgInput.vue').DsgInputTheme | undefined;
@@ -744,7 +756,9 @@ declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {},
744
756
  $host: Element | null;
745
757
  $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "on-focus", ...args: any[]) => void) & ((event: "on-before-focus", ...args: any[]) => void) & ((event: "on-before-off-focus", ...args: any[]) => void) & ((event: "off-focus", ...args: any[]) => void) & ((event: "on-before-copy", ...args: any[]) => void) & ((event: "on-copy", ...args: any[]) => void) & ((event: "on-before-clear", ...args: any[]) => void) & ((event: "on-clear", ...args: any[]) => void) & ((event: "on-before-format", ...args: any[]) => void) & ((event: "on-format", ...args: any[]) => void) & ((event: "on-before-validate", ...args: any[]) => void) & ((event: "on-validate", ...args: any[]) => void) & ((event: "on-card-detected", ...args: any[]) => void);
746
758
  $el: HTMLDivElement;
747
- $options: import('vue').ComponentOptionsBase<Readonly<import('./DsgInput.vue').DsgInputProps> & Readonly<{
759
+ $options: import('vue').ComponentOptionsBase<Readonly<{
760
+ modelValue?: any;
761
+ } & import('./DsgInput.vue').DsgInputProps> & Readonly<{
748
762
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
749
763
  "onOn-focus"?: ((...args: any[]) => any) | undefined;
750
764
  "onOn-before-focus"?: ((...args: any[]) => any) | undefined;
@@ -800,7 +814,9 @@ declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {},
800
814
  $forceUpdate: () => void;
801
815
  $nextTick: typeof import('vue').nextTick;
802
816
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
803
- } & Readonly<{}> & Omit<Readonly<import('./DsgInput.vue').DsgInputProps> & Readonly<{
817
+ } & Readonly<{}> & Omit<Readonly<{
818
+ modelValue?: any;
819
+ } & import('./DsgInput.vue').DsgInputProps> & Readonly<{
804
820
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
805
821
  "onOn-focus"?: ((...args: any[]) => any) | undefined;
806
822
  "onOn-before-focus"?: ((...args: any[]) => any) | undefined;
@@ -1,4 +1,5 @@
1
1
  import { Placement as FloatingVuePlacement } from 'floating-vue';
2
+ import { DsgButtonTheme } from './DsgButton.vue';
2
3
  /**
3
4
  * ------------------------------------------------
4
5
  * # Setup: Props
@@ -28,6 +29,7 @@ export interface DsgDropdownProps {
28
29
  label?: string;
29
30
  type?: DsgDropdownType;
30
31
  icon?: string;
32
+ buttonTheme?: DsgButtonTheme;
31
33
  menuItems?: DsgDropdownMenuItem[];
32
34
  avatarInfo?: DsgDropdownAvatar | null;
33
35
  isOpen?: boolean;
@@ -647,7 +649,7 @@ declare function __VLS_template(): {
647
649
  $props: {
648
650
  readonly label?: string | undefined;
649
651
  readonly type?: import('./DsgButton.vue').DsgButtonType | undefined;
650
- readonly theme?: import('./DsgButton.vue').DsgButtonTheme | undefined;
652
+ readonly theme?: DsgButtonTheme | undefined;
651
653
  readonly size?: import('./DsgButton.vue').DsgButtonSize | undefined;
652
654
  readonly disabled?: boolean | undefined;
653
655
  readonly iconBefore?: string | null | undefined;
@@ -1319,7 +1321,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgDropdownProps, {
1319
1321
  $props: {
1320
1322
  readonly label?: string | undefined;
1321
1323
  readonly type?: import('./DsgButton.vue').DsgButtonType | undefined;
1322
- readonly theme?: import('./DsgButton.vue').DsgButtonTheme | undefined;
1324
+ readonly theme?: DsgButtonTheme | undefined;
1323
1325
  readonly size?: import('./DsgButton.vue').DsgButtonSize | undefined;
1324
1326
  readonly disabled?: boolean | undefined;
1325
1327
  readonly iconBefore?: string | null | undefined;
@@ -15,17 +15,27 @@ export interface DsgFilterItem {
15
15
  searchPlaceholder?: string;
16
16
  viewAll?: boolean;
17
17
  viewAllLabel?: string;
18
- items?: DsgCheckboxProps[];
19
- props?: {};
18
+ checkboxItems?: DsgCheckboxProps[];
19
+ props?: {
20
+ type?: string;
21
+ };
22
+ value?: any;
20
23
  }
21
24
  export interface DsgFilterProps {
22
25
  label?: string;
23
- items?: DsgFilterItem[];
26
+ icon?: string;
27
+ checkboxItems?: DsgFilterItem[];
24
28
  isOpen?: boolean;
25
29
  placement?: FloatingVuePlacement;
26
30
  headerTitle?: string;
27
31
  classes?: string;
32
+ hasClearAllButton?: boolean;
33
+ clearAllLabel?: string;
28
34
  }
35
+ type __VLS_Props = DsgFilterProps;
36
+ type __VLS_PublicProps = {
37
+ 'items'?: DsgFilterItem[];
38
+ } & __VLS_Props;
29
39
  declare function __VLS_template(): {
30
40
  attrs: Partial<{}>;
31
41
  slots: {
@@ -214,34 +224,10 @@ declare function __VLS_template(): {
214
224
  };
215
225
  } | {
216
226
  methods: {
217
- show(
218
- /**
219
- * ------------------------------------------------
220
- * # Import: Dependencies
221
- * ------------------------------------------------
222
- */
223
- ...args: any[]): any;
224
- hide(
225
- /**
226
- * ------------------------------------------------
227
- * # Import: Dependencies
228
- * ------------------------------------------------
229
- */
230
- ...args: any[]): any;
231
- dispose(
232
- /**
233
- * ------------------------------------------------
234
- * # Import: Dependencies
235
- * ------------------------------------------------
236
- */
237
- ...args: any[]): any;
238
- onResize(
239
- /**
240
- * ------------------------------------------------
241
- * # Import: Dependencies
242
- * ------------------------------------------------
243
- */
244
- ...args: any[]): any;
227
+ show(...args: any[]): any;
228
+ hide(...args: any[]): any;
229
+ dispose(...args: any[]): any;
230
+ onResize(...args: any[]): any;
245
231
  };
246
232
  }, import('vue').ComponentOptionsMixin, {
247
233
  show: () => true;
@@ -622,7 +608,21 @@ declare function __VLS_template(): {
622
608
  rootEl: HTMLDivElement;
623
609
  };
624
610
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
625
- declare const __VLS_component: import('vue').DefineComponent<DsgFilterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DsgFilterProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
611
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
612
+ "update:items": (value: DsgFilterItem[]) => any;
613
+ } & {
614
+ "update:items": (items: {
615
+ key: any;
616
+ value: any;
617
+ }) => any;
618
+ "clear-all": () => any;
619
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
620
+ "onUpdate:items"?: ((items: {
621
+ key: any;
622
+ value: any;
623
+ }) => any) | undefined;
624
+ "onClear-all"?: (() => any) | undefined;
625
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
626
626
  dsgFilter: HTMLDivElement;
627
627
  floatingVueFilterDropdown: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
628
628
  theme: {
@@ -803,34 +803,10 @@ declare const __VLS_component: import('vue').DefineComponent<DsgFilterProps, {},
803
803
  };
804
804
  } | {
805
805
  methods: {
806
- show(
807
- /**
808
- * ------------------------------------------------
809
- * # Import: Dependencies
810
- * ------------------------------------------------
811
- */
812
- ...args: any[]): any;
813
- hide(
814
- /**
815
- * ------------------------------------------------
816
- * # Import: Dependencies
817
- * ------------------------------------------------
818
- */
819
- ...args: any[]): any;
820
- dispose(
821
- /**
822
- * ------------------------------------------------
823
- * # Import: Dependencies
824
- * ------------------------------------------------
825
- */
826
- ...args: any[]): any;
827
- onResize(
828
- /**
829
- * ------------------------------------------------
830
- * # Import: Dependencies
831
- * ------------------------------------------------
832
- */
833
- ...args: any[]): any;
806
+ show(...args: any[]): any;
807
+ hide(...args: any[]): any;
808
+ dispose(...args: any[]): any;
809
+ onResize(...args: any[]): any;
834
810
  };
835
811
  }, import('vue').ComponentOptionsMixin, {
836
812
  show: () => true;
@@ -54,6 +54,10 @@ export interface DsgInputProps {
54
54
  hasCopyButton?: boolean;
55
55
  preventDefault?: boolean;
56
56
  }
57
+ type __VLS_Props = DsgInputProps;
58
+ type __VLS_PublicProps = {
59
+ modelValue?: any;
60
+ } & __VLS_Props;
57
61
  declare function __VLS_template(): {
58
62
  attrs: Partial<{}>;
59
63
  slots: {
@@ -76,7 +80,7 @@ declare function __VLS_template(): {
76
80
  rootEl: HTMLDivElement;
77
81
  };
78
82
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
79
- declare const __VLS_component: import('vue').DefineComponent<DsgInputProps, {
83
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
80
84
  focus: (isFocused?: boolean) => void;
81
85
  validate: () => Ref<string[]>;
82
86
  callbackValidation: (callback: Function) => void;
@@ -97,7 +101,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgInputProps, {
97
101
  "on-before-validate": (...args: any[]) => void;
98
102
  "on-validate": (...args: any[]) => void;
99
103
  "on-card-detected": (...args: any[]) => void;
100
- }, string, import('vue').PublicProps, Readonly<DsgInputProps> & Readonly<{
104
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
101
105
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
102
106
  "onOn-focus"?: ((...args: any[]) => any) | undefined;
103
107
  "onOn-before-focus"?: ((...args: any[]) => any) | undefined;
@@ -18,5 +18,13 @@ export interface DsgInputDropdownProps {
18
18
  classes?: string;
19
19
  options?: DsgInputDropdownOption[];
20
20
  }
21
- declare const _default: import('vue').DefineComponent<DsgInputDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DsgInputDropdownProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSelectElement>;
21
+ type __VLS_Props = DsgInputDropdownProps;
22
+ type __VLS_PublicProps = {
23
+ modelValue?: string;
24
+ } & __VLS_Props;
25
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:modelValue": (value: string) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSelectElement>;
22
30
  export default _default;