@milaboratories/uikit 2.2.3 → 2.2.5
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/CHANGELOG.md +12 -0
- package/dist/pl-uikit.js +3486 -3337
- package/dist/pl-uikit.umd.cjs +10 -10
- package/dist/src/components/PlBtnSplit/PlBtnSplit.vue.d.ts +42 -0
- package/dist/src/components/PlBtnSplit/__tests__/PlBtnSplit.spec.d.ts +1 -0
- package/dist/src/components/PlBtnSplit/index.d.ts +3 -0
- package/dist/src/components/PlDialogModal/PlDialogModal.vue.d.ts +8 -0
- package/dist/src/components/PlDropdownRef/PlDropdownRef.vue.d.ts +1 -1
- package/dist/src/components/PlFileDialog/PlFileDialog.vue.d.ts +3 -0
- package/dist/src/components/PlFileInput/PlFileInput.vue.d.ts +18 -9
- package/dist/src/components/PlSlideModal/PlSlideModal.vue.d.ts +3 -3
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/assets/base.scss +1 -1
- package/src/assets/dropdown-list-item.scss +5 -4
- package/src/assets/typography.scss +9 -9
- package/src/components/PlBtnSplit/PlBtnSplit.vue +201 -0
- package/src/components/PlBtnSplit/__tests__/PlBtnSplit.spec.ts +179 -0
- package/src/components/PlBtnSplit/index.ts +4 -0
- package/src/components/PlBtnSplit/pl-btn-split.scss +93 -0
- package/src/components/PlDialogModal/PlDialogModal.vue +5 -1
- package/src/components/PlDropdown/PlDropdown.vue +5 -1
- package/src/components/PlFileDialog/PlFileDialog.vue +3 -0
- package/src/components/PlFileInput/PlFileInput.vue +16 -6
- package/src/components/PlSlideModal/PlSlideModal.vue +1 -1
- package/src/index.ts +1 -0
|
@@ -44,10 +44,6 @@ const props = withDefaults(
|
|
|
44
44
|
* Allowed file extensions (should start with `.`)
|
|
45
45
|
*/
|
|
46
46
|
extensions?: string[];
|
|
47
|
-
/**
|
|
48
|
-
* File dialog title
|
|
49
|
-
*/
|
|
50
|
-
fileDialogTitle?: string;
|
|
51
47
|
/**
|
|
52
48
|
* Placeholder text
|
|
53
49
|
*/
|
|
@@ -68,11 +64,18 @@ const props = withDefaults(
|
|
|
68
64
|
* If `true`, only the file name is displayed, not the full path to it.
|
|
69
65
|
*/
|
|
70
66
|
showFilenameOnly?: boolean;
|
|
71
|
-
|
|
72
67
|
/**
|
|
73
68
|
* Remove rounded border and change styles
|
|
74
69
|
*/
|
|
75
70
|
cellStyle?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* File dialog title
|
|
73
|
+
*/
|
|
74
|
+
fileDialogTitle?: string;
|
|
75
|
+
/**
|
|
76
|
+
* If `true`, the file dialog window closes when clicking outside the modal area (default: `true`)
|
|
77
|
+
*/
|
|
78
|
+
fileDialogCloseOnOutsideClick?: boolean;
|
|
76
79
|
}>(),
|
|
77
80
|
{
|
|
78
81
|
label: undefined,
|
|
@@ -83,6 +86,7 @@ const props = withDefaults(
|
|
|
83
86
|
error: undefined,
|
|
84
87
|
helper: undefined,
|
|
85
88
|
cellStyle: false,
|
|
89
|
+
fileDialogCloseOnOutsideClick: true,
|
|
86
90
|
},
|
|
87
91
|
);
|
|
88
92
|
|
|
@@ -182,5 +186,11 @@ if (!props.cellStyle) {
|
|
|
182
186
|
</div>
|
|
183
187
|
<div v-else-if="helper" class="upl-file-input__helper">{{ helper }}</div>
|
|
184
188
|
</div>
|
|
185
|
-
<PlFileDialog
|
|
189
|
+
<PlFileDialog
|
|
190
|
+
v-model="data.fileDialogOpen"
|
|
191
|
+
:extensions="extensions"
|
|
192
|
+
:title="fileDialogTitle"
|
|
193
|
+
:close-on-outside-click="fileDialogCloseOnOutsideClick"
|
|
194
|
+
@import:files="onImport"
|
|
195
|
+
/>
|
|
186
196
|
</template>
|
|
@@ -32,7 +32,7 @@ const props = withDefaults(
|
|
|
32
32
|
*/
|
|
33
33
|
shadow?: boolean;
|
|
34
34
|
/**
|
|
35
|
-
* If `true`, the modal window closes when clicking outside the modal area
|
|
35
|
+
* If `true`, the modal window closes when clicking outside the modal area (default: `true`)
|
|
36
36
|
*/
|
|
37
37
|
closeOnOutsideClick?: boolean;
|
|
38
38
|
}>(),
|
package/src/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './layout/PlGrid';
|
|
|
18
18
|
* Components
|
|
19
19
|
*/
|
|
20
20
|
export * from './components/PlAlert';
|
|
21
|
+
export * from './components/PlBtnSplit';
|
|
21
22
|
export * from './components/PlBtnPrimary';
|
|
22
23
|
export * from './components/PlBtnAccent';
|
|
23
24
|
export * from './components/PlBtnDanger';
|