@milaboratories/uikit 2.6.0 → 2.6.2

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.
Files changed (65) hide show
  1. package/.turbo/turbo-build.log +43 -43
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +14 -0
  4. package/dist/components/DataTable/TableComponent.vue.js +4 -2
  5. package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
  6. package/dist/components/PlAutocomplete/PlAutocomplete.vue.d.ts +4 -0
  7. package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +74 -68
  8. package/dist/components/PlAutocomplete/PlAutocomplete.vue.js.map +1 -1
  9. package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.d.ts +4 -0
  10. package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js +52 -46
  11. package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js.map +1 -1
  12. package/dist/components/PlDropdown/PlDropdown.vue.d.ts +8 -0
  13. package/dist/components/PlDropdown/PlDropdown.vue.js +67 -60
  14. package/dist/components/PlDropdown/PlDropdown.vue.js.map +1 -1
  15. package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +21 -19
  16. package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js.map +1 -1
  17. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.d.ts +4 -0
  18. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +47 -41
  19. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js.map +1 -1
  20. package/dist/components/PlElementList/PlElementList.vue.d.ts +20 -0
  21. package/dist/components/PlElementList/PlElementList.vue2.js +180 -135
  22. package/dist/components/PlElementList/PlElementList.vue2.js.map +1 -1
  23. package/dist/components/PlElementList/PlElementListItem.vue.d.ts +20 -0
  24. package/dist/components/PlElementList/PlElementListItem.vue2.js +99 -74
  25. package/dist/components/PlElementList/PlElementListItem.vue2.js.map +1 -1
  26. package/dist/components/PlFileInput/PlFileInput.vue.js +24 -22
  27. package/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  28. package/dist/components/PlLogView/PlLogView.vue.js +24 -22
  29. package/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
  30. package/dist/components/PlNumberField/PlNumberField.vue.d.ts +5 -0
  31. package/dist/components/PlNumberField/PlNumberField.vue.js +60 -54
  32. package/dist/components/PlNumberField/PlNumberField.vue.js.map +1 -1
  33. package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +4 -2
  34. package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
  35. package/dist/components/PlSvg/PlSvg.vue2.js +15 -11
  36. package/dist/components/PlSvg/PlSvg.vue2.js.map +1 -1
  37. package/dist/components/PlTextArea/PlTextArea.vue.js +15 -13
  38. package/dist/components/PlTextArea/PlTextArea.vue.js.map +1 -1
  39. package/dist/components/PlTextField/PlTextField.vue.d.ts +4 -0
  40. package/dist/components/PlTextField/PlTextField.vue.js +45 -39
  41. package/dist/components/PlTextField/PlTextField.vue.js.map +1 -1
  42. package/dist/composition/filters/metadata.d.ts +205 -0
  43. package/dist/composition/filters/metadata.js +129 -19
  44. package/dist/composition/filters/metadata.js.map +1 -1
  45. package/dist/utils/DoubleContour.vue.d.ts +7 -1
  46. package/dist/utils/DoubleContour.vue.js +20 -13
  47. package/dist/utils/DoubleContour.vue.js.map +1 -1
  48. package/dist/utils/DoubleContour.vue2.js +19 -3
  49. package/dist/utils/DoubleContour.vue2.js.map +1 -1
  50. package/dist/utils/DoubleContour.vue3.js +7 -0
  51. package/dist/utils/DoubleContour.vue3.js.map +1 -0
  52. package/package.json +4 -4
  53. package/src/components/PlAutocomplete/PlAutocomplete.vue +6 -1
  54. package/src/components/PlAutocompleteMulti/PlAutocompleteMulti.vue +6 -1
  55. package/src/components/PlDropdown/PlDropdown.vue +12 -2
  56. package/src/components/PlDropdownMulti/PlDropdownMulti.vue +6 -1
  57. package/src/components/PlElementList/PlElementList.vue +40 -6
  58. package/src/components/PlElementList/PlElementListItem.vue +64 -47
  59. package/src/components/PlNumberField/PlNumberField.vue +4 -1
  60. package/src/components/PlSvg/PlSvg.vue +13 -10
  61. package/src/components/PlTextField/PlTextField.vue +7 -3
  62. package/src/composition/filters/metadata.ts +105 -0
  63. package/src/utils/DoubleContour.vue +68 -2
  64. package/dist/components/PlAccordion/ExpandTransition.vue.js +0 -27
  65. package/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
@@ -23,6 +23,27 @@ export const filterUiMetadata = {
23
23
  },
24
24
  supportedFor: isNumericValueType,
25
25
  },
