@dcodegroup-au/dsg-vue 1.0.4-next → 1.0.6-next

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.
Files changed (26) hide show
  1. package/dist/DsgLabel.vue_vue_type_style_index_0_lang-BTfTmByq.cjs +1 -0
  2. package/dist/DsgLabel.vue_vue_type_style_index_0_lang-BzrjL4Wl.js +32 -0
  3. package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-gN_n5gOu.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-Bnug1LC_.js} +10911 -9392
  4. package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-eTosSqko.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-fX2LUEbe.cjs} +1206 -1200
  5. package/dist/components/Elements/DsgCheckbox.vue.d.ts +1 -0
  6. package/dist/components/Elements/DsgDatepicker.vue.d.ts +1 -0
  7. package/dist/components/Elements/DsgInputSelect.vue.d.ts +2 -1
  8. package/dist/components/Elements/DsgLabel.vue.d.ts +2 -5
  9. package/dist/components/Elements/DsgSlider.vue.d.ts +2 -0
  10. package/dist/components/Table/DsgTable.vue.d.ts +6 -4
  11. package/dist/components/Table/DsgTablePagination.vue.d.ts +2 -2
  12. package/dist/components/Table/DsgTablePerPage.vue.d.ts +3 -2
  13. package/dist/dsg-vue.cjs +15 -21
  14. package/dist/dsg-vue.css +2 -2
  15. package/dist/dsg-vue.editor.cjs +1 -1
  16. package/dist/dsg-vue.editor.esm.js +1 -1
  17. package/dist/dsg-vue.esm.js +4205 -5660
  18. package/dist/dsg-vue.table.cjs +2 -2
  19. package/dist/dsg-vue.table.esm.js +385 -381
  20. package/dist/main.d.ts +4 -0
  21. package/dist/table.d.ts +8 -8
  22. package/dist/tailwind/plugins/DsgGradientPlugin.d.ts +12 -0
  23. package/dist/tailwind/plugins/DsgShadowsPlugin.d.ts +12 -0
  24. package/package.json +1 -1
  25. package/dist/DsgLabel.vue_vue_type_style_index_0_lang-CzkVjbOp.js +0 -26
  26. package/dist/DsgLabel.vue_vue_type_style_index_0_lang-WrIgmJyQ.cjs +0 -1
@@ -16,6 +16,7 @@ export interface DsgCheckboxProps {
16
16
  indeterminate?: boolean;
17
17
  disabled?: boolean;
18
18
  noFocus?: boolean;
19
+ requiredLabel?: boolean;
19
20
  }
20
21
  type __VLS_Props = DsgCheckboxProps;
