@shoprenter/sr-styleguide 1.0.0 → 1.2.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 (77) hide show
  1. package/README.md +138 -18
  2. package/dist/demo/src/demo_bootstrap_js.css +26 -26
  3. package/dist/demo/src/demo_bootstrap_js.js +1 -1
  4. package/dist/demo/src/index.html +1 -1
  5. package/dist/stylesheet/sr-styleguide.css +6 -6
  6. package/package.json +4 -5
  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 +46 -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/SrCheckbox/SrCheckbox.vue +13 -1
  19. package/src/components/inputs/SrCheckbox/tests/SrCheckbox.spec.js +39 -0
  20. package/src/components/inputs/SrDatePicker/SrDatePicker.vue +4 -1
  21. package/src/components/inputs/SrMultiCheckbox/BaseMultiCheckbox.vue +43 -0
  22. package/src/components/inputs/SrMultiCheckbox/SrMultiCheckbox.vue +10 -55
  23. package/src/components/inputs/SrMultiCheckbox/SrSimpleMultiCheckbox.vue +52 -0
  24. package/src/components/inputs/SrMultiCheckbox/mixin/SrMultiCheckboxMixin.js +26 -0
  25. package/src/components/inputs/SrMultiCheckbox/tests/SrMultiCheckbox.spec.js +49 -43
  26. package/src/components/inputs/SrMultiCheckbox/tests/SrSimpleMultiCheckbox.spec.js +104 -0
  27. package/src/components/inputs/SrRadio/SrRadioGroup.vue +7 -1
  28. package/src/components/inputs/SrRadio/tests/SrRadioGroup.spec.js +38 -0
  29. package/src/components/inputs/SrSelect/SrSelect.vue +8 -1
  30. package/src/components/inputs/SrSwitch/SrSwitch.vue +0 -1
  31. package/src/components/inputs/SrTextarea/SrTextarea.vue +20 -0
  32. package/src/components/layouts/slim/SrSlimHeading/SrSlimHeading.scss +9 -0
  33. package/src/components/layouts/slim/SrSlimHeading/SrSlimHeading.vue +2 -2
  34. package/src/components/layouts/slim/SrSlimLayout/SrSlimLayout.scss +12 -0
  35. package/src/components/layouts/slim/SrSlimLayout/SrSlimLayout.vue +8 -0
  36. package/src/components/layouts/standard/SrStandardLayout/SrStandardLayout.scss +4 -0
  37. package/src/components/layouts/standard/SrStandardLayout/SrStandardLayout.vue +21 -0
  38. package/src/components/pagination/SrPagination/SrPagination.scss +36 -0
  39. package/src/components/tables/SrSimpleTableFilterTd/SrSimpleTableFilterTd.vue +27 -0
  40. package/src/components/tabs/SrTabsItems/SrTabsItems.vue +1 -1
  41. package/src/plugins/component-library/index.js +4 -2
  42. package/src/plugins/component-library/library/SrBreadcrumbs.js +7 -0
  43. package/src/plugins/component-library/library/{SrFormRow.js → SrForm.js} +2 -0
  44. package/src/plugins/component-library/library/SrInputs.js +4 -0
  45. package/src/plugins/component-library/library/SrLayouts.js +4 -0
  46. package/src/plugins/component-library/library/SrPagination.js +1 -1
  47. package/src/plugins/component-library/library/SrTables.js +2 -1
  48. package/src/plugins/vuetify/preset/icons/index.js +4 -0
  49. package/src/plugins/vuetify/preset/locale/sr-en.js +2 -1
  50. package/src/plugins/vuetify/preset/locale/sr-hu.js +2 -1
  51. package/src/plugins/vuetify/preset/style/scss/_admin-menu.scss +0 -14
  52. package/src/plugins/vuetify/preset/style/scss/_components.scss +0 -12
  53. package/src/plugins/vuetify/preset/style/scss/_new-style.scss +0 -7
  54. package/src/plugins/vuetify/preset/style/scss/components/_input.scss +1 -32
  55. package/src/plugins/vuetify/preset/style/scss/components/_select.scss +0 -61
  56. package/src/plugins/vuetify/preset/style/scss/components/_table.scss +5 -39
  57. package/src/plugins/vuetify/preset/variables.scss +2 -2
  58. package/src/plugins/vuetify/preset/style/scss/_layout.scss +0 -140
  59. package/src/plugins/vuetify/preset/style/scss/_pages.scss +0 -5
  60. package/src/plugins/vuetify/preset/style/scss/_utility.scss +0 -14
  61. package/src/plugins/vuetify/preset/style/scss/components/_actionbar.scss +0 -31
  62. package/src/plugins/vuetify/preset/style/scss/components/_block.scss +0 -12
  63. package/src/plugins/vuetify/preset/style/scss/components/_breadcrumb.scss +0 -37
  64. package/src/plugins/vuetify/preset/style/scss/components/_copy-to-clipboard.scss +0 -16
  65. package/src/plugins/vuetify/preset/style/scss/components/_dialog.scss +0 -61
  66. package/src/plugins/vuetify/preset/style/scss/components/_icons.scss +0 -21
  67. package/src/plugins/vuetify/preset/style/scss/components/_pagination.scss +0 -36
  68. package/src/plugins/vuetify/preset/style/scss/components/_quantity-range-input.scss +0 -93
  69. package/src/plugins/vuetify/preset/style/scss/components/_select-all-plus.scss +0 -5
  70. package/src/plugins/vuetify/preset/style/scss/components/_simple-card.scss +0 -97
  71. package/src/plugins/vuetify/preset/style/scss/components/_sticky-header.scss +0 -41
  72. package/src/plugins/vuetify/preset/style/scss/pages/_apps.scss +0 -99
  73. package/src/plugins/vuetify/preset/style/scss/pages/_campaign.scss +0 -30
  74. package/src/plugins/vuetify/preset/style/scss/pages/_order-list.scss +0 -498
  75. package/src/plugins/vuetify/preset/style/scss/pages/_order-preview.scss +0 -83
  76. package/src/plugins/vuetify/preset/style/scss/pages/_product-list.scss +0 -286
  77. /package/src/components/pagination/{SrPagination.vue → SrPagination/SrPagination.vue} +0 -0
