@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
|
@@ -1,110 +1,113 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<button
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<svg
|
|
10
|
-
v-if="loading"
|
|
3
|
+
@click="onClick()"
|
|
4
|
+
@mouseenter="onMouseEnter"
|
|
5
|
+
@mouseleave="onMouseLeave"
|
|
6
|
+
class='psui-el-button'
|
|
7
|
+
:class="[getComponentClass, {'hover': isHover}, {'disabled': disabled || loading }]"
|
|
8
|
+
>
|
|
9
|
+
<svg v-if="loading"
|
|
11
10
|
class="psui-animate-spin psui-mr-3 psui-h-5 psui-w-5 psui-text-black"
|
|
12
11
|
:class="`${iconPosition == 'left' ? 'psui-mr-3' : 'psui-ml-3 psui--mr-1'}`"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
<circle
|
|
18
|
-
class="psui-opacity-25"
|
|
19
|
-
cx="12"
|
|
20
|
-
cy="12"
|
|
21
|
-
r="10"
|
|
22
|
-
stroke="currentColor"
|
|
23
|
-
stroke-width="4"
|
|
24
|
-
/>
|
|
25
|
-
<path
|
|
26
|
-
class="psui-opacity-75"
|
|
27
|
-
fill="currentColor"
|
|
28
|
-
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
29
|
-
/>
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
13
|
+
<circle class="psui-opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
14
|
+
<path class="psui-opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
|
30
15
|
</svg>
|
|
31
|
-
<i
|
|
32
|
-
v-else-if="icon"
|
|
33
|
-
:class="iconClass"
|
|
34
|
-
class="material-icons-round"
|
|
35
|
-
>{{ icon }}</i>
|
|
16
|
+
<i v-else-if="icon" :class='iconClass' class='material-icons-round'>{{icon}}</i>
|
|
36
17
|
<span v-if="label">{{ label }}</span>
|
|
37
18
|
</button>
|
|
38
19
|
</template>
|
|
39
20
|
|
|
40
|
-
<script
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const props = defineProps({
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
props: {
|
|
24
|
+
/**
|
|
25
|
+
* It set de label of the button when component is rendered.
|
|
26
|
+
*/
|
|
48
27
|
label: {
|
|
49
28
|
type: String,
|
|
50
|
-
default: ''
|
|
51
29
|
},
|
|
52
|
-
|
|
53
|
-
|
|
30
|
+
/**
|
|
31
|
+
* It set the layout of the button. eg: solid, outline, ghost, onlytext and caution.
|
|
32
|
+
*/
|
|
33
|
+
layout: {
|
|
34
|
+
type: String,
|
|
54
35
|
default: 'solid',
|
|
55
|
-
validator: (value
|
|
36
|
+
validator: (value) => ['solid','outline','ghost','onlytext','caution'].includes(value)
|
|
56
37
|
},
|
|
38
|
+
/**
|
|
39
|
+
* It sets the text key which will retrieve a icon from Google Fonts. Make sure to get the correct description of your icon on https://fonts.google.com/.
|
|
40
|
+
*/
|
|
57
41
|
icon: {
|
|
58
42
|
type: String,
|
|
59
|
-
default: ''
|
|
60
43
|
},
|
|
61
|
-
|
|
44
|
+
/**
|
|
45
|
+
* It sets the position of the icon. eg: left or right.
|
|
46
|
+
*/
|
|
47
|
+
iconPosition:{
|
|
62
48
|
type: String,
|
|
63
49
|
default: 'left',
|
|
64
|
-
validator: (value
|
|
50
|
+
validator: (value) => ['left','right'].includes(value)
|
|
65
51
|
},
|
|
52
|
+
/**
|
|
53
|
+
* It sets the size of the icon. eg: small, medium and big.
|
|
54
|
+
*/
|
|
66
55
|
size: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
56
|
+
type: String,
|
|
57
|
+
default: 'big',
|
|
58
|
+
validator: (value) => ['small','medium','big'].includes(value)
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* It disable the button. All mouse event are disabled.
|
|
62
|
+
*/
|
|
63
|
+
disabled: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* It disable and add a spin icon to the button. All mouse event are disabled.
|
|
69
|
+
*/
|
|
70
|
+
loading: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: false
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* It set any further css style that might be needed.
|
|
76
|
+
*/
|
|
77
|
+
iconClass:{
|
|
78
|
+
type: String
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
data(){
|
|
82
|
+
return {
|
|
83
|
+
isHover: false,
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
computed: {
|
|
87
|
+
getComponentClass(){
|
|
88
|
+
if(this.icon){
|
|
89
|
+
return `layout-${this.layout} size-${this.size} icon-${this.iconPosition}`
|
|
90
|
+
} else {
|
|
91
|
+
return `layout-${this.layout} size-${this.size}`
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
methods: {
|
|
96
|
+
onClick() {
|
|
97
|
+
if (this.disabled) return
|
|
98
|
+
this.$emit('click')
|
|
99
|
+
},
|
|
100
|
+
onMouseEnter(){
|
|
101
|
+
if(!this.disabled){
|
|
102
|
+
this.isHover = true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
onMouseLeave(){
|
|
106
|
+
if(!this.disabled){
|
|
107
|
+
this.isHover = false
|
|
108
|
+
}
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
|
-
|
|
111
|
+
}
|
|
109
112
|
</script>
|
|
110
113
|
|
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
:type="type"
|
|
11
11
|
:id="getInputId"
|
|
12
12
|
:checked="checked"
|
|
13
|
-
|
|
13
|
+
/>
|
|
14
14
|
<label
|
|
15
15
|
:disabled="disabled"
|
|
16
16
|
:for="getInputId"
|
|
17
17
|
:class="{'checked':checked && type === 'button'}"
|
|
18
18
|
>
|
|
19
|
-
<i
|
|
20
|
-
v-if="icon"
|
|
21
|
-
class="psui-el-chips-icon psui-el-chips-icon-prepend"
|
|
22
|
-
>{{ icon }}</i>
|
|
19
|
+
<i v-if="icon" class="psui-el-chips-icon psui-el-chips-icon-prepend">{{ icon }}</i>
|
|
23
20
|
{{ label }}
|
|
24
21
|
<button
|
|
25
22
|
@click="onClose"
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="psui-el-checkbox"
|
|
4
|
-
:class="[getComponentClass, {'disabled':disabled}]"
|
|
5
|
-
>
|
|
2
|
+
<div class='psui-el-checkbox' :class="[getComponentClass, {'disabled':disabled}]" >
|
|
6
3
|
<input
|
|
7
4
|
:id="getInputId"
|
|
8
5
|
type="checkbox"
|
|
9
6
|
:value="inputValue"
|
|
10
7
|
v-model="model"
|
|
11
8
|
:disabled="disabled"
|
|
12
|
-
|
|
9
|
+
/>
|
|
13
10
|
<label
|
|
14
11
|
:for="getInputId"
|
|
15
12
|
class="psui-el-checkmark"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="withPrevent"
|
|
4
|
-
class=
|
|
4
|
+
class='psui-el-checkbox'
|
|
5
5
|
:class="[getComponentClass, {'disabled':disabled}]"
|
|
6
6
|
v-bind="getComponentAttrs"
|
|
7
7
|
@click.prevent="$emit('click', $event)"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:id="getInputId"
|
|
15
15
|
v-bind="inputAttrs"
|
|
16
16
|
@change="$emit('change', $event)"
|
|
17
|
-
|
|
17
|
+
/>
|
|
18
18
|
<label
|
|
19
19
|
:for="getInputId"
|
|
20
20
|
class="psui-el-checkmark"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
<div
|
|
28
28
|
v-else
|
|
29
|
-
class=
|
|
29
|
+
class='psui-el-checkbox'
|
|
30
30
|
:class="[getComponentClass, {'disabled':disabled}]"
|
|
31
31
|
v-bind="getComponentAttrs"
|
|
32
32
|
>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
:id="getInputId"
|
|
39
39
|
v-bind="inputAttrs"
|
|
40
40
|
@change="$emit('change', $event)"
|
|
41
|
-
|
|
41
|
+
/>
|
|
42
42
|
<label
|
|
43
43
|
:for="getInputId"
|
|
44
44
|
class="psui-el-checkmark"
|
|
@@ -1,89 +1,86 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-draggable">
|
|
3
|
-
<div
|
|
4
|
-
class="psui-el-draggable-wrapper"
|
|
3
|
+
<div class="psui-el-draggable-wrapper"
|
|
5
4
|
v-for="(columnGroup, indexColumnGroup) in getColumns.columnGroups"
|
|
6
5
|
:key="indexColumnGroup"
|
|
7
6
|
:ref="indexColumnGroup"
|
|
8
7
|
:id="`edit-group-${indexColumnGroup}`"
|
|
9
8
|
>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
<PsTooltip
|
|
10
|
+
position="top"
|
|
11
|
+
:ignoreDialog="!columnGroup.disabled"
|
|
12
|
+
class="w-full"
|
|
13
|
+
>
|
|
14
|
+
<template v-slot:trigger>
|
|
15
|
+
<div
|
|
16
|
+
class="psui-el-draggable-wrapper-title"
|
|
17
|
+
:class="{'psui-opacity-50 psui-pointer-events-none':columnGroup.disabled}"
|
|
18
|
+
draggable="true"
|
|
19
|
+
@dragstart="$emit('drag-start-group', indexColumnGroup)"
|
|
20
|
+
@dragend="$emit('drag-end-group', indexColumnGroup)"
|
|
21
|
+
@dragover="$emit('drag-over-group', indexColumnGroup)"
|
|
22
|
+
>
|
|
23
|
+
<span class="flex psui-items-center">
|
|
24
|
+
<p>{{ columnGroup.title }}</p>
|
|
25
|
+
<PsIcon
|
|
26
|
+
class="psui-el-draggable-wrapper-title-icon"
|
|
27
|
+
v-if="columnGroup.hasHelper && columnGroup.hasHelper.showOnEditHideColumns"
|
|
28
|
+
icon="info"
|
|
29
|
+
size="16"
|
|
30
|
+
:icon-classes="columnGroup.disabled ? 'psui-ml-2 psui-text-gray-50':'psui-ml-2 psui-text-blue-50 psui-cursor-pointer'"
|
|
31
|
+
@click.native="$emit('column-group-helper', columnGroup.hasHelper)"
|
|
32
|
+
/>
|
|
33
|
+
</span>
|
|
34
|
+
<i class="material-icons-round">drag_indicator</i>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div
|
|
38
|
+
class="psui-el-draggable-wrapper-list"
|
|
39
|
+
:class="{'psui-opacity-50 psui-pointer-events-none':columnGroup.disabled}"
|
|
14
40
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
41
|
+
<div
|
|
42
|
+
v-for="(column, indexColumn) in columnGroup.columns"
|
|
43
|
+
:key="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
44
|
+
:id="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
45
|
+
class="psui-el-draggable-item"
|
|
46
|
+
draggable="true"
|
|
47
|
+
@dragstart="$emit('drag-start-item', { indexColumnGroup, indexColumn }, $event)"
|
|
48
|
+
@dragover="$emit('drag-over-item', { indexColumnGroup, indexColumn }, $event)"
|
|
49
|
+
@dragend="$emit('drag-end-item', $event)"
|
|
50
|
+
v-tooltip="column.tooltip || undefined"
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
class="psui-w-full psui-flex psui-items-center"
|
|
23
54
|
>
|
|
24
|
-
<span class="flex psui-items-center">
|
|
25
|
-
<
|
|
55
|
+
<span class="psui-el-draggable-item-title psui-flex psui-flex-row psui-items-center">
|
|
56
|
+
<PsCheckboxSimple
|
|
57
|
+
size="small"
|
|
58
|
+
:label="column.title"
|
|
59
|
+
:class="{'active' : column.isActive}"
|
|
60
|
+
:checked="column.isActive"
|
|
61
|
+
:disabled="column.isDisabled"
|
|
62
|
+
class="psui-el-draggable-item-checkbox"
|
|
63
|
+
@change="$emit('on-select-item', { studyKey: getColumns.key, indexColumnGroup, indexColumn, columnGroupKey: columnGroup.key })"
|
|
64
|
+
/>
|
|
26
65
|
<PsIcon
|
|
27
|
-
class="psui-el-draggable-
|
|
28
|
-
v-if="
|
|
66
|
+
class="psui-el-draggable-item-title-icon"
|
|
67
|
+
v-if="column.hasHelper && column.hasHelper.showOnEditHideColumns"
|
|
29
68
|
icon="info"
|
|
30
69
|
size="16"
|
|
31
70
|
:icon-classes="columnGroup.disabled ? 'psui-ml-2 psui-text-gray-50':'psui-ml-2 psui-text-blue-50 psui-cursor-pointer'"
|
|
32
|
-
@click="$emit('column-
|
|
71
|
+
@click.native="$emit('column-helper', column.hasHelper)"
|
|
33
72
|
/>
|
|
34
73
|
</span>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<div
|
|
39
|
-
class="psui-el-draggable-wrapper-list"
|
|
40
|
-
:class="{'psui-opacity-50 psui-pointer-events-none':columnGroup.disabled}"
|
|
41
|
-
>
|
|
42
|
-
<div
|
|
43
|
-
v-for="(column, indexColumn) in columnGroup.columns"
|
|
44
|
-
:key="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
45
|
-
:id="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
|
|
46
|
-
class="psui-el-draggable-item"
|
|
47
|
-
draggable="true"
|
|
48
|
-
@dragstart="$emit('drag-start-item', { indexColumnGroup, indexColumn }, $event)"
|
|
49
|
-
@dragover="$emit('drag-over-item', { indexColumnGroup, indexColumn }, $event)"
|
|
50
|
-
@dragend="$emit('drag-end-item', $event)"
|
|
51
|
-
v-tooltip="column.tooltip || undefined"
|
|
52
|
-
>
|
|
53
|
-
<div
|
|
54
|
-
class="psui-w-full psui-flex psui-items-center"
|
|
55
|
-
>
|
|
56
|
-
<span class="psui-el-draggable-item-title psui-flex psui-flex-row psui-items-center">
|
|
57
|
-
<PsCheckboxSimple
|
|
58
|
-
size="small"
|
|
59
|
-
:label="column.title"
|
|
60
|
-
:class="{'active' : column.isActive}"
|
|
61
|
-
:checked="column.isActive"
|
|
62
|
-
:disabled="column.isDisabled"
|
|
63
|
-
class="psui-el-draggable-item-checkbox"
|
|
64
|
-
@change="$emit('on-select-item', { studyKey: getColumns.key, indexColumnGroup, indexColumn, columnGroupKey: columnGroup.key })"
|
|
65
|
-
/>
|
|
66
|
-
<PsIcon
|
|
67
|
-
class="psui-el-draggable-item-title-icon"
|
|
68
|
-
v-if="column.hasHelper && column.hasHelper.showOnEditHideColumns"
|
|
69
|
-
icon="info"
|
|
70
|
-
size="16"
|
|
71
|
-
:icon-classes="columnGroup.disabled ? 'psui-ml-2 psui-text-gray-50':'psui-ml-2 psui-text-blue-50 psui-cursor-pointer'"
|
|
72
|
-
@click="$emit('column-helper', column.hasHelper)"
|
|
73
|
-
/>
|
|
74
|
-
</span>
|
|
75
|
-
<span class="psui-el-draggable-item-append">
|
|
76
|
-
<i class="psui-icon">drag_indicator</i>
|
|
77
|
-
</span>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
74
|
+
<span class="psui-el-draggable-item-append">
|
|
75
|
+
<i class="psui-icon">drag_indicator</i>
|
|
76
|
+
</span>
|
|
80
77
|
</div>
|
|
81
|
-
</
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</template>
|
|
81
|
+
<template v-slot:content class="!psui-opacity-0">
|
|
82
|
+
{{columnGroup.disabledTitle}}
|
|
83
|
+
</template>
|
|
87
84
|
</PsTooltip>
|
|
88
85
|
</div>
|
|
89
86
|
</div>
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
@keydown.esc="$emit('keydown-esc',$event)"
|
|
9
9
|
@mouseleave="$emit('mouse-leave',$event)"
|
|
10
10
|
>
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
<div class='psui-el-inline-selector-input-wrapper'>
|
|
12
13
|
<span> {{ search ? search : placeholder }} </span>
|
|
13
14
|
<input
|
|
14
15
|
ref="input"
|
|
@@ -21,23 +22,23 @@
|
|
|
21
22
|
autocorrect="off"
|
|
22
23
|
autocapitalize="off"
|
|
23
24
|
spellcheck="false"
|
|
24
|
-
|
|
25
|
+
/>
|
|
25
26
|
</div>
|
|
26
27
|
<transition
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
enter-active-class="transition ease-out duration-100 transform"
|
|
29
|
+
enter-class="opacity-0 scale-95"
|
|
30
|
+
enter-to-class="opacity-100 scale-100"
|
|
31
|
+
leave-active-class="transition ease-in duration-100 transform"
|
|
32
|
+
leave-class="opacity-100 scale-100"
|
|
33
|
+
leave-to-class="opacity-0 scale-95"
|
|
34
|
+
>
|
|
34
35
|
<div
|
|
35
36
|
v-if="search"
|
|
36
37
|
role="menu"
|
|
37
38
|
aria-orientation="vertical"
|
|
38
39
|
class="psui-el-inline-selector-dropdown-wrapper"
|
|
39
40
|
>
|
|
40
|
-
|
|
41
|
+
<slot name='loader'></slot>
|
|
41
42
|
<div class="psui-el-inline-selector-dropdown">
|
|
42
43
|
<div v-if="requestFetched && !jurisdictions.length">
|
|
43
44
|
<h3>Hmmmm</h3>
|
|
@@ -52,9 +53,9 @@
|
|
|
52
53
|
@click="$emit('click', $event)"
|
|
53
54
|
@mouseover="('mouse-over', $event)"
|
|
54
55
|
>
|
|
55
|
-
<span>
|
|
56
|
-
<h3>{{
|
|
57
|
-
<h3>{{
|
|
56
|
+
<span >
|
|
57
|
+
<h3>{{jurisdiction.title}}</h3>
|
|
58
|
+
<h3 >{{jurisdiction.type}}</h3>
|
|
58
59
|
</span>
|
|
59
60
|
</li>
|
|
60
61
|
</ul>
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="psui-el-radio"
|
|
4
|
-
:class="[getComponentClass, {'disabled':disabled}]"
|
|
5
|
-
>
|
|
2
|
+
<div class='psui-el-radio' :class="[getComponentClass, {'disabled':disabled}]" >
|
|
6
3
|
<input
|
|
7
4
|
:id="inputId"
|
|
8
5
|
type="radio"
|
|
9
6
|
:value="inputValue"
|
|
10
7
|
v-model="model"
|
|
11
|
-
:disabled=
|
|
12
|
-
|
|
13
|
-
<label
|
|
14
|
-
:for="inputId"
|
|
15
|
-
class="psui-el-checkmark"
|
|
16
|
-
><span>{{ label }}</span></label>
|
|
8
|
+
:disabled='disabled'
|
|
9
|
+
/>
|
|
10
|
+
<label :for="inputId" class="psui-el-checkmark"><span>{{ label }}</span></label>
|
|
17
11
|
</div>
|
|
12
|
+
|
|
18
13
|
</template>
|
|
19
14
|
|
|
20
15
|
<script>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class=
|
|
3
|
+
class='psui-el-radio'
|
|
4
4
|
:class="[getComponentClass, {'disabled':disabled}]"
|
|
5
5
|
v-bind="getComponentAttrs"
|
|
6
|
-
|
|
6
|
+
>
|
|
7
7
|
<input
|
|
8
8
|
type="radio"
|
|
9
9
|
:checked="checked"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:id="getInputId"
|
|
14
14
|
v-bind="inputAttrs"
|
|
15
15
|
@change="$emit('change')"
|
|
16
|
-
|
|
16
|
+
/>
|
|
17
17
|
<label
|
|
18
18
|
:for="getInputId"
|
|
19
19
|
class="psui-el-checkmark"
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
<div
|
|
27
27
|
class="slider-bar"
|
|
28
28
|
:style="{ width: progressWidth }"
|
|
29
|
-
|
|
29
|
+
></div>
|
|
30
30
|
|
|
31
31
|
<div
|
|
32
32
|
v-for="(barStyle, index) in bgBarStyles"
|
|
33
33
|
:key="index"
|
|
34
34
|
class="slider-bar-bg"
|
|
35
35
|
:style="bgBarStyles[index]"
|
|
36
|
-
|
|
36
|
+
></div>
|
|
37
37
|
|
|
38
38
|
<div
|
|
39
39
|
v-for="(bar, index) in barStyles"
|
|
40
40
|
:key="index"
|
|
41
41
|
class="slider-bar-dynamic"
|
|
42
42
|
:style="barStyles[index]"
|
|
43
|
-
|
|
43
|
+
></div>
|
|
44
44
|
|
|
45
45
|
<input
|
|
46
46
|
ref="slider"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
class="psui-el-slider-input psui-float-left"
|
|
52
52
|
v-model="sliderValue"
|
|
53
53
|
@input="updateSlider($event)"
|
|
54
|
-
|
|
54
|
+
/>
|
|
55
55
|
</div>
|
|
56
56
|
|
|
57
57
|
<div
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
:key="index"
|
|
64
64
|
class="line"
|
|
65
65
|
:style="{ left: `${grid}%` }"
|
|
66
|
-
|
|
66
|
+
></div>
|
|
67
67
|
|
|
68
68
|
<span class="info info-min">{{ min }}</span>
|
|
69
69
|
<span class="info info-max">{{ max }}</span>
|
|
@@ -203,7 +203,7 @@ export default {
|
|
|
203
203
|
created() {
|
|
204
204
|
window.addEventListener('resize', this.resizeHandler)
|
|
205
205
|
},
|
|
206
|
-
|
|
206
|
+
destroyed() {
|
|
207
207
|
window.removeEventListener('resize', this.resizeHandler)
|
|
208
208
|
},
|
|
209
209
|
mounted() {
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@click="change()"
|
|
6
|
-
>
|
|
7
|
-
<input
|
|
8
|
-
type="checkbox"
|
|
9
|
-
:checked="value"
|
|
10
|
-
>
|
|
11
|
-
<label
|
|
12
|
-
class="psui-el-switch-button"
|
|
13
|
-
:class="[getToggleClass]"
|
|
14
|
-
/>
|
|
2
|
+
<div class='psui-el-switch' :class="[getComponentClass, {'disabled':disabled}]" @click="change()">
|
|
3
|
+
<input type="checkbox" :checked="value" />
|
|
4
|
+
<label class='psui-el-switch-button' :class="[getToggleClass]" />
|
|
15
5
|
</div>
|
|
16
6
|
</template>
|
|
17
7
|
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
>
|
|
13
|
-
{{ getKeyLabel(item) }}
|
|
14
|
-
</button>
|
|
15
|
-
</div>
|
|
2
|
+
<div class="psui-el-toggle" role="group">
|
|
3
|
+
<button
|
|
4
|
+
type="button"
|
|
5
|
+
v-for="(item, index) in items"
|
|
6
|
+
:key="getKeyValue(item) + index"
|
|
7
|
+
@click="selectOption(item)"
|
|
8
|
+
:class="{ 'status-active': selected == item }"
|
|
9
|
+
>
|
|
10
|
+
{{ getKeyLabel(item) }}
|
|
11
|
+
</button>
|
|
12
|
+
</div>
|
|
16
13
|
</template>
|
|
17
14
|
|
|
18
15
|
<script>
|