@qikdev/vue-ui 0.1.63 → 0.1.67

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/dist/lib.es.js CHANGED
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
32
32
  };
33
33
  import { openBlock, createElementBlock, renderSlot, resolveComponent, createBlock, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, withDirectives, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createCommentVNode, createElementVNode, mergeProps, toHandlers, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelSelect, withKeys, vModelText, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, reactive, watch } from "vue";
34
34
  import { EventDispatcher } from "@qikdev/sdk";
35
- const version$1 = "0.1.63";
35
+ const version$1 = "0.1.67";
36
36
  var flexColumn_vue_vue_type_style_index_0_scoped_true_lang = "";
37
37
  var _export_sfc = (sfc, props2) => {
38
38
  const target = sfc.__vccOpts || sfc;
@@ -12867,7 +12867,12 @@ const _sfc_main$p = {
12867
12867
  config.headers = {
12868
12868
  "Content-Type": void 0
12869
12869
  };
12870
- return self2.$sdk.api.post(`/file/upload`, body, config).then(function(res) {
12870
+ console.log("FORM FILE UPLOAD", self2.field);
12871
+ let uploadURL = `/file/upload`;
12872
+ if (self2.$sdk.fileAPI) {
12873
+ uploadURL = `${self2.$sdk.fileAPI}${uploadURL}`;
12874
+ }
12875
+ return self2.$sdk.api.post(uploadURL, body, config).then(function(res) {
12871
12876
  fileItem.state = "complete";
12872
12877
  fileItem.result = res.data;
12873
12878
  fileItem.cancelToken = null;
@@ -13031,7 +13036,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
13031
13036
  }, 8, ["onFiles"]))
13032
13037
  ], 64);
13033
13038
  }
13034
- var Upload = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-1c070f26"]]);
13039
+ var Upload = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-dbc07a4e"]]);
13035
13040
  var group_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
