@policystudio/policy-studio-ui-vue 1.1.89 → 1.1.90-beta.2
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 +4028 -110346
- package/package.json +37 -24
- package/postcss.config.js +1 -1
- package/scripts/kill-port.sh +12 -0
- package/src/assets/scss/base.scss +27 -23
- 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 +2 -63
- package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
- 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 +67 -51
- 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/tailwind.config.js +11 -2
- package/webpack.config.js +22 -0
- package/backup-package-lock.json +0 -37194
- /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-checkbox"
|
|
4
|
+
:class="[getComponentClass, {'disabled':disabled}]"
|
|
5
|
+
>
|
|
3
6
|
<input
|
|
4
7
|
:id="getInputId"
|
|
5
8
|
type="checkbox"
|
|
6
9
|
:value="inputValue"
|
|
7
10
|
v-model="model"
|
|
8
11
|
:disabled="disabled"
|
|
9
|
-
|
|
12
|
+
>
|
|
10
13
|
<label
|
|
11
14
|
:for="getInputId"
|
|
12
15
|
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,86 +1,89 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-draggable">
|
|
3
|
-
<div
|
|
3
|
+
<div
|
|
4
|
+
class="psui-el-draggable-wrapper"
|
|
4
5
|
v-for="(columnGroup, indexColumnGroup) in getColumns.columnGroups"
|
|
5
6
|
:key="indexColumnGroup"
|
|
6
7
|
:ref="indexColumnGroup"
|
|
7
8
|
:id="`edit-group-${indexColumnGroup}`"
|
|
8
9
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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}"
|
|
10
|
+
<PsTooltip
|
|
11
|
+
position="top"
|
|
12
|
+
:ignore-dialog="!columnGroup.disabled"
|
|
13
|
+
class="w-full"
|
|
40
14
|
>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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"
|
|
15
|
+
<template #trigger>
|
|
16
|
+
<div
|
|
17
|
+
class="psui-el-draggable-wrapper-title"
|
|
18
|
+
:class="{'psui-opacity-50 psui-pointer-events-none':columnGroup.disabled}"
|
|
19
|
+
draggable="true"
|
|
20
|
+
@dragstart="$emit('drag-start-group', indexColumnGroup)"
|
|
21
|
+
@dragend="$emit('drag-end-group', indexColumnGroup)"
|
|
22
|
+
@dragover="$emit('drag-over-group', indexColumnGroup)"
|
|
54
23
|
>
|
|
55
|
-
<span class="
|
|
56
|
-
<
|
|
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
|
-
/>
|
|
24
|
+
<span class="flex psui-items-center">
|
|
25
|
+
<p>{{ columnGroup.title }}</p>
|
|
65
26
|
<PsIcon
|
|
66
|
-
class="psui-el-draggable-
|
|
67
|
-
v-if="
|
|
27
|
+
class="psui-el-draggable-wrapper-title-icon"
|
|
28
|
+
v-if="columnGroup.hasHelper && columnGroup.hasHelper.showOnEditHideColumns"
|
|
68
29
|
icon="info"
|
|
69
30
|
size="16"
|
|
70
31
|
:icon-classes="columnGroup.disabled ? 'psui-ml-2 psui-text-gray-50':'psui-ml-2 psui-text-blue-50 psui-cursor-pointer'"
|
|
71
|
-
@click
|
|
32
|
+
@click="$emit('column-group-helper', columnGroup.hasHelper)"
|
|
72
33
|
/>
|
|
73
34
|
</span>
|
|
74
|
-
<
|
|
75
|
-
<i class="psui-icon">drag_indicator</i>
|
|
76
|
-
</span>
|
|
35
|
+
<i class="material-icons-round">drag_indicator</i>
|
|
77
36
|
</div>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
<template
|
|
83
|
+
#content
|
|
84
|
+
>
|
|
85
|
+
{{ columnGroup.disabledTitle }}
|
|
86
|
+
</template>
|
|
84
87
|
</PsTooltip>
|
|
85
88
|
</div>
|
|
86
89
|
</div>
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
@keydown.esc="$emit('keydown-esc',$event)"
|
|
9
9
|
@mouseleave="$emit('mouse-leave',$event)"
|
|
10
10
|
>
|
|
11
|
-
|
|
12
|
-
<div class='psui-el-inline-selector-input-wrapper'>
|
|
11
|
+
<div class="psui-el-inline-selector-input-wrapper">
|
|
13
12
|
<span> {{ search ? search : placeholder }} </span>
|
|
14
13
|
<input
|
|
15
14
|
ref="input"
|
|
@@ -22,23 +21,23 @@
|
|
|
22
21
|
autocorrect="off"
|
|
23
22
|
autocapitalize="off"
|
|
24
23
|
spellcheck="false"
|
|
25
|
-
|
|
24
|
+
>
|
|
26
25
|
</div>
|
|
27
26
|
<transition
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
enter-active-class="transition ease-out duration-100 transform"
|
|
28
|
+
enter-class="opacity-0 scale-95"
|
|
29
|
+
enter-to-class="opacity-100 scale-100"
|
|
30
|
+
leave-active-class="transition ease-in duration-100 transform"
|
|
31
|
+
leave-class="opacity-100 scale-100"
|
|
32
|
+
leave-to-class="opacity-0 scale-95"
|
|
33
|
+
>
|
|
35
34
|
<div
|
|
36
35
|
v-if="search"
|
|
37
36
|
role="menu"
|
|
38
37
|
aria-orientation="vertical"
|
|
39
38
|
class="psui-el-inline-selector-dropdown-wrapper"
|
|
40
39
|
>
|
|
41
|
-
|
|
40
|
+
<slot name="loader" />
|
|
42
41
|
<div class="psui-el-inline-selector-dropdown">
|
|
43
42
|
<div v-if="requestFetched && !jurisdictions.length">
|
|
44
43
|
<h3>Hmmmm</h3>
|
|
@@ -53,9 +52,9 @@
|
|
|
53
52
|
@click="$emit('click', $event)"
|
|
54
53
|
@mouseover="('mouse-over', $event)"
|
|
55
54
|
>
|
|
56
|
-
<span
|
|
57
|
-
<h3>{{jurisdiction.title}}</h3>
|
|
58
|
-
<h3
|
|
55
|
+
<span>
|
|
56
|
+
<h3>{{ jurisdiction.title }}</h3>
|
|
57
|
+
<h3>{{ jurisdiction.type }}</h3>
|
|
59
58
|
</span>
|
|
60
59
|
</li>
|
|
61
60
|
</ul>
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-radio"
|
|
4
|
+
:class="[getComponentClass, {'disabled':disabled}]"
|
|
5
|
+
>
|
|
3
6
|
<input
|
|
4
7
|
:id="inputId"
|
|
5
8
|
type="radio"
|
|
6
9
|
:value="inputValue"
|
|
7
10
|
v-model="model"
|
|
8
|
-
:disabled=
|
|
9
|
-
|
|
10
|
-
<label
|
|
11
|
+
:disabled="disabled"
|
|
12
|
+
>
|
|
13
|
+
<label
|
|
14
|
+
:for="inputId"
|
|
15
|
+
class="psui-el-checkmark"
|
|
16
|
+
><span>{{ label }}</span></label>
|
|
11
17
|
</div>
|
|
12
|
-
|
|
13
18
|
</template>
|
|
14
19
|
|
|
15
20
|
<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
|
+
/>
|
|
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
|
+
/>
|
|
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
|
+
/>
|
|
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
|
+
/>
|
|
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
|
+
unmounted() {
|
|
207
207
|
window.removeEventListener('resize', this.resizeHandler)
|
|
208
208
|
},
|
|
209
209
|
mounted() {
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-switch"
|
|
4
|
+
:class="[getComponentClass, {'disabled':disabled}]"
|
|
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
|
+
/>
|
|
5
15
|
</div>
|
|
6
16
|
</template>
|
|
7
17
|
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-toggle"
|
|
4
|
+
role="group"
|
|
5
|
+
>
|
|
6
|
+
<button
|
|
7
|
+
type="button"
|
|
8
|
+
v-for="(item, index) in items"
|
|
9
|
+
:key="getKeyValue(item) + index"
|
|
10
|
+
@click="selectOption(item)"
|
|
11
|
+
:class="{ 'status-active': selected == item }"
|
|
12
|
+
>
|
|
13
|
+
{{ getKeyLabel(item) }}
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
13
16
|
</template>
|
|
14
17
|
|
|
15
18
|
<script>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<table
|
|
2
|
+
<table
|
|
3
|
+
:class="cssAlign"
|
|
4
|
+
class="psui-el-table psui-table"
|
|
5
|
+
>
|
|
3
6
|
<thead v-if="header">
|
|
4
7
|
<th
|
|
5
8
|
v-for="head in header"
|
|
@@ -9,18 +12,24 @@
|
|
|
9
12
|
</th>
|
|
10
13
|
</thead>
|
|
11
14
|
<tbody v-if="type === 'simple'">
|
|
12
|
-
<tr
|
|
13
|
-
|
|
15
|
+
<tr
|
|
16
|
+
v-for="(dt, index) in data"
|
|
17
|
+
:key="index"
|
|
18
|
+
>
|
|
19
|
+
<td
|
|
20
|
+
v-for="(head, cellRow) in header"
|
|
21
|
+
:key="cellRow"
|
|
22
|
+
>
|
|
14
23
|
{{ data[index][head] }}
|
|
15
24
|
</td>
|
|
16
25
|
</tr>
|
|
17
26
|
</tbody>
|
|
18
|
-
<slot v-else
|
|
27
|
+
<slot v-else />
|
|
19
28
|
<tfoot v-if="footer">
|
|
20
29
|
<th
|
|
21
30
|
v-for="ft in footer"
|
|
22
31
|
:key="ft"
|
|
23
|
-
class=
|
|
32
|
+
class="psui-bg-gray-10 psui-text-gray-80 psui-font-normal"
|
|
24
33
|
>
|
|
25
34
|
{{ ft }}
|
|
26
35
|
</th>
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<tbody v-if="data">
|
|
3
|
-
<tr
|
|
4
|
-
|
|
3
|
+
<tr
|
|
4
|
+
v-for="(dt, index) in data"
|
|
5
|
+
:key="index"
|
|
6
|
+
>
|
|
7
|
+
<td
|
|
8
|
+
v-for="(el, elIndex) in dt"
|
|
9
|
+
:key="elIndex"
|
|
10
|
+
class="psui-px-4 psui-py-2"
|
|
11
|
+
>
|
|
5
12
|
<div class="psui-flex psui-gap-1 psui-items-center">
|
|
6
13
|
<span class="psui-text-gray-80">
|
|
7
14
|
{{ el[Object.keys(el)[1]].toFixed(3) }}
|
|
@@ -14,8 +21,14 @@
|
|
|
14
21
|
: 'psui-text-red-70'
|
|
15
22
|
"
|
|
16
23
|
>
|
|
17
|
-
<i
|
|
18
|
-
|
|
24
|
+
<i
|
|
25
|
+
v-if="el[Object.keys(el)[1]] >= 0"
|
|
26
|
+
class="material-icons"
|
|
27
|
+
>arrow_upward</i>
|
|
28
|
+
<i
|
|
29
|
+
v-else
|
|
30
|
+
class="material-icons"
|
|
31
|
+
>arrow_downward</i>
|
|
19
32
|
<span>
|
|
20
33
|
{{
|
|
21
34
|
(
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
v-if="$slots.dropdownTrigger"
|
|
11
11
|
@click="show && !toggleWhenActive ? '' : toggle()"
|
|
12
12
|
>
|
|
13
|
-
<slot name="dropdownTrigger"
|
|
13
|
+
<slot name="dropdownTrigger" />
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<button
|
|
@@ -25,8 +25,11 @@
|
|
|
25
25
|
<slot
|
|
26
26
|
v-if="show && $slots.buttonLabelOnShow"
|
|
27
27
|
name="buttonLabelOnShow"
|
|
28
|
-
|
|
29
|
-
<slot
|
|
28
|
+
/>
|
|
29
|
+
<slot
|
|
30
|
+
v-else
|
|
31
|
+
name="buttonLabel"
|
|
32
|
+
/>
|
|
30
33
|
</button>
|
|
31
34
|
<div
|
|
32
35
|
ref="PSDropdownDialog"
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
:style="{ minWidth: minWidthDropDown }"
|
|
38
41
|
>
|
|
39
42
|
<div class="psui-el-dropdown-menu-dialog">
|
|
40
|
-
<slot name="items"
|
|
43
|
+
<slot name="items" />
|
|
41
44
|
</div>
|
|
42
45
|
</div>
|
|
43
46
|
</div>
|
|
@@ -104,7 +107,7 @@ export default {
|
|
|
104
107
|
return document.documentElement.clientWidth - bounds['left'] - 30
|
|
105
108
|
},
|
|
106
109
|
},
|
|
107
|
-
|
|
110
|
+
beforeUnmount() {
|
|
108
111
|
this.unwatchParentScrolling()
|
|
109
112
|
},
|
|
110
113
|
methods: {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
size="20"
|
|
30
30
|
class="psui-text-blue-60 psui-opacity-0 psui-transition psui-leading-none psui-cursor-pointer psui-ml-1"
|
|
31
31
|
:display="item.key == getItems.key || isHovering == index ? 'flex' : 'none'"
|
|
32
|
-
@click.
|
|
32
|
+
@click.stop="$eventBus.$emit('openDescriptionModal', { type: item.hasHelper.type, id: item.hasHelper.id, slug: item.hasHelper.slug })"
|
|
33
33
|
/>
|
|
34
34
|
</div>
|
|
35
35
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-input"
|
|
4
|
+
:class="[getComponentClass, `layout-${layout}`]"
|
|
5
|
+
>
|
|
4
6
|
<label v-if="label"> {{ label }} </label>
|
|
5
7
|
|
|
6
8
|
<div
|
|
@@ -8,15 +10,18 @@
|
|
|
8
10
|
@mouseenter="$emit('mouseenter',$event)"
|
|
9
11
|
@mouseleave="$emit('mouseleave',$event)"
|
|
10
12
|
>
|
|
11
|
-
<div
|
|
12
|
-
|
|
13
|
+
<div
|
|
14
|
+
v-if="$slots.prepend"
|
|
15
|
+
class="psui-el-input-prepend"
|
|
16
|
+
>
|
|
17
|
+
<slot name="prepend" />
|
|
13
18
|
</div>
|
|
14
19
|
<PsRichTooltip
|
|
15
20
|
class="psui-w-full"
|
|
16
21
|
css-class="psui-w-48"
|
|
17
22
|
:ignore-dialog="!showTooltip"
|
|
18
23
|
>
|
|
19
|
-
<template
|
|
24
|
+
<template #trigger>
|
|
20
25
|
<input
|
|
21
26
|
:title="title"
|
|
22
27
|
:type="type"
|
|
@@ -33,25 +38,36 @@
|
|
|
33
38
|
@change="$emit('change', $event)"
|
|
34
39
|
v-bind="getAttrs"
|
|
35
40
|
:class="{ 'focus': isFocus }"
|
|
36
|
-
|
|
41
|
+
>
|
|
37
42
|
</template>
|
|
38
|
-
<template
|
|
43
|
+
<template #content>
|
|
39
44
|
<div class="text-left">
|
|
40
45
|
{{ tooltipText }}
|
|
41
46
|
</div>
|
|
42
47
|
</template>
|
|
43
48
|
</PsRichTooltip>
|
|
44
|
-
<div
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
<div
|
|
50
|
+
v-if="$slots.append || hasError"
|
|
51
|
+
class="psui-el-input-append"
|
|
52
|
+
>
|
|
53
|
+
<span
|
|
54
|
+
v-if="hasError"
|
|
55
|
+
class="material-icons psui-text-red-20 material-icons-sharp"
|
|
56
|
+
>error</span>
|
|
57
|
+
<slot
|
|
58
|
+
v-else
|
|
59
|
+
name="append"
|
|
60
|
+
/>
|
|
47
61
|
</div>
|
|
48
62
|
</div>
|
|
49
63
|
|
|
50
|
-
|
|
64
|
+
<p
|
|
65
|
+
v-if="hint || (hasError && typeof hasError === 'string')"
|
|
66
|
+
class="psui-el-input-hint"
|
|
67
|
+
>
|
|
51
68
|
{{ typeof hasError === 'string' ? hasError : hint }}
|
|
52
|
-
</p>
|
|
53
|
-
|
|
54
|
-
</div>
|
|
69
|
+
</p>
|
|
70
|
+
</div>
|
|
55
71
|
</template>
|
|
56
72
|
|
|
57
73
|
<script>
|