@dcodegroup-au/dsg-vue 0.1.33 → 0.1.35

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.
@@ -6,12 +6,21 @@ import { Locale } from 'date-fns';
6
6
  * ------------------------------------------------
7
7
  */
8
8
  export type DsgDatepickerType = "single" | "range" | "month" | "time" | "time-range" | "year" | "week" | "quarter";
9
- export type DsgDatepickerValue = string | Date | Date[] | string[] | null;
9
+ export type DsgDatepickerValue = string | Date | Date[] | string[] | number | null;
10
10
  export type DsgDatepickerRangeConfig = RangeConfig;
11
11
  export type DsgDatepickerPosition = "left" | "center" | "right";
12
12
  export type DsgDatepickerSize = "sm" | "md" | "lg";
13
13
  export type DsgDatepickerAutoPosition = boolean | "top" | "bottom";
14
14
  export type DsgUiClasses = UIOptions;
15
+ /**
16
+ * The model type determines the format of the v-model value.
17
+ * - `undefined` (default): returns `Date` objects
18
+ * - `'timestamp'`: returns Unix timestamp (number)
19
+ * - `'iso'`: returns ISO 8601 string
20
+ * - `'format'`: returns a formatted string using the `format` prop
21
+ * - Any other string: treated as a date-fns format pattern
22
+ */
23
+ export type DsgDatepickerModelType = "timestamp" | "iso" | "format" | (string & {});
15
24
  export interface DsgDatepickerProps {
16
25
  type?: DsgDatepickerType;
17
26
  disableYearSelect?: boolean;
@@ -27,6 +36,15 @@ export interface DsgDatepickerProps {
27
36
  errors?: string[];
28
37
  locale?: string;
29
38
  formatLocale?: Locale;
39
+ /**
40
+ * Determines the type of the v-model value.
41
+ * - `undefined` (default): returns `Date` objects
42
+ * - `'timestamp'`: returns Unix timestamp (number)
43
+ * - `'iso'`: returns ISO 8601 string
44
+ * - `'format'`: returns a formatted string using the `format` prop
45
+ * - Custom string: treated as a date-fns format pattern (e.g. `'yyyy-MM-dd'`)
46
+ */
47
+ modelType?: DsgDatepickerModelType;
30
48
  }
31
49
  type __VLS_Props = DsgDatepickerProps;
32
50
  type __VLS_PublicProps = {
@@ -13,6 +13,10 @@ export interface DsgTableProps {
13
13
  displayPaginationInfo?: boolean;
14
14
  reloadOnChangeTimer?: boolean;
15
15
  selectable?: boolean;
16
+ /** Custom CSS colour for the Shift+Hover range highlight. Defaults to primary-50. */
17
+ shiftSelectHighlight?: string;
18
+ /** Custom CSS colour for the selected row background. Defaults to gray-50. */
19
+ selectedRowHighlight?: string;
16
20
  trackBy?: string;
17
21
  title?: string;
18
22
  filters?: DsgTableSearchFacet[];
@@ -189,6 +193,8 @@ declare function __VLS_template(): {
189
193
  readonly fieldPrefix?: string | undefined;
190
194
  readonly eventPrefix?: string | undefined;
191
195
  readonly selectable?: boolean | undefined;
196
+ readonly shiftSelectHighlight?: string | undefined;
197
+ readonly selectedRowHighlight?: string | undefined;
192
198
  readonly replaceState?: boolean | undefined;
193
199
  readonly replaceStrategy?: "window" | "inertia" | undefined;
194
200
  readonly "onDsg-table:loading"?: ((loading: boolean) => any) | undefined;
@@ -488,6 +494,8 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
488
494
  readonly fieldPrefix?: string | undefined;
489
495
  readonly eventPrefix?: string | undefined;
490
496
  readonly selectable?: boolean | undefined;
497
+ readonly shiftSelectHighlight?: string | undefined;
498
+ readonly selectedRowHighlight?: string | undefined;
491
499
  readonly replaceState?: boolean | undefined;
492
500
  readonly replaceStrategy?: "window" | "inertia" | undefined;
493
501
  readonly "onDsg-table:loading"?: ((loading: boolean) => any) | undefined;
@@ -102,6 +102,10 @@ export interface DsgTableComponentProp {
102
102
  fieldPrefix?: string;
103
103
  eventPrefix?: string;
104
104
  selectable?: boolean;
105
+ /** Custom CSS colour for the Shift+Hover range highlight background. Defaults to `var(--color-primary-50)`. */
106
+ shiftSelectHighlight?: string;
107
+ /** Custom CSS colour for the selected row background. Defaults to `var(--color-gray-50)`. */
108
+ selectedRowHighlight?: string;
105
109
  replaceState?: boolean;
106
110
  replaceStrategy?: "window" | "inertia";
107
111
  }