@vc-shell/framework 1.0.199 → 1.0.201
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/CHANGELOG.md +18 -0
- package/dist/framework.js +9 -6
- package/dist/index.css +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +0 -1
- package/shared/modules/dynamic/components/fields/storybook/InputField.stories.ts +2 -2
- package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +2 -2
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +4 -3
- package/shared/modules/dynamic/factories/types/index.ts +1 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.0.201](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.200...v1.0.201) (2024-04-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **dynamic:** saveChanges response ([9d3f909](https://github.com/VirtoCommerce/vc-shell/commit/9d3f9091e15dad0498c680f7835a96c3e0fb5cac))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.200](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.199...v1.0.200) (2024-04-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **ui:** vc-multivalue input on blur, removed arrows with number type ([ff0b293](https://github.com/VirtoCommerce/vc-shell/commit/ff0b29305dd495f2f9577b34c122d33fb67596d0))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.0.199](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.198...v1.0.199) (2024-04-22)
|
|
2
20
|
|
|
3
21
|
|
package/dist/framework.js
CHANGED
|
@@ -25016,7 +25016,7 @@ function Lae(t) {
|
|
|
25016
25016
|
function ES() {
|
|
25017
25017
|
return Math.random().toString(36).substring(2, 9);
|
|
25018
25018
|
}
|
|
25019
|
-
const j9 = { class: "tw-items-center tw-flex tw-flex-wrap" }, H9 = {
|
|
25019
|
+
const j9 = { class: "tw-items-center tw-flex tw-flex-wrap tw-flex-grow" }, H9 = {
|
|
25020
25020
|
key: 0,
|
|
25021
25021
|
class: "vc-multivalue__field-value"
|
|
25022
25022
|
}, V9 = { class: "tw-truncate" }, q9 = {
|
|
@@ -25079,7 +25079,7 @@ const j9 = { class: "tw-items-center tw-flex tw-flex-wrap" }, H9 = {
|
|
|
25079
25079
|
}
|
|
25080
25080
|
function v(S) {
|
|
25081
25081
|
const x = S.target.value;
|
|
25082
|
-
r("update:model-value", [...n.modelValue, { [n.optionLabel]: x }]), u.value = void 0;
|
|
25082
|
+
x === "" || x === void 0 || x === null || (r("update:model-value", [...n.modelValue, { [n.optionLabel]: x }]), u.value = void 0);
|
|
25083
25083
|
}
|
|
25084
25084
|
function p(S) {
|
|
25085
25085
|
r("update:model-value", [...n.modelValue, S]), r("close"), N();
|
|
@@ -25228,11 +25228,12 @@ const j9 = { class: "tw-items-center tw-flex tw-flex-wrap" }, H9 = {
|
|
|
25228
25228
|
])) : vn((k(), q("input", {
|
|
25229
25229
|
key: 1,
|
|
25230
25230
|
"onUpdate:modelValue": x[0] || (x[0] = (M) => u.value = M),
|
|
25231
|
-
class: "vc-multivalue__field tw-grow tw-basis-0 tw-
|
|
25231
|
+
class: "vc-multivalue__field tw-grow tw-basis-0 tw-px-3",
|
|
25232
25232
|
placeholder: S.placeholder,
|
|
25233
25233
|
type: m.value,
|
|
25234
25234
|
disabled: S.disabled,
|
|
25235
25235
|
onKeypress: dd(yt(v, ["stop", "prevent"]), ["enter"]),
|
|
25236
|
+
onBlur: v,
|
|
25236
25237
|
onKeydown: b
|
|
25237
25238
|
}, null, 40, W9)), [
|
|
25238
25239
|
[s1, u.value]
|
|
@@ -39637,9 +39638,11 @@ const qae = (t) => function() {
|
|
|
39637
39638
|
const h = se(() => !f.value || !d.value), { loading: g, action: m } = Ia(async (O) => {
|
|
39638
39639
|
l.value = await t.load(O), l.value && N(l.value);
|
|
39639
39640
|
}), { loading: b, action: v } = Ia(async (O) => {
|
|
39640
|
-
if (w.value.valid)
|
|
39641
|
-
await t.saveChanges?.(O)
|
|
39642
|
-
|
|
39641
|
+
if (w.value.valid) {
|
|
39642
|
+
const S = await t.saveChanges?.(O);
|
|
39643
|
+
if (c.value = !1, f = z(!1), S)
|
|
39644
|
+
return S;
|
|
39645
|
+
} else
|
|
39643
39646
|
throw new Error("Form is not valid");
|
|
39644
39647
|
}), { loading: p, action: E } = Ia(async (O) => {
|
|
39645
39648
|
await t.remove?.(O);
|