@ambita/design-system 1.0.42-91.0 → 1.0.43

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 (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/aux.common.js +5376 -846
  3. package/dist/aux.common.js.map +1 -1
  4. package/dist/aux.umd.js +5395 -865
  5. package/dist/aux.umd.js.map +1 -1
  6. package/dist/aux.umd.min.js +2 -2
  7. package/dist/aux.umd.min.js.map +1 -1
  8. package/dist/types/src/components/Banner/Banner.vue.d.ts +210 -0
  9. package/dist/types/{components → src/components}/Button/Button.vue.d.ts +11 -20
  10. package/dist/types/{components → src/components}/Checkbox/Checkbox.vue.d.ts +11 -24
  11. package/dist/types/{components → src/components}/Definition/Definition.vue.d.ts +9 -25
  12. package/dist/types/src/components/DirectionalArrow/DirectionalArrow.vue.d.ts +27 -0
  13. package/dist/types/{components → src/components}/Form/FormFieldBlock.vue.d.ts +20 -50
  14. package/dist/types/{components → src/components}/Form/FormFieldTypes/FormFieldCheckbox.vue.d.ts +9 -20
  15. package/dist/types/{components → src/components}/Form/FormFieldTypes/FormFieldInput.vue.d.ts +10 -21
  16. package/dist/types/{components → src/components}/Form/FormFieldTypes/FormFieldRadio.vue.d.ts +8 -19
  17. package/dist/types/{components → src/components}/Form/FormFieldTypes/FormFieldSelect.vue.d.ts +10 -23
  18. package/dist/types/{components → src/components}/Form/FormFieldTypes/FormFieldSingleCheckbox.vue.d.ts +8 -17
  19. package/dist/types/{components → src/components}/Form/FormFieldset.vue.d.ts +9 -21
  20. package/dist/types/{components → src/components}/FormElement/FormElement.vue.d.ts +9 -22
  21. package/dist/types/{components → src/components}/Input/Input.vue.d.ts +21 -47
  22. package/dist/types/{components → src/components}/Link/Link.vue.d.ts +8 -14
  23. package/dist/types/{components → src/components}/Modal/Actions.vue.d.ts +4 -7
  24. package/dist/types/{components → src/components}/Modal/Modal.vue.d.ts +9 -24
  25. package/dist/types/{components → src/components}/Notification/Notification.vue.d.ts +5 -11
  26. package/dist/types/{components → src/components}/Notification/Notifications.vue.d.ts +4 -7
  27. package/dist/types/{components → src/components}/Pill/Pill.vue.d.ts +4 -8
  28. package/dist/types/{components → src/components}/Radio/Radio.vue.d.ts +11 -24
  29. package/dist/types/{components → src/components}/Select/Select.vue.d.ts +17 -38
  30. package/dist/types/{components → src/components}/Textarea/Textarea.vue.d.ts +20 -50
  31. package/dist/types/{components → src/components}/Time/Time.vue.d.ts +6 -11
  32. package/dist/types/{components → src/components}/Upload/File/File.vue.d.ts +13 -41
  33. package/dist/types/{components → src/components}/Upload/Upload.vue.d.ts +13 -32
  34. package/dist/types/{helpers → src/helpers}/formatting.d.ts +1 -1
  35. package/dist/types/{index.d.ts → src/index.d.ts} +1 -0
  36. package/dist/types/tests/unit/Button/Button.spec.d.ts +1 -0
  37. package/dist/types/tests/unit/Checkbox/Checkbox.spec.d.ts +0 -0
  38. package/dist/types/tests/unit/Modal/Actions.spec.d.ts +1 -0
  39. package/package.json +28 -28
  40. package/dist/types/components/Banner/Banner.vue.d.ts +0 -4
  41. /package/dist/types/{components → src/components}/Banner/Banner.types.d.ts +0 -0
  42. /package/dist/types/{components → src/components}/Modal/Action.d.ts +0 -0
  43. /package/dist/types/{components → src/components}/Pill/Colors.d.ts +0 -0
  44. /package/dist/types/{components → src/components}/register.d.ts +0 -0
  45. /package/dist/types/{helpers → src/helpers}/uuid.d.ts +0 -0
  46. /package/dist/types/{main.d.ts → src/main.d.ts} +0 -0
  47. /package/dist/types/{services → src/services}/uploadtest.d.ts +0 -0
@@ -47,55 +47,25 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
47
47
  type: (StringConstructor | NumberConstructor)[];
48
48
  default: string;
49
49
  };
