@ambita/design-system 1.0.39 → 1.0.40

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.
@@ -0,0 +1,103 @@
1
+ import { PropType } from '@vue/composition-api';
2
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
3
+ styles: import("@vue/composition-api").ComputedRef<{
4
+ resize: "vertical" | "horizontal" | "none" | "auto" | "both";
5
+ 'max-width': string;
6
+ }>;
7
+ }> & import("@vue/composition-api").Data, {}, {}, {
8
+ label: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ id: {
13
+ type: StringConstructor;
14
+ default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
15
+ };
16
+ description: {
17
+ type: StringConstructor;
18
+ };
19
+ hideLabel: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ name: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ };
27
+ placeholder: {
28
+ type: StringConstructor;
29
+ };
30
+ resize: {
31
+ type: PropType<"vertical" | "horizontal" | "none" | "auto" | "both">;
32
+ default: string;
33
+ };
34
+ height: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ width: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ required: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ value: {
47
+ type: (StringConstructor | NumberConstructor)[];
48
+ default: string;
49
+ };
50
+ }, {
51
+ value: string | number;
52
+ id: string;
53
+ label: string;
54
+ hideLabel: boolean;
55
+ required: boolean;
56
+ resize: "vertical" | "horizontal" | "none" | "auto" | "both";
57
+ height: number;
58
+ width: string;
59
+ } & {
60
+ name?: string | undefined;
61
+ description?: string | undefined;
62
+ placeholder?: string | undefined;
63
+ }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
64
+ value: string | number;
65
+ id: string;
66
+ label: string;
67
+ hideLabel: boolean;
68
+ required: boolean;
69
+ resize: "vertical" | "horizontal" | "none" | "auto" | "both";
70
+ height: number;
71
+ width: string;
72
+ } & {
73
+ name?: string | undefined;
74
+ description?: string | undefined;
75
+ placeholder?: string | undefined;
76
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
77
+ styles: import("@vue/composition-api").ComputedRef<{
78
+ resize: "vertical" | "horizontal" | "none" | "auto" | "both";
79
+ 'max-width': string;
80
+ }>;
81
+ }>, import("@vue/composition-api").Data, {}, {}, {
82
+ value: string | number;
83
+ id: string;
84
+ label: string;
85
+ hideLabel: boolean;
86
+ required: boolean;
87
+ resize: "vertical" | "horizontal" | "none" | "auto" | "both";
88
+ height: number;
89
+ width: string;
90
+ } & {
91
+ name?: string | undefined;
92
+ description?: string | undefined;
93
+ placeholder?: string | undefined;
94
+ }, {
95
+ value: string | number;
96
+ id: string;
97
+ hideLabel: boolean;
98
+ required: boolean;
99
+ resize: "vertical" | "horizontal" | "none" | "auto" | "both";
100
+ height: number;
101
+ width: string;
102
+ }, true>);
103
+ export default _default;
@@ -52,9 +52,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
52
52
  default: string;
53
53
  };
54
54
  }, {
55
- filename: string;
56
55
  time: string;
57
56
  uuid: string;
57
+ filename: string;
58
58
  failed: boolean;
59
59
  warnBeforeDelete: boolean;
60
60
  removeFilesModalDescription: string;
@@ -63,9 +63,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
63
63
  filePath?: string | undefined;
64
64
  percentage?: number | undefined;
65
65
  }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
66
- filename: string;
67
66
  time: string;
68
67
  uuid: string;
68
+ filename: string;
69
69
  failed: boolean;
70
70
  warnBeforeDelete: boolean;
71
71
  removeFilesModalDescription: string;
@@ -88,9 +88,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
88
88
  })[];
89
89
  showModal: import("@vue/composition-api").Ref<boolean>;
