@policystudio/policy-studio-ui-vue 1.1.88 → 1.1.90-beta.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/.eslintignore +1 -0
- package/.eslintrc.js +70 -67
- package/.github/workflows/deploy-storybook.yml +1 -1
- package/.storybook/eventBus.js +25 -2
- package/.storybook/main.js +17 -21
- package/babel.config.js +17 -3
- package/dist/css/psui_styles.css +0 -1
- package/package.json +36 -23
- package/scripts/kill-port.sh +12 -0
- package/src/assets/scss/components/PsTableResults.scss +3 -2
- package/src/components/accordion/PsAccordion.vue +20 -21
- package/src/components/accordion/PsAccordionItem.vue +30 -8
- package/src/components/badges-and-tags/PsBadgeWithIcon.vue +6 -3
- package/src/components/badges-and-tags/PsCardInfos.vue +3 -1
- package/src/components/badges-and-tags/PsChartLegend.vue +19 -5
- package/src/components/badges-and-tags/PsCostEffectBar.vue +4 -5
- package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
- package/src/components/badges-and-tags/PsTestimonialCard.vue +6 -4
- package/src/components/buttons/PsButton.vue +30 -11
- package/src/components/chips/PsChips.vue +5 -2
- package/src/components/controls/PsCheckbox.vue +5 -2
- package/src/components/controls/PsCheckboxSimple.vue +4 -4
- package/src/components/controls/PsDraggable.vue +70 -67
- package/src/components/controls/PsInlineSelector.vue +13 -14
- package/src/components/controls/PsRadioButton.vue +10 -5
- package/src/components/controls/PsRadioButtonSimple.vue +3 -3
- package/src/components/controls/PsSlider.vue +6 -6
- package/src/components/controls/PsSwitch.vue +13 -3
- package/src/components/controls/PsToggle.vue +14 -11
- package/src/components/data-graphics/PsBarChart.vue +4 -2
- package/src/components/datatable/PsDataTable.vue +14 -5
- package/src/components/datatable/PsDataTableItem.vue +17 -4
- package/src/components/forms/PsDropdown.vue +8 -5
- package/src/components/forms/PsDropdownList.vue +1 -1
- package/src/components/forms/PsInput.vue +30 -14
- package/src/components/forms/PsInputSelect.vue +33 -11
- package/src/components/forms/PsInputTextArea.vue +15 -4
- package/src/components/navigations/PsBreadcrumb.vue +1 -1
- package/src/components/notifications/PsDialog.vue +11 -5
- package/src/components/notifications/PsSimpleAlert.vue +22 -10
- package/src/components/notifications/PsToast.vue +8 -3
- package/src/components/playground/PsScrollBar.vue +122 -50
- package/src/components/table-results/PsTableResults.vue +79 -58
- package/src/components/table-results/PsTableResultsBody.vue +3 -1
- package/src/components/table-results/PsTableResultsHead.vue +27 -8
- package/src/components/table-results/PsTableResultsHeadComparison.vue +24 -8
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +18 -6
- package/src/components/table-results/PsTableResultsRow.vue +6 -2
- package/src/components/tabs/PsTabHeader.vue +19 -16
- package/src/components/tooltip/PsDialogTooltip.vue +18 -8
- package/src/components/tooltip/PsRichTooltip.vue +12 -5
- package/src/components/tooltip/PsTooltip.vue +17 -9
- package/src/components/ui/PsDotLoader.vue +5 -5
- package/src/components/ui/PsIcon.vue +6 -2
- package/src/index.js +0 -1
- package/src/stories/Button.stories.js +48 -130
- package/src/stories/Button.vue +59 -0
- package/src/stories/{ElevationSystem.stories.mdx → ElevationSystem.mdx} +1 -1
- package/src/stories/Header.stories.js +41 -0
- package/src/stories/Header.vue +77 -0
- package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +101 -101
- package/src/stories/{Typography.stories.mdx → Typography.mdx} +107 -105
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/webpack.config.js +22 -0
- package/backup-package-lock.json +0 -37194
- /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.storybook
|
package/.eslintrc.js
CHANGED
|
@@ -1,68 +1,71 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true
|
|
5
|
+
},
|
|
6
|
+
parser: 'vue-eslint-parser',
|
|
7
|
+
parserOptions: {
|
|
8
|
+
parser: '@babel/eslint-parser',
|
|
9
|
+
requireConfigFile: false,
|
|
10
|
+
babelOptions: {
|
|
11
|
+
babelrc: false,
|
|
12
|
+
configFile: false,
|
|
13
|
+
presets: ['@babel/preset-env'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
extends: ['plugin:vue/vue3-essential', 'eslint:recommended','plugin:vue/vue3-strongly-recommended'],
|
|
17
|
+
rules: {
|
|
18
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
19
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
20
|
+
'semi': ['warn', 'never'],
|
|
21
|
+
'quotes': [2, 'single'],
|
|
22
|
+
'vue/order-in-components': ['warn', {
|
|
23
|
+
'order': [
|
|
24
|
+
'el',
|
|
25
|
+
'name',
|
|
26
|
+
'key',
|
|
27
|
+
'parent',
|
|
28
|
+
['components', 'directives', 'filters'],
|
|
29
|
+
['props', 'propsData'],
|
|
30
|
+
'functional',
|
|
31
|
+
['delimiters', 'comments'],
|
|
32
|
+
'extends',
|
|
33
|
+
'mixins',
|
|
34
|
+
['provide', 'inject'],
|
|
35
|
+
'ROUTER_GUARDS',
|
|
36
|
+
'layout',
|
|
37
|
+
'middleware',
|
|
38
|
+
'validate',
|
|
39
|
+
'scrollToTop',
|
|
40
|
+
'transition',
|
|
41
|
+
'loading',
|
|
42
|
+
'inheritAttrs',
|
|
43
|
+
'model',
|
|
44
|
+
'emits',
|
|
45
|
+
'setup',
|
|
46
|
+
'asyncData',
|
|
47
|
+
'data',
|
|
48
|
+
'fetch',
|
|
49
|
+
'head',
|
|
50
|
+
'computed',
|
|
51
|
+
'watch',
|
|
52
|
+
'watchQuery',
|
|
53
|
+
'LIFECYCLE_HOOKS',
|
|
54
|
+
'methods',
|
|
55
|
+
['template', 'render'],
|
|
56
|
+
'renderError'
|
|
57
|
+
]
|
|
58
|
+
}]
|
|
59
|
+
},
|
|
60
|
+
overrides: [
|
|
61
|
+
{
|
|
62
|
+
files: [
|
|
63
|
+
'**/__tests__/*.{j,t}s?(x)',
|
|
64
|
+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
65
|
+
],
|
|
66
|
+
env: {
|
|
67
|
+
jest: true
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
70
|
+
]
|
|
71
|
+
}
|
package/.storybook/eventBus.js
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
// this was a vue2 syntax
|
|
2
|
+
// import Vue from 'vue';
|
|
3
|
+
// export const eventBus = new Vue();
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
// import { createApp } from 'vue';
|
|
6
|
+
|
|
7
|
+
// export const app = createApp({});
|
|
8
|
+
// const emitter = app.config.globalProperties.$emitter = {};
|
|
9
|
+
|
|
10
|
+
// export const eventBus = {
|
|
11
|
+
// on(event, callback) {
|
|
12
|
+
// if (!emitter[event]) {
|
|
13
|
+
// emitter[event] = [];
|
|
14
|
+
// }
|
|
15
|
+
// emitter[event].push(callback);
|
|
16
|
+
// },
|
|
17
|
+
// emit(event, ...args) {
|
|
18
|
+
// if (emitter[event]) {
|
|
19
|
+
// emitter[event].forEach(callback => {
|
|
20
|
+
// callback(...args);
|
|
21
|
+
// });
|
|
22
|
+
// }
|
|
23
|
+
// },
|
|
24
|
+
// };
|
|
25
|
+
|
|
26
|
+
// app.mount('#app');
|
package/.storybook/main.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
],
|
|
6
|
-
previewHead: (head) => (`
|
|
7
|
-
${head}
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap" rel="stylesheet">
|
|
11
|
-
`),
|
|
12
|
-
"addons": [
|
|
1
|
+
/** @type { import('@storybook/vue3-webpack5').StorybookConfig } */
|
|
2
|
+
const config = {
|
|
3
|
+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
4
|
+
addons: [
|
|
13
5
|
"@storybook/addon-links",
|
|
14
6
|
"@storybook/addon-essentials",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
"@storybook/addon-interactions",
|
|
8
|
+
],
|
|
9
|
+
framework: {
|
|
10
|
+
name: "@storybook/vue3-webpack5",
|
|
11
|
+
options: {
|
|
12
|
+
builder: {
|
|
13
|
+
useSWC: true,
|
|
21
14
|
},
|
|
22
15
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
},
|
|
17
|
+
docs: {
|
|
18
|
+
autodocs: "tag",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default config;
|
package/babel.config.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const presets = [
|
|
2
|
+
[
|
|
3
|
+
'@babel/preset-env',
|
|
4
|
+
{
|
|
5
|
+
targets: {
|
|
6
|
+
edge: '17',
|
|
7
|
+
firefox: '60',
|
|
8
|
+
chrome: '67',
|
|
9
|
+
safari: '11.1',
|
|
10
|
+
},
|
|
11
|
+
useBuiltIns: 'usage',
|
|
12
|
+
corejs: '3.6.4',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
module.exports = { presets }
|
package/dist/css/psui_styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@policystudio/policy-studio-ui-vue",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.90-beta.0",
|
|
4
4
|
"description": "Policy Studio UI",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "Policy Studio Team",
|
|
@@ -12,46 +12,59 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"lint": "vue-cli-service lint",
|
|
15
|
-
"build-storybook": "
|
|
15
|
+
"build-storybook": "storybook build",
|
|
16
16
|
"build-tailwind": "postcss src/assets/scss/base.scss -o dist/css/psui_styles.css",
|
|
17
17
|
"build-temp-tailwind": "postcss src/assets/scss/base.scss -o temp/css/psui_styles.css",
|
|
18
|
-
"full-publish": "npm run lint && npm run build-tailwind && build-storybook && npm publish",
|
|
18
|
+
"full-publish": "npm run lint && npm run build-tailwind && npm run build-storybook && npm publish --tag beta",
|
|
19
19
|
"serve": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-tailwind\"",
|
|
20
20
|
"serve-prod": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-prod-tailwind\"",
|
|
21
|
-
"watch-storybook": "start-storybook -p 6006",
|
|
22
21
|
"watch-prod-tailwind": "watch 'npm run build-tailwind' ./src/assets",
|
|
23
|
-
"watch-tailwind": "watch 'npm run build-temp-tailwind' ./src/assets"
|
|
22
|
+
"watch-tailwind": "watch 'npm run build-temp-tailwind' ./src/assets",
|
|
23
|
+
"kill-port": "sh ./scripts/kill-port.sh",
|
|
24
|
+
"storybook": "concurrently \"npm run kill-port\" \"npm run watch-prod-tailwind\" \"storybook dev -p 6006\""
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
27
|
+
"@vue/compat": "^3.4.5",
|
|
26
28
|
"core-js": "^3.6.5",
|
|
27
29
|
"v-tooltip": "^2.1.3",
|
|
28
|
-
"vue": "^
|
|
30
|
+
"vue": "^3.4.5"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
|
-
"@babel/
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@storybook/addon-
|
|
36
|
-
"@storybook/
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
33
|
+
"@babel/cli": "^7.23.4",
|
|
34
|
+
"@babel/core": "^7.23.7",
|
|
35
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
36
|
+
"@babel/preset-env": "^7.23.7",
|
|
37
|
+
"@storybook/addon-essentials": "^7.6.7",
|
|
38
|
+
"@storybook/addon-interactions": "^7.6.7",
|
|
39
|
+
"@storybook/addon-links": "^7.6.7",
|
|
40
|
+
"@storybook/blocks": "^7.6.7",
|
|
41
|
+
"@storybook/test": "^7.6.7",
|
|
42
|
+
"@storybook/vue3": "^7.6.7",
|
|
43
|
+
"@storybook/vue3-webpack5": "^7.6.7",
|
|
44
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
45
|
+
"@vue/cli-service": "~5.0.8",
|
|
46
|
+
"@vue/compiler-sfc": "^3.4.5",
|
|
47
|
+
"@vue/eslint-config-prettier": "^9.0.0",
|
|
41
48
|
"babel-eslint": "^10.1.0",
|
|
42
|
-
"babel-loader": "^8.2.3",
|
|
43
49
|
"concurrently": "^7.0.0",
|
|
44
|
-
"eslint": "^
|
|
45
|
-
"eslint-plugin-prettier": "^
|
|
46
|
-
"eslint-plugin-
|
|
50
|
+
"eslint": "^8.56.0",
|
|
51
|
+
"eslint-plugin-prettier": "^5.1.2",
|
|
52
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
53
|
+
"eslint-plugin-vue": "^9.19.2",
|
|
47
54
|
"postcss": "^8.3.11",
|
|
48
55
|
"postcss-cli": "^9.0.2",
|
|
49
56
|
"postcss-import": "^14.0.2",
|
|
50
57
|
"postcss-nested": "^5.0.6",
|
|
51
|
-
"prettier": "^
|
|
58
|
+
"prettier": "^3.1.1",
|
|
59
|
+
"react": "^18.2.0",
|
|
60
|
+
"react-dom": "^18.2.0",
|
|
61
|
+
"storybook": "^7.6.7",
|
|
52
62
|
"tailwindcss": "^1.9.6",
|
|
53
|
-
"vue-
|
|
54
|
-
"vue-
|
|
63
|
+
"vue-eslint-parser": "^9.3.2",
|
|
64
|
+
"vue-loader": "^17.4.2",
|
|
55
65
|
"watch": "^1.0.2"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": "18.19.0"
|
|
56
69
|
}
|
|
57
70
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Find the process using port 3000
|
|
4
|
+
PROCESS_ID=$(lsof -t -i:6006)
|
|
5
|
+
|
|
6
|
+
# Check if a process is using the port
|
|
7
|
+
if [ -n "$PROCESS_ID" ]; then
|
|
8
|
+
echo "Killing process on port 6006 (PID: $PROCESS_ID)"
|
|
9
|
+
kill -9 $PROCESS_ID
|
|
10
|
+
else
|
|
11
|
+
echo "Port 6006 is not in use"
|
|
12
|
+
fi
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@apply psui-w-full psui-whitespace-no-wrap psui-flex psui-overflow-auto;
|
|
4
4
|
|
|
5
5
|
&.table-flexible {
|
|
6
|
-
@apply psui-pr-4
|
|
6
|
+
@apply psui-pr-4;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -479,9 +479,9 @@
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
|
|
483
482
|
}
|
|
484
483
|
|
|
484
|
+
|
|
485
485
|
&.is-disabled {
|
|
486
486
|
td {
|
|
487
487
|
&.hover-color {
|
|
@@ -491,6 +491,7 @@
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
+
|
|
494
495
|
|
|
495
496
|
td {
|
|
496
497
|
@apply psui-text-gray-70 psui-h-10 psui-text-right psui-text-small;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-accordion"
|
|
4
|
+
:class="getComponentClass"
|
|
5
|
+
>
|
|
6
|
+
<slot />
|
|
4
7
|
</div>
|
|
5
8
|
</template>
|
|
6
9
|
|
|
7
|
-
<script>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
layout: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: 'medium',
|
|
18
|
-
validator: (value) => ['medium','big'].includes(value),
|
|
19
|
-
},
|
|
10
|
+
<script setup>
|
|
11
|
+
import { computed } from 'vue'
|
|
12
|
+
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
layout:{
|
|
15
|
+
type: String,
|
|
16
|
+
default: 'medium',
|
|
17
|
+
validator: (value) => ['big', 'medium'].includes(value)
|
|
20
18
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const getComponentClass = computed(() => {
|
|
22
|
+
return `layout-${props.layout}`
|
|
23
|
+
})
|
|
24
|
+
|
|
27
25
|
</script>
|
|
26
|
+
|
|
28
27
|
<style> /* Please, use the file src/assets/scss/components/PsAccordion.scss */</style>
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-accordion-item"
|
|
4
|
+
:class="{'status-opened':isOpen, 'disabled':disabled}"
|
|
5
|
+
>
|
|
3
6
|
<div class="psui-el-accordion-item-header">
|
|
4
|
-
<slot
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
<slot
|
|
8
|
+
name="custom-header"
|
|
9
|
+
:toggle="toggle"
|
|
10
|
+
:is-open="isOpen"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
@click="toggle"
|
|
14
|
+
class="psui-el-accordion-item-header-wrapper"
|
|
15
|
+
v-if="!hasCustomHeader"
|
|
16
|
+
>
|
|
17
|
+
<h2
|
|
18
|
+
v-if="title"
|
|
19
|
+
class="psui-el-accordion-item-title"
|
|
20
|
+
>
|
|
21
|
+
{{ title }}
|
|
22
|
+
</h2>
|
|
23
|
+
<slot name="header-additionals" />
|
|
24
|
+
<i
|
|
25
|
+
v-if="!disabled"
|
|
26
|
+
class="psui-el-accordion-item-icon"
|
|
27
|
+
>{{ getIcon }}</i>
|
|
9
28
|
</div>
|
|
10
29
|
</slot>
|
|
11
30
|
</div>
|
|
@@ -16,8 +35,11 @@
|
|
|
16
35
|
@before-leave="start"
|
|
17
36
|
@after-leave="end"
|
|
18
37
|
>
|
|
19
|
-
<div
|
|
20
|
-
|
|
38
|
+
<div
|
|
39
|
+
v-if="isOpen"
|
|
40
|
+
class="psui-el-accordion-item-content"
|
|
41
|
+
>
|
|
42
|
+
<slot />
|
|
21
43
|
</div>
|
|
22
44
|
</transition>
|
|
23
45
|
</div>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-badge-with-icon"
|
|
4
|
+
:class="getComponentClass"
|
|
5
|
+
>
|
|
3
6
|
<i
|
|
4
7
|
v-if="icon"
|
|
5
8
|
:class="iconClass"
|
|
6
9
|
class="psui-el-badge-with-icon-icon"
|
|
7
|
-
>{{icon}}</i>
|
|
8
|
-
<span class="psui-el-badge-with-icon-message">{{message}}</span>
|
|
10
|
+
>{{ icon }}</i>
|
|
11
|
+
<span class="psui-el-badge-with-icon-message">{{ message }}</span>
|
|
9
12
|
</div>
|
|
10
13
|
</template>
|
|
11
14
|
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
</h5>
|
|
9
9
|
<div class="psui-el-card-infos-content">
|
|
10
10
|
<span class="psui-el-card-infos-icon material-icons-round">{{ icon }}</span>
|
|
11
|
-
<h5 class="psui-text-gray-80">
|
|
11
|
+
<h5 class="psui-text-gray-80">
|
|
12
|
+
{{ total }}
|
|
13
|
+
</h5>
|
|
12
14
|
</div>
|
|
13
15
|
</div>
|
|
14
16
|
</template>
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-chart-legend">
|
|
3
3
|
<div class="psui-flex psui-flex-shrink-0">
|
|
4
|
-
<div
|
|
4
|
+
<div
|
|
5
|
+
class="psui-el-chart-legend-dot"
|
|
6
|
+
:style="dotColor"
|
|
7
|
+
/>
|
|
5
8
|
</div>
|
|
6
9
|
<div class="psui-flex-grow-1 flex psui-flex-col">
|
|
7
|
-
<div class="psui-el-chart-legend-text">
|
|
10
|
+
<div class="psui-el-chart-legend-text">
|
|
11
|
+
{{ text }}
|
|
12
|
+
</div>
|
|
8
13
|
<div class="flex psui-items-center psui-flex-shrink-0 psui-gap-1">
|
|
9
|
-
<span
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
<span
|
|
15
|
+
v-if="this.total"
|
|
16
|
+
class="psui-el-chart-legend-total"
|
|
17
|
+
>{{ total }}</span>
|
|
18
|
+
<span
|
|
19
|
+
class="psui-text-gray-30"
|
|
20
|
+
v-if="total && percentage"
|
|
21
|
+
> | </span>
|
|
22
|
+
<span
|
|
23
|
+
class="psui-el-chart-legend-percentage"
|
|
24
|
+
v-if="percentage"
|
|
25
|
+
>
|
|
12
26
|
{{ percentage }}%
|
|
13
27
|
</span>
|
|
14
28
|
</div>
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-cost-effect-bar">
|
|
3
3
|
<div>
|
|
4
|
-
<span :style="breakEvenPosition"
|
|
4
|
+
<span :style="breakEvenPosition" />
|
|
5
5
|
|
|
6
6
|
<PsProgressBar
|
|
7
7
|
:value="value"
|
|
8
|
-
:
|
|
9
|
-
:
|
|
10
|
-
|
|
11
|
-
</PsProgressBar>
|
|
8
|
+
:percentage-color="percentageColor"
|
|
9
|
+
:bg-color="bgColor"
|
|
10
|
+
/>
|
|
12
11
|
</div>
|
|
13
12
|
</div>
|
|
14
13
|
</template>
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
display="flex"
|
|
9
9
|
/>
|
|
10
10
|
</div>
|
|
11
|
-
<p class="psui-el-testimonial-description">
|
|
11
|
+
<p class="psui-el-testimonial-description">
|
|
12
|
+
{{ description }}
|
|
13
|
+
</p>
|
|
12
14
|
<div class="psui-el-testimonial-info">
|
|
13
|
-
<span class="psui-el-testimonial-info-user"
|
|
14
|
-
<span class="psui-el-testimonial-info-position">{{position}}</span>
|
|
15
|
-
<span class="psui-el-testimonial-info-jurisdiction">{{jurisdiction}}</span>
|
|
15
|
+
<span class="psui-el-testimonial-info-user">{{ user }}</span>
|
|
16
|
+
<span class="psui-el-testimonial-info-position">{{ position }}</span>
|
|
17
|
+
<span class="psui-el-testimonial-info-jurisdiction">{{ jurisdiction }}</span>
|
|
16
18
|
</div>
|
|
17
19
|
</div>
|
|
18
20
|
</template>
|