50
- }, import("@vue/composition-api").ExtractPropTypes<{
51
- label: {
52
- type: StringConstructor;
53
- required: true;
54
- };
55
- id: {
56
- type: StringConstructor;
57
- default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
58
- };
59
- description: {
60
- type: StringConstructor;
61
- };
62
- hideLabel: {
63
- type: BooleanConstructor;
64
- default: boolean;
65
- };
66
- name: {
67
- type: StringConstructor;
68
- required: false;
69
- };
70
- placeholder: {
71
- type: StringConstructor;
72
- };
73
- resize: {
74
- type: PropType<"vertical" | "horizontal" | "none" | "auto" | "both">;
75
- default: string;
76
- };
77
- height: {
78
- type: NumberConstructor;
79
- default: number;
80
- };
81
- width: {
82
- type: StringConstructor;
83
- default: string;
84
- };
85
- required: {
86
- type: BooleanConstructor;
87
- default: boolean;
88
- };
89
- value: {
90
- type: (StringConstructor | NumberConstructor)[];
91
- default: string;
92
- };
93
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
50
+ }, {
51
+ value: string | number;
52
+ id: string;
94
53
  label: string;
95
54
  hideLabel: boolean;
96
- id: string;
97
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<{
98
64
  value: string | number;
65
+ id: string;
66
+ label: string;
67
+ hideLabel: boolean;
68
+ required: boolean;
99
69
  resize: "vertical" | "horizontal" | "none" | "auto" | "both";
100
70
  height: number;
101
71
  width: string;
@@ -108,12 +78,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
108
78
  resize: "vertical" | "horizontal" | "none" | "auto" | "both";
109
79
  'max-width': string;
110
80
  }>;
111
- }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
81
+ }>, import("@vue/composition-api").Data, {}, {}, {
82
+ value: string | number;
83
+ id: string;
112
84
  label: string;
113
85
  hideLabel: boolean;
114
- id: string;
115
86
  required: boolean;
116
- value: string | number;
117
87
  resize: "vertical" | "horizontal" | "none" | "auto" | "both";
118
88
  height: number;
119
89
  width: string;
@@ -122,10 +92,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
122
92
  description?: string | undefined;
123
93
  placeholder?: string | undefined;
124
94
  }, {
125
- hideLabel: boolean;
95
+ value: string | number;
126
96
  id: string;
97
+ hideLabel: boolean;
127
98
  required: boolean;
128
- value: string | number;
129
99
  resize: "vertical" | "horizontal" | "none" | "auto" | "both";
130
100
  height: number;
131
101
  width: string;
@@ -12,16 +12,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
12
12
  type: StringConstructor;
13
13
  required: false;
14
14
  };
15
- }, import("@vue/composition-api").ExtractPropTypes<{
16
- date: {
17
- type: StringConstructor;
18
- required: true;
19
- };
20
- format: {
21
- type: StringConstructor;
22
- required: false;
23
- };
24
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
15
+ }, {
16
+ date: string;
17
+ } & {
18
+ format?: string | undefined;
19
+ }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
25
20
  date: string;
26
21
  } & {
27
22
  format?: string | undefined;
@@ -29,7 +24,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
29
24
  formatDate: typeof formatDate;
30
25
  formatFirstDate: (date: Date, format?: FormatTypes) => string;
31
26
  formatSecondDate: (date: Date, format?: FormatTypes) => string | undefined;
32
- }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
27
+ }>, import("@vue/composition-api").Data, {}, {}, {
33
28
  date: string;
34
29
  } & {
35
30
  format?: string | undefined;
@@ -51,46 +51,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
51
51
  required: false;
52
52
  default: string;
53
53
  };