90
90
  }>, import("@vue/composition-api").Data, {}, {}, {
91
- filename: string;
92
91
  time: string;
93
92
  uuid: string;
93
+ filename: string;
94
94
  failed: boolean;
95
95
  warnBeforeDelete: boolean;
96
96
  removeFilesModalDescription: string;
@@ -0,0 +1,99 @@
1
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
2
+ removeFile: (uuid: string) => void;
3
+ filesUploaded: import("@vue/composition-api").ComputedRef<boolean>;
4
+ state: {
5
+ fileList: unknown[];
6
+ isOver: boolean;
7
+ message: string;
8
+ };
9
+ dragLeave: () => void;
10
+ addFile: () => void;
11
+ wrapperClasses: import("@vue/composition-api").ComputedRef<{
12
+ 'aux-input-upload-field-wrapper': boolean;
13
+ "aux-input-upload-field-wrapper--drag": boolean;
14
+ "aux-input-upload-field-wrapper--no-drag": boolean;
15
+ }>;
16
+ dragover: () => void;
17
+ inputField: import("@vue/composition-api").Ref<any>;
18
+ inputFieldWrapper: import("@vue/composition-api").Ref<any>;
19
+ }> & import("@vue/composition-api").Data, {}, {}, {
20
+ files: {
21
+ type: ArrayConstructor;
22
+ default: () => never[];
23
+ };
24
+ id: {
25
+ type: StringConstructor;
26
+ default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
27
+ };
28
+ label: {
29
+ type: StringConstructor;
30
+ };
31
+ description: {
32
+ type: StringConstructor;
33
+ };
34
+ hideLabel: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ warnBeforeDelete: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ removeFilesModalDescription: {
43
+ type: StringConstructor;
44
+ required: false;
45
+ default: string;
46
+ };
47
+ }, {
48
+ id: string;
49
+ hideLabel: boolean;
50
+ warnBeforeDelete: boolean;
51
+ removeFilesModalDescription: string;
52
+ files: unknown[];
53
+ } & {
54
+ label?: string | undefined;
55
+ description?: string | undefined;
56
+ }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
57
+ id: string;
58
+ hideLabel: boolean;
59
+ warnBeforeDelete: boolean;
60
+ removeFilesModalDescription: string;
61
+ files: unknown[];
62
+ } & {
63
+ label?: string | undefined;
64
+ description?: string | undefined;
65
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
66
+ removeFile: (uuid: string) => void;
67
+ filesUploaded: import("@vue/composition-api").ComputedRef<boolean>;
68
+ state: {
69
+ fileList: unknown[];
70
+ isOver: boolean;
71
+ message: string;
72
+ };
73
+ dragLeave: () => void;
74
+ addFile: () => void;
75
+ wrapperClasses: import("@vue/composition-api").ComputedRef<{
76
+ 'aux-input-upload-field-wrapper': boolean;
77
+ "aux-input-upload-field-wrapper--drag": boolean;
78
+ "aux-input-upload-field-wrapper--no-drag": boolean;
79
+ }>;
80
+ dragover: () => void;
81
+ inputField: import("@vue/composition-api").Ref<any>;
82
+ inputFieldWrapper: import("@vue/composition-api").Ref<any>;
83
+ }>, import("@vue/composition-api").Data, {}, {}, {
84
+ id: string;
85
+ hideLabel: boolean;
86
+ warnBeforeDelete: boolean;
87
+ removeFilesModalDescription: string;
88
+ files: unknown[];
89
+ } & {
90
+ label?: string | undefined;
91
+ description?: string | undefined;
92
+ }, {
93
+ id: string;
94
+ hideLabel: boolean;
95
+ warnBeforeDelete: boolean;
96
+ removeFilesModalDescription: string;
97
+ files: unknown[];
98
+ }, true>);
99
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare type FormatTypes = 'dateAndTime' | 'dateAndTimeWithSeconds' | 'date' | 'dateFull' | 'time' | 'timeWithSeconds';
2
+ export declare function formatDate(date: Date, format?: FormatTypes): string;
@@ -15,3 +15,4 @@ export { default as Textarea } from './components/Textarea/Textarea.vue';
15
15
  export { default as Upload } from './components/Upload/Upload.vue';
16
16
  export { default as Notifications } from './components/Notification/Notifications.vue';
17
17
  export { default as registerComponents } from './components/register';
18
+ export { formatDate } from '@/helpers/formatting';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ambita/design-system",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "scripts": {
5
5
  "start": "npm run storybook:serve",
6
6
  "serve": "vue-cli-service serve",
@@ -60,7 +60,7 @@
60
60
  "sass-loader": "^10.0.5",
61
61
  "semantic-release": "^17.3.8",
62
62
  "simple-git": "^2.44.0",
63
- "typescript": "~3.9.3",
63
+ "typescript": "~4.5.5",
64
64
  "vue-cli-plugin-storybook": "~2.0.0",
65
65
  "vue-svg-loader": "^0.16.0",
66
66
  "vue-template-compiler": "^2.6.11"