@dcodegroup-au/dsg-vue 0.0.28 → 0.0.31
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/components/Elements/DsgBarcodeScanner.vue.d.ts +19 -0
- package/dist/components/Elements/DsgCard.vue.d.ts +28 -0
- package/dist/components/Elements/DsgCardContainer.vue.d.ts +29 -0
- package/dist/components/Elements/DsgCheckbox.vue.d.ts +1 -1
- package/dist/components/Elements/DsgInputNumber.vue.d.ts +27 -0
- package/dist/components/Elements/DsgInputSelect.vue.d.ts +2 -2
- package/dist/components/Elements/DsgProgress.vue.d.ts +7 -0
- package/dist/components/Elements/ElementComponents.d.ts +6 -1
- package/dist/components/Navigation/DsgTab.vue.d.ts +1 -0
- package/dist/components/Table/DsgTable.vue.d.ts +2 -0
- package/dist/dsg-vue.cjs +21 -2
- package/dist/dsg-vue.css +1 -1
- package/dist/dsg-vue.esm.js +21071 -2230
- package/dist/dsg-vue.table.cjs +2 -2
- package/dist/dsg-vue.table.esm.js +115 -114
- package/dist/main.d.ts +104 -10
- package/dist/table.d.ts +10 -0
- package/package.json +2 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface DsgScanOptions {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
onClose: (result: DsgBarcodeScannerResult) => void;
|
|
5
|
+
}
|
|
6
|
+
export type DsgBarcodeScannerResult = {
|
|
7
|
+
type: 'scanned';
|
|
8
|
+
value: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'manual';
|
|
11
|
+
value: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: 'cancelled';
|
|
14
|
+
};
|
|
15
|
+
declare function scan(options: DsgScanOptions): void;
|
|
16
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
17
|
+
scan: typeof scan;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ------------------------------------------------
|
|
3
|
+
* # Setup: Props
|
|
4
|
+
* ------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
export type DsgCardVariant = 'default' | 'elevated' | 'bordered' | 'highlighted';
|
|
7
|
+
export interface DsgCardProps {
|
|
8
|
+
variant?: DsgCardVariant;
|
|
9
|
+
hoverable?: boolean;
|
|
10
|
+
classes?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<DsgCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DsgCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as DsgCard } from './DsgCard.vue';
|
|
2
|
+
type CardProps = Partial<InstanceType<typeof DsgCard>['$props']>;
|
|
3
|
+
export interface DsgCardContainerProps {
|
|
4
|
+
columns: 1 | 2 | 3 | 4;
|
|
5
|
+
gap: 1 | 2 | 3 | 4;
|
|
6
|
+
items: any[];
|
|
7
|
+
itemKey?: string | null;
|
|
8
|
+
cardProps?: CardProps;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {
|
|
14
|
+
item: any;
|
|
15
|
+
index: number;
|
|
16
|
+
}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<DsgCardContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DsgCardContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -44,10 +44,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
44
44
|
"after-checked": (newValue: DsgCheckboxModelType) => any;
|
|
45
45
|
"update:model-value": (newValue: DsgCheckboxModelType) => any;
|
|
46
46
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((value: DsgCheckboxModelType) => any) | undefined;
|
|
47
48
|
"onBefore-checked"?: ((oldValue: DsgCheckboxModelType, newValue: DsgCheckboxModelType) => any) | undefined;
|
|
48
49
|
"onAfter-checked"?: ((newValue: DsgCheckboxModelType) => any) | undefined;
|
|
49
50
|
"onUpdate:model-value"?: ((newValue: DsgCheckboxModelType) => any) | undefined;
|
|
50
|
-
"onUpdate:modelValue"?: ((value: DsgCheckboxModelType) => any) | undefined;
|
|
51
51
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
52
|
checkboxWrapper: HTMLLabelElement;
|
|
53
53
|
inputCheckbox: HTMLInputElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
step?: number;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
label?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
"update:modelValue": (value: number) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -39,8 +39,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
39
39
|
"update:single": (value: any) => any;
|
|
40
40
|
} & {
|
|
41
41
|
select: (value: any, id: string | number) => any;
|
|
42
|
-
"update:model-value": (value: any) => any;
|
|
43
42
|
"update:modelValue": (value: any) => any;
|
|
43
|
+
"update:model-value": (value: any) => any;
|
|
44
44
|
tag: (label: any, id: string | number) => any;
|
|
45
45
|
"search-change": (queryTerm: string) => any;
|
|
46
46
|
open: (id: string | number) => any;
|
|
@@ -48,8 +48,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
48
48
|
remove: (value: any, id: string | number) => any;
|
|
49
49
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
50
50
|
onSelect?: ((value: any, id: string | number) => any) | undefined;
|
|
51
|
-
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
52
51
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
52
|
+
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
53
53
|
onTag?: ((label: any, id: string | number) => any) | undefined;
|
|
54
54
|
"onUpdate:single"?: ((value: any) => any) | undefined;
|
|
55
55
|
"onSearch-change"?: ((queryTerm: string) => any) | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: number;
|
|
3
|
+
max: number;
|
|
4
|
+
showText?: 'number' | 'percentage' | 'none';
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -3,6 +3,7 @@ import { default as PrivateAlert } from './DsgAlert.vue';
|
|
|
3
3
|
import { default as PrivateAlertComponent } from './DsgAlertComponent.vue';
|
|
4
4
|
import { default as PrivateBadge } from './DsgBadge.vue';
|
|
5
5
|
import { default as PrivateButton } from './DsgButton.vue';
|
|
6
|
+
import { default as PrivateInputNumber } from './DsgInputNumber.vue';
|
|
6
7
|
import { default as PrivateCheckbox } from './DsgCheckbox.vue';
|
|
7
8
|
import { default as PrivateCheckboxGroup } from './DsgCheckboxGroup.vue';
|
|
8
9
|
import { default as PrivateDropdown } from './DsgDropdown.vue';
|
|
@@ -16,4 +17,8 @@ import { default as PrivateModal } from './DsgModal.vue';
|
|
|
16
17
|
import { default as PrivateTag } from './DsgTag.vue';
|
|
17
18
|
import { default as PrivateToggle } from './DsgToggle.vue';
|
|
18
19
|
import { default as PrivateTooltip } from './DsgTooltip.vue';
|
|
19
|
-
|
|
20
|
+
import { default as PrivateProgress } from './DsgProgress.vue';
|
|
21
|
+
import { default as PrivateBarcodeScanner } from './DsgBarcodeScanner.vue';
|
|
22
|
+
import { default as PrivateCard } from './DsgCard.vue';
|
|
23
|
+
import { default as PrivateCardContainer } from './DsgCardContainer.vue';
|
|
24
|
+
export { PrivateAvatar, PrivateAlert, PrivateAlertComponent, PrivateBadge, PrivateButton, PrivateCheckbox, PrivateCheckboxGroup, PrivateDropdown, PrivateInput, PrivateInputSelect, PrivateInputDropdown, PrivateInputNumber, PrivateDatepicker, PrivateLabel, PrivateLink, PrivateModal, PrivateTag, PrivateToggle, PrivateTooltip, PrivateProgress, PrivateBarcodeScanner, PrivateCard, PrivateCardContainer, };
|
|
@@ -303,6 +303,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
303
303
|
"dsg-table:action-edit": (ev: Event, rowData: Record<string, any>) => any;
|
|
304
304
|
"dsg-table:action-view": (ev: Event, rowData: Record<string, any>) => any;
|
|
305
305
|
"dsg-table:action-delete": (ev: Event, rowData: Record<string, any>) => any;
|
|
306
|
+
"dsg-table:action-archive": (ev: Event, rowData: Record<string, any>) => any;
|
|
306
307
|
"dsg-table:link-clicked": (ev: Event, actionId: string | number, rowData: Record<string, any>) => any;
|
|
307
308
|
"dsg-table:term-changed": (term: string | null) => any;
|
|
308
309
|
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
|
|
@@ -311,6 +312,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
311
312
|
"onDsg-table:action-edit"?: ((ev: Event, rowData: Record<string, any>) => any) | undefined;
|
|
312
313
|
"onDsg-table:action-view"?: ((ev: Event, rowData: Record<string, any>) => any) | undefined;
|
|
313
314
|
"onDsg-table:action-delete"?: ((ev: Event, rowData: Record<string, any>) => any) | undefined;
|
|
315
|
+
"onDsg-table:action-archive"?: ((ev: Event, rowData: Record<string, any>) => any) | undefined;
|
|
314
316
|
"onDsg-table:link-clicked"?: ((ev: Event, actionId: string | number, rowData: Record<string, any>) => any) | undefined;
|
|
315
317
|
"onDsg-table:term-changed"?: ((term: string | null) => any) | undefined;
|
|
316
318
|
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
|