Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit f519ab9

Browse files
committed
Merge branch 'next' into feature/unit-test
2 parents 41c7df2 + b63076f commit f519ab9

File tree

19 files changed

+1520
-631
lines changed

19 files changed

+1520
-631
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ jobs:
1717
node-version: 12
1818
- name: Install dependencies
1919
run: npm ci
20+
- name: Run unit tests
21+
run: npm run test --verbose
2022
- name: Build Library
2123
run: npm run build

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
node-version: 12
1818
- name: Install dependencies
1919
run: npm ci
20+
- name: Run unit tests
21+
run: npm run test --verbose
22+
- name: Run e2e
23+
run: npm run test:e2e
2024
- name: Build Library
2125
run: npm run build
2226
- name: Build Types Declarations

dev/typescript/App.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<div class="relative card p-6 bg-white">
1010
<h1 class="title mb-16 text-bg">{{ title }}</h1>
1111
<dynamic-form
12+
class="awiwi"
1213
:form="form"
1314
@submitted="handleSubmit"
1415
@change="valueChanged"
@@ -80,10 +81,9 @@ import {
8081
email,
8182
pattern,
8283
ValidatorTrigger,
83-
ValidationTriggerTypes,
8484
TextAreaField,
85-
} from '../../src';
86-
/* } from '../../dist/as-dynamic-forms.esm'; */
85+
/* } from '../../src'; */
86+
} from '../../dist/as-dynamic-forms.esm';
8787
export default defineComponent({
8888
name: 'app',
8989
setup() {
@@ -235,7 +235,7 @@ export default defineComponent({
235235
validations: [emailValidator],
236236
237237
validationTrigger: ValidatorTrigger({
238-
type: ValidationTriggerTypes.CHANGE,
238+
type: 'change',
239239
threshold: 4,
240240
}),
241241
}),
@@ -245,6 +245,9 @@ export default defineComponent({
245245
readonly: true,
246246
}),
247247
},
248+
options: {
249+
customClass: 'mandalorian',
250+
},
248251
}));
249252
250253
function handleSubmit(values) {

dev/typescript/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { createApp } from 'vue';
33
import App from './App.vue';
44
import './styles/main.scss';
55

6-
import { createDynamicForms } from '../../src';
6+
/* import { createDynamicForms } from '../../src'; */
7+
8+
import { createDynamicForms } from '../../dist/as-dynamic-forms.esm';
79

8-
/* import { createDynamicForms } from '../../dist/as-dynamic-forms.esm';
9-
*/
1010
const VueDynamicForms = createDynamicForms({
1111
autoValidate: true,
1212
form: {

0 commit comments

Comments
 (0)