54
- }, import("@vue/composition-api").ExtractPropTypes<{
55
- file: {
56
- type: {
57
- new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
58
- prototype: File;
59
- };
60
- };
61
- filename: {
62
- type: StringConstructor;
63
- required: true;
64
- };
65
- filePath: {
66
- type: StringConstructor;
67
- required: false;
68
- };
69
- time: {
70
- type: StringConstructor;
71
- required: true;
72
- };
73
- percentage: {
74
- type: NumberConstructor;
75
- };
76
- uuid: {
77
- type: StringConstructor;
78
- required: true;
79
- };
80
- failed: {
81
- type: BooleanConstructor;
82
- default: boolean;
83
- };
84
- warnBeforeDelete: {
85
- type: BooleanConstructor;
86
- default: boolean;
87
- };
88
- removeFilesModalDescription: {
89
- type: StringConstructor;
90
- required: false;
91
- default: string;
92
- };
93
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
54
+ }, {
55
+ time: string;
56
+ uuid: string;
57
+ filename: string;
58
+ failed: boolean;
59
+ warnBeforeDelete: boolean;
60
+ removeFilesModalDescription: string;
61
+ } & {
62
+ file?: File | undefined;
63
+ filePath?: string | undefined;
64
+ percentage?: number | undefined;
65
+ }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
94
66
  time: string;
95
67
  uuid: string;
96
68
  filename: string;
@@ -115,7 +87,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
115
87
  primary?: undefined;
116
88
  })[];
117
89
  showModal: import("@vue/composition-api").Ref<boolean>;
118
- }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
90
+ }>, import("@vue/composition-api").Data, {}, {}, {
119
91
  time: string;
120
92
  uuid: string;
121
93
  filename: string;
@@ -44,37 +44,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
44
44
  required: false;
45
45
  default: string;
46
46
  };
47
- }, import("@vue/composition-api").ExtractPropTypes<{
48
- files: {
49
- type: ArrayConstructor;
50
- default: () => never[];
51
- };
52
- id: {
53
- type: StringConstructor;
54
- default: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: import("uuid").V4Options | undefined) => string);
55
- };
56
- label: {
57
- type: StringConstructor;
58
- };
59
- description: {
60
- type: StringConstructor;
61
- };
62
- hideLabel: {
63
- type: BooleanConstructor;
64
- default: boolean;
65
- };
66
- warnBeforeDelete: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
- removeFilesModalDescription: {
71
- type: StringConstructor;
72
- required: false;
73
- default: string;
74
- };
75
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
47
+ }, {
48
+ id: string;
76
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<{
77
57
  id: string;
58
+ hideLabel: boolean;
78
59
  warnBeforeDelete: boolean;
79
60
  removeFilesModalDescription: string;
80
61
  files: unknown[];
@@ -99,9 +80,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
99
80
  dragover: () => void;
100
81
  inputField: import("@vue/composition-api").Ref<any>;
101
82
  inputFieldWrapper: import("@vue/composition-api").Ref<any>;
102
- }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
103
- hideLabel: boolean;
83
+ }>, import("@vue/composition-api").Data, {}, {}, {
104
84
  id: string;
85
+ hideLabel: boolean;
105
86
  warnBeforeDelete: boolean;
106
87
  removeFilesModalDescription: string;
107
88
  files: unknown[];
@@ -109,8 +90,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
109
90
  label?: string | undefined;
110
91
  description?: string | undefined;
111
92
  }, {
112
- hideLabel: boolean;
113
93
  id: string;
94
+ hideLabel: boolean;
114
95
  warnBeforeDelete: boolean;
115
96
  removeFilesModalDescription: string;
116
97
  files: unknown[];
@@ -1,2 +1,2 @@
1
- export declare type FormatTypes = 'dateAndTime' | 'dateAndTimeWithSeconds' | 'date' | 'dateFull' | 'time' | 'timeWithSeconds';
1
+ export declare type FormatTypes = 'dateAndTime' | 'dateAndTimeWithSeconds' | 'date' | 'dateFull' | 'dateWithWeekDay' | 'time' | 'timeWithSeconds';
2
2
  export declare function formatDate(date: Date, format?: FormatTypes): string;
@@ -15,5 +15,6 @@ 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 Time } from './components/Time/Time.vue';
18
+ export { default as DirectionalArrow } from '@/components/DirectionalArrow/DirectionalArrow.vue';
18
19
  export { default as registerComponents } from './components/register';
19
20
  export { formatDate } from '@/helpers/formatting';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ambita/design-system",
3
- "version": "1.0.42-91.0",
3
+ "version": "1.0.43",
4
4
  "scripts": {
5
5
  "start": "npm run storybook:serve",
6
6
  "serve": "vue-cli-service serve",
@@ -15,53 +15,53 @@
15
15
  "phosphor:update": "node scripts/phosphorUpdate.js"
16
16
  },
