@v1nt1248/3nclient-lib 0.2.97 → 0.2.99

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.
@@ -17436,6 +17436,7 @@ var Vo = {
17436
17436
  icon: {},
17437
17437
  iconColor: {},
17438
17438
  rules: {},
17439
+ hideBottomSpace: { type: Boolean },
17439
17440
  displayStateMode: {},
17440
17441
  displayStateWithIcon: { type: Boolean },
17441
17442
  displayStateMessage: {},
@@ -17455,10 +17456,10 @@ var Vo = {
17455
17456
  "update:valid"
17456
17457
  ],
17457
17458
  setup(e, { expose: t, emit: n }) {
17458
- M((e) => ({ v18e0dfb9: _.value }));
17459
+ M((e) => ({ v7d68acd3: _.value }));
17459
17460
  let r = e, l = n, u = j(), d = C(null), f = C(""), p = C(!1), m = C(!1), h = C(""), _ = i(() => r.disabled ? "var(--color-icon-control-primary-disabled)" : r.iconColor || "var(--color-icon-control-primary-default)"), v = i(() => p.value ? !h.value : !0), y = i(() => {
17460
17461
  let e = [u.ui3nInput];
17461
- return r.label && e.push(u.withLabel), r.icon && e.push(u.withIcon), r.clearable && f.value && e.push(u.clearable), r.disabled && e.push(u.disabled), (h.value && !v.value || r.displayStateMode === "error") && e.push(u.error), r.displayStateMode === "success" && e.push(u.success), e;
17462
+ return r.label && e.push(u.withLabel), r.hideBottomSpace && e.push(u.withoutBottomSpace), r.icon && e.push(u.withIcon), r.clearable && f.value && e.push(u.clearable), r.disabled && e.push(u.disabled), (h.value && !v.value || r.displayStateMode === "error") && e.push(u.error), r.displayStateMode === "success" && e.push(u.success), e;
17462
17463
  }), S = i(() => {
17463
17464
  let e = [u.ui3nInputIcon];
17464
17465
  return r.disabled && e.push(u.ui3nInputIconDisabled), e;
@@ -17580,22 +17581,23 @@ var Vo = {
17580
17581
  ], 2));
17581
17582
  }
17582
17583
  }), [["__cssModules", { $style: {
17583
- ui3nInput: "_ui3nInput_wmoan_1",
17584
- ui3nInputField: "_ui3nInputField_wmoan_10",
17585
- ui3nInputIcon: "_ui3nInputIcon_wmoan_20",
17586
- ui3nInputLabel: "_ui3nInputLabel_wmoan_24",
17587
- ui3nInputIconDisabled: "_ui3nInputIconDisabled_wmoan_70",
17588
- clearBtn: "_clearBtn_wmoan_74",
17589
- ui3nInputFieldMessage: "_ui3nInputFieldMessage_wmoan_81",
17590
- ui3nInputErrorMessage: "_ui3nInputErrorMessage_wmoan_91",
17591
- ui3nInputSuccessMessage: "_ui3nInputSuccessMessage_wmoan_94",
17592
- clearable: "_clearable_wmoan_98",
17593
- withIcon: "_withIcon_wmoan_102",
17594
- error: "_error_wmoan_106",
17595
- success: "_success_wmoan_113",
17596
- ui3nInputSuccessIcon: "_ui3nInputSuccessIcon_wmoan_117",
17597
- disabled: "_disabled_wmoan_123",
17598
- withLabel: "_withLabel_wmoan_128"
17584
+ ui3nInput: "_ui3nInput_1pq0y_1",
17585
+ withoutBottomSpace: "_withoutBottomSpace_1pq0y_10",
17586
+ ui3nInputField: "_ui3nInputField_1pq0y_13",
17587
+ ui3nInputIcon: "_ui3nInputIcon_1pq0y_23",
17588
+ ui3nInputLabel: "_ui3nInputLabel_1pq0y_27",
17589
+ ui3nInputIconDisabled: "_ui3nInputIconDisabled_1pq0y_73",
17590
+ clearBtn: "_clearBtn_1pq0y_77",
17591
+ ui3nInputFieldMessage: "_ui3nInputFieldMessage_1pq0y_84",
17592
+ ui3nInputErrorMessage: "_ui3nInputErrorMessage_1pq0y_94",
17593
+ ui3nInputSuccessMessage: "_ui3nInputSuccessMessage_1pq0y_97",
17594
+ clearable: "_clearable_1pq0y_101",
17595
+ withIcon: "_withIcon_1pq0y_105",
17596
+ error: "_error_1pq0y_109",
17597
+ success: "_success_1pq0y_116",
17598
+ ui3nInputSuccessIcon: "_ui3nInputSuccessIcon_1pq0y_120",
17599
+ disabled: "_disabled_1pq0y_126",
17600
+ withLabel: "_withLabel_1pq0y_131"
17599
17601
  } }]]), fs = /* @__PURE__ */ V(((e, t) => {
17600
17602
  var n = Ot(), r = dn(), i = cn(), a = "[object String]";
17601
17603
  function o(e) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.2.97",
5
+ "version": "0.2.99",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -8,6 +8,7 @@ export interface Ui3nInputProps {
8
8
  icon?: string;
9
9
  iconColor?: string;
10
10
  rules?: Array<(v: unknown) => boolean | string>;
11
+ hideBottomSpace?: boolean;
11
12
  displayStateMode?: 'error' | 'success';
12
13
  displayStateWithIcon?: boolean;
13
14
  displayStateMessage?: string;
@@ -1,5 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import { computed, onMounted, ref, watch, useCssModule } from 'vue';
3
+ import isEmpty from 'lodash/isEmpty';
3
4
  import Ui3nIcon from '../ui3n-icon/ui3n-icon.vue';
4
5
  import Ui3nButton from '../ui3n-button/ui3n-button.vue';
5
6
  import type { Ui3nInputEmits, Ui3nInputProps } from './types';
@@ -34,6 +35,7 @@
34
35
  const mainCssClasses = computed(() => {
35
36
  const val = [css.ui3nInput];
36
37
  props.label && val.push(css.withLabel);
38
+ props.hideBottomSpace && val.push(css.withoutBottomSpace);
37
39
  props.icon && val.push(css.withIcon);
38
40
  props.clearable && text.value && val.push(css.clearable);
39
41
  props.disabled && val.push(css.disabled);
@@ -241,6 +243,10 @@
241
243
  padding: 1px 1px 15px 1px;
242
244
  border-radius: var(--spacing-xs);
243
245
 
246
+ &.withoutBottomSpace {
247
+ padding-bottom: 0;
248
+ }
249
+
244
250
  &:hover {
245
251
  .ui3nInputField:not(:focus-within) {
246
252
  background-color: var(--color-bg-control-secondary-hover);