@@ -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
  }
@@ -8,17 +8,3 @@
8
8
  font-size: $font-size-root;
9
9
  }
10
10
 
11
- /* new admin layout design */
12
-
13
- /* src/Aurora/AdminBundle/Resources/front-end/adminMenu/assets/scss/layout/_layout.scss */
14
-
15
- .page-layout--slim {
16
- margin: 0 auto 70px auto;
17
- padding: 0 30px;
18
- @include media-breakpoint-up(sm) {
19
- max-width: $container-slim-width-sm;
20
- }
21
- @include media-breakpoint-up(md) {
22
- max-width: $container-slim-width;
23
- }
24
- }
@@ -1,19 +1,7 @@
1
- @import "./components/actionbar";
2
- @import "./components/block";
3
- @import "./components/breadcrumb";
4
- @import "./components/buttons";
5
1
  @import "./components/input";
6
- @import "./components/pagination";
7
2
  @import "./components/select";
8
3
  @import "./components/table";
9
4
  @import "./components/cards";
10
- @import "./components/simple-card";
11
5
  @import "./components/buttons";
12
- @import "./components/copy-to-clipboard";
13
- @import "./components/dialog";
14
- @import "./components/icons";
15
6
  @import "./components/input";
16
- @import "./components/quantity-range-input";
17
- @import "./components/sticky-header";
18
7
  @import "./components/tooltip";
19
- @import "./components/select-all-plus";
@@ -1,13 +1,6 @@
1
1
  .new-style {
2
2
  @import "./scaffolding";
3
3
  @import "./components";
4
- @import "./layout";
5
- @import "./pages";
6
- @import "./utility";
7
-
8
- .admin-filter-box {
9
- margin-bottom: 18px;
10
- }
11
4
 
12
5
  .v-btn--is-elevated.primary:not([disabled]) {
13
6
  box-shadow: 0 3px 10px rgba(110, 180, 0, 0.3) !important;
@@ -158,37 +158,6 @@
158
158
  }
159
159
  }
160
160
 
161
- .admin-order-table__body-row:hover .select-save__select,
162
- .admin-product-table__body-row:hover .input-save__input,
163
- .admin-product-table__body-row:hover .select-save__select {
164
- border: 1px solid #cccccc;
165
- background: #fff;
166
- }
167
-
168
- .admin-product-table__model,
169
- .admin-product-table__model > div {
170
- width: 100%;
171
- }
172
-
173
- .admin-product-table__model > div input {
174
- max-width: 100%;
175
- }
176
-
177
- @include media-breakpoint-down(sm) {
178
- .admin-order-table__body-row .select-save__select,
179
- .admin-product-table__body-row .input-save__input,
180
- .admin-product-table__body-row .select-save__select {
181
- border: 1px solid #cccccc;
182
- background: #fff;
183
- max-width: 100%;
184
- width: 100%;
185
- }
186
-
187
- .admin-order-table__body-row .select-save__select,
188
- .admin-product-table__body-row .select-save__select {
189
- min-width: 120px;
190
- }
191
- }
192
161
  .v-label {
193
162
  font-size: 12px;
194
163
  margin: unset;
@@ -196,4 +165,4 @@
196
165
 
197
166
  .v-input.v-input--selection-controls {
198
167
  margin-top: 0;
199
- }
168
+ }
@@ -2,58 +2,6 @@
2
2
  margin: 5px 4px 5px 0;
