@dcodegroup-au/dsg-vue 0.1.20 → 0.1.22
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/{DsgLabel.vue_vue_type_style_index_0_lang-BXePb1IV.js → DsgLabel.vue_vue_type_style_index_0_lang-BYL1w85l.js} +2 -2
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-BIxdsbw_.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-COiqcr11.js} +6473 -6432
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-DU5GAN6E.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-VdqoCHmU.cjs} +1197 -1197
- package/dist/components/Elements/DsgBarcodeScanner.vue.d.ts +8 -6
- package/dist/components/Elements/DsgInputSelect.vue.d.ts +64 -1
- package/dist/components/Table/DsgTable.vue.d.ts +8 -0
- package/dist/components/Table/DsgTableComponent.vue.d.ts +2 -0
- package/dist/dsg-vue.cjs +10 -10
- package/dist/dsg-vue.css +1 -1
- package/dist/dsg-vue.editor.esm.js +10 -10
- package/dist/dsg-vue.esm.js +956 -944
- package/dist/dsg-vue.table.cjs +2 -2
- package/dist/dsg-vue.table.esm.js +592 -552
- package/dist/main.d.ts +238 -92
- package/dist/table.d.ts +4 -0
- package/package.json +15 -15
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DsgButtonProps } from './DsgButton.vue';
|
|
2
|
+
import { DsgMiscIconProps } from '../Icons/DsgMiscIcon.vue';
|
|
1
3
|
export interface DsgScanOptions {
|
|
2
4
|
title: string;
|
|
3
5
|
subtitle?: string;
|
|
@@ -34,7 +36,7 @@ declare function __VLS_template(): {
|
|
|
34
36
|
$props: {
|
|
35
37
|
readonly title?: string | undefined;
|
|
36
38
|
readonly description?: string | undefined;
|
|
37
|
-
readonly miscIcon?: (
|
|
39
|
+
readonly miscIcon?: (DsgMiscIconProps | null) | undefined;
|
|
38
40
|
readonly hasClosedButton?: boolean | undefined;
|
|
39
41
|
readonly initialOpen?: boolean | undefined;
|
|
40
42
|
readonly closeClickBackground?: boolean | undefined;
|
|
@@ -42,8 +44,8 @@ declare function __VLS_template(): {
|
|
|
42
44
|
readonly width?: number | undefined;
|
|
43
45
|
readonly type?: import('./DsgModal.vue').DsgModalType | undefined;
|
|
44
46
|
readonly footerType?: import('./DsgModal.vue').DsgModalFooterType | undefined;
|
|
45
|
-
readonly primaryButton?: (
|
|
46
|
-
readonly secondaryButton?: (
|
|
47
|
+
readonly primaryButton?: (DsgButtonProps | false) | undefined;
|
|
48
|
+
readonly secondaryButton?: (DsgButtonProps | false) | undefined;
|
|
47
49
|
readonly hasBackground?: boolean | undefined;
|
|
48
50
|
readonly "onBefore-open"?: (() => any) | undefined;
|
|
49
51
|
readonly "onAfter-open"?: (() => any) | undefined;
|
|
@@ -142,7 +144,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
142
144
|
$props: {
|
|
143
145
|
readonly title?: string | undefined;
|
|
144
146
|
readonly description?: string | undefined;
|
|
145
|
-
readonly miscIcon?: (
|
|
147
|
+
readonly miscIcon?: (DsgMiscIconProps | null) | undefined;
|
|
146
148
|
readonly hasClosedButton?: boolean | undefined;
|
|
147
149
|
readonly initialOpen?: boolean | undefined;
|
|
148
150
|
readonly closeClickBackground?: boolean | undefined;
|
|
@@ -150,8 +152,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
150
152
|
readonly width?: number | undefined;
|
|
151
153
|
readonly type?: import('./DsgModal.vue').DsgModalType | undefined;
|
|
152
154
|
readonly footerType?: import('./DsgModal.vue').DsgModalFooterType | undefined;
|
|
153
|
-
readonly primaryButton?: (
|
|
154
|
-
readonly secondaryButton?: (
|
|
155
|
+
readonly primaryButton?: (DsgButtonProps | false) | undefined;
|
|
156
|
+
readonly secondaryButton?: (DsgButtonProps | false) | undefined;
|
|
155
157
|
readonly hasBackground?: boolean | undefined;
|
|
156
158
|
readonly "onBefore-open"?: (() => any) | undefined;
|
|
157
159
|
readonly "onAfter-open"?: (() => any) | undefined;
|
|
@@ -44,7 +44,64 @@ type __VLS_PublicProps = {
|
|
|
44
44
|
"modelValue"?: any;
|
|
45
45
|
"single"?: any;
|
|
46
46
|
} & __VLS_Props;
|
|
47
|
-
declare
|
|
47
|
+
declare function __VLS_template(): {
|
|
48
|
+
attrs: Partial<{}>;
|
|
49
|
+
slots: Readonly<{
|
|
50
|
+
singleLabel: {
|
|
51
|
+
option?: DsgInputSelectOption | null;
|
|
52
|
+
};
|
|
53
|
+
option: {
|
|
54
|
+
option?: DsgInputSelectOption | null;
|
|
55
|
+
};
|
|
56
|
+
caret: {
|
|
57
|
+
toggle: () => void;
|
|
58
|
+
};
|
|
59
|
+
}> & {
|
|
60
|
+
singleLabel: {
|
|
61
|
+
option?: DsgInputSelectOption | null;
|
|
62
|
+
};
|
|
63
|
+
option: {
|
|
64
|
+
option?: DsgInputSelectOption | null;
|
|
65
|
+
};
|
|
66
|
+
caret: {
|
|
67
|
+
toggle: () => void;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
refs: {
|
|
71
|
+
dsgInputSelectEl: HTMLDivElement;
|
|
72
|
+
multiselectEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue-multiselect').ComponentProps>, {}, {}, {}, {
|
|
73
|
+
activate(): void;
|
|
74
|
+
deactivate(): void;
|
|
75
|
+
}, import('vue').DefineComponent<import('vue-multiselect').MultiselectMixinProps> | import('vue').DefineComponent<import('vue-multiselect').PointerMixinProps>, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
76
|
+
P: Readonly<import('vue-multiselect').MultiselectMixinProps>;
|
|
77
|
+
B: {};
|
|
78
|
+
D: {};
|
|
79
|
+
C: import('vue').ComputedOptions;
|
|
80
|
+
M: import('vue').MethodOptions;
|
|
81
|
+
Defaults: {};
|
|
82
|
+
} & {
|
|
83
|
+
P: {};
|
|
84
|
+
B: {};
|
|
85
|
+
D: {};
|
|
86
|
+
C: {};
|
|
87
|
+
M: {};
|
|
88
|
+
Defaults: {};
|
|
89
|
+
} & {
|
|
90
|
+
P: Readonly<import('vue-multiselect').PointerMixinProps>;
|
|
91
|
+
B: {};
|
|
92
|
+
D: {};
|
|
93
|
+
C: import('vue').ComputedOptions;
|
|
94
|
+
M: import('vue').MethodOptions;
|
|
95
|
+
Defaults: {};
|
|
96
|
+
}, Readonly<import('vue-multiselect').MultiselectMixinProps> & Readonly<import('vue-multiselect').PointerMixinProps> & Readonly<import('vue-multiselect').ComponentProps>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions & {
|
|
97
|
+
activate(): void;
|
|
98
|
+
deactivate(): void;
|
|
99
|
+
}, {} & {} & {}> | null;
|
|
100
|
+
};
|
|
101
|
+
rootEl: HTMLDivElement;
|
|
102
|
+
};
|
|
103
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
104
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
48
105
|
getInstance: () => typeof Multiselect | undefined | null;
|
|
49
106
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
107
|
"update:modelValue": (value: any) => any;
|
|
@@ -99,4 +156,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
99
156
|
deactivate(): void;
|
|
100
157
|
}, {} & {} & {}> | null;
|
|
101
158
|
}, HTMLDivElement>;
|
|
159
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
102
160
|
export default _default;
|
|
161
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
162
|
+
new (): {
|
|
163
|
+
$slots: S;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
@@ -41,6 +41,10 @@ export interface DsgTableProps {
|
|
|
41
41
|
rowClass?: string | Function;
|
|
42
42
|
/** API mode - when false, uses local data instead of fetching from API */
|
|
43
43
|
apiMode?: boolean;
|
|
44
|
+
/** Whether to update the URL with sort/filter state. Defaults to true in API mode. */
|
|
45
|
+
replaceState?: boolean;
|
|
46
|
+
/** Strategy for updating URL state - 'window' uses History API. Defaults to 'window'. */
|
|
47
|
+
replaceStrategy?: "window" | "inertia";
|
|
44
48
|
}
|
|
45
49
|
declare function __VLS_template(): {
|
|
46
50
|
attrs: Partial<{}>;
|
|
@@ -163,6 +167,8 @@ declare function __VLS_template(): {
|
|
|
163
167
|
readonly fieldPrefix?: string | undefined;
|
|
164
168
|
readonly eventPrefix?: string | undefined;
|
|
165
169
|
readonly selectable?: boolean | undefined;
|
|
170
|
+
readonly replaceState?: boolean | undefined;
|
|
171
|
+
readonly replaceStrategy?: "window" | "inertia" | undefined;
|
|
166
172
|
readonly "onDsg-table:loading"?: ((loading: boolean) => any) | undefined;
|
|
167
173
|
readonly "onDsg-table:loaded"?: (() => any) | undefined;
|
|
168
174
|
readonly "onDsg-table:load-success"?: ((response: import('axios').AxiosResponse<any, any, {}>) => any) | undefined;
|
|
@@ -426,6 +432,8 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
426
432
|
readonly fieldPrefix?: string | undefined;
|
|
427
433
|
readonly eventPrefix?: string | undefined;
|
|
428
434
|
readonly selectable?: boolean | undefined;
|
|
435
|
+
readonly replaceState?: boolean | undefined;
|
|
436
|
+
readonly replaceStrategy?: "window" | "inertia" | undefined;
|
|
429
437
|
readonly "onDsg-table:loading"?: ((loading: boolean) => any) | undefined;
|
|
430
438
|
readonly "onDsg-table:loaded"?: (() => any) | undefined;
|
|
431
439
|
readonly "onDsg-table:load-success"?: ((response: import('axios').AxiosResponse<any, any, {}>) => any) | undefined;
|
|
@@ -87,6 +87,8 @@ export interface DsgTableComponentProp {
|
|
|
87
87
|
fieldPrefix?: string;
|
|
88
88
|
eventPrefix?: string;
|
|
89
89
|
selectable?: boolean;
|
|
90
|
+
replaceState?: boolean;
|
|
91
|
+
replaceStrategy?: "window" | "inertia";
|
|
90
92
|
}
|
|
91
93
|
type __VLS_Props = DsgTableComponentProp;
|
|
92
94
|
type __VLS_PublicProps = {
|