@iamproperty/components 3.7.8--beta → 3.7.8

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 (53) hide show
  1. package/assets/css/components/dialog.css +1 -1
  2. package/assets/css/components/dialog.css.map +1 -1
  3. package/assets/css/components/fileupload.css +1 -0
  4. package/assets/css/components/fileupload.css.map +1 -0
  5. package/assets/css/components/forms.css +1 -1
  6. package/assets/css/components/forms.css.map +1 -1
  7. package/assets/css/core.min.css +1 -1
  8. package/assets/css/core.min.css.map +1 -1
  9. package/assets/css/style.min.css +1 -1
  10. package/assets/css/style.min.css.map +1 -1
  11. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  12. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  13. package/assets/js/components/card/card.component.min.js +1 -1
  14. package/assets/js/components/fileupload/fileupload.component.js +44 -0
  15. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  16. package/assets/js/components/header/header.component.min.js +1 -1
  17. package/assets/js/components/notification/notification.component.min.js +1 -1
  18. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  19. package/assets/js/components/table/table.component.min.js +4 -4
  20. package/assets/js/components/table/table.component.min.js.map +1 -1
  21. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  22. package/assets/js/dynamic.min.js +5 -5
  23. package/assets/js/dynamic.min.js.map +1 -1
  24. package/assets/js/modules/data-layer.js +32 -34
  25. package/assets/js/modules/dialogs.js +1 -1
  26. package/assets/js/modules/fileupload.js +70 -0
  27. package/assets/js/modules/inputs.js +10 -0
  28. package/assets/js/modules/table.js +0 -1
  29. package/assets/js/scripts.bundle.js +20 -20
  30. package/assets/js/scripts.bundle.js.map +1 -1
  31. package/assets/js/scripts.bundle.min.js +2 -2
  32. package/assets/js/scripts.bundle.min.js.map +1 -1
  33. package/assets/sass/_forms.scss +1 -1
  34. package/assets/sass/components/dialog.scss +3 -1
  35. package/assets/sass/components/fileupload.scss +156 -0
  36. package/assets/sass/components/forms.scss +98 -135
  37. package/assets/ts/components/fileupload/README.md +13 -0
  38. package/assets/ts/components/fileupload/fileupload.component.ts +55 -0
  39. package/assets/ts/modules/data-layer.md +72 -0
  40. package/assets/ts/modules/data-layer.ts +37 -41
  41. package/assets/ts/modules/dialogs.ts +1 -1
  42. package/assets/ts/modules/fileupload.ts +106 -0
  43. package/assets/ts/modules/inputs.ts +14 -0
  44. package/assets/ts/modules/table.ts +1 -1
  45. package/assets/ts/tests/data-layer.spec.js +69 -0
  46. package/dist/components.es.js +784 -748
  47. package/dist/components.umd.js +40 -25
  48. package/package.json +1 -1
  49. package/src/components/FileUpload/FileUpload.vue +29 -0
  50. package/src/components/FileUpload/README.md +13 -0
  51. package/src/index.js +1 -1
  52. package/src/components/FileUploads/FileUploads.vue +0 -48
  53. package/src/components/FileUploads/README.md +0 -24
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <iam-fileupload><slot></slot></iam-fileupload>
3
+ </template>
4
+
5
+ <script>
6
+ import iamFileupload from '../../../assets/js/components/fileupload/fileupload.component.js'
7
+
8
+ export default {
9
+ name: 'FileUpload',
10
+ props: {
11
+ maxfilesize: {
12
+ type: Number,
13
+ required: false
14
+ },
15
+ maxfiles: {
16
+ type: Number,
17
+ required: false
18
+ }
19
+ },
20
+ mounted(){
21
+
22
+ this.$nextTick(function () {
23
+
24
+ if (!window.customElements.get('iam-fileupload'))
25
+ window.customElements.define('iam-fileupload', iamFileupload);
26
+ })
27
+ }
28
+ }
29
+ </script>
@@ -0,0 +1,13 @@
1
+ ```
2
+ <FileUpload data-maxsize="500"><input type="file" name="files[]" multiple="multiple" accept=".pdf, .csv, .jpg, .png" /></FileUpload>
3
+ ```
4
+
5
+ **Properties**
6
+
7
+ | Option | Type | Default Value | Description |
8
+ | ------ | ---- | ------------- | ----------- |
9
+ | data-maxsize | Int | - | Blocks files from being added that is larger than the max size given in kb's |
10
+
11
+ **Class modifiers**
12
+
13
+ - Adding a class of **.fileupload--drag-drop** will add a droppable area for the user to drag files into and drop.
package/src/index.js CHANGED
@@ -3,7 +3,7 @@ export { default as Logo } from './foundations/Logo/Logo.vue'
3
3
  // Elements
