@shoprenter/sr-styleguide 1.1.0 → 1.3.0

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 (49) hide show
  1. package/README.md +146 -16
  2. package/dist/demo/src/demo_bootstrap_js.css +26 -28
  3. package/dist/demo/src/demo_bootstrap_js.js +1 -1
  4. package/dist/{demo/src/index.html → index.html} +1 -1
  5. package/dist/stylesheet/sr-styleguide.css +6 -6
  6. package/package.json +1 -2
  7. package/src/components/app-containers/SrModule/SrModule.scss +1 -1
  8. package/src/components/app-containers/SrModule/SrModule.vue +19 -8
  9. package/src/components/app-containers/SrPage/SrPage.vue +19 -16
  10. package/src/components/app-containers/scope.js +12 -0
  11. package/src/components/breadcrumbs/SrBreadcrumbs/SrBreadcrumbs.scss +47 -0
  12. package/src/components/breadcrumbs/SrBreadcrumbs/SrBreadcrumbs.vue +45 -0
  13. package/src/components/breadcrumbs/tests/SrBreadcrumbs.spec.js +109 -0
  14. package/src/components/form/SrFormDivider/SrFormDivider.scss +4 -0
  15. package/src/components/form/SrFormDivider/SrFormDivider.vue +9 -0
  16. package/src/components/form/SrFormRow/SrFormRow.scss +21 -21
  17. package/src/components/form/SrFormRow/SrFormRow.vue +3 -2
  18. package/src/components/inputs/SrDatePicker/SrDatePicker.vue +4 -1
  19. package/src/components/inputs/SrSelect/SrSelect.vue +8 -1
  20. package/src/components/inputs/SrSwitch/SrSwitch.vue +0 -1
  21. package/src/components/inputs/SrTextarea/SrTextarea.vue +20 -0
  22. package/src/components/layouts/slim/SrSlimHeading/SrSlimHeading.scss +9 -0
  23. package/src/components/layouts/slim/SrSlimHeading/SrSlimHeading.vue +2 -2
  24. package/src/components/layouts/slim/SrSlimLayout/SrSlimLayout.vue +8 -0
  25. package/src/components/layouts/standard/SrStandardLayout/SrStandardLayout.scss +4 -0
  26. package/src/components/layouts/standard/SrStandardLayout/SrStandardLayout.vue +21 -0
  27. package/src/components/progress-indicators/SrFinitePreloader/SrFinitePreloader.vue +26 -0
  28. package/src/components/progress-indicators/SrFiniteProgressBar/SrFiniteProgressBar.scss +3 -0
  29. package/src/components/progress-indicators/SrFiniteProgressBar/SrFiniteProgressBar.vue +29 -0
  30. package/src/components/progress-indicators/SrInfinitePreloader/SrInfinitePreloader.vue +22 -0
  31. package/src/components/tables/SrSimpleTableFilterTd/SrSimpleTableFilterTd.vue +27 -0
  32. package/src/components/tabs/SrTabsItems/SrTabsItems.vue +1 -1
  33. package/src/plugins/component-library/index.js +6 -4
  34. package/src/plugins/component-library/library/SrBreadcrumbs.js +7 -0
  35. package/src/plugins/component-library/library/{SrFormRow.js → SrForm.js} +2 -0
  36. package/src/plugins/component-library/library/SrInputs.js +2 -0
  37. package/src/plugins/component-library/library/SrLayouts.js +4 -0
  38. package/src/plugins/component-library/library/SrProgressIndicators.js +17 -0
  39. package/src/plugins/component-library/library/SrTables.js +2 -1
  40. package/src/plugins/vuetify/preset/icons/index.js +4 -0
  41. package/src/plugins/vuetify/preset/locale/sr-en.js +2 -1
  42. package/src/plugins/vuetify/preset/locale/sr-hu.js +2 -1
  43. package/src/plugins/vuetify/preset/style/scss/components/_table.scss +7 -1
  44. package/src/plugins/vuetify/preset/variables.scss +2 -2
  45. package/src/plugins/component-library/library/SrMilestoneIndicators.js +0 -11
  46. /package/src/components/{milestone-indicators → progress-indicators}/multi-step-progress-bar/SrMultiStepProgressBar/SrMultiStepProgressBar.scss +0 -0
  47. /package/src/components/{milestone-indicators → progress-indicators}/multi-step-progress-bar/SrMultiStepProgressBar/SrMultiStepProgressBar.vue +0 -0
  48. /package/src/components/{milestone-indicators → progress-indicators}/multi-step-progress-bar/SrProgressBarStep/SrProgressBarStep.scss +0 -0
  49. /package/src/components/{milestone-indicators → progress-indicators}/multi-step-progress-bar/SrProgressBarStep/SrProgressBarStep.vue +0 -0
@@ -1,27 +1,29 @@
1
1
  import SrIcons from './library/SrIcons'
2
2
  import SrButtons from './library/SrButtons'