3
3
  }
4
4
 
5
- .select-save {
6
- position: relative;
7
-
8
- .select-arrow {
9
- position: absolute;
10
- right: 20px;
11
- top: 0;
12
- width: 15px;
13
- bottom: 0;
14
- display: flex;
15
- align-items: center;
16
- pointer-events: none;
17
- color: #546A79;
18
-
19
- .v-icon {
20
- margin: 0;
21
- font-size: 14px;
22
- }
23
- }
24
-
25
- &__loading-container {
26
- min-width: 14px;
27
- }
28
- &__select {
29
- border: 1px solid transparent;
30
- background-color: transparent;
31
- box-shadow: unset;
32
- border-radius: 0;
33
- appearance: none;
34
- padding: 4px 25px 4px 10px;
35
-
36
- &:hover {
37
- border: 1px solid $input-hover-border-color;
38
- }
39
-
40
- &:focus {
41
- border: 1px solid $input-focus-border-color;
42
- background: white;
43
- outline: 0;
44
- }
45
- }
46
- &__option {
47
- font-size: 13px;
48
- padding: 3px;
49
-
50
- &.active {
51
- color: var(--sr-primary);
52
- background-color: #f2f8e7;
53
- }
54
- }
55
- }
56
-
57
5
  .v-menu__content {
58
6
  max-width: 300px;
59
7
  box-shadow: 0 3px 10px rgba(162, 162, 162, 0.25);
@@ -81,12 +29,3 @@
81
29
  white-space: normal;
82
30
  }
83
31
 
84
- @include media-breakpoint-only(md) {
85
- .admin-filter-box .v-select__selections input {
86
- padding: 0;
87
- height: 0;
88
- }
89
- .admin-filter-box .v-select__selections > span {
90
- line-height: 14px;
91
- }
92
- }
@@ -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
  }
@@ -53,42 +54,7 @@
53
54
  }
54
55
  }
55
56
 
