@tager/admin-blog 1.0.2 → 1.0.3

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/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { onMounted, watch, computed, ref, defineComponent, resolveComponent, ope
3
3
  import isEqual from "lodash.isequal";
4
4
  import pick from "lodash.pick";
5
5
  import { useRoute, useRouter } from "vue-router";
6
- import { getFilterParamAsStringArray, getFilterParamAsString, getFilterParams, DeleteIcon, ContentCopyIcon, EditIcon, BaseButton, FormField, FormFieldMultiSelect, AdvancedSearch, DataTable, useDataTable, formatDateTime, SeoFieldGroup, FormFieldFileInput, FormFieldRichTextInput, FormFieldCheckbox, FormFieldUrlAliasInput, FormFieldSelect, TabList, ShortCodeConstructor, FormFooter, formatDate, createTabErrorFinder, SouthIcon, NorthIcon, CountButton } from "@tager/admin-ui";
6
+ import { getFilterParamAsStringArray, getFilterParamAsString, getFilterParams, DeleteIcon, ContentCopyIcon, EditIcon, BaseButton, FormField, FormFieldMultiSelect, AdvancedSearch, DataTable, useDataTable, formatDateTime, SeoFieldGroup, FormFieldFileInput, FormFieldRichTextInput, FormFieldCheckbox, FormFieldUrlAliasInput, FormFieldSelect, ShortCodeConstructor, FormFooter, formatDate, createTabErrorFinder, SouthIcon, NorthIcon, CountButton, TabList } from "@tager/admin-ui";
7
7
  import { Page } from "@tager/admin-layout";
8
8
  import { universalFieldUtils, DynamicField } from "@tager/admin-dynamic-field";
9
9
  import { compile } from "path-to-regexp";
@@ -1078,7 +1078,6 @@ const _sfc_main$2 = defineComponent({
1078
1078
  FormFieldUrlAliasInput,
1079
1079
  FormField,
1080
1080
  FormFieldSelect,
1081
- TabList,
1082
1081
  Page,
1083
1082
  DynamicField,
1084
1083
  ShortCodeConstructor,
@@ -1384,7 +1383,6 @@ const _hoisted_4 = {
1384
1383
  class: "status-date"
1385
1384
  };
1386
1385
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1387
- const _component_TabList = resolveComponent("TabList");
1388
1386
  const _component_FormFieldSelect = resolveComponent("FormFieldSelect");
1389
1387
  const _component_FormField = resolveComponent("FormField");
1390
1388
  const _component_FormFieldUrlAliasInput = resolveComponent("FormFieldUrlAliasInput");
@@ -1405,23 +1403,21 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1405
1403
  backHref: _ctx.postListUrl,
1406
1404
  onSubmit: _ctx.submitForm,
1407
1405
  isSubmitting: _ctx.isSubmitting
1408
- }
1406
+ },
1407
+ "tab-id": _ctx.selectedTabId,
1408
+ "onUpdate:tab-id": _cache[16] || (_cache[16] = ($event) => _ctx.selectedTabId = $event),
1409
+ tabs: _ctx.tabList
1409
1410
  }, {
1410
1411
  content: withCtx(() => [
1411
1412
  createElementVNode("form", {
1412
1413
  novalidate: "",
1413
- onSubmit: _cache[16] || (_cache[16] = withModifiers((...args) => _ctx.submitForm && _ctx.submitForm(...args), ["prevent"]))
1414
+ onSubmit: _cache[15] || (_cache[15] = withModifiers((...args) => _ctx.submitForm && _ctx.submitForm(...args), ["prevent"]))
1414
1415
  }, [
1415
- createVNode(_component_TabList, {
1416
- "tab-id": _ctx.selectedTabId,
1417
- "onUpdate:tab-id": _cache[0] || (_cache[0] = ($event) => _ctx.selectedTabId = $event),
1418
- "tab-list": _ctx.tabList
1419
- }, null, 8, ["tab-id", "tab-list"]),
1420
1416
  _ctx.selectedTabId === "common" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1421
1417
  _ctx.isCreation && _ctx.isLangSpecific ? (openBlock(), createBlock(_component_FormFieldSelect, {
1422
1418
  key: 0,
1423
1419
  value: _ctx.values.language,
1424
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.values.language = $event),
1420
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.values.language = $event),
1425
1421
  name: "language",
1426
1422
  label: _ctx.$i18n.t("blog:language"),
1427
1423
  options: _ctx.languageOptionList,
@@ -1429,7 +1425,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1429
1425
  }, null, 8, ["value", "label", "options", "error"])) : createCommentVNode("", true),
1430
1426
  createVNode(_component_FormField, {
1431
1427
  value: _ctx.values.title,
1432
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.values.title = $event),
1428
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.values.title = $event),
1433
1429
  name: "title",
1434
1430
  label: _ctx.$i18n.t("blog:title"),
1435
1431
  error: _ctx.errors.title,
@@ -1438,7 +1434,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1438
1434
  createVNode(_component_FormFieldUrlAliasInput, {
1439
1435
  id: "urlAlias",
1440
1436
  value: _ctx.values.urlAlias,
1441
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => _ctx.values.urlAlias = $event),
1437
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.values.urlAlias = $event),
1442
1438
  name: "urlAlias",
1443
1439
  label: _ctx.$i18n.t("blog:link"),
1444
1440
  "url-template": _ctx.urlAliasTemplate,
@@ -1449,7 +1445,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1449
1445
  createElementVNode("div", _hoisted_2, [
1450
1446
  createVNode(_component_FormFieldSelect, {
1451
1447
  value: _ctx.values.status,
1452
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => _ctx.values.status = $event),
1448
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => _ctx.values.status = $event),
1453
1449
  name: "status",
1454
1450
  error: _ctx.errors.status,
1455
1451
  label: _ctx.$i18n.t("blog:status"),
@@ -1460,7 +1456,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1460
1456
  _ctx.values.status.value === "PUBLISHED" || _ctx.values.status.value === "DRAFT" ? (openBlock(), createElementBlock("div", _hoisted_3, [
1461
1457
  createVNode(_component_FormFieldCheckbox, {
1462
1458
  checked: _ctx.values.statusDateEnabled,
1463
- "onUpdate:checked": _cache[5] || (_cache[5] = ($event) => _ctx.values.statusDateEnabled = $event),
1459
+ "onUpdate:checked": _cache[4] || (_cache[4] = ($event) => _ctx.values.statusDateEnabled = $event),
1464
1460
  name: "statusDateEnabled",
1465
1461
  label: _ctx.$i18n.t(
1466
1462
  _ctx.values.status.value === "PUBLISHED" ? "blog:scheduleArchive" : "blog:schedulePublish"
@@ -1471,7 +1467,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1471
1467
  _ctx.values.statusDateEnabled && (_ctx.values.status.value === "PUBLISHED" || _ctx.values.status.value === "DRAFT") ? (openBlock(), createElementBlock("div", _hoisted_4, [
1472
1468
  createVNode(_component_FormField, {
1473
1469
  value: _ctx.values.statusDate,
1474
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => _ctx.values.statusDate = $event),
1470
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => _ctx.values.statusDate = $event),
1475
1471
  name: "statusDate",
1476
1472
  type: "date",
1477
1473
  label: _ctx.$i18n.t(
@@ -1483,7 +1479,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1483
1479
  ]),
1484
1480
  createVNode(_component_FormField, {
1485
1481
  value: _ctx.values.datetime,
1486
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => _ctx.values.datetime = $event),
1482
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => _ctx.values.datetime = $event),
1487
1483
  name: "datetime",
1488
1484
  label: _ctx.$i18n.t("blog:date"),
1489
1485
  type: "date",
@@ -1491,7 +1487,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1491
1487
  }, null, 8, ["value", "label", "error"]),
1492
1488
  createVNode(_component_FormField, {
1493
1489
  value: _ctx.values.excerpt,
1494
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => _ctx.values.excerpt = $event),
1490
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => _ctx.values.excerpt = $event),
1495
1491
  name: "excerpt",
1496
1492
  label: _ctx.$i18n.t("blog:excerpt"),
1497
1493
  type: "textarea",
@@ -1499,7 +1495,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1499
1495
  }, null, 8, ["value", "label", "error"]),
1500
1496
  createVNode(_component_FormFieldRichTextInput, {
1501
1497
  value: _ctx.values.body,
1502
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => _ctx.values.body = $event),
1498
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => _ctx.values.body = $event),
1503
1499
  name: "body",
1504
1500
  label: _ctx.$i18n.t("blog:body"),
1505
1501
  error: _ctx.errors.body,
@@ -1512,7 +1508,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1512
1508
  _ctx.selectedTabId === "images" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1513
1509
  createVNode(_component_FormFieldFileInput, {
1514
1510
  value: _ctx.values.coverImage,
1515
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => _ctx.values.coverImage = $event),
1511
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => _ctx.values.coverImage = $event),
1516
1512
  label: _ctx.$i18n.t("blog:coverImage"),
1517
1513
  name: "coverImage",
1518
1514
  "file-type": "image",
@@ -1520,7 +1516,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1520
1516
  }, null, 8, ["value", "label", "scenario"]),
1521
1517
  createVNode(_component_FormFieldFileInput, {
1522
1518
  value: _ctx.values.image,
1523
- "onUpdate:value": _cache[11] || (_cache[11] = ($event) => _ctx.values.image = $event),
1519
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => _ctx.values.image = $event),
1524
1520
  name: "image",
1525
1521
  label: _ctx.$i18n.t("blog:innerImage"),
1526
1522
  "file-type": "image",
@@ -1528,7 +1524,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1528
1524
  }, null, 8, ["value", "label", "scenario"]),
1529
1525
  createVNode(_component_FormFieldFileInput, {
1530
1526
  value: _ctx.values.imageMobile,
1531
- "onUpdate:value": _cache[12] || (_cache[12] = ($event) => _ctx.values.imageMobile = $event),
1527
+ "onUpdate:value": _cache[11] || (_cache[11] = ($event) => _ctx.values.imageMobile = $event),
1532
1528
  name: "imageMobile",
1533
1529
  label: _ctx.$i18n.t("blog:innerImageMobile"),
1534
1530
  "file-type": "image",
@@ -1538,14 +1534,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1538
1534
  _ctx.selectedTabId === "relations" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
1539
1535
  createVNode(_component_FormField, {
1540
1536
  value: _ctx.values.tags,
1541
- "onUpdate:value": _cache[13] || (_cache[13] = ($event) => _ctx.values.tags = $event),
1537
+ "onUpdate:value": _cache[12] || (_cache[12] = ($event) => _ctx.values.tags = $event),
1542
1538
  name: "tags",
1543
1539
  label: _ctx.$i18n.t("blog:tags"),
1544
1540
  error: _ctx.errors.tags
1545
1541
  }, null, 8, ["value", "label", "error"]),
1546
1542
  createVNode(_component_FormFieldMultiSelect, {
1547
1543
  "selected-options": _ctx.values.categories,
1548
- "onUpdate:selected-options": _cache[14] || (_cache[14] = ($event) => _ctx.values.categories = $event),
1544
+ "onUpdate:selected-options": _cache[13] || (_cache[13] = ($event) => _ctx.values.categories = $event),
1549
1545
  name: "categories",
1550
1546
  label: _ctx.$i18n.t("blog:categories"),
1551
1547
  options: _ctx.categoryOptionList,
@@ -1554,7 +1550,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1554
1550
  }, null, 8, ["selected-options", "label", "options", "error", "onChange"]),
1555
1551
  createVNode(_component_FormFieldMultiSelect, {
1556
1552
  "selected-options": _ctx.values.relatedPosts,
1557
- "onUpdate:selected-options": _cache[15] || (_cache[15] = ($event) => _ctx.values.relatedPosts = $event),
1553
+ "onUpdate:selected-options": _cache[14] || (_cache[14] = ($event) => _ctx.values.relatedPosts = $event),
1558
1554
  name: "relatedPosts",
1559
1555
  label: _ctx.$i18n.t("blog:relatedPosts"),
1560
1556
  options: _ctx.postOptionList,
@@ -1594,9 +1590,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1594
1590
  }, null, 8, ["back-href", "is-submitting", "is-creation", "can-create-another", "onSubmit"])
1595
1591
  ]),
1596
1592
  _: 1
1597
- }, 8, ["title", "is-content-loading", "header-buttons", "footer"]);
1593
+ }, 8, ["title", "is-content-loading", "header-buttons", "footer", "tab-id", "tabs"]);
1598
1594
  }
1599
- var BlogPostForm = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-22282a12"]]);
1595
+ var BlogPostForm = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-15dc5eec"]]);
1600
1596
  function convertCategoryList(categoryList, languages) {
1601
1597
  return categoryList.map((category) => {
1602
1598
  if (languages.length > 0) {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .filters[data-v-02162423]{margin-bottom:1rem;width:100%;display:grid;gap:1rem;grid-template-columns:1fr 1fr}.filters[data-v-02162423]:not(:first-child){margin-top:1rem}.status span[data-v-02162423]{display:block}.status span[data-v-02162423]:nth-child(2){display:block;margin-top:5px;font-size:.8rem}.status span:nth-child(2) i[data-v-02162423]{display:block}.status[data-v-22282a12]{display:flex;align-items:flex-end}.status-value[data-v-22282a12]{flex-basis:50%}.status-checkbox[data-v-22282a12]{margin-left:20px;padding-bottom:8px}.status-date[data-v-22282a12]{margin-left:20px;flex:1 1 1px}
1
+ .filters[data-v-02162423]{margin-bottom:1rem;width:100%;display:grid;gap:1rem;grid-template-columns:1fr 1fr}.filters[data-v-02162423]:not(:first-child){margin-top:1rem}.status span[data-v-02162423]{display:block}.status span[data-v-02162423]:nth-child(2){display:block;margin-top:5px;font-size:.8rem}.status span:nth-child(2) i[data-v-02162423]{display:block}.status[data-v-15dc5eec]{display:flex;align-items:flex-end}.status-value[data-v-15dc5eec]{flex-basis:50%}.status-checkbox[data-v-15dc5eec]{margin-left:20px;padding-bottom:8px}.status-date[data-v-15dc5eec]{margin-left:20px;flex:1 1 1px}
@@ -26,12 +26,12 @@ declare const _default: import("vue").DefineComponent<{}, {
26
26
  id: string;
27
27
  file: {
28
28
  id: string;
29
- url: string;
29
+ mime: string;
30
30
  name: string;
31
31
  size: number;
32
- mime: string;
32
+ url: string;
33
33
  };
34
- caption?: Nullable<string> | undefined;
34
+ caption?: import("@tager/admin-services").Nullish<string>;
35
35
  } | null;
36
36
  }>;
37
37
  errors: import("vue").Ref<Record<string, string>>;
@@ -14,34 +14,34 @@ declare const _default: import("vue").DefineComponent<{}, {
14
14
  id: string;
15
15
  file: {
16
16
  id: string;
17
- url: string;
17
+ mime: string;
18
18
  name: string;
19
19
  size: number;
20
- mime: string;
20
+ url: string;
21
21
  };
22
- caption?: Nullable<string> | undefined;
22
+ caption?: import("@tager/admin-services").Nullish<string>;
23
23
  } | null;
24
24
  image: {
25
25
  id: string;
26
26
  file: {
27
27
  id: string;
28
- url: string;
28
+ mime: string;
29
29
  name: string;
30
30
  size: number;
31
- mime: string;
31
+ url: string;
32
32
  };
33
- caption?: Nullable<string> | undefined;
33
+ caption?: import("@tager/admin-services").Nullish<string>;
34
34
  } | null;
35
35
  imageMobile: {
36
36
  id: string;
37
37
  file: {
38
38
  id: string;
39
- url: string;
39
+ mime: string;
40
40
  name: string;
41
41
  size: number;
42
- mime: string;
42
+ url: string;
43
43
  };
44
- caption?: Nullable<string> | undefined;
44
+ caption?: import("@tager/admin-services").Nullish<string>;
45
45
  } | null;
46
46
  pageTitle: string;
47
47
  pageDescription: string;
@@ -49,12 +49,12 @@ declare const _default: import("vue").DefineComponent<{}, {
49
49
  id: string;
50
50
  file: {
51
51
  id: string;
52
- url: string;
52
+ mime: string;
53
53
  name: string;
54
54
  size: number;
55
- mime: string;
55
+ url: string;
56
56
  };
57
- caption?: Nullable<string> | undefined;
57
+ caption?: import("@tager/admin-services").Nullish<string>;
58
58
  } | null;
59
59
  urlAlias: string;
60
60
  categories: {
@@ -221,12 +221,12 @@ declare const _default: import("vue").DefineComponent<{}, {
221
221
  id: string;
222
222
  file: {
223
223
  id: string;
224
- url: string;
224
+ mime: string;
225
225
  name: string;
226
226
  size: number;
227
- mime: string;
227
+ url: string;
228
228
  };
229
- caption?: Nullable<string> | undefined;
229
+ caption?: import("@tager/admin-services").Nullish<string>;
230
230
  } | null;
231
231
  } | {
232
232
  readonly id: string;
@@ -251,12 +251,12 @@ declare const _default: import("vue").DefineComponent<{}, {
251
251
  id: string;
252
252
  file: {
253
253
  id: string;
254
- url: string;
254
+ mime: string;
255
255
  name: string;
256
256
  size: number;
257
- mime: string;
257
+ url: string;
258
258
  };
259
- caption?: Nullable<string> | undefined;
259
+ caption?: import("@tager/admin-services").Nullish<string>;
260
260
  }[];
261
261
  } | {
262
262
  readonly id: string;
@@ -280,12 +280,12 @@ declare const _default: import("vue").DefineComponent<{}, {
280
280
  id: string;
281
281
  file: {
282
282
  id: string;
283
- url: string;
283
+ mime: string;
284
284
  name: string;
285
285
  size: number;
286
- mime: string;
286
+ url: string;
287
287
  };
288
- caption?: Nullable<string> | undefined;
288
+ caption?: import("@tager/admin-services").Nullish<string>;
289
289
  } | null;
290
290
  } | {
291
291
  readonly id: string;
@@ -983,6 +983,8 @@ declare const _default: import("vue").DefineComponent<{}, {
983
983
  defaultIsOpen?: boolean | undefined;
984
984
  hidden?: boolean | undefined;
985
985
  maximumItemsCount?: number | undefined;
986
+ hideCount?: boolean | undefined;
987
+ addLabel?: string | undefined;
986
988
  };
987
989
  readonly name: string;
988
990
  readonly label: string;
@@ -1137,12 +1139,12 @@ declare const _default: import("vue").DefineComponent<{}, {
1137
1139
  id: string;
1138
1140
  file: {
1139
1141
  id: string;
1140
- url: string;
1142
+ mime: string;
1141
1143
  name: string;
1142
1144
  size: number;
1143
- mime: string;
1145
+ url: string;
1144
1146
  };
1145
- caption?: Nullable<string> | undefined;
1147
+ caption?: import("@tager/admin-services").Nullish<string>;
1146
1148
  } | null;
1147
1149
  } | {
1148
1150
  readonly id: string;
@@ -1167,12 +1169,12 @@ declare const _default: import("vue").DefineComponent<{}, {
1167
1169
  id: string;
1168
1170
  file: {
1169
1171
  id: string;
1170
- url: string;
1172
+ mime: string;
1171
1173
  name: string;
1172
1174
  size: number;
1173
- mime: string;
1175
+ url: string;
1174
1176
  };
1175
- caption?: Nullable<string> | undefined;
1177
+ caption?: import("@tager/admin-services").Nullish<string>;
1176
1178
  }[];
1177
1179
  } | {
1178
1180
  readonly id: string;
@@ -1196,12 +1198,12 @@ declare const _default: import("vue").DefineComponent<{}, {
1196
1198
  id: string;
1197
1199
  file: {
1198
1200
  id: string;
1199
- url: string;
1201
+ mime: string;
1200
1202
  name: string;
1201
1203
  size: number;
1202
- mime: string;
1204
+ url: string;
1203
1205
  };
1204
- caption?: Nullable<string> | undefined;
1206
+ caption?: import("@tager/admin-services").Nullish<string>;
1205
1207
  } | null;
1206
1208
  } | {
1207
1209
  readonly id: string;
@@ -1782,12 +1784,12 @@ declare const _default: import("vue").DefineComponent<{}, {
1782
1784
  id: string;
1783
1785
  file: {
1784
1786
  id: string;
1785
- url: string;
1787
+ mime: string;
1786
1788
  name: string;
1787
1789
  size: number;
1788
- mime: string;
1790
+ url: string;
1789
1791
  };
1790
- caption?: Nullable<string> | undefined;
1792
+ caption?: import("@tager/admin-services").Nullish<string>;
1791
1793
  } | null;
1792
1794
  } | {
1793
1795
  readonly id: string;
@@ -1812,12 +1814,12 @@ declare const _default: import("vue").DefineComponent<{}, {
1812
1814
  id: string;
1813
1815
  file: {
1814
1816
  id: string;
1815
- url: string;
1817
+ mime: string;
1816
1818
  name: string;
1817
1819
  size: number;
1818
- mime: string;
1820
+ url: string;
1819
1821
  };
1820
- caption?: Nullable<string> | undefined;
1822
+ caption?: import("@tager/admin-services").Nullish<string>;
1821
1823
  }[];
1822
1824
  } | {
1823
1825
  readonly id: string;
@@ -1841,12 +1843,12 @@ declare const _default: import("vue").DefineComponent<{}, {
1841
1843
  id: string;
1842
1844
  file: {
1843
1845
  id: string;
1844
- url: string;
1846
+ mime: string;
1845
1847
  name: string;
1846
1848
  size: number;
1847
- mime: string;
1849
+ url: string;
1848
1850
  };
1849
- caption?: Nullable<string> | undefined;
1851
+ caption?: import("@tager/admin-services").Nullish<string>;
1850
1852
  } | null;
1851
1853
  } | {
1852
1854
  readonly id: string;
@@ -2466,12 +2468,12 @@ declare const _default: import("vue").DefineComponent<{}, {
2466
2468
  id: string;
2467
2469
  file: {
2468
2470
  id: string;
2469
- url: string;
2471
+ mime: string;
2470
2472
  name: string;
2471
2473
  size: number;
2472
- mime: string;
2474
+ url: string;
2473
2475
  };
2474
- caption?: Nullable<string> | undefined;
2476
+ caption?: import("@tager/admin-services").Nullish<string>;
2475
2477
  } | null;
2476
2478
  } | {
2477
2479
  readonly id: string;
@@ -2496,12 +2498,12 @@ declare const _default: import("vue").DefineComponent<{}, {
2496
2498
  id: string;
2497
2499
  file: {
2498
2500
  id: string;
2499
- url: string;
2501
+ mime: string;
2500
2502
  name: string;
2501
2503
  size: number;
2502
- mime: string;
2504
+ url: string;
2503
2505
  };
2504
- caption?: Nullable<string> | undefined;
2506
+ caption?: import("@tager/admin-services").Nullish<string>;
2505
2507
  }[];
2506
2508
  } | {
2507
2509
  readonly id: string;
@@ -2525,12 +2527,12 @@ declare const _default: import("vue").DefineComponent<{}, {
2525
2527
  id: string;
2526
2528
  file: {
2527
2529
  id: string;
2528
- url: string;
2530
+ mime: string;
2529
2531
  name: string;
2530
2532
  size: number;
2531
- mime: string;
2533
+ url: string;
2532
2534
  };
2533
- caption?: Nullable<string> | undefined;
2535
+ caption?: import("@tager/admin-services").Nullish<string>;
2534
2536
  } | null;
2535
2537
  } | {
2536
2538
  readonly id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tager/admin-blog",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
@@ -33,10 +33,10 @@
33
33
  "@babel/core": "^7.17.9",
34
34
  "@babel/eslint-parser": "^7.17.0",
35
35
  "@rushstack/eslint-patch": "^1.1.2",
36
- "@tager/admin-dynamic-field": "^1.0.0",
37
- "@tager/admin-layout": "^1.0.7",
38
- "@tager/admin-services": "^1.1.3",
39
- "@tager/admin-ui": "^1.0.15",
36
+ "@tager/admin-dynamic-field": "^1.0.2",
37
+ "@tager/admin-layout": "^1.0.11",
38
+ "@tager/admin-services": "^1.1.11",
39
+ "@tager/admin-ui": "^1.0.54",
40
40
  "@types/filesize": "^5.0.0",
41
41
  "@types/lodash.isequal": "^4.5.6",
42
42
  "@types/lodash.pick": "^4.4.7",
@@ -10,10 +10,10 @@
10
10
  onSubmit: submitForm,
11
11
  isSubmitting: isSubmitting,
12
12
  }"
13
+ v-model:tab-id="selectedTabId" :tabs="tabList"
13
14
  >
14
15
  <template #content>
15
16
  <form novalidate @submit.prevent="submitForm">
16
- <TabList v-model:tab-id="selectedTabId" :tab-list="tabList" />
17
17
 
18
18
  <template v-if="selectedTabId === 'common'">
19
19
  <FormFieldSelect
@@ -254,7 +254,7 @@ import {
254
254
  FormFieldFileInput,
255
255
  FormFieldMultiSelect,
256
256
  SeoFieldGroup,
257
- TabList, formatDateTime, formatDate,
257
+ formatDateTime, formatDate,
258
258
  } from '@tager/admin-ui';
259
259
  import { DynamicField } from '@tager/admin-dynamic-field';
260
260
  import { Page } from '@tager/admin-layout';
@@ -292,7 +292,6 @@ export default defineComponent({
292
292
  FormFieldUrlAliasInput,
293
293
  FormField,
294
294
  FormFieldSelect,
295
- TabList,
296
295
  Page,
297
296
  DynamicField,
298
297
  ShortCodeConstructor,