@v1nt1248/3nclient-lib 0.2.98 → 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) => ({ v8dacee64: _.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), (0, Qa.default)(r.rules) && e.push(u.withoutValidation), 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,23 +17581,23 @@ var Vo = {
17580
17581
  ], 2));
17581
17582
  }
17582
17583
  }), [["__cssModules", { $style: {
17583
- ui3nInput: "_ui3nInput_1jceu_1",
17584
- withoutValidation: "_withoutValidation_1jceu_10",
17585
- ui3nInputField: "_ui3nInputField_1jceu_13",
17586
- ui3nInputIcon: "_ui3nInputIcon_1jceu_23",
17587
- ui3nInputLabel: "_ui3nInputLabel_1jceu_27",
17588
- ui3nInputIconDisabled: "_ui3nInputIconDisabled_1jceu_73",
17589
- clearBtn: "_clearBtn_1jceu_77",
17590
- ui3nInputFieldMessage: "_ui3nInputFieldMessage_1jceu_84",
17591
- ui3nInputErrorMessage: "_ui3nInputErrorMessage_1jceu_94",
17592
- ui3nInputSuccessMessage: "_ui3nInputSuccessMessage_1jceu_97",
17593
- clearable: "_clearable_1jceu_101",
17594
- withIcon: "_withIcon_1jceu_105",
17595
- error: "_error_1jceu_109",
17596
- success: "_success_1jceu_116",
17597
- ui3nInputSuccessIcon: "_ui3nInputSuccessIcon_1jceu_120",
17598
- disabled: "_disabled_1jceu_126",
17599
- withLabel: "_withLabel_1jceu_131"
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"
17600
17601
  } }]]), fs = /* @__PURE__ */ V(((e, t) => {
17601
17602
  var n = Ot(), r = dn(), i = cn(), a = "[object String]";
17602
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.98",
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;
@@ -35,7 +35,7 @@
35
35
  const mainCssClasses = computed(() => {
36
36
  const val = [css.ui3nInput];
37
37
  props.label && val.push(css.withLabel);
38
- isEmpty(props.rules) && val.push(css.withoutValidation);
38
+ props.hideBottomSpace && val.push(css.withoutBottomSpace);
39
39
  props.icon && val.push(css.withIcon);
40
40
  props.clearable && text.value && val.push(css.clearable);
41
41
  props.disabled && val.push(css.disabled);
@@ -243,7 +243,7 @@
243
243
  padding: 1px 1px 15px 1px;
244
244
  border-radius: var(--spacing-xs);
245
245
 
246
- &.withoutValidation {
246
+ &.withoutBottomSpace {
247
247
  padding-bottom: 0;
248
248
  }
249
249