@policystudio/policy-studio-ui-vue 1.1.90-beta.5 → 1.1.91
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/.eslintrc.js +67 -81
- package/.github/workflows/deploy-storybook.yml +1 -1
- package/.storybook/PolicyStudio.js +10 -0
- package/.storybook/eventBus.js +3 -0
- package/.storybook/main.js +25 -0
- package/.storybook/manager.js +6 -0
- package/babel.config.js +3 -17
- package/backup-package-lock.json +37194 -0
- package/dist/css/psui_styles.css +110273 -4031
- package/package.json +33 -52
- package/postcss.config.js +1 -1
- package/src/assets/scss/base.scss +23 -27
- package/src/assets/scss/components/PsAccordion.scss +1 -1
- package/src/assets/scss/components/PsChips.scss +3 -3
- package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
- package/src/assets/scss/components/PsProgressBar.scss +4 -4
- package/src/assets/scss/components/PsTabHeader.scss +1 -1
- package/src/assets/scss/components/PsTableResults.scss +1 -1
- package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
- package/src/components/accordion/PsAccordion.vue +21 -20
- package/src/components/accordion/PsAccordionItem.vue +8 -30
- package/src/components/badges-and-tags/PsBadgeWithIcon.vue +4 -8
- package/src/components/badges-and-tags/PsCardInfos.vue +1 -3
- package/src/components/badges-and-tags/PsChartLegend.vue +5 -19
- package/src/components/badges-and-tags/PsCostEffectBar.vue +5 -4
- package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
- package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
- package/src/components/badges-and-tags/PsTestimonialCard.vue +4 -6
- package/src/components/buttons/PsButton.vue +88 -85
- package/src/components/chips/PsChips.vue +2 -5
- package/src/components/controls/PsCheckbox.vue +2 -5
- package/src/components/controls/PsCheckboxSimple.vue +4 -4
- package/src/components/controls/PsDraggable.vue +67 -70
- package/src/components/controls/PsInlineSelector.vue +14 -13
- package/src/components/controls/PsRadioButton.vue +5 -10
- package/src/components/controls/PsRadioButtonSimple.vue +3 -3
- package/src/components/controls/PsSlider.vue +6 -6
- package/src/components/controls/PsSwitch.vue +3 -13
- package/src/components/controls/PsToggle.vue +11 -14
- package/src/components/data-graphics/PsBarChart.vue +2 -4
- package/src/components/datatable/PsDataTable.vue +5 -14
- package/src/components/datatable/PsDataTableItem.vue +4 -17
- package/src/components/forms/PsDropdown.vue +5 -8
- package/src/components/forms/PsDropdownList.vue +1 -1
- package/src/components/forms/PsInput.vue +14 -30
- package/src/components/forms/PsInputSelect.vue +11 -33
- package/src/components/forms/PsInputTextArea.vue +4 -15
- package/src/components/navigations/PsBreadcrumb.vue +1 -1
- package/src/components/notifications/PsDialog.vue +5 -11
- package/src/components/notifications/PsSimpleAlert.vue +10 -22
- package/src/components/notifications/PsToast.vue +3 -8
- package/src/components/playground/PsScrollBar.vue +50 -122
- package/src/components/table-results/PsTableResults.vue +60 -76
- package/src/components/table-results/PsTableResultsBody.vue +1 -3
- package/src/components/table-results/PsTableResultsHead.vue +13 -32
- package/src/components/table-results/PsTableResultsHeadComparison.vue +8 -24
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +11 -23
- package/src/components/table-results/PsTableResultsRow.vue +2 -6
- package/src/components/tabs/PsTabHeader.vue +16 -19
- package/src/components/tooltip/PsDialogTooltip.vue +8 -18
- package/src/components/tooltip/PsRichTooltip.vue +5 -12
- package/src/components/tooltip/PsTooltip.vue +9 -17
- package/src/components/ui/PsDotLoader.vue +5 -5
- package/src/components/ui/PsIcon.vue +2 -6
- package/src/{index.ts → index.js} +1 -0
- package/src/stories/{Accordion.stories.ts → Accordion.stories.js} +2 -2
- package/src/stories/{BadgeWithIcon.stories.ts → BadgeWithIcon.stories.js} +1 -1
- package/src/stories/{BarChart.stories.ts → BarChart.stories.js} +1 -1
- package/src/stories/{Breadcrumb.stories.ts → Breadcrumb.stories.js} +4 -1
- package/src/stories/Button.stories.js +130 -0
- package/src/stories/{CardInfos.stories.ts → CardInfos.stories.js} +2 -1
- package/src/stories/{ChartLegend.stories.ts → ChartLegend.stories.js} +2 -1
- package/src/stories/{Checkbox.stories.ts → Checkbox.stories.js} +1 -1
- package/src/stories/{CheckboxSimple.stories.ts → CheckboxSimple.stories.js} +1 -1
- package/src/stories/{Chips.stories.ts → Chips.stories.js} +22 -24
- package/src/stories/{ClimateZoneBadge.stories.ts → ClimateZoneBadge.stories.js} +1 -1
- package/src/stories/{CostEffectBar.stories.ts → CostEffectBar.stories.js} +1 -1
- package/src/stories/{Datatable.stories.ts → Datatable.stories.js} +2 -2
- package/src/stories/{DateCardInfo.stories.ts → DateCardInfo.stories.js} +5 -1
- package/src/stories/{ElevationSystem.mdx → ElevationSystem.stories.mdx} +1 -1
- package/src/stories/{InlineSelector.stories.ts → InlineSelector.stories.js} +1 -1
- package/src/stories/{InputTextArea.stories.ts → InputTextArea.stories.js} +1 -1
- package/src/stories/{Introduction.mdx → Introduction.stories.mdx} +101 -101
- package/src/stories/{RadioButtonSimple.stories.ts → RadioButtonSimple.stories.js} +1 -1
- package/src/stories/{Toggle.stories.ts → Toggle.stories.js} +1 -1
- package/src/stories/{Tooltip.stories.ts → Tooltip.stories.js} +3 -3
- package/src/stories/{Typography.mdx → Typography.stories.mdx} +105 -107
- package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +4 -4
- package/src/util/{imageLoader.ts → imageLoader.js} +7 -7
- package/tailwind.config.js +2 -11
- package/.eslintignore +0 -1
- package/.storybook/PolicyStudio.ts +0 -11
- package/.storybook/eventBus.ts +0 -26
- package/.storybook/main.ts +0 -21
- package/.storybook/manager.ts +0 -7
- package/scripts/kill-port.sh +0 -12
- package/src/App.vue +0 -30
- package/src/shims-vue.d.ts +0 -11
- package/src/stories/Button.stories.ts +0 -48
- package/src/stories/Button.vue +0 -59
- package/src/stories/Header.stories.ts +0 -41
- package/src/stories/Header.vue +0 -77
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/tsconfig.json +0 -42
- package/webpack.config.js +0 -22
- /package/.storybook/{preview.ts → preview.js} +0 -0
- /package/src/contents/{ComparisonData.ts → ComparisonData.js} +0 -0
- /package/src/contents/{FlexibleData.ts → FlexibleData.js} +0 -0
- /package/src/contents/{ResultsData.ts → ResultsData.js} +0 -0
- /package/src/stories/{Colors.mdx → Colors.stories.mdx} +0 -0
- /package/src/stories/{Dialog.stories.ts → Dialog.stories.js} +0 -0
- /package/src/stories/{Draggable.stories.ts → Draggable.stories.js} +0 -0
- /package/src/stories/{Dropdown.stories.ts → Dropdown.stories.js} +0 -0
- /package/src/stories/{DropdownList.stories.ts → DropdownList.stories.js} +0 -0
- /package/src/stories/{HighlightRippleDot.stories.ts → HighlightRippleDot.stories.js} +0 -0
- /package/src/stories/{Icon.stories.ts → Icon.stories.js} +0 -0
- /package/src/stories/{Input.stories.ts → Input.stories.js} +0 -0
- /package/src/stories/{InputSelect.stories.ts → InputSelect.stories.js} +0 -0
- /package/src/stories/{MiniTag.stories.ts → MiniTag.stories.js} +0 -0
- /package/src/stories/{Playground.stories.ts → Playground.stories.js} +0 -0
- /package/src/stories/{ProgressBar.stories.ts → ProgressBar.stories.js} +0 -0
- /package/src/stories/{RadioButton.stories.ts → RadioButton.stories.js} +0 -0
- /package/src/stories/{SimpleAlert.stories.ts → SimpleAlert.stories.js} +0 -0
- /package/src/stories/{Slider.stories.ts → Slider.stories.js} +0 -0
- /package/src/stories/{Switch.stories.ts → Switch.stories.js} +0 -0
- /package/src/stories/{TabHeader.stories.ts → TabHeader.stories.js} +0 -0
- /package/src/stories/{TableResults.stories.ts → TableResults.stories.js} +0 -0
- /package/src/stories/{TagScope.stories.ts → TagScope.stories.js} +0 -0
- /package/src/stories/{TestimonialCard.stories.ts → TestimonialCard.stories.js} +0 -0
- /package/src/stories/{Toast.stories.ts → Toast.stories.js} +0 -0
package/package.json
CHANGED
|
@@ -1,76 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@policystudio/policy-studio-ui-vue",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.91",
|
|
4
4
|
"description": "Policy Studio UI",
|
|
5
|
+
"main": "src/index.js",
|
|
5
6
|
"author": "Policy Studio Team",
|
|
7
|
+
"url": "https://github.com/Policy-Studio/policy-studio-ui-vue",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"vue",
|
|
11
|
+
"ui"
|
|
12
|
+
],
|
|
6
13
|
"scripts": {
|
|
7
|
-
"serve": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-tailwind\"",
|
|
8
14
|
"lint": "vue-cli-service lint",
|
|
9
|
-
"build-storybook": "
|
|
15
|
+
"build-storybook": "STORYBOOK_ENV=production build-storybook",
|
|
10
16
|
"build-tailwind": "postcss src/assets/scss/base.scss -o dist/css/psui_styles.css",
|
|
11
17
|
"build-temp-tailwind": "postcss src/assets/scss/base.scss -o temp/css/psui_styles.css",
|
|
12
|
-
"full-publish": "npm run lint && npm run build-tailwind &&
|
|
13
|
-
"
|
|
18
|
+
"full-publish": "npm run lint && npm run build-tailwind && build-storybook && npm publish",
|
|
19
|
+
"serve": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-tailwind\"",
|
|
14
20
|
"serve-prod": "concurrently --kill-others \"npm run watch-storybook\" \"npm run watch-prod-tailwind\"",
|
|
15
|
-
"storybook": "
|
|
21
|
+
"watch-storybook": "start-storybook -p 6006",
|
|
16
22
|
"watch-prod-tailwind": "watch 'npm run build-tailwind' ./src/assets",
|
|
17
23
|
"watch-tailwind": "watch 'npm run build-temp-tailwind' ./src/assets"
|
|
18
24
|
},
|
|
19
|
-
"main": "src/index.js",
|
|
20
25
|
"dependencies": {
|
|
21
|
-
"@vue/compat": "^3.4.5",
|
|
22
26
|
"core-js": "^3.6.5",
|
|
23
27
|
"v-tooltip": "^2.1.3",
|
|
24
|
-
"vue": "^
|
|
28
|
+
"vue": "^2.6.11"
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
27
|
-
"@babel/
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@storybook/addon-
|
|
32
|
-
"@storybook/
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@storybook/vue3-webpack5": "^7.6.7",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
39
|
-
"@typescript-eslint/parser": "^5.4.0",
|
|
40
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
41
|
-
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
42
|
-
"@vue/cli-service": "~5.0.8",
|
|
43
|
-
"@vue/compiler-sfc": "^3.4.5",
|
|
44
|
-
"@vue/eslint-config-prettier": "^9.0.0",
|
|
45
|
-
"@vue/eslint-config-typescript": "^9.1.0",
|
|
31
|
+
"@babel/core": "^7.16.7",
|
|
32
|
+
"@storybook/addon-actions": "^6.4.13",
|
|
33
|
+
"@storybook/addon-essentials": "^6.4.13",
|
|
34
|
+
"@storybook/addon-links": "^6.4.13",
|
|
35
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
36
|
+
"@storybook/vue": "^6.4.13",
|
|
37
|
+
"@vue/cli-plugin-babel": "~4.5.0",
|
|
38
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
39
|
+
"@vue/cli-service": "~4.5.0",
|
|
40
|
+
"@vue/eslint-config-prettier": "^6.0.0",
|
|
46
41
|
"babel-eslint": "^10.1.0",
|
|
42
|
+
"babel-loader": "^8.2.3",
|
|
47
43
|
"concurrently": "^7.0.0",
|
|
48
|
-
"eslint": "^
|
|
49
|
-
"eslint-plugin-prettier": "^
|
|
50
|
-
"eslint-plugin-
|
|
51
|
-
"eslint-plugin-vue": "^8.7.1",
|
|
44
|
+
"eslint": "^6.7.2",
|
|
45
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
46
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
52
47
|
"postcss": "^8.3.11",
|
|
53
48
|
"postcss-cli": "^9.0.2",
|
|
54
49
|
"postcss-import": "^14.0.2",
|
|
55
50
|
"postcss-nested": "^5.0.6",
|
|
56
|
-
"prettier": "^
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"vue-eslint-parser": "^9.3.2",
|
|
63
|
-
"vue-loader": "^17.4.2",
|
|
64
|
-
"watch": "^1.0.2",
|
|
65
|
-
"webpack": "^5.89.0"
|
|
66
|
-
},
|
|
67
|
-
"engines": {
|
|
68
|
-
"node": "18.19.0"
|
|
69
|
-
},
|
|
70
|
-
"keywords": [
|
|
71
|
-
"vue",
|
|
72
|
-
"ui"
|
|
73
|
-
],
|
|
74
|
-
"license": "MIT",
|
|
75
|
-
"url": "https://github.com/Policy-Studio/policy-studio-ui-vue"
|
|
51
|
+
"prettier": "^2.2.1",
|
|
52
|
+
"tailwindcss": "^1.9.6",
|
|
53
|
+
"vue-loader": "^15.9.8",
|
|
54
|
+
"vue-template-compiler": "^2.6.11",
|
|
55
|
+
"watch": "^1.0.2"
|
|
56
|
+
}
|
|
76
57
|
}
|
package/postcss.config.js
CHANGED
|
@@ -67,39 +67,35 @@ html {
|
|
|
67
67
|
-webkit-font-smoothing: antialiased;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.psui-card {
|
|
71
|
+
@apply .psui-w-full .psui-bg-white .psui-rounded-lg .psui-px-6 .psui-py-4 .psui-shadow-elevation-5;
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
@apply .psui-flex .psui-items-center .psui-justify-between .psui-mb-4;
|
|
77
|
-
|
|
78
|
-
h4 {
|
|
79
|
-
@apply .psui-text-h6 .psui-font-bold .psui-text-gray-80;
|
|
80
|
-
}
|
|
73
|
+
&-header {
|
|
74
|
+
@apply .psui-flex .psui-items-center .psui-justify-between .psui-mb-4;
|
|
75
|
+
|
|
76
|
+
h4 {
|
|
77
|
+
@apply .psui-text-h6 .psui-font-bold .psui-text-gray-80;
|
|
81
78
|
}
|
|
82
79
|
}
|
|
80
|
+
}
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.absolute-childrens {
|
|
92
|
-
@apply psui-relative;
|
|
93
|
-
|
|
94
|
-
.helper {
|
|
95
|
-
@apply psui-absolute psui-top-0;
|
|
96
|
-
right: -18px;
|
|
97
|
-
}
|
|
82
|
+
.psui-show-childrens-on-hover {
|
|
83
|
+
&:hover {
|
|
84
|
+
* {
|
|
85
|
+
opacity: 1 !important;
|
|
98
86
|
}
|
|
99
87
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
@apply psui-
|
|
88
|
+
|
|
89
|
+
&.absolute-childrens {
|
|
90
|
+
@apply psui-relative;
|
|
91
|
+
|
|
92
|
+
.helper {
|
|
93
|
+
@apply psui-absolute psui-top-0;
|
|
94
|
+
right: -18px;
|
|
95
|
+
}
|
|
103
96
|
}
|
|
104
97
|
}
|
|
105
98
|
|
|
99
|
+
.psui-transition {
|
|
100
|
+
@apply psui-transition-all psui-ease-in-out psui-duration-150;
|
|
101
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer components
|
|
1
|
+
@layer components{
|
|
2
2
|
|
|
3
3
|
.psui-el-chips {
|
|
4
4
|
@apply psui-inline-flex psui-relative;
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
|
|
127
127
|
&,
|
|
128
128
|
.psui-el-chips-close {
|
|
129
|
-
@apply psui-text-gray-50;
|
|
129
|
+
@apply .psui-text-gray-50;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.psui-el-chips-icon-prepend {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
|
|
141
141
|
&,
|
|
142
142
|
.psui-el-chips-close {
|
|
143
|
-
@apply psui-text-blue-60;
|
|
143
|
+
@apply .psui-text-blue-60;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.psui-el-chips-icon-prepend {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-cost-effect-bar {
|
|
3
|
-
@apply psui-overflow-visible;
|
|
3
|
+
@apply .psui-overflow-visible;
|
|
4
4
|
|
|
5
5
|
div {
|
|
6
|
-
@apply psui-relative psui-h-2 psui-rounded-2xl;
|
|
6
|
+
@apply .psui-relative .psui-h-2 .psui-rounded-2xl;
|
|
7
7
|
width: 100px;
|
|
8
8
|
|
|
9
9
|
span {
|
|
10
|
-
@apply psui-absolute psui-rounded-sm psui-z-10;
|
|
10
|
+
@apply .psui-absolute .psui-rounded-sm .psui-z-10;
|
|
11
11
|
background-color: #d6dde5;
|
|
12
12
|
width: 2px;
|
|
13
13
|
height: 14px;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.psui-el-simple-progress-bar {
|
|
18
|
-
@apply psui-overflow-hidden;
|
|
18
|
+
@apply .psui-overflow-hidden;
|
|
19
19
|
|
|
20
20
|
&-percentage {
|
|
21
21
|
border-radius: unset;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-progress-bar {
|
|
3
|
-
@apply psui-relative psui-h-2 psui-rounded-full psui-bg-red-10;
|
|
3
|
+
@apply .psui-relative .psui-h-2 .psui-rounded-full .psui-bg-red-10;
|
|
4
4
|
width: 100px;
|
|
5
5
|
|
|
6
6
|
&.is-breakeven {
|
|
7
|
-
@apply psui-bg-blue-20;
|
|
7
|
+
@apply .psui-bg-blue-20;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&-percentage {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&-divider {
|
|
19
|
-
@apply psui-absolute psui-rounded-full psui-z-auto psui-bg-gray-30;
|
|
19
|
+
@apply .psui-absolute .psui-rounded-full .psui-z-auto .psui-bg-gray-30;
|
|
20
20
|
width: 2px; height: 14px;
|
|
21
21
|
top: -3px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&-value {
|
|
25
|
-
@apply psui-h-2 psui-rounded-tl-full psui-rounded-bl-full;
|
|
25
|
+
@apply .psui-h-2 .psui-rounded-tl-full .psui-rounded-bl-full;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@keyframes animate-stripes {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-testimonial {
|
|
3
|
-
@apply psui-relative psui-bg-white psui-shadow-elevation-5 psui-flex psui-flex-col psui-rounded-lg
|
|
3
|
+
@apply psui-relative psui-bg-white psui-shadow-elevation-5 psui-flex psui-flex-col psui-rounded-lg w-full;
|
|
4
4
|
padding: 56px 42px 40px 32px;
|
|
5
5
|
|
|
6
6
|
&-icon {
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
:class="getComponentClass"
|
|
5
|
-
>
|
|
6
|
-
<slot />
|
|
2
|
+
<div class="psui-el-accordion" :class="getComponentClass">
|
|
3
|
+
<slot></slot>
|
|
7
4
|
</div>
|
|
8
5
|
</template>
|
|
9
6
|
|
|
10
|
-
<script
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
<script>
|
|
8
|
+
export const layouts = ['big', 'medium']
|
|
9
|
+
export default {
|
|
10
|
+
name: 'PsAccordion',
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* It defines the size of the accordion items. eg: text size and font.
|
|
14
|
+
*/
|
|
15
|
+
layout: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'medium',
|
|
18
|
+
validator: (value) => ['medium','big'].includes(value),
|
|
19
|
+
},
|
|
18
20
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
21
|
+
computed: {
|
|
22
|
+
getComponentClass() {
|
|
23
|
+
return `layout-${this.layout}`
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
25
27
|
</script>
|
|
26
|
-
|
|
27
28
|
<style> /* Please, use the file src/assets/scss/components/PsAccordion.scss */</style>
|
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="psui-el-accordion-item"
|
|
4
|
-
:class="{'status-opened':isOpen, 'disabled':disabled}"
|
|
5
|
-
>
|
|
2
|
+
<div class="psui-el-accordion-item" :class="{'status-opened':isOpen, 'disabled':disabled}">
|
|
6
3
|
<div class="psui-el-accordion-item-header">
|
|
7
|
-
<slot
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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>
|
|
4
|
+
<slot name='custom-header' :toggle="toggle" :isOpen="isOpen">
|
|
5
|
+
<div @click="toggle" class="psui-el-accordion-item-header-wrapper" v-if="!hasCustomHeader">
|
|
6
|
+
<h2 v-if="title" class="psui-el-accordion-item-title">{{ title }}</h2>
|
|
7
|
+
<slot name='header-additionals'></slot>
|
|
8
|
+
<i v-if="!disabled" class="psui-el-accordion-item-icon">{{ getIcon }}</i>
|
|
28
9
|
</div>
|
|
29
10
|
</slot>
|
|
30
11
|
</div>
|
|
@@ -35,11 +16,8 @@
|
|
|
35
16
|
@before-leave="start"
|
|
36
17
|
@after-leave="end"
|
|
37
18
|
>
|
|
38
|
-
<div
|
|
39
|
-
|
|
40
|
-
class="psui-el-accordion-item-content"
|
|
41
|
-
>
|
|
42
|
-
<slot />
|
|
19
|
+
<div v-if="isOpen" class="psui-el-accordion-item-content">
|
|
20
|
+
<slot></slot>
|
|
43
21
|
</div>
|
|
44
22
|
</transition>
|
|
45
23
|
</div>
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="psui-el-badge-with-icon"
|
|
4
|
-
:class="getComponentClass"
|
|
5
|
-
>
|
|
2
|
+
<div class="psui-el-badge-with-icon" :class="getComponentClass">
|
|
6
3
|
<i
|
|
7
4
|
v-if="icon"
|
|
8
5
|
:class="iconClass"
|
|
9
6
|
class="psui-el-badge-with-icon-icon"
|
|
10
|
-
>{{
|
|
11
|
-
<span class="psui-el-badge-with-icon-message">{{
|
|
7
|
+
>{{icon}}</i>
|
|
8
|
+
<span class="psui-el-badge-with-icon-message">{{message}}</span>
|
|
12
9
|
</div>
|
|
13
10
|
</template>
|
|
14
11
|
|
|
@@ -24,8 +21,7 @@
|
|
|
24
21
|
* It set any further css style that might be needed.
|
|
25
22
|
*/
|
|
26
23
|
iconClass: {
|
|
27
|
-
type: String
|
|
28
|
-
default:''
|
|
24
|
+
type: String
|
|
29
25
|
},
|
|
30
26
|
message: {
|
|
31
27
|
type: String,
|
|
@@ -8,9 +8,7 @@
|
|
|
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">
|
|
12
|
-
{{ total }}
|
|
13
|
-
</h5>
|
|
11
|
+
<h5 class="psui-text-gray-80">{{ total }}</h5>
|
|
14
12
|
</div>
|
|
15
13
|
</div>
|
|
16
14
|
</template>
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-chart-legend">
|
|
3
3
|
<div class="psui-flex psui-flex-shrink-0">
|
|
4
|
-
<div
|
|
5
|
-
class="psui-el-chart-legend-dot"
|
|
6
|
-
:style="dotColor"
|
|
7
|
-
/>
|
|
4
|
+
<div class="psui-el-chart-legend-dot" :style="dotColor"/>
|
|
8
5
|
</div>
|
|
9
6
|
<div class="psui-flex-grow-1 flex psui-flex-col">
|
|
10
|
-
<div class="psui-el-chart-legend-text">
|
|
11
|
-
{{ text }}
|
|
12
|
-
</div>
|
|
7
|
+
<div class="psui-el-chart-legend-text">{{ text }}</div>
|
|
13
8
|
<div class="flex psui-items-center psui-flex-shrink-0 psui-gap-1">
|
|
14
|
-
<span
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
>
|
|
9
|
+
<span v-if="this.total" class="psui-el-chart-legend-total">{{ total }}</span>
|
|
10
|
+
<span class="psui-text-gray-30" v-if="total && percentage"> | </span>
|
|
11
|
+
<span class="psui-el-chart-legend-percentage" v-if="percentage">
|
|
26
12
|
{{ percentage }}%
|
|
27
13
|
</span>
|
|
28
14
|
</div>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-cost-effect-bar">
|
|
3
3
|
<div>
|
|
4
|
-
<span :style="breakEvenPosition"
|
|
4
|
+
<span :style="breakEvenPosition"> </span>
|
|
5
5
|
|
|
6
6
|
<PsProgressBar
|
|
7
7
|
:value="value"
|
|
8
|
-
:
|
|
9
|
-
:
|
|
10
|
-
|
|
8
|
+
:percentageColor="percentageColor"
|
|
9
|
+
:bgColor="bgColor"
|
|
10
|
+
>
|
|
11
|
+
</PsProgressBar>
|
|
11
12
|
</div>
|
|
12
13
|
</div>
|
|
13
14
|
</template>
|
|
@@ -8,13 +8,11 @@
|
|
|
8
8
|
display="flex"
|
|
9
9
|
/>
|
|
10
10
|
</div>
|
|
11
|
-
<p class="psui-el-testimonial-description">
|
|
12
|
-
{{ description }}
|
|
13
|
-
</p>
|
|
11
|
+
<p class="psui-el-testimonial-description">{{description}}</p>
|
|
14
12
|
<div class="psui-el-testimonial-info">
|
|
15
|
-
<span class="psui-el-testimonial-info-user">{{
|
|
16
|
-
<span class="psui-el-testimonial-info-position">{{
|
|
17
|
-
<span class="psui-el-testimonial-info-jurisdiction">{{
|
|
13
|
+
<span class="psui-el-testimonial-info-user" >{{user}}</span>
|
|
14
|
+
<span class="psui-el-testimonial-info-position">{{position}}</span>
|
|
15
|
+
<span class="psui-el-testimonial-info-jurisdiction">{{jurisdiction}}</span>
|
|
18
16
|
</div>
|
|
19
17
|
</div>
|
|
20
18
|
</template>
|