Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
a4375f0a22 | ||
|
119286a524 | ||
|
cbe80e3de4 | ||
|
bfeba566d9 | ||
|
eda7a1d79d |
7 changed files with 238 additions and 3006 deletions
11
.gitignore
vendored
11
.gitignore
vendored
|
@ -1,11 +1,16 @@
|
||||||
node_modules
|
|
||||||
coverage
|
|
||||||
.cache
|
.cache
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
coverage
|
||||||
|
dist/
|
||||||
|
node_modules
|
||||||
|
|
||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
*.dev.tale.vue
|
*.dev.tale.vue
|
||||||
*.dev.stories.js
|
*.dev.stories.js
|
||||||
storybook-static
|
|
||||||
|
storybook-static
|
||||||
|
.npmrc
|
||||||
|
|
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -2,6 +2,20 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [0.8.3](https://github.com/retailcrm/vue-formulario/compare/v0.8.2...v0.8.3) (2024-12-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Updated package.json manifest ([cbe80e3](https://github.com/retailcrm/vue-formulario/commit/cbe80e3de498732af8db34f0846cc92d977d9420))
|
||||||
|
|
||||||
|
### [0.8.2](https://github.com/retailcrm/vue-formulario/compare/v0.8.1...v0.8.2) (2023-12-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Added web-types declaration ([eda7a1d](https://github.com/retailcrm/vue-formulario/commit/eda7a1d79d98e4ccd76e67bc93c1bf8dc5249e67))
|
||||||
|
|
||||||
### [0.8.1](https://github.com/retailcrm/vue-formulario/compare/v0.8.0...v0.8.1) (2023-12-28)
|
### [0.8.1](https://github.com/retailcrm/vue-formulario/compare/v0.8.0...v0.8.1) (2023-12-28)
|
||||||
|
|
||||||
|
|
||||||
|
|
1485
dist/formulario.esm.js
vendored
1485
dist/formulario.esm.js
vendored
File diff suppressed because it is too large
Load diff
20
dist/formulario.min.js
vendored
20
dist/formulario.min.js
vendored
File diff suppressed because one or more lines are too long
1497
dist/formulario.umd.js
vendored
1497
dist/formulario.umd.js
vendored
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@retailcrm/vue-formulario",
|
"name": "@retailcrm/vue-formulario",
|
||||||
"version": "0.8.1",
|
"version": "0.8.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
||||||
"main": "dist/formulario.umd.js",
|
"main": "dist/formulario.umd.js",
|
||||||
|
@ -9,6 +9,14 @@
|
||||||
"./sfc": "src/index.ts"
|
"./sfc": "src/index.ts"
|
||||||
},
|
},
|
||||||
"unpkg": "dist/formulario.min.js",
|
"unpkg": "dist/formulario.min.js",
|
||||||
|
"web-types": "web-types.json",
|
||||||
|
"files": [
|
||||||
|
"dist",
|
||||||
|
"types",
|
||||||
|
"CHANGELOG.md",
|
||||||
|
"LICENSE.txt",
|
||||||
|
"README.md"
|
||||||
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-url": "^1.2.4",
|
"is-url": "^1.2.4",
|
||||||
"vue-class-component": "^7.2.3",
|
"vue-class-component": "^7.2.3",
|
||||||
|
|
207
web-types.json
Normal file
207
web-types.json
Normal file
|
@ -0,0 +1,207 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
||||||
|
"framework": "vue",
|
||||||
|
"name": "@omnica/accordion-vue2",
|
||||||
|
"version": "0.24.22",
|
||||||
|
"js-types-syntax": "typescript",
|
||||||
|
"description-markup": "markdown",
|
||||||
|
"contributions": {
|
||||||
|
"html": {
|
||||||
|
"vue-components": [
|
||||||
|
{
|
||||||
|
"name": "FormularioForm",
|
||||||
|
"description": "Form root",
|
||||||
|
"source": {
|
||||||
|
"module": "@retailcrm/vue-formulario",
|
||||||
|
"symbol": "FormularioForm"
|
||||||
|
},
|
||||||
|
"props": [
|
||||||
|
{
|
||||||
|
"name": "state",
|
||||||
|
"type": "object",
|
||||||
|
"default": "{}",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"type": "string",
|
||||||
|
"default": "id('formulario-form')",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "fieldsErrors",
|
||||||
|
"type": "object",
|
||||||
|
"default": "{}",
|
||||||
|
"description": "Describes validation errors of concrete fields"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "formErrors",
|
||||||
|
"type": "array",
|
||||||
|
"default": "[]",
|
||||||
|
"description": "Describes validation errors of entire state"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"name": "input",
|
||||||
|
"description": "Occurs on state change",
|
||||||
|
"arguments": [
|
||||||
|
{
|
||||||
|
"name": "...",
|
||||||
|
"type": {
|
||||||
|
"name": "any"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "validation",
|
||||||
|
"description": "Occurs at the end of a validation run",
|
||||||
|
"arguments": [
|
||||||
|
{
|
||||||
|
"name": "...",
|
||||||
|
"type": {
|
||||||
|
"name": "any"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"slots": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"description": "Form content",
|
||||||
|
"scoped": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "FormularioField",
|
||||||
|
"description": "Form field",
|
||||||
|
"source": {
|
||||||
|
"module": "@retailcrm/vue-formulario",
|
||||||
|
"symbol": "FormularioField"
|
||||||
|
},
|
||||||
|
"props": [
|
||||||
|
{
|
||||||
|
"name": "value",
|
||||||
|
"type": "any",
|
||||||
|
"description": "The field's value, if not set explicitly, will be extracted from the state using 'path'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "name",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Path to field's value in the state",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "validation",
|
||||||
|
"type": "string|array",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "validationRules",
|
||||||
|
"type": "object",
|
||||||
|
"description": "Validation rules override/extension opportunity",
|
||||||
|
"default": "{}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "validationMessages",
|
||||||
|
"type": "object",
|
||||||
|
"description": "Validation messages override/extension opportunity",
|
||||||
|
"default": "{}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "validationBehavior",
|
||||||
|
"type": "string",
|
||||||
|
"description": "",
|
||||||
|
"default": "'demand'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "errorsDisabled",
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Disables passing errors to the field from FormularioForm's fieldsErrors",
|
||||||
|
"default": "false"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "modelGetConverter",
|
||||||
|
"type": "function",
|
||||||
|
"description": "Simple middleware that provides opportunity to transform value before passing it to a template"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "modelSetConverter",
|
||||||
|
"type": "function",
|
||||||
|
"description": "Simple middleware that provides opportunity to transform new value before assigning"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "tag",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Root element's tagName in lowercase"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "unregisterBehavior",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Possible values: 'none', 'unset'",
|
||||||
|
"default": "'none'"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"name": "input",
|
||||||
|
"description": "Occurs on value change",
|
||||||
|
"arguments": [
|
||||||
|
{
|
||||||
|
"name": "...",
|
||||||
|
"type": {
|
||||||
|
"name": "any"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "validation",
|
||||||
|
"description": "Occurs at the end of a validation run",
|
||||||
|
"arguments": [
|
||||||
|
{
|
||||||
|
"name": "...",
|
||||||
|
"type": {
|
||||||
|
"name": "any"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"slots": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"description": "Field content",
|
||||||
|
"scoped": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "FormularioFieldGroup",
|
||||||
|
"description": "Field group",
|
||||||
|
"source": {
|
||||||
|
"module": "@retailcrm/vue-formulario",
|
||||||
|
"symbol": "FormularioFieldGroup"
|
||||||
|
},
|
||||||
|
"props": [
|
||||||
|
{
|
||||||
|
"name": "name",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Path to a nested state",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"slots": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"description": "Group content"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue