@milaboratories/milaboratories.ui-examples.ui 1.3.20 → 1.3.22
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 +6 -6
- package/CHANGELOG.md +14 -0
- package/dist/assets/index-BAGoOWSb.css +1 -0
- package/dist/assets/index-CgivL3td.js +746 -0
- package/dist/assets/{index-DqUyzlU1.js.map → index-CgivL3td.js.map} +1 -1
- package/dist/index.html +2 -2
- package/package.json +4 -4
- package/src/app.ts +2 -0
- package/src/pages/AgGridVuePage.vue +62 -5
- package/src/pages/HistogramPage/Basic.vue +23 -0
- package/src/pages/HistogramPage/HistogramFigma.vue +42 -0
- package/src/pages/HistogramPage/HistogramPage.vue +57 -0
- package/src/pages/HistogramPage/LogBins.vue +25 -0
- package/src/pages/HistogramPage/LogXScale.vue +24 -0
- package/src/pages/HistogramPage/assets/bins.ts +77 -0
- package/src/pages/HistogramPage/assets/prices.ts +29999 -0
- package/src/pages/ModalsPage.vue +27 -4
- package/src/pages/StackedBarPage/Alignment.vue +0 -9
- package/src/pages/StackedBarPage/Basic.vue +0 -17
- package/dist/assets/index-DqUyzlU1.js +0 -742
- package/dist/assets/index-DyybnC77.css +0 -1
package/src/pages/ModalsPage.vue
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { faker } from '@faker-js/faker';
|
|
3
3
|
import { listToOptions } from '@milaboratories/helpers';
|
|
4
|
+
import type {
|
|
5
|
+
Size } from '@platforma-sdk/ui-vue';
|
|
4
6
|
import {
|
|
5
7
|
PlBlockPage,
|
|
6
8
|
PlTextField,
|
|
@@ -27,7 +29,8 @@ const dialogData = reactive({
|
|
|
27
29
|
title: true,
|
|
28
30
|
actions: true,
|
|
29
31
|
actionsHasTopBorder: true,
|
|
30
|
-
|
|
32
|
+
size: undefined as Size | undefined,
|
|
33
|
+
dialogWidth: 448, // default,
|
|
31
34
|
maxHeight: 440,
|
|
32
35
|
contentHeight: 216,
|
|
33
36
|
closeOnOutsideClick: true,
|
|
@@ -65,6 +68,20 @@ for (const example of modalVariants) {
|
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
const lorem = faker.lorem.paragraph(100);
|
|
71
|
+
|
|
72
|
+
const sizeOptions = [{
|
|
73
|
+
label: 'Small',
|
|
74
|
+
value: 'small',
|
|
75
|
+
}, {
|
|
76
|
+
label: 'Medium',
|
|
77
|
+
value: 'medium',
|
|
78
|
+
}, {
|
|
79
|
+
label: 'Large',
|
|
80
|
+
value: 'large',
|
|
81
|
+
}, {
|
|
82
|
+
label: 'Unset',
|
|
83
|
+
value: undefined,
|
|
84
|
+
}];
|
|
68
85
|
</script>
|
|
69
86
|
|
|
70
87
|
<template>
|
|
@@ -77,6 +94,11 @@ const lorem = faker.lorem.paragraph(100);
|
|
|
77
94
|
Open PlDialogModal
|
|
78
95
|
</PlBtnPrimary>
|
|
79
96
|
</PlRow>
|
|
97
|
+
<PlDropdown v-model="dialogData.size" label="Size (Takes precedence over (min | max)(width | height) properties)" :options="sizeOptions" />
|
|
98
|
+
<PlNumberField
|
|
99
|
+
v-model="dialogData.dialogWidth"
|
|
100
|
+
label="Dialog width in px (without gutters)"
|
|
101
|
+
/>
|
|
80
102
|
<PlNumberField
|
|
81
103
|
v-model="dialogData.contentHeight"
|
|
82
104
|
label="Content height in px (without gutters)"
|
|
@@ -118,7 +140,8 @@ const lorem = faker.lorem.paragraph(100);
|
|
|
118
140
|
<!--Dialog modal-->
|
|
119
141
|
<PlDialogModal
|
|
120
142
|
v-model="dialogData.dialogModal"
|
|
121
|
-
:
|
|
143
|
+
:size="dialogData.size"
|
|
144
|
+
:width="`${dialogData.dialogWidth}px`"
|
|
122
145
|
:close-on-outside-click="dialogData.closeOnOutsideClick"
|
|
123
146
|
:actions-has-top-border="dialogData.actionsHasTopBorder"
|
|
124
147
|
:max-height="`${dialogData.maxHeight}px`"
|
|
@@ -139,7 +162,7 @@ const lorem = faker.lorem.paragraph(100);
|
|
|
139
162
|
<!--Examples-->
|
|
140
163
|
<PlDialogModal
|
|
141
164
|
v-model="append.newProject"
|
|
142
|
-
:width="dialogData.dialogWidth"
|
|
165
|
+
:width="`${dialogData.dialogWidth}px`"
|
|
143
166
|
:close-on-outside-click="dialogData.closeOnOutsideClick"
|
|
144
167
|
:actions-has-top-border="dialogData.actionsHasTopBorder"
|
|
145
168
|
>
|
|
@@ -153,7 +176,7 @@ const lorem = faker.lorem.paragraph(100);
|
|
|
153
176
|
|
|
154
177
|
<PlDialogModal
|
|
155
178
|
v-model="append.newProject2"
|
|
156
|
-
:width="dialogData.dialogWidth"
|
|
179
|
+
:width="`${dialogData.dialogWidth}px`"
|
|
157
180
|
:close-on-outside-click="dialogData.closeOnOutsideClick"
|
|
158
181
|
:actions-has-top-border="dialogData.actionsHasTopBorder"
|
|
159
182
|
>
|
|
@@ -118,15 +118,6 @@ const settings = computed<PlChartStackedBarSettings>(() => {
|
|
|
118
118
|
</template>
|
|
119
119
|
|
|
120
120
|
<style module>
|
|
121
|
-
.components pre {
|
|
122
|
-
border: 1px solid var(--txt-01);
|
|
123
|
-
padding: 12px;
|
|
124
|
-
font-weight: bolder;
|
|
125
|
-
overflow: auto;
|
|
126
|
-
max-width: 50vw;
|
|
127
|
-
background-color: #eeeeee55;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
121
|
.chip {
|
|
131
122
|
width: 120px;
|
|
132
123
|
height: 120px;
|
|
@@ -46,20 +46,3 @@ const settings = computed(() => {
|
|
|
46
46
|
<pre>{{ JSON.stringify(settings, null, 2) }}</pre>
|
|
47
47
|
</PlRow>
|
|
48
48
|
</template>
|
|
49
|
-
|
|
50
|
-
<style module>
|
|
51
|
-
.drag-and-drop {
|
|
52
|
-
border: 1px solid var(--txt-01);
|
|
53
|
-
padding: 24px;
|
|
54
|
-
width: 600px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.components pre {
|
|
58
|
-
border: 1px solid var(--txt-01);
|
|
59
|
-
padding: 12px;
|
|
60
|
-
font-weight: bolder;
|
|
61
|
-
overflow: auto;
|
|
62
|
-
max-width: 50vw;
|
|
63
|
-
background-color: #eeeeee55;
|
|
64
|
-
}
|
|
65
|
-
</style>
|