26
+ notEqual: {
27
+ label: 'Col ≠ X (Not Equal)',
28
+ form: {
29
+ column: {
30
+ label: 'Column',
31
+ fieldType: 'SUniversalPColumnId',
32
+ defaultValue: () => undefined,
33
+ },
34
+ type: {
35
+ label: 'Predicate',
36
+ fieldType: 'FilterType',
37
+ defaultValue: () => 'notEqual',
38
+ },
39
+ x: {
40
+ label: 'X',
41
+ fieldType: 'number',
42
+ defaultValue: () => 0,
43
+ },
44
+ },
45
+ supportedFor: isNumericValueType,
46
+ },
26
47
  lessThan: {
27
48
  label: 'Col < X (Less Than)',
28
49
  form: {
@@ -450,6 +471,90 @@ export const filterUiMetadata = {
450
471
  },
451
472
  supportedFor: () => false,
452
473
  },
474
+ patternMatchesRegularExpression: {
475
+ label: 'Col ~ X (Matches Regular Expression)',
476
+ form: {
477
+ column: {
478
+ label: 'Column',
479
+ fieldType: 'SUniversalPColumnId',
480
+ defaultValue: () => undefined,
481
+ },
482
+ type: {
483
+ label: 'Predicate',
484
+ fieldType: 'FilterType',
485
+ defaultValue: () => 'patternMatchesRegularExpression',
486
+ },
487
+ value: {
488
+ label: 'Seq',
489
+ fieldType: 'string',
490
+ defaultValue: () => '',
491
+ },
492
+ },
493
+ supportedFor: isStringValueType,
494
+ },
495
+ patternFuzzyContainSubsequence: {
496
+ label: 'Col ~ Seq (Fuzzy Contain Subsequence)',
497
+ form: {
498
+ column: {
499
+ label: 'Column',
500
+ fieldType: 'SUniversalPColumnId',
501
+ defaultValue: () => undefined,
502
+ },
503
+ type: {
504
+ label: 'Predicate',
505
+ fieldType: 'FilterType',
506
+ defaultValue: () => 'patternFuzzyContainSubsequence',
507
+ },
508
+ value: {
509
+ label: 'Set',
510
+ fieldType: 'string',
511
+ defaultValue: () => '',
512
+ },
513
+ },
514
+ supportedFor: isStringValueType,
515
+ },
516
+ inSet: {
517
+ label: 'Col ∈ Set (In Set)',
518
+ form: {
519
+ column: {
520
+ label: 'Column',
521
+ fieldType: 'SUniversalPColumnId',
522
+ defaultValue: () => undefined,
523
+ },
524
+ type: {
525
+ label: 'Predicate',
526
+ fieldType: 'FilterType',
527
+ defaultValue: () => 'inSet',
528
+ },
529
+ value: {
530
+ fieldType: 'unknown[]',
531
+ label: 'Set',
532
+ defaultValue: () => [],
533
+ },
534
+ },
535
+ supportedFor: isStringValueType,
536
+ },
537
+ notInSet: {
538
+ label: 'Col ∉ Set (Not In Set)',
539
+ form: {
540
+ column: {
541
+ label: 'Column',
542
+ fieldType: 'SUniversalPColumnId',
543
+ defaultValue: () => undefined,
544
+ },
545
+ type: {
546
+ label: 'Predicate',
547
+ fieldType: 'FilterType',
548
+ defaultValue: () => 'notInSet',
549
+ },
550
+ value: {
551
+ label: 'Seq',
552
+ fieldType: 'unknown[]',
553
+ defaultValue: () => [],
554
+ },
555
+ },
556
+ supportedFor: isStringValueType,
557
+ },
453
558
  } satisfies FilterSpecMetadataRecord<FilterSpecType>;
454
559
 
