Skip to content

Commit c608f8a

Browse files
committed
dosya test için eklendi
1 parent e9cf21c commit c608f8a

File tree

15 files changed

+903
-295
lines changed

15 files changed

+903
-295
lines changed

dist/v-form-builder.common.js

Lines changed: 264 additions & 116 deletions
Large diffs are not rendered by default.

dist/v-form-builder.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/v-form-builder.umd.js

Lines changed: 264 additions & 116 deletions
Large diffs are not rendered by default.

dist/v-form-builder.umd.min.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,39 @@
4040
<span v-show="!readOnly">Turn on ReadOnly mode</span>
4141
</button>
4242
</div>
43+
<button @click="setStep('start')">Start</button>
44+
<button @click="setStep('completed')">Completed</button>
45+
<!-- <FormRenderer
46+
v-model="formInputData"
47+
:class="{'col-md-9': isShowData, 'col-md-12': !isShowData}"
48+
:form-configuration="formData"
49+
:read-only="readOnly"
50+
@changeControlPermission="asd"
51+
@changeSectionPermission="asd"
52+
id="configurable"
53+
:current-step="currentStep"
54+
:cloudApiTokens="token"
55+
:customerFiles="files"
56+
/> -->
4357

4458
<FormRenderer
4559
v-model="formInputData"
4660
:class="{'col-md-9': isShowData, 'col-md-12': !isShowData}"
4761
:form-configuration="formData"
4862
:read-only="readOnly"
63+
@changeControlPermission="asd"
64+
@changeSectionPermission="asd"
65+
id="renderable"
66+
:current-step="currentStep"
67+
:cloudApiTokens="token"
68+
:customerFiles="files"
4969
/>
70+
<!-- <FormRenderer
71+
v-model="formInputData"
72+
:class="{'col-md-9': isShowData, 'col-md-12': !isShowData}"
73+
:form-configuration="formData"
74+
:read-only="readOnly"
75+
/> -->
5076

5177
<div class="p-0" :class="{'col-md-3': isShowData, 'd-none': !isShowData}">
5278
<h4>Form Input Data</h4>
@@ -76,12 +102,45 @@
76102
formInputData: null,
77103
isShowData: false,
78104
readOnly: false,
105+
currentStep: "start",
106+
token:[
107+
{
108+
"accountId": "58127aa2-6ae6-4dc9-b963-7ddc4dc93a43",
109+
"cloudType": "google-drive"
110+
}
111+
],
112+
files:[
113+
{
114+
"storage_type": "google-drive",
115+
"is_deleted": false,
116+
"mime_type": "application/pdf",
117+
"file_name": "BulkMMS Servisi Kullanım Kılavuzu_IYS.pdf",
118+
"_id": {
119+
"$oid": "63591c307763c22bf606f978"
120+
},
121+
"file_size": 786960,
122+
"cid": {
123+
"$oid": "5fdc7256e9a82a59c399c88a"
124+
},
125+
"cloud_api_token": {
126+
"accountId": "58127aa2-6ae6-4dc9-b963-7ddc4dc93a43",
127+
"fileName": "BulkMMS Servisi Kullanım Kılavuzu_IYS.pdf",
128+
"fileId": "1aiRe03kTD3L23H787_eVrAN08_-JWCu9auVq-0oYvyVWFybymw"
129+
}
130+
}
131+
]
79132
}),
80133
methods: {
81134
getData() {
82135
console.log(JSON.stringify(this.formData))
83136
},
84-
137+
asd(a){
138+
// console.log(this.formData);
139+
// console.log("çalıştı");
140+
},
141+
setStep(step){
142+
this.currentStep = step
143+
},
85144
createBlank() {
86145
this.formData = Object.assign({})
87146
},

src/components/FormRenderer.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
:current-step="currentStep"
3030
@changeControlPermission="changeControlPermission"
3131
@changeSectionPermission="changeSectionPermission"
32+
:cloudApiTokens="[]"
33+
:customerFiles="[]"
3234
/>
3335
</form>
3436
<template v-else>
@@ -53,6 +55,8 @@
5355
:current-step="currentStep"
5456
@changeControlPermission="changeControlPermission"
5557
@changeSectionPermission="changeSectionPermission"
58+
:cloudApiTokens="cloudApiTokens"
59+
:customerFiles="customerFiles"
5660
/>
5761

5862
</template>

src/mixins/form-renderer/configuration.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
required: true,
3030
},
3131

32+
cloudApiTokens: {
33+
type: Array,
34+
required: false,
35+
},
36+
37+
customerFiles: {
38+
type: Array,
39+
required: false,
40+
},
41+
3242
},
3343

3444
watch: {

src/mixins/renderer-section-view-mixin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const RENDERER_SECTION_VIEW_MIXIN = {
1515
valueContainer: Object,
1616
validationErrors: Object,
1717
readOnly: Boolean,
18-
currentStep: String
18+
currentStep: String,
19+
customerFiles: Array,
20+
cloudApiTokens: Array
1921
},
2022

2123
data: () => ({

src/views/builder/section-views/FileSectionView.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<p :class="section.subHeadlineAdditionalClass" v-text="section.subHeadline"></p>
66
</div>
77
<div class="row md-layout control-list-container">
8-
<h2>Dosya</h2>
98
<div class="input-group w-100 mt-2">
109
<div class="custom-file">
1110
<input type="file" class="custom-file-input" id="inputGroupFile02" @change="chooseFile($event)">

src/views/renderer/SectionContainer.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
:validation-errors="validationErrors"
1111
:read-only="readOnly"
1212
:current-step="currentStep"
13+
:customerFiles="customerFiles"
14+
:cloudApiTokens="cloudApiTokens"
1315
@changeControlPermission="changeControlPermission"
1416
@changeSectionPermission="changeSectionPermission"
1517
/>
@@ -31,7 +33,9 @@
3133
valueContainer: Object,
3234
validationErrors: Object,
3335
readOnly: Boolean,
34-
currentStep: String
36+
currentStep: String,
37+
customerFiles: Array,
38+
cloudApiTokens: Array
3539
},
3640
3741
computed: {

0 commit comments

Comments
 (0)