@milaboratories/milaboratories.ui-examples.ui 1.3.22 → 1.3.24
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/.turbo/turbo-build.log +7 -5
- package/CHANGELOG.md +14 -0
- package/dist/assets/{index-CgivL3td.js → index-BnY_HQaE.js} +187 -187
- package/dist/assets/{index-CgivL3td.js.map → index-BnY_HQaE.js.map} +1 -1
- package/dist/assets/{index-BAGoOWSb.css → index-CSH2gGW0.css} +1 -1
- package/dist/index.html +2 -2
- package/package.json +5 -4
- package/src/app.ts +3 -5
- package/src/pages/DraftsPage.vue +8 -0
- package/src/pages/{DropdownsPage.vue → FormComponentsPage/Dropdowns.vue} +55 -52
- package/src/pages/FormComponentsPage/FormComponentsPage.vue +59 -0
- package/src/pages/FormComponentsPage/Main.vue +105 -0
- package/src/pages/FormComponentsPage/WithTooltips.vue +141 -0
- package/src/pages/FormComponentsPage/index.ts +1 -0
- package/src/pages/HistogramPage/index.ts +1 -0
- package/src/pages/StackedBarPage/index.ts +1 -0
- package/tsconfig.node.json +0 -2
- package/vite.config.ts +4 -0
- package/src/pages/FormComponentsPage.vue +0 -109
package/dist/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' blob:">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BnY_HQaE.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="./assets/index-CSH2gGW0.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/milaboratories.ui-examples.ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"vue": "^3.5.13",
|
|
7
|
-
"@
|
|
8
|
-
"@
|
|
7
|
+
"@milaboratories/milaboratories.ui-examples.model": "1.1.13",
|
|
8
|
+
"@platforma-sdk/model": "^1.21.20"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
"zod": "~3.23.8",
|
|
17
17
|
"ag-grid-enterprise": "^33.0.3",
|
|
18
18
|
"ag-grid-vue3": "^33.0.3",
|
|
19
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
19
20
|
"@milaboratories/helpers": "^1.6.11",
|
|
20
|
-
"@platforma-sdk/ui-vue": "^1.21.
|
|
21
|
+
"@platforma-sdk/ui-vue": "^1.21.29"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"dev": "vite",
|
package/src/app.ts
CHANGED
|
@@ -4,9 +4,7 @@ import { computed, reactive, ref } from 'vue';
|
|
|
4
4
|
import LogViewPage from './pages/LogViewPage.vue';
|
|
5
5
|
import ModalsPage from './pages/ModalsPage.vue';
|
|
6
6
|
import InjectEnvPage from './pages/InjectEnvPage.vue';
|
|
7
|
-
import DropdownsPage from './pages/DropdownsPage.vue';
|
|
8
7
|
import UseWatchFetchPage from './pages/UseWatchFetchPage.vue';
|
|
9
|
-
import FormComponentsPage from './pages/FormComponentsPage.vue';
|
|
10
8
|
import TypographyPage from './pages/TypographyPage.vue';
|
|
11
9
|
import AgGridVuePage from './pages/AgGridVuePage.vue';
|
|
12
10
|
import SelectFilesPage from './pages/SelectFilesPage.vue';
|
|
@@ -19,12 +17,13 @@ import DraftsPage from './pages/DraftsPage.vue';
|
|
|
19
17
|
import LayoutPage from './pages/LayoutPage.vue';
|
|
20
18
|
import ButtonsPage from './pages/ButtonsPage.vue';
|
|
21
19
|
import NotificationsPage from './pages/NotificationsPage.vue';
|
|
22
|
-
import StackedBarPage from './pages/StackedBarPage/StackedBarPage.vue';
|
|
23
20
|
import LoadersPage from './pages/LoadersPage.vue';
|
|
24
21
|
import AddSectionPage from './pages/AddSectionPage.vue';
|
|
25
22
|
import { uniqueId } from '@milaboratories/helpers';
|
|
26
23
|
import SectionPage from './pages/SectionPage.vue';
|
|
27
|
-
import
|
|
24
|
+
import { FormComponentsPage } from './pages/FormComponentsPage';
|
|
25
|
+
import { HistogramPage } from './pages/HistogramPage';
|
|
26
|
+
import { StackedBarPage } from './pages/StackedBarPage';
|
|
28
27
|
|
|
29
28
|
export const sdkPlugin = defineApp(platforma, (app) => {
|
|
30
29
|
// Additional data
|
|
@@ -81,7 +80,6 @@ export const sdkPlugin = defineApp(platforma, (app) => {
|
|
|
81
80
|
'/log-view': () => LogViewPage,
|
|
82
81
|
'/modals': () => ModalsPage,
|
|
83
82
|
'/inject-env': () => InjectEnvPage,
|
|
84
|
-
'/dropdowns': () => DropdownsPage,
|
|
85
83
|
'/use-watch-fetch': () => UseWatchFetchPage,
|
|
86
84
|
'/form-components': () => FormComponentsPage,
|
|
87
85
|
'/typography': () => TypographyPage,
|
package/src/pages/DraftsPage.vue
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
PlDropdownLine,
|
|
10
10
|
PlTextField,
|
|
11
11
|
PlBtnGhost,
|
|
12
|
+
Color,
|
|
12
13
|
} from '@platforma-sdk/ui-vue';
|
|
13
14
|
import { computed, reactive, ref } from 'vue';
|
|
14
15
|
|
|
@@ -57,6 +58,10 @@ const onClickSettings = () => {
|
|
|
57
58
|
loading.value = true;
|
|
58
59
|
setTimeout(() => loading.value = false, 2000);
|
|
59
60
|
};
|
|
61
|
+
|
|
62
|
+
const triggerError = () => {
|
|
63
|
+
Color.fromString('invalid color');
|
|
64
|
+
};
|
|
60
65
|
</script>
|
|
61
66
|
|
|
62
67
|
<template>
|
|
@@ -89,6 +94,9 @@ const onClickSettings = () => {
|
|
|
89
94
|
<PlDropdownLine v-model="data.value" clearable :label="data.title" :options="data.options" />
|
|
90
95
|
<PlDropdownLine v-model="data.value" prefix="Option:" clearable :label="data.title" :options="data.options" />
|
|
91
96
|
</PlRow>
|
|
97
|
+
<PlRow>
|
|
98
|
+
<PlBtnPrimary @click="triggerError">Trigger ui vue error</PlBtnPrimary>
|
|
99
|
+
</PlRow>
|
|
92
100
|
</PlBlockPage>
|
|
93
101
|
</template>
|
|
94
102
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { undef } from '@milaboratories/helpers';
|
|
3
3
|
import {
|
|
4
|
-
PlBlockPage,
|
|
5
4
|
PlBtnPrimary,
|
|
6
5
|
PlCheckbox,
|
|
7
6
|
PlContainer,
|
|
@@ -109,65 +108,69 @@ const showOptionsLoading = () => {
|
|
|
109
108
|
</script>
|
|
110
109
|
|
|
111
110
|
<template>
|
|
112
|
-
<
|
|
111
|
+
<PlContainer>
|
|
113
112
|
<PlRow>
|
|
114
113
|
<PlCheckbox v-model="data.disabled">Disabled</PlCheckbox>
|
|
115
114
|
<PlCheckbox v-model="data.clearable">Clearable</PlCheckbox>
|
|
116
115
|
<PlBtnPrimary @click="showOptionsLoading">Show options loading</PlBtnPrimary>
|
|
117
116
|
</PlRow>
|
|
118
|
-
<
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
117
|
+
<PlRow>
|
|
118
|
+
<PlContainer width="400px">
|
|
119
|
+
<PlDropdown
|
|
120
|
+
v-model="data.model"
|
|
121
|
+
:disabled="data.disabled"
|
|
122
|
+
:clearable="data.clearable"
|
|
123
|
+
label="PlDropdown"
|
|
124
|
+
:options="simpleOptions"
|
|
125
|
+
/>
|
|
126
|
+
<PlDropdown
|
|
127
|
+
v-model="data.model"
|
|
128
|
+
:disabled="data.disabled"
|
|
129
|
+
:clearable="data.clearable"
|
|
130
|
+
label="PlDropdown"
|
|
131
|
+
:options="simpleOptions"
|
|
132
|
+
/>
|
|
133
|
+
<PlDropdownRef
|
|
134
|
+
v-model="data.ref"
|
|
135
|
+
:disabled="data.disabled"
|
|
136
|
+
:clearable="data.clearable"
|
|
137
|
+
label="PlDropdownRef"
|
|
138
|
+
:options="refOptions"
|
|
139
|
+
/>
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
<PlDropdownMulti
|
|
142
|
+
v-model="data.multi"
|
|
143
|
+
:disabled="data.disabled"
|
|
144
|
+
:options="simpleOptions ?? []"
|
|
145
|
+
label="PlDropdownMulti"
|
|
146
|
+
/>
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
148
|
+
<PlDropdownMultiRef
|
|
149
|
+
v-model="data.multiRefSelected"
|
|
150
|
+
:disabled="data.disabled"
|
|
151
|
+
:options="refOptionsMulti ?? []"
|
|
152
|
+
label="PlDropdownMultiRef"
|
|
153
|
+
/>
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
<PlDropdownMulti
|
|
156
|
+
v-model="data.multi"
|
|
157
|
+
:disabled="data.disabled"
|
|
158
|
+
:options="undefined"
|
|
159
|
+
label="PlDropdownMulti"
|
|
160
|
+
/>
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
162
|
+
<PlDropdownMultiRef
|
|
163
|
+
v-model="data.multi"
|
|
164
|
+
:disabled="data.disabled"
|
|
165
|
+
:options="undefined"
|
|
166
|
+
label="PlDropdownMultiRef"
|
|
167
|
+
/>
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
<div v-if="false" style="height: 1200px; background-color: green; width: 50px"/>
|
|
170
|
+
</PlContainer>
|
|
171
|
+
</PlRow>
|
|
172
|
+
<PlRow>
|
|
173
|
+
<pre>{{ data }}</pre>
|
|
174
|
+
</PlRow>
|
|
175
|
+
</PlContainer>
|
|
173
176
|
</template>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
PlBlockPage,
|
|
4
|
+
PlRow,
|
|
5
|
+
PlBtnGroup,
|
|
6
|
+
PlContainer,
|
|
7
|
+
} from '@platforma-sdk/ui-vue';
|
|
8
|
+
import type { Component } from 'vue';
|
|
9
|
+
import { shallowRef } from 'vue';
|
|
10
|
+
import WithTooltips from './WithTooltips.vue';
|
|
11
|
+
import Main from './Main.vue';
|
|
12
|
+
import Dropdowns from './Dropdowns.vue';
|
|
13
|
+
|
|
14
|
+
const current = shallowRef<Component>(Main);
|
|
15
|
+
|
|
16
|
+
const options = [{
|
|
17
|
+
label: 'Main',
|
|
18
|
+
value: Main,
|
|
19
|
+
}, {
|
|
20
|
+
label: 'Tooltips',
|
|
21
|
+
value: WithTooltips,
|
|
22
|
+
}, {
|
|
23
|
+
label: 'Dropdown Examples',
|
|
24
|
+
value: Dropdowns,
|
|
25
|
+
}];
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<PlBlockPage :class="$style.components">
|
|
30
|
+
<template #title>Form components</template>
|
|
31
|
+
<PlRow>
|
|
32
|
+
<PlContainer>
|
|
33
|
+
<PlBtnGroup v-model="current" :options="options" />
|
|
34
|
+
</PlContainer>
|
|
35
|
+
</PlRow>
|
|
36
|
+
<PlRow>
|
|
37
|
+
<component :is="current" />
|
|
38
|
+
</PlRow>
|
|
39
|
+
</PlBlockPage>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<style module>
|
|
43
|
+
/* :global(.pl-container) {
|
|
44
|
+
outline: 1px dotted #eee;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:global(.pl-section-separator) {
|
|
48
|
+
outline: 1px dashed #eee;
|
|
49
|
+
} */
|
|
50
|
+
|
|
51
|
+
.components pre {
|
|
52
|
+
border: 1px solid var(--txt-01);
|
|
53
|
+
padding: 12px;
|
|
54
|
+
font-weight: bolder;
|
|
55
|
+
overflow: auto;
|
|
56
|
+
max-width: 50vw;
|
|
57
|
+
background-color: #eeeeee55;
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
PlRow,
|
|
4
|
+
PlContainer,
|
|
5
|
+
PlBtnGroup,
|
|
6
|
+
PlCheckboxGroup,
|
|
7
|
+
PlCheckbox,
|
|
8
|
+
PlTextField,
|
|
9
|
+
PlSectionSeparator,
|
|
10
|
+
PlDropdown,
|
|
11
|
+
listToOptions,
|
|
12
|
+
PlMaskIcon16,
|
|
13
|
+
PlAccordion,
|
|
14
|
+
PlAccordionSection,
|
|
15
|
+
PlDropdownMulti,
|
|
16
|
+
} from '@platforma-sdk/ui-vue';
|
|
17
|
+
import { reactive } from 'vue';
|
|
18
|
+
|
|
19
|
+
const data = reactive({
|
|
20
|
+
text: 'some text',
|
|
21
|
+
single: 'A',
|
|
22
|
+
multiple: ['A', 'B'],
|
|
23
|
+
importHandles: [] as unknown[],
|
|
24
|
+
currentTab: 'one',
|
|
25
|
+
compactBtnGroup: false,
|
|
26
|
+
multipleAccordion: false,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const shortOptions = listToOptions(['A', 'B', 'C', 'D']);
|
|
30
|
+
const options = listToOptions(['A', 'B', 'C', 'D', 'Lorem ipsum', 'Lorem ipsum dolor sit amet', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.']);
|
|
31
|
+
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<PlRow no-gap>
|
|
36
|
+
<PlContainer width="400px">
|
|
37
|
+
<PlBtnGroup
|
|
38
|
+
v-model="data.single"
|
|
39
|
+
label="PlBtnGroup"
|
|
40
|
+
:options="shortOptions"
|
|
41
|
+
:compact="data.compactBtnGroup"
|
|
42
|
+
/>
|
|
43
|
+
<PlCheckbox v-model="data.compactBtnGroup">Compact btn group component</PlCheckbox>
|
|
44
|
+
<PlTextField v-model="data.text" label="PlTextField" clearable />
|
|
45
|
+
<PlTextField v-model="data.text" label="PlTextField (password)" type="password" clearable />
|
|
46
|
+
<PlDropdown v-model="data.single" label="PlDropdown" :options="options" />
|
|
47
|
+
<PlDropdownMulti v-model="data.multiple" label="PlDropdownMulti" :options="options" />
|
|
48
|
+
<PlSectionSeparator>Group name</PlSectionSeparator>
|
|
49
|
+
<PlTextField v-model="data.text" label="PlTextField" />
|
|
50
|
+
<PlDropdown v-model="data.single" label="PlDropdown" :options="options" />
|
|
51
|
+
<PlCheckboxGroup v-model="data.multiple" label="PlCheckboxGroup" :options="options" />
|
|
52
|
+
<PlSectionSeparator>
|
|
53
|
+
<PlMaskIcon16 name="chevron-right" />Slot usage<PlMaskIcon16 name="chevron-left" />
|
|
54
|
+
</PlSectionSeparator>
|
|
55
|
+
</PlContainer>
|
|
56
|
+
<div style="width: 1px; background-color: var(--border-color-div-grey)" />
|
|
57
|
+
<PlContainer width="400px" style="margin: 0 24px 0 24px">
|
|
58
|
+
<PlAccordionSection label="Section 1">
|
|
59
|
+
<span>Section content</span>
|
|
60
|
+
</PlAccordionSection>
|
|
61
|
+
<PlAccordionSection label="Section 2">
|
|
62
|
+
<PlTextField v-model="data.text" label="Additional text field" clearable />
|
|
63
|
+
<PlDropdown v-model="data.single" label="Additional PlDropdown" :options="options" />
|
|
64
|
+
</PlAccordionSection>
|
|
65
|
+
<PlAccordionSection label="Section 3">
|
|
66
|
+
<PlTextField v-model="data.text" label="Additional text field" clearable />
|
|
67
|
+
<PlDropdown v-model="data.single" label="Additional PlDropdown" :options="options" />
|
|
68
|
+
</PlAccordionSection>
|
|
69
|
+
|
|
70
|
+
<PlCheckbox v-model="data.multipleAccordion">
|
|
71
|
+
Allow multiple accordion sections to be opened at the same time
|
|
72
|
+
</PlCheckbox>
|
|
73
|
+
<PlSectionSeparator>Accordion group</PlSectionSeparator>
|
|
74
|
+
<PlAccordion :multiple="data.multipleAccordion">
|
|
75
|
+
<PlAccordionSection label="Section 1">
|
|
76
|
+
<PlTextField v-model="data.text" label="Additional text field" clearable />
|
|
77
|
+
<PlDropdown v-model="data.single" label="Additional PlDropdown" :options="options" />
|
|
78
|
+
</PlAccordionSection>
|
|
79
|
+
<PlAccordionSection label="Section 2">
|
|
80
|
+
<PlTextField v-model="data.text" label="Additional text field" clearable />
|
|
81
|
+
<PlDropdown v-model="data.single" label="Additional PlDropdown" :options="options" />
|
|
82
|
+
</PlAccordionSection>
|
|
83
|
+
</PlAccordion>
|
|
84
|
+
</PlContainer>
|
|
85
|
+
</PlRow>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<style module>
|
|
89
|
+
/* :global(.pl-container) {
|
|
90
|
+
outline: 1px dotted #eee;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:global(.pl-section-separator) {
|
|
94
|
+
outline: 1px dashed #eee;
|
|
95
|
+
} */
|
|
96
|
+
|
|
97
|
+
.components pre {
|
|
98
|
+
border: 1px solid var(--txt-01);
|
|
99
|
+
padding: 12px;
|
|
100
|
+
font-weight: bolder;
|
|
101
|
+
overflow: auto;
|
|
102
|
+
max-width: 50vw;
|
|
103
|
+
background-color: #eeeeee55;
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { undef } from '@milaboratories/helpers';
|
|
3
|
+
import {
|
|
4
|
+
PlContainer,
|
|
5
|
+
PlBtnGroup,
|
|
6
|
+
PlCheckboxGroup,
|
|
7
|
+
PlTextField,
|
|
8
|
+
PlDropdown,
|
|
9
|
+
listToOptions,
|
|
10
|
+
PlDropdownMulti,
|
|
11
|
+
PlDropdownRef,
|
|
12
|
+
PlDropdownMultiRef,
|
|
13
|
+
PlNumberField,
|
|
14
|
+
PlLogView,
|
|
15
|
+
PlTextArea,
|
|
16
|
+
} from '@platforma-sdk/ui-vue';
|
|
17
|
+
import { reactive, ref } from 'vue';
|
|
18
|
+
|
|
19
|
+
const data = reactive({
|
|
20
|
+
text: 'some text',
|
|
21
|
+
number: 0,
|
|
22
|
+
single: 'A',
|
|
23
|
+
multiple: ['A', 'B'],
|
|
24
|
+
importHandles: [] as unknown[],
|
|
25
|
+
currentTab: 'one',
|
|
26
|
+
ref: undefined,
|
|
27
|
+
multiRef: [],
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const shortOptions = listToOptions(['A', 'B', 'C', 'D']);
|
|
31
|
+
const options = listToOptions(['A', 'B', 'C', 'D']);
|
|
32
|
+
const refOptions = ref(
|
|
33
|
+
undef([
|
|
34
|
+
{
|
|
35
|
+
label: 'Block 1 label',
|
|
36
|
+
ref: {
|
|
37
|
+
__isRef: true as const,
|
|
38
|
+
blockId: '1',
|
|
39
|
+
name: 'Block 1',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'Block 2 label',
|
|
44
|
+
ref: {
|
|
45
|
+
__isRef: true as const,
|
|
46
|
+
blockId: '2',
|
|
47
|
+
name: 'Block 2',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
]),
|
|
51
|
+
);
|
|
52
|
+
const refOptionsMulti = ref(
|
|
53
|
+
undef([
|
|
54
|
+
{
|
|
55
|
+
label: 'Block 1 label Ref',
|
|
56
|
+
ref: {
|
|
57
|
+
__isRef: true as const,
|
|
58
|
+
blockId: '1',
|
|
59
|
+
name: 'Block 1 Ref',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Block 2 label Ref',
|
|
64
|
+
ref: {
|
|
65
|
+
__isRef: true as const,
|
|
66
|
+
blockId: '2',
|
|
67
|
+
name: 'Block 2 Ref',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
]),
|
|
71
|
+
);
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<template>
|
|
75
|
+
<PlContainer width="400px">
|
|
76
|
+
<PlBtnGroup
|
|
77
|
+
v-model="data.single"
|
|
78
|
+
label="PlBtnGroup"
|
|
79
|
+
:options="shortOptions"
|
|
80
|
+
>
|
|
81
|
+
<template #tooltip>
|
|
82
|
+
Tooltip content
|
|
83
|
+
</template>
|
|
84
|
+
</PlBtnGroup>
|
|
85
|
+
<PlTextField v-model="data.text" label="PlTextField" clearable >
|
|
86
|
+
<template #tooltip>
|
|
87
|
+
Tooltip content
|
|
88
|
+
</template>
|
|
89
|
+
</PlTextField>
|
|
90
|
+
<PlNumberField v-model="data.number" label="PlNumberField" clearable>
|
|
91
|
+
<template #tooltip>
|
|
92
|
+
Tooltip content
|
|
93
|
+
</template>
|
|
94
|
+
</PlNumberField>
|
|
95
|
+
<PlDropdown v-model="data.single" label="PlDropdown" :options="options" >
|
|
96
|
+
<template #tooltip>
|
|
97
|
+
Tooltip content
|
|
98
|
+
</template>
|
|
99
|
+
</PlDropdown>
|
|
100
|
+
<PlDropdownRef
|
|
101
|
+
v-model="data.ref"
|
|
102
|
+
label="PlDropdownRef"
|
|
103
|
+
:options="refOptions"
|
|
104
|
+
>
|
|
105
|
+
<template #tooltip>
|
|
106
|
+
Tooltip content
|
|
107
|
+
</template>
|
|
108
|
+
</PlDropdownRef>
|
|
109
|
+
<PlDropdownMultiRef
|
|
110
|
+
v-model="data.multiRef"
|
|
111
|
+
:options="refOptionsMulti ?? []"
|
|
112
|
+
label="PlDropdownMultiRef"
|
|
113
|
+
>
|
|
114
|
+
<template #tooltip>
|
|
115
|
+
Tooltip content
|
|
116
|
+
</template>
|
|
117
|
+
</PlDropdownMultiRef>
|
|
118
|
+
<PlDropdownMulti v-model="data.multiple" label="PlDropdownMulti" :options="options" >
|
|
119
|
+
<template #tooltip>
|
|
120
|
+
Tooltip content
|
|
121
|
+
</template>
|
|
122
|
+
</PlDropdownMulti>
|
|
123
|
+
<PlCheckboxGroup v-model="data.multiple" label="PlCheckboxGroup" :options="options" >
|
|
124
|
+
<template #tooltip>
|
|
125
|
+
Tooltip content
|
|
126
|
+
</template>
|
|
127
|
+
</PlCheckboxGroup>
|
|
128
|
+
</PlContainer>
|
|
129
|
+
<PlContainer width="400px" style="margin: 0 24px 0 24px">
|
|
130
|
+
<PlTextArea label="PlTextArea">
|
|
131
|
+
<template #tooltip>
|
|
132
|
+
Tooltip content
|
|
133
|
+
</template>
|
|
134
|
+
</PlTextArea>
|
|
135
|
+
<PlLogView label="PlLogView" value="logs content">
|
|
136
|
+
<template #tooltip>
|
|
137
|
+
Tooltip content
|
|
138
|
+
</template>
|
|
139
|
+
</PlLogView>
|
|
140
|
+
</PlContainer>
|
|
141
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FormComponentsPage } from './FormComponentsPage.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as HistogramPage } from './HistogramPage.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as StackedBarPage } from './StackedBarPage.vue';
|
package/tsconfig.node.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig } from 'vite';
|
|
2
2
|
import vue from '@vitejs/plugin-vue';
|
|
3
|
+
import sourceMaps from 'rollup-plugin-sourcemaps';
|
|
3
4
|
|
|
4
5
|
// https://vitejs.dev/config/
|
|
5
6
|
export default defineConfig({
|
|
@@ -7,5 +8,8 @@ export default defineConfig({
|
|
|
7
8
|
base: './',
|
|
8
9
|
build: {
|
|
9
10
|
sourcemap: true,
|
|
11
|
+
rollupOptions: {
|
|
12
|
+
plugins: [sourceMaps()],
|
|
13
|
+
},
|
|
10
14
|
},
|
|
11
15
|
});
|