4
4
  export { default as Table } from './components/Table/Table.vue'
5
5
  export { default as Input } from './components/Input/Input.vue'
6
- export { default as FileUploads } from './components/FileUploads/FileUploads.vue'
6
+ export { default as FileUpload } from './components/FileUpload/FileUpload.vue'
7
7
  // Components
8
8
  export { default as Accordion } from './components/Accordion/Accordion.vue'
9
9
  export { default as AccordionItem } from './components/Accordion/AccordionItem.vue'
@@ -1,48 +0,0 @@
1
- <template>
2
- <div class="multiple-file-uploads mb-4">
3
-
4
- <div class="row">
5
- <div :class="`${inputcolclass ? inputcolclass : 'col-12 col-sm-4'}`">
6
- <Input type="file" :id="id" :name="`${id}[]`" label="Add new file" labelclass="d-none" class="form-control-inline col" required :data-filesize="maxfilesize"></Input>
7
- </div>
8
- <div class="col-12 col-md me-auto">
9
- <slot></slot>
10
- </div>
11
- <div class="col mw-fit-content">
12
- <button type="button" class="btn btn-tertiary me-0" data-delete>Delete</button>
13
- </div>
14
- </div>
15
-
16
- <button type="button" class="btn btn-secondary me-0" data-add :data-maxfiles="maxfiles">+ Add file</button>
17
-
18
- </div>
19
- </template>
20
-
21
- <script>
22
- import Input from '../../components/Input/Input.vue'
23
-
24
- export default {
25
- components: {
26
- Input
27
- },
28
- name: 'FileUploads',
29
- props: {
30
- id: {
31
- type: String,
32
- required: true
33
- },
34
- inputcolclass: {
35
- type: String,
36
- required: false
37
- },
38
- maxfilesize: {
39
- type: Number,
40
- required: false
41
- },
42
- maxfiles: {
43
- type: Number,
44
- required: false
45
- }
46
- }
47
- }
48
- </script>
@@ -1,24 +0,0 @@
1
- ### Usage
2
-
3
- ```
4
- <Card :title="value.title" :content="value.content" :link="value.link"></Card>
5
- ```
6
-
7
- ### Properties
8
-
9
- | Option | Type | Default Value | Description |
10
- | ------ | ---- | ------------- | ----------- |
11
- | title | String | - | Used for the card heading |
12
- | titleclass | String | h2 | Update the class of the title from being a h2 |
13
- | subtitle | String | - | Optional sub heading |
14
- | content | HTML | - | Card content |
15
- | link | String | - | Card link |
16
- | type | String | - | Change the type of card (simple,quick)|
17
- | btntype | String | secondary | Change the type of button at the bottom of the card (primary,secondary,tertairy, link) |
18
- | ctatext | String | Find out more | Update the cta text within the button at the bottom of the card |
19
- | details | Object | - | Build up the card content with pre-defined bits of data |
20
- | - detail.tags | Array of strings | - | Add tags above the card header |
21
- | - detail.guideprice | String | - | Property guide price |
22
- | - detail.auctiontime | String | - | Auction time left |
23
- | - detail.readtime | String | - | How long it will take to read |
24
- | - detail.status | String | - | Display a status badge at the top of the card |