3
3
  import SrInputs from './library/SrInputs'
4
- import SrFormRow from './library/SrFormRow'
4
+ import SrForm from './library/SrForm'
5
5
  import SrLayouts from './library/SrLayouts'
6
6
  import SrTables from './library/SrTables'
7
7
  import SrPagination from './library/SrPagination'
8
8
  import SrAppContainers from './library/SrAppContainers'
9
9
  import SrAlerts from './library/SrAlerts'
10
- import SrMilestoneIndicators from './library/SrMilestoneIndicators'
10
+ import SrProgressIndicators from './library/SrProgressIndicators'
11
11
  import SrTabs from './library/SrTabs'
12
+ import SrBreadcrumbs from './library/SrBreadcrumbs'
12
13
 
13
14
  export default {
14
15
  install (Vue, options = {}) {
15
16
  Vue.use(SrIcons)
16
17
  Vue.use(SrButtons)
17
18
  Vue.use(SrInputs)
18
- Vue.use(SrFormRow)
19
+ Vue.use(SrForm)
19
20
  Vue.use(SrLayouts)
20
21
  Vue.use(SrTables)
21
22
  Vue.use(SrAlerts)
22
23
  Vue.use(SrPagination)
23
24
  Vue.use(SrAppContainers)
24
- Vue.use(SrMilestoneIndicators)
25
+ Vue.use(SrProgressIndicators)
25
26
  Vue.use(SrTabs)
27
+ Vue.use(SrBreadcrumbs)
26
28
  }
27
29
  }
@@ -0,0 +1,7 @@
1
+ import SrBreadcrumbs from '../../../components/breadcrumbs/SrBreadcrumbs/SrBreadcrumbs.vue'
2
+
3
+ export default {
4
+ install (Vue, options = {}) {
5
+ Vue.component('SrBreadcrumbs', SrBreadcrumbs)
6
+ }
7
+ }
@@ -1,7 +1,9 @@
1
1
  import SrFormRow from '../../../components/form/SrFormRow/SrFormRow.vue'
2
+ import SrFormDivider from '../../../components/form/SrFormDivider/SrFormDivider.vue'
2
3
 
3
4
  export default {
4
5
  install (Vue, options = {}) {
5
6
  Vue.component('SrFormRow', SrFormRow)
7
+ Vue.component('SrFormDivider', SrFormDivider)
6
8
  }
7
9
  }
@@ -8,6 +8,7 @@ import SrRadioGroup from '../../../components/inputs/SrRadio/SrRadioGroup.vue'
8
8
  import SrDatePicker from '../../../components/inputs/SrDatePicker/SrDatePicker.vue'
9
9
  import SrMultiCheckbox from '../../../components/inputs/SrMultiCheckbox/SrMultiCheckbox.vue'
10
10
  import SrSimpleMultiCheckbox from '../../../components/inputs/SrMultiCheckbox/SrSimpleMultiCheckbox.vue'
11
+ import SrTextarea from '../../../components/inputs/SrTextarea/SrTextarea.vue'
11
12
 