13036
13041
  const _sfc_main$o = {
13037
13042
  mixins: [InputMixin],
@@ -16029,6 +16034,7 @@ const _sfc_main$d = {
16029
16034
  case "type-select":
16030
16035
  case "html":
16031
16036
  case "filter":
16037
+ case "value":
16032
16038
  break;
16033
16039
  case "password":
16034
16040
  return "textfield";
@@ -16061,7 +16067,7 @@ const _sfc_main$d = {
16061
16067
  }
16062
16068
  };
16063
16069
  const _hoisted_1$a = {
16064
- key: 24,
16070
+ key: 25,
16065
16071
  class: "ux-field-message"
16066
16072
  };
16067
16073
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
@@ -16115,35 +16121,36 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16115
16121
  modelValue: $options.fieldModel,
16116
16122
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $options.fieldModel = $event)
16117
16123
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16124
+ $options.widget == "value" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [], 64)) : createCommentVNode("", true),
16118
16125
  $options.widget == "filter" ? (openBlock(), createBlock(_component_filter_input, {
16119
- key: 3,
16126
+ key: 4,
16120
16127
  onTouched: $options.touch,
16121
16128
  field: $options.actualField,
16122
16129
  modelValue: $options.fieldModel,
16123
16130
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $options.fieldModel = $event)
16124
16131
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16125
16132
  $options.widget == "checkbox" ? (openBlock(), createBlock(_component_checkbox, {
16126
- key: 4,
16133
+ key: 5,
16127
16134
  onTouched: $options.touch,
16128
16135
  field: $options.actualField,
16129
16136
  modelValue: $options.fieldModel,
16130
16137
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $options.fieldModel = $event)
16131
16138
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16132
16139
  $options.widget == "switch" ? (openBlock(), createBlock(_component_boolean_switch, {
16133
- key: 5,
16140
+ key: 6,
16134
16141
  onTouched: $options.touch,
16135
16142
  field: $options.actualField,
16136
16143
  modelValue: $options.fieldModel,
16137
16144
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $options.fieldModel = $event)
16138
16145
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16139
16146
  $options.widget == "upload" ? (openBlock(), createBlock(_component_upload, {
16140
- key: 6,
16147
+ key: 7,
16141
16148
  onTouched: $options.touch,
16142
16149
  field: $options.actualField,
16143
16150
  modelValue: $options.fieldModel,
16144
16151
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $options.fieldModel = $event)
16145
16152
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16146
- $options.widget == "group" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
16153
+ $options.widget == "group" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
16147
16154
  $options.asObject ? (openBlock(), createBlock(_component_field_group, {
16148
16155
  key: 0,
16149
16156
  submission: $props.submission,
@@ -16167,7 +16174,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16167
16174
  }, null, 8, ["submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"]))
16168
16175
  ], 64)) : createCommentVNode("", true),
16169
16176
  $options.widget == "form" ? (openBlock(), createBlock(_component_field_group, {
16170
- key: 8,
16177
+ key: 9,
16171
16178
  submission: $props.submission,
16172
16179
  "onForm:state": $options.groupStateAltered,
16173
16180
  ref: "group",
@@ -16178,99 +16185,99 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16178
16185
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $options.fieldModel = $event)
16179
16186
  }, null, 8, ["submission", "onForm:state", "onTouched", "field", "parentModel", "modelValue"])) : createCommentVNode("", true),
16180
16187
  $options.widget == "select" ? (openBlock(), createBlock(_component_native_select, {
16181
- key: 9,
16188
+ key: 10,
16182
16189
  onTouched: $options.touch,
16183
16190
  field: $options.actualField,
16184
16191
  modelValue: $options.fieldModel,
16185
16192
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $options.fieldModel = $event)
16186
16193
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16187
16194
  $options.widget == "button" ? (openBlock(), createBlock(_component_button_select, {
16188
- key: 10,
16195
+ key: 11,
16189
16196
  onTouched: $options.touch,
16190
16197
  field: $options.actualField,
16191
16198
  modelValue: $options.fieldModel,
16192
16199
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $options.fieldModel = $event)
16193
16200
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16194
16201
  $options.widget == "textfield" ? (openBlock(), createBlock(_component_text_field, {
16195
- key: 11,
16202
+ key: 12,
16196
16203
  onTouched: $options.touch,
16197
16204
  field: $options.actualField,
16198
16205
  modelValue: $options.fieldModel,
16199
16206
  "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $options.fieldModel = $event)
16200
16207
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16201
16208
  $options.widget == "currency" ? (openBlock(), createBlock(_component_currency_field, {
16202
- key: 12,
16209
+ key: 13,
16203
16210
  onTouched: $options.touch,
16204
16211
  field: $options.actualField,
16205
16212
  modelValue: $options.fieldModel,
16206
16213
  "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $options.fieldModel = $event)
16207
16214
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16208
16215
  $options.widget == "datefield" ? (openBlock(), createBlock(_component_date_field, {
16209
- key: 13,
16216
+ key: 14,
16210
16217
  onTouched: $options.touch,
16211
16218
  field: $options.actualField,
16212
16219
  modelValue: $options.fieldModel,
16213
16220
  "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $options.fieldModel = $event)
16214
16221
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16215
16222
  $options.widget == "content-select" ? (openBlock(), createBlock(_component_content_select, {
16216
- key: 14,
16223
+ key: 15,
16217
16224
  onTouched: $options.touch,
16218
16225
  field: $options.actualField,
16219
16226
  modelValue: $options.fieldModel,
16220
16227
  "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $options.fieldModel = $event)
16221
16228
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16222
16229
  $options.widget == "type-select" ? (openBlock(), createBlock(_component_type_select, {
16223
- key: 15,
16230
+ key: 16,
16224
16231
  onTouched: $options.touch,
16225
16232
  field: $options.actualField,
16226
16233
  modelValue: $options.fieldModel,
16227
16234
  "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $options.fieldModel = $event)
16228
16235
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16229
16236
  $options.widget == "richtext" ? (openBlock(), createBlock(_component_rich_text_field, {
16230
- key: 16,
16237
+ key: 17,
16231
16238
  onTouched: $options.touch,
16232
16239
  field: $options.actualField,
16233
16240
  modelValue: $options.fieldModel,
16234
16241
  "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $options.fieldModel = $event)
16235
16242
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16236
16243
  $options.widget == "textarea" ? (openBlock(), createBlock(_component_text_area, {
16237
- key: 17,
16244
+ key: 18,
16238
16245
  onTouched: $options.touch,
16239
16246
  field: $options.actualField,
16240
16247
  modelValue: $options.fieldModel,
16241
16248
  "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => $options.fieldModel = $event)
16242
16249
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16243
16250
  $options.widget == "timezone" ? (openBlock(), createBlock(_component_timezone_select, {
16244
- key: 18,
16251
+ key: 19,
16245
16252
  onTouched: $options.touch,
16246
16253
  field: $options.actualField,
16247
16254
  modelValue: $options.fieldModel,
16248
16255
  "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $options.fieldModel = $event)
16249
16256
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16250
16257
  $options.widget == "phone" ? (openBlock(), createBlock(_component_phone_number_input, {
16251
- key: 19,
16258
+ key: 20,
16252
16259
  onTouched: $options.touch,
16253
16260
  field: $options.actualField,
16254
16261
  modelValue: $options.fieldModel,
16255
16262
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => $options.fieldModel = $event)
16256
16263
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16257
- $options.widget == "value" ? (openBlock(), createElementBlock(Fragment, { key: 20 }, [], 64)) : createCommentVNode("", true),
16264
+ $options.widget == "value" ? (openBlock(), createElementBlock(Fragment, { key: 21 }, [], 64)) : createCommentVNode("", true),
16258
16265
  $options.widget == "object" ? (openBlock(), createBlock(_component_object_field, {
16259
- key: 21,
16266
+ key: 22,
16260
16267
  onTouched: $options.touch,
16261
16268
  field: $options.actualField,
16262
16269
  modelValue: $options.fieldModel,
16263
16270
  "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => $options.fieldModel = $event)
16264
16271
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16265
16272
  $options.widget == "options" ? (openBlock(), createBlock(_component_options_manager, {
16266
- key: 22,
16273
+ key: 23,
16267
16274
  onTouched: $options.touch,
16268
16275
  field: $options.actualField,
16269
16276
  modelValue: $options.fieldModel,
16270
16277
  "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $options.fieldModel = $event)
16271
16278
  }, null, 8, ["onTouched", "field", "modelValue"])) : createCommentVNode("", true),
16272
16279
  $options.widget == "code" ? (openBlock(), createBlock(_component_flex_column, {
16273
- key: 23,
16280
+ key: 24,
16274
16281
  style: { "min-height": "300px" }
16275
16282
  }, {
16276
16283
  default: withCtx(() => [
@@ -16286,7 +16293,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
16286
16293
  $options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$a, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
16287
16294
  ], 34)) : createCommentVNode("", true);
16288
16295
  }
16289
- var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-7e4ae2fb"]]);
16296
+ var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-6c49b812"]]);
16290
16297
  var form_vue_vue_type_style_index_0_scoped_true_lang = "";
16291
16298
  const _sfc_main$c = {
16292
16299
  props: {