@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.
@@ -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.44 build /home/runner/_work/platforma/platforma/lib/ui/uikit
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 6214ms.
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
- [PLUGIN_TIMINGS] Warning: 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
- 
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
- ✓ built in 8.27s
791
+ [PLUGIN_TIMINGS] Warning: 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
+ 
799
+ ✓ built in 14.60s
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.44 formatter:check /home/runner/_work/platforma/platforma/lib/ui/uikit
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 5794ms on 380 files using 8 threads.
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.44 linter:check /home/runner/_work/platforma/platforma/lib/ui/uikit
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 34ms on 307 files with 98 rules using 8 threads.
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.44 types:check /home/runner/_work/platforma/platforma/lib/ui/uikit
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
@@ -1,5 +1,11 @@
1
1
  # @milaboratories/uikit
2
2
 
3
+ ## 2.10.45
4
+
5
+ ### Patch Changes
6
+
7
+ - @platforma-sdk/model@1.59.3
8
+
3
9
  ## 2.10.44
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/uikit",
3
- "version": "2.10.44",
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.0"
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
- await delay(10);
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
- await delay(600);
28
-
29
- const optionsRendered = [
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
- expect(optionsRendered.length).toBe(2);
36
+ const getOptions = () =>
37
+ [...document.body.querySelectorAll(".dropdown-list-item")] as HTMLElement[];
34
38
 
35
- optionsRendered[1].click();
39
+ expect(getOptions().length).toBe(2);
36
40
 
37
- await delay(20);
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
- await delay(10);
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
- await delay(1);
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
- await delay(20);
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 PlDropdown from "../PlDropdownMulti.vue";
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(PlDropdown, {
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 PlDropdown from "../PlDropdownMultiRef.vue";
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(PlDropdown, {
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,