21
22
  type __VLS_PublicProps = {
@@ -46,6 +46,7 @@ export interface DsgDatepickerProps {
46
46
  * - Custom string: treated as a date-fns format pattern (e.g. `'yyyy-MM-dd'`)
47
47
  */
48
48
  modelType?: DsgDatepickerModelType;
49
+ requiredLabel?: boolean;
49
50
  }
50
51
  type __VLS_Props = DsgDatepickerProps;
51
52
  type __VLS_PublicProps = {
@@ -6,7 +6,7 @@ import { Multiselect } from 'vue-multiselect';
6
6
  */
7
7
  export interface DsgInputSelectOption {
8
8
  id: string | number;
9
- label: string;
9
+ label: string | number;
10
10
  [key: string]: any;
11
11
  }
12
12
  export type DsgInputSelectSize = "sm" | "md" | "lg";
@@ -38,6 +38,7 @@ export interface DsgInputSelectProps {
38
38
  errors?: string[] | string;
39
39
  scrollBind?: HTMLElement | Window;
40
40
  size?: DsgInputSelectSize;
41
+ requiredLabel?: boolean;
41
42
  }
42
43
  type __VLS_Props = DsgInputSelectProps;
43
44
  type __VLS_PublicProps = {
@@ -1,17 +1,14 @@
1
- /**
2
- * ------------------------------------------------
3
- * # Setup: Props
4
- * ------------------------------------------------
5
- */
6
1
  export type DsgLabelSize = "xs" | "sm" | "md" | "lg";
7
2
  export interface DsgLabelProps {
8
3
  label: string;
9
4
  labelFor?: string;
10
5
  size?: DsgLabelSize;
6
+ required?: boolean;
11
7
  }
12
8
  declare function __VLS_template(): {
13
9
  attrs: Partial<{}>;
14
10
  slots: {
11
+ default?(_: {}): any;
15
12
  'dsg-label-text'?(_: {}): any;
16
13
  };
17
14
  refs: {};
@@ -18,6 +18,7 @@ export interface DsgSliderProps {
18
18
  nameFrom?: string;
19
19
  nameTo?: string;
20
20
  label?: DsgLabelProps;
21
+ requiredLabel?: boolean;
21
22
  }
22
23
  type __VLS_Props = DsgSliderProps;
23
24
  type __VLS_PublicProps = {
@@ -38,6 +39,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
38
39
  type: DsgSliderType;
39
40
  max: number;
40
41
  step: number;
42
+ requiredLabel: boolean;
41
43
  min: number;
42
44
  handleLabelPosition: DsgSliderLabelPosition;
43
45
  prefix: string;
@@ -1,4 +1,5 @@
1
1
  import { nextTick } from 'vue';
2
+ import { DsgTablePaginationProps } from './DsgTablePagination.vue';
2
3
  import { DsgTableSearchFacet } from './DsgTableFilter.vue';
3
4
  /**
4
5
  * ------------------------------------------------
@@ -34,6 +35,7 @@ export interface DsgTableProps {
34
35
  hasHeader?: boolean;
35
36
  hasFooter?: boolean;
36
37
  perPage?: number;
38
+ pagination?: DsgTablePaginationProps;
37
39
  paginationPath?: string;
38
40
  css?: {
39
41
  [key: string]: string;
@@ -364,7 +366,7 @@ declare function __VLS_template(): {
364
366
  }>, {}, {}, {}, {}, {}> | null;
365
367
  pagination: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
366
368
  pagination?: import('./DsgTablePagination.vue').DsgTablePagination | null;
367
- } & import('./DsgTablePagination.vue').DsgTablePaginationInfoProps> & Readonly<{
369
+ } & DsgTablePaginationProps> & Readonly<{
368
370
  "onDsg-table:change-page"?: ((page: import('./DsgTablePagination.vue').Page) => any) | undefined;
369
371
  "onUpdate:pagination"?: ((value: import('./DsgTablePagination.vue').DsgTablePagination | null) => any) | undefined;
370
372
  }>, {
@@ -382,7 +384,7 @@ declare function __VLS_template(): {
382
384
  Defaults: {};
383
385
  }, Readonly<{
384
386
  pagination?: import('./DsgTablePagination.vue').DsgTablePagination | null;
385
- } & import('./DsgTablePagination.vue').DsgTablePaginationInfoProps> & Readonly<{
387
+ } & DsgTablePaginationProps> & Readonly<{
386
388
  "onDsg-table:change-page"?: ((page: import('./DsgTablePagination.vue').Page) => any) | undefined;
387
389
  "onUpdate:pagination"?: ((value: import('./DsgTablePagination.vue').DsgTablePagination | null) => any) | undefined;
388
390
  }>, {
@@ -665,7 +667,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
665
667
  }>, {}, {}, {}, {}, {}> | null;
666
668
  pagination: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
667
669
  pagination?: import('./DsgTablePagination.vue').DsgTablePagination | null;
668
- } & import('./DsgTablePagination.vue').DsgTablePaginationInfoProps> & Readonly<{
670
+ } & DsgTablePaginationProps> & Readonly<{
669
671
  "onDsg-table:change-page"?: ((page: import('./DsgTablePagination.vue').Page) => any) | undefined;
670
672
  "onUpdate:pagination"?: ((value: import('./DsgTablePagination.vue').DsgTablePagination | null) => any) | undefined;
671
673
  }>, {
@@ -683,7 +685,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
683
685
  Defaults: {};
684
686
  }, Readonly<{
685
687
  pagination?: import('./DsgTablePagination.vue').DsgTablePagination | null;
686
- } & import('./DsgTablePagination.vue').DsgTablePaginationInfoProps> & Readonly<{
688
+ } & DsgTablePaginationProps> & Readonly<{
687
689
  "onDsg-table:change-page"?: ((page: import('./DsgTablePagination.vue').Page) => any) | undefined;
688
690
  "onUpdate:pagination"?: ((value: import('./DsgTablePagination.vue').DsgTablePagination | null) => any) | undefined;
689
691
  }>, {
@@ -3,7 +3,7 @@
3
3
  * # Setup: Props/Variables
4
4
  * ------------------------------------------------
5
5
  */
6
- export interface DsgTablePaginationInfoProps {
6
+ export interface DsgTablePaginationProps {
7
7
  onEachSide?: number;
8
8
  firstPage?: number;
9
9
  showFirstLast?: boolean;
@@ -24,7 +24,7 @@ export interface DsgTablePaginationCss {
24
24
  wrapperClass?: string;
25
25
  }
26
26
  export type Page = number | "next" | "prev";
27
- type __VLS_Props = DsgTablePaginationInfoProps;
27
+ type __VLS_Props = DsgTablePaginationProps;
28
28
  type __VLS_PublicProps = {
29
29
  "pagination"?: DsgTablePagination | null;
30
30
  } & __VLS_Props;
@@ -1,14 +1,15 @@
1
+ import { DsgInputSelectOption } from '../Elements/DsgInputSelect.vue';
1
2
  /**
2
3
  * ------------------------------------------------
3
4
  * # Setup: Props/Variables/Models
4
5
  * ------------------------------------------------
5
6
  */
6
7
  export interface DsgTablePerPage {
7
- perPage: number;
8
+ perPage: number | string;
8
9
  change: Function;
9
10
  }
10
11
  export interface DsgTablePerPageProps {
11
- perPageOptions?: number[];
12
+ perPageOptions?: DsgInputSelectOption[];
12
13
  perPage: DsgTablePerPage;
13
14
  }
14
15
  declare const _default: import('vue').DefineComponent<DsgTablePerPageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DsgTablePerPageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;