455
560
  export function getFilterUiTypeOptions(columnSpec?: SimplifiedPColumnSpec) {
@@ -1,15 +1,81 @@
1
- <script lang="ts" setup></script>
1
+ <script lang="ts" setup>
2
+ withDefaults(defineProps<{
3
+ groupPosition?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle';
4
+ }>(), {
5
+ groupPosition: undefined,
6
+ });
7
+ </script>
2
8
 
3
9
  <script lang="ts">
10
+
4
11
  export default {
5
12
  inheritAttrs: false,
6
13
  };
7
14
  </script>
8
15
 
9
16
  <template>
10
- <div class="double-contour">
17
+ <div class="double-contour" :class="{ [groupPosition]: true }">
11
18
  <div v-bind="$attrs">
12
19
  <slot />
13
20
  </div>
14
21
  </div>
15
22
  </template>
23
+ <style>
24
+ .double-contour {
25
+ &.top > div {
26
+ border-bottom-right-radius: 0;
27
+ border-bottom-left-radius: 0;
28
+ }
29
+ }
30
+ .double-contour {
31
+ &.bottom > div {
32
+ border-top-right-radius: 0;
33
+ border-top-left-radius: 0;
34
+ }
35
+ }
36
+ .double-contour {
37
+ &.left > div {
38
+ border-top-right-radius: 0;
39
+ border-bottom-right-radius: 0;
40
+ }
41
+ }
42
+ .double-contour {
43
+ &.right > div {
44
+ border-top-left-radius: 0;
45
+ border-bottom-left-radius: 0;
46
+ }
47
+ }
48
+ .double-contour {
49
+ &.top-left > div{
50
+ border-top-right-radius: 0;
51
+ border-bottom-left-radius: 0;
52
+ border-bottom-right-radius: 0;
53
+ }
54
+ }
55
+ .double-contour {
56
+ &.top-right > div {
57
+ border-bottom-right-radius: 0;
58
+ border-top-left-radius: 0;
59
+ border-top-right-radius: 0;
60
+ }
61
+ }
62
+ .double-contour {
63
+ &.bottom-left > div {
64
+ border-top-right-radius: 0;
65
+ border-bottom-right-radius: 0;
66
+ border-top-left-radius: 0;
67
+ }
68
+ }
69
+ .double-contour {
70
+ &.bottom-right > div {
71
+ border-top-right-radius: 0;
72
+ border-bottom-left-radius: 0;
73
+ border-top-left-radius: 0;
74
+ }
75
+ }
76
+ .double-contour {
77
+ &.middle > div {
78
+ border-radius: 0;
79
+ }
80
+ }
81
+ </style>
@@ -1,27 +0,0 @@
1
- import { defineComponent as n, createBlock as r, openBlock as a, Transition as s, withCtx as p, renderSlot as c } from "vue";
2
- const f = /* @__PURE__ */ n({
3
- __name: "ExpandTransition",
4
- setup(l) {
5
- const t = (e) => {
6
- e.classList.add("expand-collapse-fix"), e.style.setProperty("--component-height", e.scrollHeight + "px");
7
- }, o = (e) => {
8
- e.style.removeProperty("--component-height"), e.classList.remove("expand-collapse-fix");
9
- };
10
- return (e, i) => (a(), r(s, {
11
- name: "expand-collapse",
12
- onEnter: t,
13
- onLeave: t,
14
- onAfterEnter: o,
15
- onAfterLeave: o
16
- }, {
17
- default: p(() => [
18
- c(e.$slots, "default")
19
- ]),
20
- _: 3
21
- }));
22
- }
23
- });
24
- export {
25
- f as default
26
- };
27
- //# sourceMappingURL=ExpandTransition.vue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpandTransition.vue.js","sources":["../../../src/components/PlAccordion/ExpandTransition.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nconst onStart = (el: Element) => {\n el.classList.add('expand-collapse-fix');\n (el as HTMLElement).style.setProperty('--component-height', el.scrollHeight + 'px');\n};\n\nconst onAfter = (el: Element) => {\n (el as HTMLElement).style.removeProperty('--component-height');\n el.classList.remove('expand-collapse-fix');\n};\n</script>\n\n<template>\n <Transition name=\"expand-collapse\" @enter=\"onStart\" @leave=\"onStart\" @after-enter=\"onAfter\" @after-leave=\"onAfter\">\n <slot/>\n </Transition>\n</template>\n\n<style>\n.expand-collapse-fix {\n overflow: hidden;\n}\n\n.expand-collapse-enter-active,\n.expand-collapse-leave-active {\n transition:\n height 0.2s ease-in-out,\n opacity 0.2s ease-in-out;\n height: var(--component-height);\n}\n\n.expand-collapse-enter-from,\n.expand-collapse-leave-to {\n opacity: 0.5;\n height: 0;\n}\n</style>\n"],"names":["onStart","el","onAfter"],"mappings":";;;;AACA,UAAMA,IAAU,CAACC,MAAgB;AAC/B,MAAAA,EAAG,UAAU,IAAI,qBAAqB,GACrCA,EAAmB,MAAM,YAAY,sBAAsBA,EAAG,eAAe,IAAI;AAAA,IACpF,GAEMC,IAAU,CAACD,MAAgB;AAC9B,MAAAA,EAAmB,MAAM,eAAe,oBAAoB,GAC7DA,EAAG,UAAU,OAAO,qBAAqB;AAAA,IAC3C;;;;;;;;;;;;;;;"}