17
17
  "dependencies": {
18
- "@vue/composition-api": "^1.7.0",
18
+ "@vue/composition-api": "^1.0.0-rc.1",
19
19
  "ajv-i18n": "^3.6.0",
20
- "axios": "^0.21.4",
20
+ "axios": "^0.21.1",
21
21
  "sanitize.css": "12.0.1",
22
22
  "uuid": "^3.4.0",
23
- "vue": "2.6.12",
24
- "vue-form-json-schema": "^2.9.5"
23
+ "vue": "^2.6.11",
24
+ "vue-form-json-schema": "^2.9.2"
25
25
  },
26
26
  "license": "UNLICENSED",
27
27
  "devDependencies": {
28
28
  "@semantic-release/changelog": "^5.0.1",
29
- "@semantic-release/git": "^9.0.1",
30
- "@storybook/addon-actions": "^6.5.10",
31
- "@storybook/addon-controls": "^6.5.10",
32
- "@storybook/addon-docs": "^6.5.10",
33
- "@storybook/addon-knobs": "^6.4.0",
34
- "@storybook/addon-links": "^6.5.10",
35
- "@storybook/vue": "^6.5.10",
36
- "@types/chai": "^4.3.1",
37
- "@types/mocha": "^5.2.7",
38
- "@types/uuid": "^8.3.4",
29
+ "@semantic-release/git": "^9.0.0",
30
+ "@storybook/addon-actions": "^6.1.0",
31
+ "@storybook/addon-controls": "^6.1.0",
32
+ "@storybook/addon-docs": "^6.1.0",
33
+ "@storybook/addon-knobs": "^6.1.0",
34
+ "@storybook/addon-links": "^6.1.0",
35
+ "@storybook/vue": "^6.1.0",
36
+ "@types/chai": "^4.2.11",
37
+ "@types/mocha": "^5.2.4",
38
+ "@types/uuid": "^8.3.1",
39
39
  "@typescript-eslint/eslint-plugin": "^2.33.0",
40
40
  "@typescript-eslint/parser": "^2.33.0",
41
- "@vue/cli-plugin-babel": "~4.5.19",
42
- "@vue/cli-plugin-eslint": "~4.5.19",
43
- "@vue/cli-plugin-typescript": "~4.5.19",
44
- "@vue/cli-plugin-unit-mocha": "~4.5.19",
45
- "@vue/cli-service": "4.5.19",
41
+ "@vue/cli-plugin-babel": "~4.5.0",
42
+ "@vue/cli-plugin-eslint": "~4.5.0",
43
+ "@vue/cli-plugin-typescript": "~4.5.0",
44
+ "@vue/cli-plugin-unit-mocha": "~4.5.0",
45
+ "@vue/cli-service": "~4.5.0",
46
46
  "@vue/eslint-config-prettier": "^6.0.0",
47
- "@vue/eslint-config-typescript": "^5.1.0",
48
- "@vue/test-utils": "^1.3.0",
49
- "chai": "^4.3.6",
50
- "copy-webpack-plugin": "^6.4.1",
47
+ "@vue/eslint-config-typescript": "^5.0.2",
48
+ "@vue/test-utils": "^1.0.3",
49
+ "chai": "^4.1.2",
50
+ "copy-webpack-plugin": "^6.3.2",
51
51
  "cz-conventional-changelog": "^3.3.0",
52
52
  "eslint": "^6.7.2",
53
- "eslint-plugin-prettier": "^3.4.1",
53
+ "eslint-plugin-prettier": "^3.1.3",
54
54
  "eslint-plugin-vue": "^6.2.2",
55
55
  "prettier": "^1.19.1",
56
56
  "rimraf": "^3.0.2",
57
57
  "sass": "1.32.12",
58
- "sass-loader": "^10.3.1",
58
+ "sass-loader": "^10.0.5",
59
59
  "semantic-release": "^17.3.8",
60
60
  "simple-git": "^2.44.0",
61
61
  "typescript": "~4.5.5",
62
- "vue-cli-plugin-storybook": "~2.1.0",
62
+ "vue-cli-plugin-storybook": "~2.0.0",
63
63
  "vue-svg-loader": "^0.16.0",
64
- "vue-template-compiler": "2.6.12"
64
+ "vue-template-compiler": "^2.6.11"
65
65
  },
66
66
  "gitHooks": {
67
67
  "pre-commit": "sh hooks/pre-commit"
@@ -1,4 +0,0 @@
1
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {}, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {} & {}, {
2
- [x: number]: string;
3
- } | {}, true>);
4
- export default _default;
File without changes
File without changes