56
- .admin-data-table__actions {
57
- display: flex;
58
- width: 100%;
59
- justify-content: center;
60
- }
61
-
62
- .admin-bulk-actions-table__bulk-actions,
63
- .admin-bulk-actions-table__bulk-checkbox {
64
- display: flex;
65
- align-items: center;
66
- }
67
-
68
- .admin-bulk-actions-table__bulk-checkbox {
69
- padding: $cell-padding !important;
70
- }
71
-
72
- .admin-data-table__head-row {
73
- border-radius: 3px;
74
- }
75
-
76
- .admin-bulk-actions-table-head {
77
- th {
78
- position: sticky;
79
- position: -webkit-sticky;
80
- top: 0;
81
- z-index: 8;
82
- }
83
- }
84
-
85
- .admin-table-sticky-head {
86
- margin-bottom: 10px;
87
- display: block;
88
- }
89
-
90
- .admin-table-sticky-head.sticky {
91
- position: fixed;
92
- z-index: 197;
93
- top: var(--header-height);
57
+ .sr-simple-table-filter-td {
58
+ text-align: center;
59
+ vertical-align: middle;
94
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,140 +0,0 @@
1
- #content {
2
- padding: 0; // remove padding outside vue application
3
- }
4
-
5
- .admin-container {
6
- --container-padding: 0;
7
- padding: 0 var(--container-padding);
8
-
9
- @include media-breakpoint-up(sm) {
10
- --container-padding: 20px;
11
- }
12
-
13
- @include media-breakpoint-up(md) {
14
- --container-padding: 30px;
15
- }
16
-
17
- @include media-breakpoint-up(lg) {
18
- --container-padding: 40px;
19
- }
20
-
21
- @media screen and (min-width: $container-main-breakpoint) {
22
- max-width: $container-main-width;
23
- --container-padding: 0;
24
- }
25
- }
26
-
27
- .admin-page-cards {
28
- @include media-breakpoint-down(xs) {
29
- margin-left: 20px;
30
- margin-right: 20px;
31
- }
32
- }
33
-
34
- .admin-page-header {
35
- @include media-breakpoint-down(xs) {
36
- margin-left: 20px;
37
- margin-right: 20px;
38
- }
39
-
40
- .admin-page-header-title {
41
- display: flex;
42
- background: transparent;
43
- flex-direction: column;
44
- margin-bottom: 20px;
45
-
46
- @include media-breakpoint-up(sm) {
47
- flex-direction: row;
48
- justify-content: space-between;
49
- margin-top: 50px;
50
- }
51
-
52
- h1 {
53
- margin: 0;
54
- color: var(--sr-black);
55
-
56
- svg {
57
- display: none;
58
- }
59
- }
60
- }
61
-
62
- @media screen and (min-width: 520px) {
63
- &.sticky-head-active {
64
- position: fixed;
65
- width: calc(100% - var(--header-height));
66
- margin: 0;
67
- top: 0;
68
- display: flex;
69
- left: var(--header-height);
70
- z-index: 201 !important;
71
- height: var(--header-height);
72
- background-color: var(--sr-black);
73
- padding: 0 var(--container-padding);
74
- align-items: center;
75
- color: #fff;
76
-
77
- .admin-page-header-title {
78
- margin: 0;
79
- width: 100%;
80
-
81
- h1 {
82
- color: #fff;
83
- font-size: 18px;
84
- }
85
- }
86
-
87
- .admin-breadcrumb-container,
88
- .admin-page-header-head,
89
- .admin-page-header-foot {
90
- display: none;
91
- }
92
- }
93
- }
94
-
95
- @include media-breakpoint-up(md) {
96
- &.sticky-head-active {
97
- width: calc(100% - var(--sidebar-width));
98
- left: var(--sidebar-width);
99
- }
100
- }
101
-
102
- @media screen and (min-width: $container-main-breakpoint) {
103
- &.sticky-head-active {
104
- padding: 0 20px;
105
- }
106
- }
107
- }
108
-
109
- .admin-page-header-content {
110
- display: flex;
111
- align-items: center;
112
-
113
- @include media-breakpoint-down(sm) {
114
- flex-wrap: wrap;
115
-
116
- .v-toolbar__items {
117
- width: 100%;
118
- margin-top: 10px;
119
- }
120
-
121
- .v-toolbar__content {
122
- height: auto !important;
123
- }
124
- }
125
- }
126
-
127
- .admin-home-block {
128
- margin: 65px 0;
129
- &:first-child {
130
- margin-top: 15px;
131
- }
132
-
133
- &__header {
134
- background-color: var(--sr-bg-grey) !important;
135
- margin-bottom: 15px;
136
- .v-toolbar__content {
137
- padding: 0;
138
- }
139
- }
140
- }
@@ -1,5 +0,0 @@
1
- @import "./pages/order-list";
2
- @import "./pages/product-list";
3
- @import "./pages/order-preview";
4
- @import "./pages/campaign";
5
- @import "./pages/apps";
@@ -1,14 +0,0 @@
1
- .cursor-pointer {
2
- cursor: pointer;
3
- }
4
- .product-status {
5
- &--enabled {
6
- color: var(--sr-success);
7
- }
8
- &--disabled {
9
- color: var(--v-error-base);
10
- }
11
- &--discontinued {
12
- color: var(--sr-link-grey);
13
- }
14
- }
@@ -1,31 +0,0 @@
1
- .action-bar-wrapper {
2
- display: flex;
3
- flex-direction: row;
4
- width: 100%;
5
-
6
- .items-selected-text {
7
- display: flex;
8
- align-items: center;
9
- width: auto;
10
- font-size: 13px;
11
- line-height: 1.2em;
12
- margin-right: 30px;
13
- text-transform: none;
14
- }
15
- }
16
-
17
- .admin-order-table__head-row.bulk-action {
18
-
19
- @include media-breakpoint-down(xs) {
20
- .actions .primary {
21
- word-break: break-all;
22
- min-width: 0;
23
- white-space: normal;
24
-
25
- .v-btn__content {
26
- flex: 1 1 auto;
27
- }
28
- }
29
- }
30
-
31
- }
@@ -1,12 +0,0 @@
1
- .admin-block {
2
- background: #fff;
3
- border-radius: 3px;
4
- padding: 20px;
5
- margin-bottom: 40px;
6
-
7
- &--dense {
8
- margin-bottom: 10px;
9
- padding-top: 13px;
10
- padding-bottom: 13px;
11
- }
12
- }
@@ -1,37 +0,0 @@
1
- .admin-breadcrumb-container {
2
- display: flex;
3
- justify-content: space-between;
4
- align-items: center;
5
-
6
- @include media-breakpoint-down(xs) {
7
- display: none;
8
- }
9
- }
10
-
11
- .admin-breadcrumbs {
12
- padding: 0;
13
-
14
- .v-breadcrumbs {
15
- &__item {
16
- transition: none;
17
- color: var(--sr-link-grey) !important;
18
-
19
- &:hover {
20
- color: var(--sr-dark-grey) !important;
21
- }
22
-
23
- .v-icon {
24
- margin-right: 5px;
25
- color: inherit;
26
- }
27
- }
28
-
29
- &__divider {
30
- padding: 0 5px;
31
- }
32
- }
33
-
34
- li:last-child {
35
- font-weight: 500;
36
- }
37
- }
@@ -1,16 +0,0 @@
1
- @include media-breakpoint-up(md) {
2
- .admin-copy-box svg.v-icon {
3
- display: none;
4
- }
5
- .admin-copy-box:hover svg.v-icon {
6
- display: inline-block;
7
- }
8
- }
9
-
10
- .v-application .admin-copy-box svg.v-icon {
11
- color: var(--sr-link-grey) !important;
12
- }
13
-
14
- .copy-clipboard-icon {
15
- position: absolute;
16
- }
@@ -1,61 +0,0 @@
1
- .sr-dialog {
2
- &.v-dialog {
3
- & > .v-card {
4
- & > .v-card__title {
5
- padding: 28px 30px 20px 30px !important;
6
-
7
- .sr-dialog-title {
8
- font-weight: normal;
9
- color: $dialog-title-color;
10
- word-break: normal;
11
- }
12
- }
13
-
14
- .v-card__actions {
15
- padding: 0 30px 30px 30px;
16
- }
17
-
18
- & > .v-card__text {
19
- padding-left: 30px;
20
- padding-right: 30px;
21
- }
22
-
23
- &.product-picker {
24
- & > .v-card__text {
25
- padding: 0;
26
- background: var(--sr-bg-grey);
27
- font-size: 13px;
28
-
29
- .v-list {
30
- background: transparent !important;
31
- padding: 0;
32
- }
33
-
34
- .v-list-item {
35
- &.active {
36
- background-color: #ECEEEF;
37
- }
38
- }
39
- }
40
-
41
- & > .v-card__actions {
42
- padding-top: 15px;
43
- }
44
-
45
- & > .v-card__title {
46
- padding-bottom: 30px !important;
47
- }
48
- }
49
- }
50
- }
51
-
52
- .admin-dialog-close-button {
53
- position: absolute;
54
- top: 8px;
55
- right: 6px;
56
-
57
- .v-icon.v-icon {
58
- font-size: 18px;
59
- }
60
- }
61
- }
@@ -1,21 +0,0 @@
1
- .sr-admin-icon-link,
2
- .sr-admin-icon-btn {
3
- display: inline-flex;
4
- justify-content: center;
5
- align-items: center;
6
- padding: 6px;
7
- margin: 0;
8
- border: 0;
9
- color: var(--sr-primary);
10
- outline: none;
11
-
12
- &:focus,
13
- &:active,
14
- &:hover {
15
- color: var(--sr-hover-green);
16
-
17
- svg {
18
- outline: none;
19
- }
20
- }
21
- }
@@ -1,36 +0,0 @@
1
- .admin-pagination .row {
2
- flex-direction: row-reverse;
3
- align-items: center;
4
- }
5
-
6
- .admin-pagination-results {
7
- font-size: 13px;
8
- }
9
-
10
- .admin-pagination-results__label {
11
- display: none;
12
- }
13
-
14
- .admin-pagination-pages {
15
- .v-pagination {
16
- justify-content: flex-end;
17
- }
18
-
19
- .v-pagination__navigation,
20
- .v-pagination__item--active,
21
- .v-pagination__item {
22
- background: transparent !important;
23
- box-shadow: none;
24
- border-radius: 0;
25
- outline: none;
26
- }
27
-
28
- .v-pagination__item {
29
- color: var(--sr-dark-grey) !important;
30
- }
31
-
32
- .v-pagination__item--active {
33
- color: var(--sr-black) !important;
34
- font-weight: bold;
35
- }
36
- }