@viur/shop-components 0.0.1-dev.6 → 0.0.1-dev.60

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/.editorconfig +16 -0
  2. package/.github/workflows/npm-publish.yml +42 -0
  3. package/.gitmodules +3 -0
  4. package/LICENSE +21 -0
  5. package/README.md +13 -2
  6. package/package.json +25 -23
  7. package/src/components/ShopCart.vue +512 -0
  8. package/src/components/ShopOrderComplete.vue +73 -0
  9. package/src/components/ShopOrderConfirm.vue +291 -0
  10. package/src/components/ShopOrderStepper.vue +264 -0
  11. package/src/components/ShopUserData.vue +232 -0
  12. package/src/components/cart/CartLeaf.vue +277 -0
  13. package/src/components/cart/CartLeafModel.vue +304 -0
  14. package/src/components/cart/CartNode.vue +25 -0
  15. package/src/components/cart/CartTree.vue +54 -0
  16. package/src/components/cart/CartTreeWrapper.vue +73 -0
  17. package/src/components/cart/CartView.vue +205 -174
  18. package/src/components/cart/Discount.vue +91 -0
  19. package/src/components/lib/utils.js +0 -0
  20. package/src/components/order/OrderSidebar.vue +102 -0
  21. package/src/components/order/item/ItemView.vue +0 -1
  22. package/src/components/{cart → order/process}/ConfirmView.vue +94 -96
  23. package/src/components/order/process/ExampleUsage.vue +79 -66
  24. package/src/components/order/process/OrderTabHeader.vue +10 -1
  25. package/src/components/order/process/SelectPaymentProvider.vue +62 -0
  26. package/src/components/order/process/Shipping.vue +46 -0
  27. package/src/components/ui/ShopSummary.vue +145 -0
  28. package/src/components/ui/generic/ArticleList.vue +222 -0
  29. package/src/components/ui/generic/ExamplePagination.vue +236 -0
  30. package/src/components/ui/generic/ShopPriceFormatter.vue +41 -0
  31. package/src/components/ui/generic/alerts/ShopAlert.vue +19 -0
  32. package/src/components/ui/generic/makeData.js +39 -0
  33. package/src/components/ui/stepper/StepperItem.vue +39 -0
  34. package/src/components/ui/stepper/StepperTab.vue +133 -0
  35. package/src/components/ui/stepper/StepperTrigger.vue +35 -0
  36. package/src/components/ui/userdata/AddForm.vue +125 -0
  37. package/src/components/ui/userdata/AddressBox.vue +117 -0
  38. package/src/components/ui/userdata/BaseLayout.vue +94 -0
  39. package/src/components/ui/userdata/CustomBooleanBone.vue +58 -0
  40. package/src/components/ui/userdata/CustomSelectBone.vue +91 -0
  41. package/src/components/ui/userdata/CustomStringBone.vue +71 -0
  42. package/src/components/ui/userdata/DefaultLayout.vue +126 -0
  43. package/src/components/ui/userdata/SelectAddress.vue +21 -0
  44. package/src/components/ui/userdata/multi/ActionBar.vue +38 -0
  45. package/src/components/ui/userdata/multi/CartSelection.vue +42 -0
  46. package/src/main.js +50 -0
  47. package/src/router/index.js +1 -1
  48. package/src/stores/cart.js +267 -42
  49. package/src/style/ignite/.editorconfig +20 -0
  50. package/src/style/ignite/.github/workflows/ignite.yml +64 -0
  51. package/src/style/ignite/.github/workflows/node.yml +30 -0
  52. package/src/style/ignite/.postcssrc.cjs +25 -0
  53. package/src/style/ignite/CHANGELOG.md +244 -0
  54. package/src/style/ignite/LICENSE +21 -0
  55. package/src/style/ignite/README.md +92 -0
  56. package/src/style/ignite/dist/ignite.css +2019 -0
  57. package/src/style/ignite/dist/ignite.min.css +4 -0
  58. package/src/style/ignite/foundation/basic.css +371 -0
  59. package/src/style/ignite/foundation/color.css +323 -0
  60. package/src/style/ignite/foundation/config.css +188 -0
  61. package/src/style/ignite/foundation/grid.css +78 -0
  62. package/src/style/ignite/foundation/mediaqueries.css +71 -0
  63. package/src/style/ignite/foundation/reset.css +261 -0
  64. package/src/style/ignite/ignite.css +29 -0
  65. package/src/style/ignite/ignite.css.map +1 -0
  66. package/src/style/ignite/package-lock.json +5530 -0
  67. package/src/style/ignite/package.json +58 -0
  68. package/src/style/ignite/shoelace.css +19 -0
  69. package/src/style/ignite/themes/dark.css +12 -0
  70. package/src/style/ignite/themes/light.css +11 -0
  71. package/src/style/ignite/utilities/shoelace.css +537 -0
  72. package/src/style/ignite/utilities/utilities.css +24 -0
  73. package/vite.config.js +53 -0
  74. package/src/components/order/information/UserInfoMulti.vue +0 -427
  75. package/src/components/order/information/UserInformation.vue +0 -332
  76. package/src/components/order/process/OrderComplete.vue +0 -41
  77. package/src/components/order/process/OrderView.vue +0 -210
