@milaboratories/uikit 2.10.44 → 2.10.45
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 +11 -11
- package/.turbo/turbo-formatter$colon$check.log +2 -2
- package/.turbo/turbo-linter$colon$check.log +2 -2
- package/.turbo/turbo-types$colon$check.log +1 -1
- package/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/src/components/PlAutocomplete/__tests__/PlAutocomplete.spec.ts +18 -12
- package/src/components/PlAutocompleteMulti/__tests__/PlAutocompleteMulti.spec.ts +16 -12
- package/src/components/PlDropdown/__tests__/PlDropdown.spec.ts +2 -4
- package/src/components/PlDropdownMulti/__tests__/PlDropdownMulti.spec.ts +4 -6
- package/src/components/PlDropdownMultiRef/__tests__/PlDropdownMultiRef.spec.ts +4 -7
- package/src/components/PlDropdownRef/__tests__/PlDropdownRef.spec.ts +2 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/uikit@2.10.
|
|
3
|
+
> @milaboratories/uikit@2.10.45 build /home/runner/_work/platforma/platforma/lib/ui/uikit
|
|
4
4
|
> ts-builder build --target browser-lib --build-config ./build.browser-lib.config.js
|
|
5
5
|
|
|
6
6
|
Building browser-lib project...
|
|
@@ -24,7 +24,7 @@ Using custom config: ./build.browser-lib.config.js
|
|
|
24
24
|
rendering chunks...
|
|
25
25
|
|
|
26
26
|
[vite:dts] Start generate declaration files...
|
|
27
|
-
[vite:dts] Declaration files built in
|
|
27
|
+
[vite:dts] Declaration files built in 12595ms.
|
|
28
28
|
|
|
29
29
|
computing gzip size...
|
|
30
30
|
dist/components/PlClipboard/PlClipboard.vue?vue&type=style&index=0&lang.css 0.04 kB │ gzip: 0.06 kB
|
|
@@ -534,14 +534,6 @@ dist/composition/useConfirm.js
|
|
|
534
534
|
dist/assets/icons/icon-assets-min/16_clipboard-copied.js 0.57 kB │ gzip: 0.36 kB │ map: 0.73 kB
|
|
535
535
|
dist/assets/icons/icon-assets-min/16_clipboard.js 0.57 kB │ gzip: 0.34 kB │ map: 0.72 kB
|
|
536
536
|
dist/components/DataTable/ColumnCaret.vue_vue_type_script_setup_true_lang.js 0.57 kB │ gzip: 0.39 kB │ map: 0.85 kB
|
|
537
|
-
[33m[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugins. Here is a breakdown:
|
|
538
|
-
- vite:asset (36%)
|
|
539
|
-
- sourcemaps (13%)
|
|
540
|
-
- vite:css-post (11%)
|
|
541
|
-
- vite:dts (11%)
|
|
542
|
-
- vite:vue (9%)
|
|
543
|
-
See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
544
|
-
[39m
|
|
545
537
|
dist/components/PlChartStackedBar/PlChartStackedBarCompact.vue_vue_type_script_setup_true_lang.js 0.57 kB │ gzip: 0.39 kB │ map: 1.02 kB
|
|
546
538
|
dist/assets/icons/icon-assets-min/24_file-doc-import.js 0.57 kB │ gzip: 0.37 kB │ map: 0.74 kB
|
|
547
539
|
dist/composition/useRipple.js 0.57 kB │ gzip: 0.37 kB │ map: 1.50 kB
|
|
@@ -796,5 +788,13 @@ dist/composition/filters/metadata.js
|
|
|
796
788
|
dist/index.js 12.50 kB │ gzip: 2.94 kB │ map: 21.27 kB
|
|
797
789
|
dist/components/PlSvg/PlSvg.vue_vue_type_script_setup_true_lang.js 39.32 kB │ gzip: 3.34 kB │ map: 8.66 kB
|
|
798
790
|
|
|
799
|
-
[
|
|
791
|
+
[33m[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugins. Here is a breakdown:
|
|
792
|
+
- vite:asset (31%)
|
|
793
|
+
- sourcemaps (15%)
|
|
794
|
+
- vite:dts (13%)
|
|
795
|
+
- vite:css-post (11%)
|
|
796
|
+
- vite:vue (9%)
|
|
797
|
+
See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
798
|
+
[39m
|
|
799
|
+
[32m✓ built in 14.60s[39m
|
|
800
800
|
Build completed successfully
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/uikit@2.10.
|
|
3
|
+
> @milaboratories/uikit@2.10.45 formatter:check /home/runner/_work/platforma/platforma/lib/ui/uikit
|
|
4
4
|
> ts-builder formatter --check
|
|
5
5
|
|
|
6
6
|
Checking formatting...
|
|
@@ -8,5 +8,5 @@ Checking formatting...
|
|
|
8
8
|
Checking formatting...
|
|
9
9
|
|
|
10
10
|
All matched files use the correct format.
|
|
11
|
-
Finished in
|
|
11
|
+
Finished in 6809ms on 380 files using 8 threads.
|
|
12
12
|
Format check completed successfully
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/uikit@2.10.
|
|
3
|
+
> @milaboratories/uikit@2.10.45 linter:check /home/runner/_work/platforma/platforma/lib/ui/uikit
|
|
4
4
|
> ts-builder linter --check
|
|
5
5
|
|
|
6
6
|
Linting project...
|
|
7
7
|
↳ oxlint --config /home/runner/_work/platforma/platforma/lib/ui/uikit/.oxlintrc.json --deny-warnings
|
|
8
8
|
Found 0 warnings and 0 errors.
|
|
9
|
-
Finished in
|
|
9
|
+
Finished in 31ms on 307 files with 98 rules using 8 threads.
|
|
10
10
|
Linting completed successfully
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/uikit@2.10.
|
|
3
|
+
> @milaboratories/uikit@2.10.45 types:check /home/runner/_work/platforma/platforma/lib/ui/uikit
|
|
4
4
|
> ts-builder type-check --target browser-lib
|
|
5
5
|
|
|
6
6
|
↳ vue-tsc.js --noEmit --project ./tsconfig.json --customConditions ,
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/uikit",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.45",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sortablejs": "^1.15.6",
|
|
33
33
|
"vue": "^3.5.24",
|
|
34
34
|
"@milaboratories/helpers": "1.13.7",
|
|
35
|
-
"@platforma-sdk/model": "1.59.
|
|
35
|
+
"@platforma-sdk/model": "1.59.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@vitest/coverage-istanbul": "^4.0.18",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"svgo": "^3.3.2",
|
|
41
41
|
"typescript": "~5.9.3",
|
|
42
42
|
"vitest": "^4.0.18",
|
|
43
|
-
"@milaboratories/ts-builder": "1.3.0",
|
|
44
43
|
"@milaboratories/build-configs": "1.5.2",
|
|
45
|
-
"@milaboratories/ts-configs": "1.2.2"
|
|
44
|
+
"@milaboratories/ts-configs": "1.2.2",
|
|
45
|
+
"@milaboratories/ts-builder": "1.3.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"dev": "ts-builder serve --target browser-lib --build-config ./build.browser-lib.config.js",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { describe, it, expect } from "vitest";
|
|
1
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { mount } from "@vue/test-utils";
|
|
3
|
+
import { mount, flushPromises } from "@vue/test-utils";
|
|
4
4
|
import PlAutocomplete from "../PlAutocomplete.vue";
|
|
5
|
-
import { delay } from "@milaboratories/helpers";
|
|
6
5
|
|
|
7
6
|
describe("PlAutocomplete", () => {
|
|
7
|
+
beforeEach(() => vi.useFakeTimers());
|
|
8
|
+
afterEach(() => vi.useRealTimers());
|
|
9
|
+
|
|
8
10
|
it("modelValue", async () => {
|
|
9
11
|
const options = [
|
|
10
12
|
{ text: "Option 1", value: 1 },
|
|
@@ -20,21 +22,25 @@ describe("PlAutocomplete", () => {
|
|
|
20
22
|
},
|
|
21
23
|
});
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
// Flush initial watch (immediate: true) that fires on mount
|
|
26
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
27
|
+
await flushPromises();
|
|
28
|
+
|
|
24
29
|
await wrapper.find(".pl-autocomplete__envelope").trigger("click");
|
|
25
30
|
await wrapper.find("input").trigger("focus");
|
|
26
31
|
await wrapper.find("input").setValue("option");
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
...document.body.querySelectorAll(".dropdown-list-item"),
|
|
31
|
-
] as HTMLElement[];
|
|
32
|
+
// Flush 300ms debounce + optionsSearch promise
|
|
33
|
+
await vi.advanceTimersByTimeAsync(300);
|
|
34
|
+
await flushPromises();
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
const getOptions = () =>
|
|
37
|
+
[...document.body.querySelectorAll(".dropdown-list-item")] as HTMLElement[];
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
expect(getOptions().length).toBe(2);
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
getOptions()[1].click();
|
|
42
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
43
|
+
await flushPromises();
|
|
38
44
|
|
|
39
45
|
expect(wrapper.props("modelValue")).toBe(2);
|
|
40
46
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { describe, it, expect } from "vitest";
|
|
1
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { mount } from "@vue/test-utils";
|
|
3
|
+
import { mount, flushPromises } from "@vue/test-utils";
|
|
4
4
|
import PlAutocompleteMulti from "../PlAutocompleteMulti.vue";
|
|
5
|
-
import { delay } from "@milaboratories/helpers";
|
|
6
5
|
|
|
7
6
|
describe("PlAutocompleteMulti", () => {
|
|
7
|
+
beforeEach(() => vi.useFakeTimers());
|
|
8
|
+
afterEach(() => vi.useRealTimers());
|
|
9
|
+
|
|
8
10
|
it("modelValue", async () => {
|
|
9
11
|
const wrapper = mount(PlAutocompleteMulti, {
|
|
10
12
|
props: {
|
|
@@ -20,22 +22,24 @@ describe("PlAutocompleteMulti", () => {
|
|
|
20
22
|
},
|
|
21
23
|
});
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
// Flush initial watch (immediate: true) that fires on mount
|
|
26
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
27
|
+
await flushPromises();
|
|
28
|
+
|
|
24
29
|
await wrapper.find(".pl-autocomplete-multi__envelope").trigger("click");
|
|
25
30
|
await wrapper.find("input").trigger("focus");
|
|
31
|
+
// Flush debounce (0ms) + optionsSearch promise
|
|
32
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
33
|
+
await flushPromises();
|
|
26
34
|
|
|
27
35
|
const getOptions = () =>
|
|
28
36
|
[...document.body.querySelectorAll(".dropdown-list-item")] as HTMLElement[];
|
|
29
37
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const options = getOptions();
|
|
33
|
-
|
|
34
|
-
expect(options.length).toBe(2);
|
|
35
|
-
|
|
36
|
-
options[1].click();
|
|
38
|
+
expect(getOptions().length).toBe(2);
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
getOptions()[1].click();
|
|
41
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
42
|
+
await flushPromises();
|
|
39
43
|
|
|
40
44
|
expect(wrapper.props("modelValue")).toEqual([1, 2]);
|
|
41
45
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { mount } from "@vue/test-utils";
|
|
3
|
+
import { mount, flushPromises } from "@vue/test-utils";
|
|
4
4
|
import PlDropdown from "../PlDropdown.vue";
|
|
5
|
-
import { delay } from "@milaboratories/helpers";
|
|
6
5
|
|
|
7
6
|
describe("PlDropdown", () => {
|
|
8
7
|
it("modelValue", async () => {
|
|
@@ -24,8 +23,7 @@ describe("PlDropdown", () => {
|
|
|
24
23
|
expect(options.length).toBe(2);
|
|
25
24
|
|
|
26
25
|
options[1].click();
|
|
27
|
-
|
|
28
|
-
await delay(20);
|
|
26
|
+
await flushPromises();
|
|
29
27
|
|
|
30
28
|
expect(wrapper.props("modelValue")).toBe(2);
|
|
31
29
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { mount } from "@vue/test-utils";
|
|
4
|
-
import
|
|
5
|
-
import { delay } from "@milaboratories/helpers";
|
|
3
|
+
import { mount, flushPromises } from "@vue/test-utils";
|
|
4
|
+
import PlDropdownMulti from "../PlDropdownMulti.vue";
|
|
6
5
|
|
|
7
6
|
describe("PlDropdownMulti", () => {
|
|
8
7
|
it("modelValue", async () => {
|
|
9
|
-
const wrapper = mount(
|
|
8
|
+
const wrapper = mount(PlDropdownMulti, {
|
|
10
9
|
props: {
|
|
11
10
|
modelValue: [1],
|
|
12
11
|
"onUpdate:modelValue": (e) => wrapper.setProps({ modelValue: e }),
|
|
@@ -27,8 +26,7 @@ describe("PlDropdownMulti", () => {
|
|
|
27
26
|
expect(options.length).toBe(2);
|
|
28
27
|
|
|
29
28
|
options[1].click();
|
|
30
|
-
|
|
31
|
-
await delay(20);
|
|
29
|
+
await flushPromises();
|
|
32
30
|
|
|
33
31
|
expect(wrapper.props("modelValue")).toEqual([1, 2]);
|
|
34
32
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { mount } from "@vue/test-utils";
|
|
4
|
-
import
|
|
5
|
-
import { delay } from "@milaboratories/helpers";
|
|
3
|
+
import { mount, flushPromises } from "@vue/test-utils";
|
|
4
|
+
import PlDropdownMultiRef from "../PlDropdownMultiRef.vue";
|
|
6
5
|
|
|
7
6
|
describe("PlDropdownMultiRef", () => {
|
|
8
7
|
it("modelValue", async () => {
|
|
9
|
-
const wrapper = mount(
|
|
8
|
+
const wrapper = mount(PlDropdownMultiRef, {
|
|
10
9
|
props: {
|
|
11
10
|
modelValue: [
|
|
12
11
|
{
|
|
@@ -46,10 +45,8 @@ describe("PlDropdownMultiRef", () => {
|
|
|
46
45
|
|
|
47
46
|
expect(options.length).toBe(2);
|
|
48
47
|
|
|
49
|
-
// console.log(wrapper.props('modelValue'), 'mv');
|
|
50
48
|
options[0].click();
|
|
51
|
-
|
|
52
|
-
await delay(20);
|
|
49
|
+
await flushPromises();
|
|
53
50
|
|
|
54
51
|
expect(wrapper.props("modelValue")).toEqual([
|
|
55
52
|
{
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { mount } from "@vue/test-utils";
|
|
3
|
+
import { mount, flushPromises } from "@vue/test-utils";
|
|
4
4
|
import PlDropdownRef from "../PlDropdownRef.vue";
|
|
5
|
-
import { delay } from "@milaboratories/helpers";
|
|
6
5
|
|
|
7
6
|
describe("PlDropdownRef", () => {
|
|
8
7
|
it("modelValue", async () => {
|
|
@@ -41,11 +40,8 @@ describe("PlDropdownRef", () => {
|
|
|
41
40
|
|
|
42
41
|
expect(options.length).toBe(2);
|
|
43
42
|
|
|
44
|
-
expect(options.length).toBe(2);
|
|
45
|
-
|
|
46
43
|
options[1].click();
|
|
47
|
-
|
|
48
|
-
await delay(20);
|
|
44
|
+
await flushPromises();
|
|
49
45
|
|
|
50
46
|
expect(wrapper.props("modelValue")).toStrictEqual({
|
|
51
47
|
__isRef: true as const,
|