@demos-europe/demosplan-ui 0.0.20 → 0.1.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.
- package/CHANGELOG.md +22 -0
- package/LICENSE +26 -0
- package/babel-jest-transformer.js +7 -0
- package/babel.config.js +6 -0
- package/buildTokens.js +7 -3
- package/dist/642.demosplan-ui.umd.js +1 -1
- package/dist/demosplan-ui.umd.js +1 -1
- package/jest.config.js +20 -0
- package/package.json +18 -4
- package/src/components/DpContextualHelp/DpContextualHelp.vue +7 -17
- package/src/components/DpFlyout/DpFlyout.vue +3 -1
- package/src/components/DpIcon/DpIcon.vue +1 -1
- package/src/components/DpIcon/util/iconVariables.js +31 -33
- package/src/components/DpInput/DpInput.vue +13 -13
- package/src/components/DpMultiselect/DpMultiselect.vue +114 -92
- package/src/components/DpPager/DpPager.vue +9 -9
- package/src/components/DpResettableInput/DpResettableInput.vue +2 -2
- package/src/components/DpSlidingPagination/DpSlidingPagination.vue +37 -23
- package/src/components/core/DpBulkEditHeader.vue +1 -1
- package/src/components/core/DpDataTable/DpColumnSelector.vue +1 -1
- package/src/components/core/DpDataTable/DpDataTable.vue +9 -2
- package/src/components/core/DpDataTable/DpDataTableExtended.vue +6 -6
- package/src/components/core/DpDataTable/DpResizableColumn.vue +106 -0
- package/src/components/core/DpDataTable/DpSelectPageItemCount.vue +31 -42
- package/src/components/core/DpDataTable/DpTableHeader.vue +70 -122
- package/src/components/core/DpModal.vue +4 -2
- package/src/components/core/DpSlidebar.vue +4 -2
- package/src/components/core/DpTabs/DpTabs.vue +1 -1
- package/src/components/core/notify/DpNotifyMessage.vue +2 -2
- package/src/lib/validation/dpValidateMultiselectDirective.js +8 -0
- package/src/tests/utils/debounce.test.js +1 -1
- package/src/tests/utils/formatBytes.test.js +1 -1
- package/src/utils/lengthHint/lengthHint.js +3 -3
- package/tokens/_.json +17 -0
- package/tokens/boxShadow.json +24 -0
- package/tokens/color/color.brand.json +37 -0
- package/tokens/color/color.data.json +103 -0
- package/tokens/{color.json → color/color.palette.json} +41 -145
- package/tokens/color/color.ui.json +299 -0
- package/tokens/fontSize.json +17 -6
- package/tokens/rounded.json +29 -0
- package/tokens/scss/_boxShadow.scss +8 -0
- package/tokens/scss/_color.brand.scss +10 -0
- package/tokens/scss/_color.data.scss +32 -0
- package/tokens/scss/_color.palette.scss +62 -0
- package/tokens/scss/_color.scss +1 -1
- package/tokens/scss/_color.ui.scss +60 -0
- package/tokens/scss/_fontSize.scss +23 -23
- package/tokens/scss/_rounded.scss +9 -0
- package/tokens/scss/_space.scss +2 -2
- package/tokens/tokens._overview.stories.mdx +39 -0
- package/tokens/tokens.box.shadow.stories.mdx +48 -0
- package/tokens/tokens.color.stories.mdx +144 -0
- package/tokens/tokens.font.size.stories.mdx +92 -0
- package/tokens/tokens.rounded.stories.mdx +73 -0
- package/src/components/core/DpDataTable/lib/ResizableColumns.js +0 -74
- package/tokens/color.stories.mdx +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## UNRELEASED
|
|
4
4
|
|
|
5
|
+
## v0.1 - 2023-05-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- ([#211](https://github.com/demos-europe/demosplan-ui/pull/211)) **Breaking:** Replace Font Awesome with Phosphor Icons ([@spiess-demos](https://github.com/spiess-demos))
|
|
9
|
+
- ([#205](https://github.com/demos-europe/demosplan-ui/pull/205)) Move from Functional Component to Template in DpTableHeader ([@elmasdemos](https://github.com/elmasdemos))
|
|
10
|
+
- ([#203](https://github.com/demos-europe/demosplan-ui/pull/203)) Move from Functional Component to Template in DpContextualHelp ([@salisdemos](https://github.com/salisdemos))
|
|
11
|
+
- ([#202](https://github.com/demos-europe/demosplan-ui/pull/202)) Move from Functional Component to Template in DpSlidingPagination ([@salisdemos](https://github.com/salisdemos))
|
|
12
|
+
- ([#195](https://github.com/demos-europe/demosplan-ui/pull/195)) Move from Functional Component to Template in dpSelectPageItemCount ([@salisdemos](https://github.com/salisdemos))
|
|
13
|
+
- ([#181](https://github.com/demos-europe/demosplan-ui/pull/181)) Move from Functional Component to Template in dpMultiselect ([@salisdemos](https://github.com/salisdemos))
|
|
14
|
+
- ([#51](https://github.com/demos-europe/demosplan-ui/pull/51)) Configuration for jest tests for js files ([@elmasdemos](https://github.com/elmasdemos))
|
|
15
|
+
- ([#212](https://github.com/demos-europe/demosplan-ui/pull/212)) Component: Expose `isExpanded` in DpFlyout trigger slot ([@spiess-demos](https://github.com/spiess-demos))
|
|
16
|
+
|
|
17
|
+
## v0.0.21 - 2023-05-02
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- ([#175](https://github.com/demos-europe/demosplan-ui/pull/175)) adjust layout of DpPager ([@muellerdemos](https://github.com/muellerdemos))
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **Breaking**: ([#108](https://github.com/demos-europe/demosplan-ui/pull/108)) Add color design tokens, split generated Scss into multiple files ([@ahmad-demos](https://github.com/ahmad-demos), [@spiess-demos](https://github.com/spiess-demos))
|
|
26
|
+
|
|
5
27
|
## v0.0.20 - 2023-04-18
|
|
6
28
|
|
|
7
29
|
### Changed
|
package/LICENSE
CHANGED
|
@@ -53,3 +53,29 @@ src/lib/SideNav.js
|
|
|
53
53
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
54
54
|
See the License for the specific language governing permissions and
|
|
55
55
|
limitations under the License.
|
|
56
|
+
|
|
57
|
+
------------------------------------------------------------------------------------------
|
|
58
|
+
|
|
59
|
+
src/components/DpIcon/util/iconVariables.js
|
|
60
|
+
|
|
61
|
+
MIT License
|
|
62
|
+
|
|
63
|
+
Copyright (c) 2020 Phosphor Icons
|
|
64
|
+
|
|
65
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
66
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
67
|
+
in the Software without restriction, including without limitation the rights
|
|
68
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
69
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
70
|
+
furnished to do so, subject to the following conditions:
|
|
71
|
+
|
|
72
|
+
The above copyright notice and this permission notice shall be included in all
|
|
73
|
+
copies or substantial portions of the Software.
|
|
74
|
+
|
|
75
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
76
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
77
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
78
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
79
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
80
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
81
|
+
SOFTWARE.
|
package/babel.config.js
ADDED
package/buildTokens.js
CHANGED
|
@@ -3,19 +3,23 @@ const StyleDictionary = require('style-dictionary')
|
|
|
3
3
|
|
|
4
4
|
const prefix = 'dp-'
|
|
5
5
|
|
|
6
|
-
const tokensPath = 'tokens
|
|
6
|
+
const tokensPath = 'tokens/**/*.json'
|
|
7
7
|
const files = glob
|
|
8
8
|
.sync(tokensPath)
|
|
9
9
|
.map(filePath => filePath
|
|
10
10
|
.replace('tokens/', '')
|
|
11
|
+
.replace('color/', '')
|
|
11
12
|
.replace('.json', ''))
|
|
13
|
+
// Do not render tokens only used internally
|
|
14
|
+
.filter(filePath => !filePath.startsWith('_'))
|
|
12
15
|
|
|
13
16
|
StyleDictionary.registerTransform({
|
|
14
17
|
name: 'name/scss',
|
|
15
18
|
type: 'name',
|
|
16
19
|
transformer: (token) => {
|
|
17
|
-
// "palette" within
|
|
18
|
-
|
|
20
|
+
// The domain part ("palette", "ui"...) within color tokens should not be part of the variable name.
|
|
21
|
+
// The domain part ("scale", "heading", "ui"...) within font-size tokens should not be part of the variable name.
|
|
22
|
+
if (token.path[0] === 'color' || token.path[0] === 'font-size') {
|
|
19
23
|
token.path.splice(1, 1)
|
|
20
24
|
}
|
|
21
25
|
return prefix + token.path.join('-')
|