12
13
  export default {
13
14
  install (Vue, options = {}) {
@@ -21,5 +22,6 @@ export default {
21
22
  Vue.component('SrRadio', SrRadio)
22
23
  Vue.component('SrRadioGroup', SrRadioGroup)
23
24
  Vue.component('SrDatePicker', SrDatePicker)
25
+ Vue.component('SrTextarea', SrTextarea)
24
26
  }
25
27
  }
@@ -1,11 +1,15 @@
1
1
  import SrSlimLayout from '../../../components/layouts/slim/SrSlimLayout/SrSlimLayout.vue'
2
2
  import SrSlimHeading from '../../../components/layouts/slim/SrSlimHeading/SrSlimHeading.vue'
3
3
  import SrSlimContent from '../../../components/layouts/slim/SrSlimContent/SrSlimContent.vue'
4
+ import SrStandardLayout from '../../../components/layouts/standard/SrStandardLayout/SrStandardLayout.vue'
4
5
 
5
6
  export default {
6
7
  install (Vue, options = {}) {
7
8
  Vue.component('SrSlimLayout', SrSlimLayout)
9
+ Vue.component('SrStandardLayout', SrStandardLayout)
8
10
  Vue.component('SrSlimHeading', SrSlimHeading)
11
+ Vue.component('SrHeading', SrSlimHeading)
9
12
  Vue.component('SrSlimContent', SrSlimContent)
13
+ Vue.component('SrContent', SrSlimContent)
10
14
  }
11
15
  }
@@ -0,0 +1,17 @@
1
+ import SrProgressBarStep
2
+ from '../../../components/progress-indicators/multi-step-progress-bar/SrProgressBarStep/SrProgressBarStep.vue'
3
+ import SrMultiStepProgressBar
4
+ from '../../../components/progress-indicators/multi-step-progress-bar/SrMultiStepProgressBar/SrMultiStepProgressBar.vue'
5
+ import SrInfinitePreloader from '../../../components/progress-indicators/SrInfinitePreloader/SrInfinitePreloader.vue'
6
+ import SrFinitePreloader from '../../../components/progress-indicators/SrFinitePreloader/SrFinitePreloader.vue'
7
+ import SrFiniteProgressBar from '../../../components/progress-indicators/SrFiniteProgressBar/SrFiniteProgressBar.vue'
8
+
9
+ export default {
10
+ install (Vue, options = {}) {
11
+ Vue.component('SrMultiStepProgressBar', SrMultiStepProgressBar)
12
+ Vue.component('SrProgressBarStep', SrProgressBarStep)
13
+ Vue.component('SrInfinitePreloader', SrInfinitePreloader)
14
+ Vue.component('SrFinitePreloader', SrFinitePreloader)
15
+ Vue.component('SrFiniteProgressBar', SrFiniteProgressBar)
16
+ }
17
+ }
@@ -1,7 +1,8 @@
1
1
  import SrSimpleTable from '../../../components/tables/SrSimpleTable/SrSimpleTable.vue'
2
-
2
+ import SrSimpleTableFilterTd from '../../../components/tables/SrSimpleTableFilterTd/SrSimpleTableFilterTd.vue'
3
3
  export default {
4
4
  install (Vue, options = {}) {
5
5
  Vue.component('SrSimpleTable', SrSimpleTable)
6
+ Vue.component('SrSimpleTableFilterTd', SrSimpleTableFilterTd)
6
7
  }
7
8
  }
@@ -34,6 +34,7 @@ import SearchCloseIcon from './components/SearchCloseIcon.vue'
34
34
  import InvoiceStornoIcon from './components/InvoiceStornoIcon.vue'
35
35
  import InvoiceIcon from './components/InvoiceIcon.vue'
36
36
  import NextIcon from './components/NextIcon.vue'
37
+ import EditIcon from './components/EditIcon.vue'
37
38
 
38
39
  export default {
39
40
  iconfont: 'mdi',
@@ -151,6 +152,9 @@ export default {
151
152
  },
152
153
  next: {
153
154
  component: NextIcon
155
+ },
156
+ edit: {
157
+ component: EditIcon
154
158
  }
155
159
  }
156
160
  }
@@ -6,5 +6,6 @@ export default {
6
6
  no: 'No',
7
7
  clearAll: 'Clear all',
8
8
  selectAll: 'Select all',
9
- help: 'Help'
9
+ help: 'Help',
10
+ pleaseSelect: 'Please select'
10
11
  }
@@ -6,5 +6,6 @@ export default {
6
6
  no: 'Nem',
7
7
  clearAll: 'Mindet töröl',
8
8
  selectAll: 'Mindet választ',
9
- help: 'Segítség'
9
+ help: 'Segítség',
10
+ pleaseSelect: 'Kérlek válassz'
10
11
  }
@@ -25,6 +25,7 @@
25
25
  border-bottom: 1px solid #ECEFF1;
26
26
  margin-bottom: 1px;
27
27
 
28
+
28
29
  &.selected:not(.v-data-table__expanded__content),
29
30
  &:hover:not(.v-data-table__expanded__content) {
30
31
  background: var(--sr-bg-grey);
@@ -33,7 +34,7 @@
33
34
  }
34
35
 
35
36
  td {
36
- border: 0 !important;
37
+ border-bottom: thin solid rgba(0, 0, 0, .12) !important;
37
38
  padding: $cell-padding !important;
38
39
  }
39
40
  }
@@ -52,3 +53,8 @@
52
53
  border-top: 0;
53
54
  }
54
55
  }
56
+
57
+ .sr-simple-table-filter-td {
58
+ text-align: center;
59
+ vertical-align: middle;
60
+ }
@@ -257,8 +257,8 @@ $input-focus-border-color: #A7ADAF;
257
257
  $product-checkbox-grid-width: 50px;
258
258
  $sub-color: var(--sr-black);
259
259
  $main-color: black;
260
- $cell-padding: 8px 15px;
260
+ $cell-padding: 15px 15px;
261
261
  $order-edit-product-table-trash-cell-width: 60px;
262
262
  $order-checkbox-grid-width: 50px;
263
263
 
264
-
264
+ $sr-form-row-margin-bottom: 1rem;
@@ -1,11 +0,0 @@
1
- import SrProgressBarStep
2
- from '../../../components/milestone-indicators/multi-step-progress-bar/SrProgressBarStep/SrProgressBarStep.vue'
3
- import SrMultiStepProgressBar
4
- from '../../../components/milestone-indicators/multi-step-progress-bar/SrMultiStepProgressBar/SrMultiStepProgressBar.vue'
5
-
6
- export default {
7
- install (Vue, options = {}) {
8
- Vue.component('SrMultiStepProgressBar', SrMultiStepProgressBar)
9
- Vue.component('SrProgressBarStep', SrProgressBarStep)
10
- }
11
- }