@opentinyvue/vue-form-item 3.21.0 → 3.22.1

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/lib/index.js CHANGED
@@ -7,7 +7,7 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
12
  import MobileFirstTemplate from "./mobile-first.js";
13
13
  var template = function template2(mode) {
package/lib/label-wrap.js CHANGED
@@ -7,7 +7,7 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $props, h, setup as _setup } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, setup as _setup, h } from "@opentinyvue/vue-common";
11
11
  var labelWrap = defineComponent({
12
12
  props: _extends({}, $props, {
13
13
  isAutoWidth: Boolean,
@@ -134,7 +134,7 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
134
134
  return [_ctx.slots.label || _ctx.label ? (openBlock(), createElementBlock("label", {
135
135
  key: 0,
136
136
  "data-tag": "tiny-item-label",
137
- class: normalizeClass(_ctx.m("py-3 sm:py-1.5 sm:min-h-[theme(spacing.7)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5", "overflow-hidden text-ellipsis", _ctx.state.labelPosition === "top" ? "float-none inline-block text-left sm:text-left leading-none px-0 pt-0 pb-1.5 h-auto min-h-0 sm:py-0 sm:pb-1 sm:min-h-[theme(spacing.0)]" : "min-h-[theme(spacing.9)]", _ctx.state.labelPosition === "right" ? "text-right sm:text-right" : "", _ctx.state.labelPosition === "left" ? "text-left sm:text-left" : "", _ctx.state.formInline && _ctx.state.labelPosition === "top" ? "block" : "", _ctx.state.isDisplayOnly ? "leading-none h-auto align-[inherit] pr-4" : "", _ctx.tipContent ? "pr-5 sm:pr-7" : "", _ctx.state.labelPosition === "top" && !_ctx.state.hideRequiredAsterisk ? "overflow-visible relative before:absolute before:-left-2.5" : "", _ctx.state.disabled ? "text-color-icon-placeholder sm:text-color-text-secondary" : "text-color-text-secondary", _ctx.state.formItemSize !== "mini" ? "sm:text-sm" : "sm:text-xs")),
137
+ class: normalizeClass(_ctx.m("py-3 sm:py-1.5 sm:min-h-[theme(spacing.7)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5 shrink-0", "overflow-hidden text-ellipsis", _ctx.state.labelPosition === "top" ? "float-none inline-block text-left sm:text-left leading-none px-0 pt-0 pb-1.5 h-auto min-h-0 sm:py-0 sm:pb-1 sm:min-h-[theme(spacing.0)]" : "min-h-[theme(spacing.9)]", _ctx.state.labelPosition === "right" ? "text-right sm:text-right" : "", _ctx.state.labelPosition === "left" ? "text-left sm:text-left" : "", _ctx.state.formInline && _ctx.state.labelPosition === "top" ? "block" : "", _ctx.state.isDisplayOnly ? "leading-none h-auto align-[inherit] pr-4" : "", _ctx.tipContent ? "pr-5 sm:pr-7" : "", _ctx.state.labelPosition === "top" && !_ctx.state.hideRequiredAsterisk ? "overflow-visible relative before:absolute before:-left-2.5" : "", _ctx.state.disabled ? "text-color-icon-placeholder sm:text-color-text-secondary" : "text-color-text-secondary", _ctx.state.formItemSize !== "mini" ? "sm:text-sm" : "sm:text-xs")),
138
138
  style: normalizeStyle(_ctx.state.labelStyle),
139
139
  for: _ctx.state.labelFor
140
140
  }, [createElementVNode(
@@ -173,7 +173,7 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
173
173
  "div",
174
174
  {
175
175
  "data-tag": "tiny-form-item-inline",
176
- class: normalizeClass(_ctx.m("flex-1 m-0 sm:m-auto relative sm:pt-0 sm:top-auto text-sm after:content-[''] after:table after:clear-both before:content-[''] before:table [&_button:not(:last-child)]:mr-2", "[&_[data-tag=tiny-checkbox]]:py-0 [&_[data-tag=tiny-input]]:w-full", "[&_[data-tag=tiny-input]_textarea]:px-0 sm:[&_[data-tag=tiny-input]_textarea]:px-3 [&_[data-tag=tiny-input]_textarea]:w-full [&_[data-tag=tiny-input]_textarea]:pt-1 sm:[&_[data-tag=tiny-input]_textarea]:pt-2", _ctx.state.formInline ? "align-sub leading-none" : "", _ctx.state.labelPosition === "top" && !_ctx.state.hideRequiredAsterisk ? _ctx.state.isDisplayOnly ? "pl-0" : "pl-2 sm:pl-0" : "pt-2", _ctx.state.formItemSize !== "mini" ? "sm:text-sm" : "sm:text-xs"))
176
+ class: normalizeClass(_ctx.m("min-w-0 flex-1 m-0 sm:m-auto relative sm:pt-0 sm:top-auto text-sm after:content-[''] after:table after:clear-both before:content-[''] before:table [&_button:not(:last-child)]:mr-2", "[&_[data-tag=tiny-checkbox]]:py-0 [&_[data-tag=tiny-input]]:w-full", "[&_[data-tag=tiny-input]_textarea]:px-0 sm:[&_[data-tag=tiny-input]_textarea]:px-3 [&_[data-tag=tiny-input]_textarea]:w-full [&_[data-tag=tiny-input]_textarea]:pt-1 sm:[&_[data-tag=tiny-input]_textarea]:pt-2", _ctx.state.formInline ? "align-sub leading-none" : "", _ctx.state.labelPosition === "top" && !_ctx.state.hideRequiredAsterisk ? _ctx.state.isDisplayOnly ? "pl-0" : "pl-2 sm:pl-0" : "pt-2", _ctx.state.formItemSize !== "mini" ? "sm:text-sm" : "sm:text-xs"))
177
177
  },
178
178
  [_ctx.state.isDisplayOnly && _ctx.state.isBasicComp ? (openBlock(), createElementBlock("div", {
179
179
  key: 0,
package/lib/pc.js CHANGED
@@ -8,8 +8,8 @@ function _extends() {
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
10
  import { createVNode } from "vue";
11
- import { defineComponent, $prefix, $props, setup as _setup, h, isVue2, parseVnode, hooks, stringifyCssClass, deduplicateCssClass } from "@opentinyvue/vue-common";
12
- import { renderless, api } from "@opentinyvue/vue-renderless/form-item/vue";
11
+ import { defineComponent, $props, h, isVue2, parseVnode, hooks, stringifyCssClass, deduplicateCssClass, setup as _setup, $prefix } from "@opentinyvue/vue-common";
12
+ import { api, renderless } from "@opentinyvue/vue-renderless/form-item/vue";
13
13
  import LabelWrap from "./label-wrap";
14
14
  import Tooltip from "@opentinyvue/vue-tooltip";
15
15
  import { iconError } from "@opentinyvue/vue-icon";
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-form-item",
3
3
  "type": "module",
4
- "version": "3.21.0",
4
+ "version": "3.22.1",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/vue-common": "~3.21.0",
12
- "@opentinyvue/vue-icon": "~3.21.0",
13
- "@opentinyvue/vue-renderless": "~3.21.0",
14
- "@opentinyvue/vue-tooltip": "~3.21.0"
11
+ "@opentinyvue/vue-common": "~3.22.0",
12
+ "@opentinyvue/vue-icon": "~3.22.0",
13
+ "@opentinyvue/vue-renderless": "~3.22.0",
14
+ "@opentinyvue/vue-tooltip": "~3.22.0"
15
15
  },
16
16
  "types": "index.d.ts",
17
17
  "scripts": {
package/src/index.d.ts CHANGED
@@ -194,13 +194,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
194
194
  }>>, {
195
195
  error: string;
196
196
  ellipsis: boolean;
197
- tiny_mode_root: boolean;
198
- _constants: Record<string, any>;
197
+ required: boolean;
199
198
  appendToBody: boolean;
199
+ vertical: boolean;
200
200
  manual: boolean;
201
+ tiny_mode_root: boolean;
202
+ _constants: Record<string, any>;
201
203
  popperOptions: Record<string, any>;
202
- vertical: boolean;
203
- required: boolean;
204
204
  inlineMessage: boolean;
205
205
  showMessage: boolean;
206
206
  validateDisabled: boolean;
@@ -96,12 +96,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
96
96
  tiny_theme: StringConstructor;
97
97
  tiny_chart_theme: ObjectConstructor;
98
98
  }>>, {
99
- tiny_mode_root: boolean;
100
- _constants: Record<string, any>;
99
+ required: boolean;
101
100
  appendToBody: boolean;
102
101
  manual: boolean;
102
+ tiny_mode_root: boolean;
103
+ _constants: Record<string, any>;
103
104
  popperOptions: Record<string, any>;
104
- required: boolean;
105
105
  inlineMessage: string | boolean;
106
106
  showMessage: boolean;
107
107
  validateDisabled: boolean;
package/src/pc.vue.d.ts CHANGED
@@ -124,13 +124,13 @@ declare const _default: hooks.DefineComponent<{
124
124
  tiny_chart_theme: ObjectConstructor;
125
125
  }>>, {
126
126
  ellipsis: boolean;
127
- tiny_mode_root: boolean;
128
- _constants: Record<string, any>;
127
+ required: boolean;
129
128
  appendToBody: boolean;
129
+ vertical: boolean;
130
130
  manual: boolean;
131
+ tiny_mode_root: boolean;
132
+ _constants: Record<string, any>;
131
133
  popperOptions: Record<string, any>;
132
- vertical: boolean;
133
- required: boolean;
134
134
  inlineMessage: boolean;
135
135
  showMessage: boolean;
136
136
  validateDisabled: boolean;