@@ -0,0 +1,244 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ## [5.1.x]
5
+
6
+ ### Changed
7
+ - Change some custom properties in shoelace.css
8
+
9
+ ### Added
10
+ - **NEW** Add a versatile grid implementation based on Russel Bishop's Container Units and Tylor Sticka's Breaking Out Layout
11
+ - Add shoelace.css to npm package
12
+
13
+ ## [5.0.2] - 2024-03-08
14
+
15
+ ViUR Ignite 5.0.x is a streamlined PostCSS boilerplate. Many LESS based features have been removed.
16
+ It is recommended to use ViUR Ignite 5.0.x in combination with ViUR Shoelace.
17
+
18
+ ### Changed
19
+ - **BREAKING** change LESS to PostCSS
20
+ - **BREAKING** change variables to custom properties
21
+ - LICENSE is now MIT
22
+
23
+ ### Added
24
+ - **NEW** support for dark/light mode
25
+ - Better integration with Shoelace
26
+
27
+ ### Remove
28
+ - **BREAKING** remove most generic elements (box, burger, button, icon, message, table, popout, popup)
29
+ - **BREAKING** remove mixins (basicinput, border, inputvalidation, order, shadow, svg, zindex)
30
+
31
+ ## [4.1.1] - 2024-03-08
32
+ This is the last version of LESS based Ignite with minor improvements.
33
+
34
+ ## [4.1.0] - 2022-07-15
35
+
36
+ ### Changed
37
+ - better customization for input validation
38
+ - changes to `.basicInput()`
39
+ - some styling, linting and QoL changes
40
+
41
+ ### Added
42
+ - **NEW** shoelace.less: Viur Shoelace Adapter (ViSA) that uses ViUR Ignite template variables to style and build a Shoelace theme.
43
+ - added support for different colors to `.genericMsg()`
44
+ - added `.is-disabled` to `.genericSwitch()` element styling
45
+ - reintroduced `.is-hidden` classes
46
+
47
+
48
+ ## [4.0.0] - 2021-02-26
49
+
50
+ ### Changed
51
+ - **BREAKING:** changed many variables of basic and generic elements (see deprecated.less for more)
52
+ - **BREAKING:** changed names of generic elements mixins to `.generic{Name}()` – e.g. `.genericBtn()` instead of `.btn()`
53
+ - improved flex behaviour of inputs and selects
54
+ - `.shd` and `.txt-shd` are now normal css elements - no longer mixins and use the _@defaultShadowColor_
55
+ - moved basic input resets to reset.less
56
+ - increased mobile font-size of generic tables.
57
+ - made some (form and button) alignments more intuitive
58
+ - standardised `.basicTickbox()` and `.basicInput()`
59
+ - made `margin-bottom` of `.genericMsg` conditional
60
+ - adjusted screen sizes
61
+ - many small changes and adjustments
62
+ - some styling changes
63
+
64
+ ### Added
65
+ - **BREAKING:** added prefixed variables to all generic elements
66
+ - **BREAKING:** added mixins with parentheses to all generic elements (you need to configure/activate them manually now)
67
+ - added more customisation options to generic elements
68
+ - added `max-width` to inputs and selects
69
+ - added folder overviews (_foundation.less, _generic.less, _mixins.less)
70
+ - added better support for and hooks to inputvalidation.less and basicinput.less
71
+ - added important mobility to `.{bar}-items` (left, center, right modifier).
72
+ - **NEW** popup.less: a popup container that appears above other content onscreen
73
+ - **NEW** popout.less: a popout container that emerges from a location with an arrow pointing at it
74
+ - **NEW** box.less: a visible multi-purpose container (head/body/foot), which can group other elements.
75
+ - **NEW** deprecated.less: deprecated variables are redirected to their successors or a viable default
76
+ - **NEW** `@spaceSmall`, `@spaceMedium`, `@spaceLarge` too better coordinate space between different objects.
77
+ - **NEW** cascading `.{input-groups}` are now supported
78
+ - **NEW** `.{input-group}-items` and their modifiers help to style (cascading) `.{input-groups}`
79
+
80
+ ### Removed
81
+ - removed old browser support from reset.less
82
+ - Let the guards down: removed guards from generic elements and colorize mixins (see deprecated.less for more)
83
+ - removed `white-space: nowrap;` from `.genericLabel()`
84
+
85
+
86
+ ## [3.2.0] - 2020-01-24
87
+
88
+ ### Added
89
+ - XXL support for font size and break points
90
+ - missing color to select
91
+ - missing font-weight to textarea
92
+ - default value to .order
93
+
94
+
95
+ ## [3.1.0] - 2019-05-03
96
+
97
+ ### Changed
98
+ - comments to a consistent notation
99
+ - moved selections from state.less to basic.less
100
+ - moved media queries from state.less to mediaqueries.less
101
+ - burger: new cascade. class `{burger}--to-cross` is now related to the same element with class `{burger}`
102
+ - padding of lists (ul/ol with `.is-list`)
103
+ - table-width is not full-sized (100%) by default
104
+
105
+ ### Fixed
106
+ - several typos and syntax and improved readability
107
+ - color of border-bottom in last row of a table
108
+ - use @input… classes as default values for basicInput-mixin
109
+
110
+ ### Removed
111
+ - NPM Packages and Gulpfile. Ignite should be only a library.
112
+ - camelCase in table class names (btnGroup, optionGroup, -vSmall etc.)
113
+ - removed state.less
114
+
115
+
116
+ ## [3.0.0] - 2018-09-24
117
+
118
+ After more than a year of development Ignite 3.0.0 now serves as a less foundation library.
119
+ Put it into any project for a solid boiler plate.
120
+ Functions and output file size have been reduced to the bare minimum.
121
+ You have to opt-in and initialize functions to use them.
122
+
123
+ ### Added
124
+ - all generic components are now guarded: you have to opt-in
125
+ - border mixin is now used in generic components
126
+
127
+ ### Changed
128
+ - folders have been restructured
129
+ - »tools« renamed to »mixins«
130
+ - gulpfile changed to adopt the new folder structure
131
+ - moved utility functions to the corresponding mixin less files (e.g. .shd() to shadow.less)
132
+ - moved .basicInput() to its own less file
133
+ - more undocumented changes
134
+ - version syntax from "-v" to "--" (&-vSmall is now &--small)
135
+
136
+ ### Removed
137
+ - grid.less has been removed, please use display: grid;
138
+ - util.less has been removed
139
+ - cleaned up some obsolete vendor prefixes
140
+ - camelCase in class names (btnGroup, optionGroup, -vSmall etc.)
141
+
142
+ ## [2.0.0] - 2016-12-19
143
+
144
+ In this major release ViUR Ignite CSS starts using the mobile first paradigm.
145
+
146
+ This means some huge changes to the way media queries are handled.
147
+ With 2.0.0 just use classes with .mq- prefix.
148
+ They are stored within mediaqueries.less and can be stacked (min + max + orientation).
149
+ The gulp task merges all media queries to the end of the compiled css file.
150
+
151
+ Moreover flex layout is no longer the exception but the norm.
152
+
153
+
154
+ ## [1.0.24] - 2016-08-16
155
+ ### Added
156
+ - menu variation .menu-vRow
157
+ - single element spinner: .single-spinner
158
+ - single-spinner support for buttons and menu-links
159
+ - :focus states for inputs
160
+ - .switch (boolean selection)
161
+ - .radio buttons (single selection)
162
+ - .check boxes (multiple selection)
163
+ - .optionGroup to arrange radios and checks
164
+ - .optionGroup-vSelectionList to style radio and check groups as scrollable list
165
+ - NESW positioning for .popup element
166
+ - util.less elements: text transforms, repsosive format, show/hiding class
167
+ - image shapes (rounded, circle, thumbnail)
168
+ - .thumnail
169
+ - cite element to .blockquote
170
+ - kbd (key) element
171
+ - added support for .input-vBlock and .textarea-vBlock next to a label (inline)
172
+ - table.less: no-border variations
173
+ - build task:
174
+ - stylefmt for the correct syntax
175
+ - sourcemap support
176
+ - support for /* ... */ comments in style.css
177
+ - Small and large modifier for .popup element
178
+
179
+ ### Changed
180
+ - using .menuWrapper for mobile menu instead of .sidebar
181
+ - some responsive behaviour of form elements for increased consistency
182
+ - now each element is border-box: box-sizing (before there were some exceptions)
183
+ - .shd, .center (X, Y), .pointer are now native css classes so you can use those as mixin and in html
184
+ - restyled pre/code element
185
+ - grid sizes/offsets (third, quarter)
186
+ - redrawn headlines/sublines
187
+ - .popup-content and .popup-footer now use em instead of rem in font-size
188
+ - .content now uses min-width:0; instead of overflow:hidden;
189
+ - .single-spinner is now smaller
190
+
191
+ ### Deprecated
192
+ - .formActions are deprecated: please use the .bar element instead
193
+
194
+ ### Fixed
195
+ - double scroller
196
+ - namespacing for tabs (styling affected radio buttons)
197
+ - .popup now has a max-height and proper content scrollbars
198
+ - .barGroup-vRight and .barGroup-vCenter now float correctly
199
+
200
+
201
+ ## [1.0.23] - 2016-07-31
202
+ ### Added
203
+ - center-functions [.center(), .centerX().centerY()]
204
+ - key element: a container to present key visuals, claims or slogans
205
+ - bar element: for vertical alignment and horizontal distribution, such as navigation bars or inline forms
206
+ - pagination
207
+ - tab variation: tab-vFullscreen
208
+
209
+ ### Changed
210
+ - monoFont to 'Source Code Pro'
211
+ - .tab label is now called .tab-label to increase the sturdiness
212
+ - .media-image.small is now called .media-image.media-image-vSmall to increase consistency
213
+ - breadcrumb items are now namespaced
214
+
215
+ ### Fixed
216
+ - placeholder.svg is now linked correctly in image.less
217
+ - Tabs work again
218
+
219
+
220
+ ## [1.0.22] - 2016-07-28
221
+ ### Removed
222
+ - removed doc styles
223
+
224
+
225
+ ## [1.0.21] - 2016-07-24
226
+ ### Added
227
+ - several slider styles
228
+
229
+
230
+ ## [1.0.20] - 2016-07-23
231
+ - Changelog started here
232
+
233
+
234
+ [4.1.0]: https://github.com/viur-framework/ignite/compare/4.0.0...4.1.0
235
+ [4.0.0]: https://github.com/viur-framework/ignite/compare/3.2.0...4.0.0
236
+ [3.2.0]: https://github.com/viur-framework/ignite/compare/3.1.0...3.2.0
237
+ [3.1.0]: https://github.com/viur-framework/ignite/compare/3.0.00...3.1.0
238
+ [3.0.0]: https://github.com/viur-framework/ignite/compare/1.0.24...3.0.00
239
+ [2.0.0]: https://github.com/viur-framework/ignite/compare/1.0.24...2.0.00
240
+ [1.0.24]: https://github.com/viur-framework/ignite/compare/1.0.23...1.0.24
241
+ [1.0.23]: https://github.com/viur-framework/ignite/compare/1.0.22...1.0.23
242
+ [1.0.22]: https://github.com/viur-framework/ignite/compare/1.0.21...1.0.22
243
+ [1.0.21]: https://github.com/viur-framework/ignite/compare/1.0.20...1.0.21
244
+ [1.0.20]: https://github.com/viur-framework/ignite/compare/02a8706fb892b091bfa913d3194736a5d5a1ef4a...1.0.20
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ViUR Framework
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,92 @@
1
+ [![NPM Version](https://img.shields.io/npm/v/%40viur%2Fignite)](https://www.npmjs.com/package/@viur/ignite) [![License: MIT](https://img.shields.io/npm/l/@viur/ignite)](https://raw.githubusercontent.com/viur-ignite/ignite/master/LICENSE)
2
+
3
+
4
+ # Ignite
5
+ > ViUR Ignite is a sizzling PostCSS boilerplate
6
+
7
+ Our goal is to create a boilerplate that is sturdy and scalable
8
+ yet lightweight and adaptable to our different customer projects.
9
+ Our approach to CSS is influenced by many modern CSS principles: object oriented, functional and structured.
10
+ It uses the power of PostCSS.
11
+
12
+ For a detailed introduction and examples have a look at [ignite.viur.dev](https://ignite.viur.dev).
13
+
14
+ ## What is this framework for?
15
+ * Ignite is a development toolkit for sturdy HTML and CSS
16
+ * It is a lightweight collection of helpful CSS
17
+ * It is responsive and adaptable
18
+ * It is built with PostCSS
19
+ * It is a solid foundation for [Shoelace](https://github.com/viur-framework/vi-shoelace) and [VUEJS](https://github.com/viur-framework/vi-vue-components)
20
+
21
+ ## Foundation
22
+ * _basic.css_ – styling of all application basics (body, fonts, headlines, lists etc.).
23
+ * _color.css_ – is a collection of color tables.
24
+ * _config.css_ – stores all default variables and constants.
25
+ * _mediaqueries.css_ – is a really simple solution for media queries.
26
+ * _reset.css_ – resets all browsers to the same base state.
27
+
28
+ ## Themes
29
+ * _dark.css_ - is a starting point for a dark theme
30
+ * _light.css_ - is a starting point for a light theme
31
+
32
+ ## Utilities
33
+ * _shoelace.css_ – the ignite shoelace adapter (ISA)
34
+ * _utilities.css_ – useful helpers
35
+
36
+ ---
37
+
38
+ ## Usage
39
+
40
+ **NPM**
41
+
42
+ Use NPM to install Ignite:
43
+ ```bash
44
+ npm install @viur/ignite
45
+ ```
46
+
47
+ Please use [postcss-import](https://www.npmjs.com/package/postcss-import) with your PostCSS pipeline.
48
+ This way you are able to get rid of ugly `../node_modules/@viur/ignite/ignite.css` imports:
49
+
50
+ ```postcss
51
+ @import url('@viur/ignite/ignite.css');
52
+ ```
53
+
54
+ **Submodule**
55
+
56
+ You can add Ignite as submodule to your project as well:
57
+ ```bash
58
+ git submodule add git@github.com:viur-framework/ignite.git
59
+ ```
60
+ or
61
+ ```bash
62
+ git submodule add https://github.com/viur-framework/ignite.git
63
+ ```
64
+ Now you can import Ignite in your projects style.css
65
+ ```postcss
66
+ @import url('ignite/ignite.css');
67
+ ```
68
+
69
+ **Builds**
70
+
71
+ Preprocessed versions of Ignite can be found in `dist` folder:
72
+
73
+ Bundled:
74
+ ```postcss
75
+ @import url('@viur/ignite/dist/ignite.css');
76
+ ```
77
+
78
+ Minified:
79
+ ```postcss
80
+ @import url('@viur/ignite/dist/ignite.min.css');
81
+ ```
82
+
83
+ ---
84
+
85
+ ## Contribution guidelines
86
+ * Available for use under the MIT license
87
+
88
+ ---
89
+
90
+ ## Who do I talk to?
91
+ * [@phneutral](https://github.com/phneutral)
92
+ * [@sveneberth](https://github.com/sveneberth)