@anzusystems/common-admin 2.0.0-rc.24 → 2.0.0-rc.26
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/common-admin.css +1 -1
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.js +1 -1
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js +57 -51
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/author/composables/authorFieldRouting.d.ts +2 -1
- package/dist/domains/dam/author/composables/authorFieldRouting.js +12 -5
- package/dist/domains/dam/author/composables/authorFieldRouting.js.map +1 -1
- package/dist/domains/dam/keyword/components/KeywordRemoteAutocompleteWithCached.js +1 -1
- package/dist/domains/dam/keyword/components/KeywordRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/domains/dam/keyword/components/KeywordRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingle.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadata.vue_vue_type_script_setup_true_lang.js +34 -33
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/filters/datatable/components/ADatatableOrdering.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/domains/filters/datatable/components/ADatatableOrdering.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/filters/datatable/components/ALiveListingPill.vue.d.ts +3 -0
- package/dist/domains/filters/datatable/components/ALiveListingPill.vue_vue_type_script_setup_true_lang.js +54 -27
- package/dist/domains/filters/datatable/components/ALiveListingPill.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/locales/cs/common/damImage.js +40 -0
- package/dist/locales/cs/common/damImage.js.map +1 -1
- package/dist/locales/cs.d.ts +2 -0
- package/dist/locales/en/common/damImage.js +40 -0
- package/dist/locales/en/common/damImage.js.map +1 -1
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/sk/common/damImage.js +40 -0
- package/dist/locales/sk/common/damImage.js.map +1 -1
- package/dist/locales/sk.d.ts +2 -0
- package/dist/plugins/i18n.d.ts +2 -0
- package/package.json +2 -2
|
@@ -4,11 +4,12 @@ import { ADamAssetMetadataValidationScopeSymbol as n } from "../../composables/u
|
|
|
4
4
|
import { useAlerts as r } from "../../../system/composables/alerts.js";
|
|
5
5
|
import { useUploadQueuesStore as i } from "../store/uploadQueuesStore.js";
|
|
6
6
|
import { useDamConfigName as a } from "../../composables/damConfigName.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import x from "
|
|
7
|
+
import { UploadQueueItemStatus as o } from "../../types/UploadQueue.js";
|
|
8
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createTextVNode as f, createVNode as p, defineComponent as m, openBlock as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y, withModifiers as b } from "vue";
|
|
9
|
+
import { useI18n as x } from "vue-i18n";
|
|
10
|
+
import S from "@vuelidate/core";
|
|
10
11
|
// src/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadata.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var
|
|
12
|
+
var C = /*@__PURE__*/ m({
|
|
12
13
|
__name: "UploadQueueDialogSingleSidebarMetadata",
|
|
13
14
|
props: {
|
|
14
15
|
queueKey: {},
|
|
@@ -32,56 +33,56 @@ var S = /*@__PURE__*/ p({
|
|
|
32
33
|
"saveAndApply",
|
|
33
34
|
"refresh"
|
|
34
35
|
],
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
36
|
+
setup(m, { emit: C }) {
|
|
37
|
+
let w = m, T = C, E = a(w.configName), { t: D } = x(), O = i(), k = c(() => O.getQueueItems(w.queueKey)[0]?.canEditMetadata ?? !1), A = c(() => O.getQueueItems(w.queueKey)[0]?.status === o.Uploaded), j = S({ $scope: n }), { showValidationError: M } = r(), N = async () => {
|
|
38
|
+
j.value.$touch(), j.value.$invalid ? M() : T("save");
|
|
39
|
+
}, P = async () => {
|
|
40
|
+
j.value.$touch(), j.value.$invalid ? M() : T("saveAndApply");
|
|
40
41
|
};
|
|
41
42
|
return (n, r) => {
|
|
42
|
-
let i =
|
|
43
|
-
return
|
|
43
|
+
let i = g("ABtnTertiary"), a = g("ABtnSecondary"), o = g("ABtnPrimary");
|
|
44
|
+
return h(), d(s, null, [m.isActive ? (h(), l(e, {
|
|
44
45
|
key: 0,
|
|
45
|
-
"queue-key":
|
|
46
|
+
"queue-key": m.queueKey
|
|
46
47
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
|
|
48
|
+
default: y(() => [
|
|
49
|
+
m.showRefresh ? (h(), l(i, {
|
|
49
50
|
key: 0,
|
|
50
51
|
"data-cy": "button-refresh",
|
|
51
|
-
disabled:
|
|
52
|
-
onClick: r[0] ||=
|
|
52
|
+
disabled: m.refreshDisabled,
|
|
53
|
+
onClick: r[0] ||= b((e) => T("refresh"), ["stop"])
|
|
53
54
|
}, {
|
|
54
|
-
default:
|
|
55
|
+
default: y(() => [f(_(v(D)("common.button.refresh")), 1)]),
|
|
55
56
|
_: 1
|
|
56
|
-
}, 8, ["disabled"])) :
|
|
57
|
-
|
|
57
|
+
}, 8, ["disabled"])) : u("", !0),
|
|
58
|
+
p(a, {
|
|
58
59
|
type: "submit",
|
|
59
60
|
class: "ml-2",
|
|
60
61
|
"data-cy": "button-save",
|
|
61
|
-
loading:
|
|
62
|
-
disabled: !
|
|
63
|
-
onClick:
|
|
62
|
+
loading: m.saving === "save",
|
|
63
|
+
disabled: !k.value || m.saving === "saveAndApply",
|
|
64
|
+
onClick: b(N, ["stop"])
|
|
64
65
|
}, {
|
|
65
|
-
default:
|
|
66
|
+
default: y(() => [f(_(v(D)("common.button.save")), 1)]),
|
|
66
67
|
_: 1
|
|
67
68
|
}, 8, ["loading", "disabled"]),
|
|
68
|
-
|
|
69
|
+
p(o, {
|
|
69
70
|
type: "submit",
|
|
70
71
|
class: "mx-2",
|
|
71
72
|
"data-cy": "button-save-and-apply",
|
|
72
|
-
loading:
|
|
73
|
-
disabled: !
|
|
74
|
-
onClick:
|
|
73
|
+
loading: m.saving === "saveAndApply",
|
|
74
|
+
disabled: !k.value || !A.value || m.saving === "save",
|
|
75
|
+
onClick: b(P, ["stop"])
|
|
75
76
|
}, {
|
|
76
|
-
default:
|
|
77
|
+
default: y(() => [f(_(v(D)("common.damImage.upload.saveAndApply")), 1)]),
|
|
77
78
|
_: 1
|
|
78
79
|
}, 8, ["loading", "disabled"])
|
|
79
80
|
]),
|
|
80
81
|
_: 1
|
|
81
|
-
}, 8, ["queue-key"])) :
|
|
82
|
-
"queue-key":
|
|
83
|
-
"ext-system":
|
|
84
|
-
"config-name":
|
|
82
|
+
}, 8, ["queue-key"])) : u("", !0), p(t, {
|
|
83
|
+
"queue-key": m.queueKey,
|
|
84
|
+
"ext-system": m.extSystem,
|
|
85
|
+
"config-name": v(E)
|
|
85
86
|
}, null, 8, [
|
|
86
87
|
"queue-key",
|
|
87
88
|
"ext-system",
|
|
@@ -90,6 +91,6 @@ var S = /*@__PURE__*/ p({
|
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
|
-
export {
|
|
94
|
+
export { C as default };
|
|
94
95
|
|
|
95
96
|
//# sourceMappingURL=UploadQueueDialogSingleSidebarMetadata.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadQueueDialogSingleSidebarMetadata.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","AssetDetailSidebarActionsWrapper","_withCtx","_withModifiers","_createTextVNode","_toDisplayString","_unref","_createVNode","UploadQueueDialogSingleSidebarMetadataContent","AssetDetailSidebarActionsWrapper_default","UploadQueueDialogSingleSidebarMetadataContent_default","useVuelidate","UploadQueueDialogSingleSidebarMetadata_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","damConfigName","useDamConfigName","useI18n","uploadQueuesStore","useUploadQueuesStore","canEditMetadata","computed","v$","ADamAssetMetadataValidationScopeSymbol","useAlerts","onSave","showValidationError","onSaveAndApply","_component_ABtnTertiary","resolveComponent","_component_ABtnSecondary","_component_ABtnPrimary","openBlock","createElementBlock","Fragment","createBlock","withCtx","_cache","withModifiers","createTextVNode","toDisplayString","unref","t","createCommentVNode","createVNode"],"sources":["../../../../../src/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadata.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport AssetDetailSidebarActionsWrapper from '@/domains/dam/assetDetail/components/AssetDetailSidebarActionsWrapper.vue'\nimport { useI18n } from 'vue-i18n'\nimport { computed } from 'vue'\nimport useVuelidate from '@vuelidate/core'\nimport type { DamAssetTypeType } from '@/domains/dam/types/Asset'\nimport UploadQueueDialogSingleSidebarMetadataContent from '@/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadataContent.vue'\nimport { ADamAssetMetadataValidationScopeSymbol } from '@/domains/dam/composables/uploadValidations'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { useUploadQueuesStore } from '@/domains/dam/uploadQueue/store/uploadQueuesStore'\nimport type { IntegerId } from '@/shared/types/common'\nimport { useDamConfigName } from '@/domains/dam/composables/damConfigName'\n\nconst props = withDefaults(\n defineProps<{\n queueKey: string\n extSystem: IntegerId\n isActive: boolean\n dataCy?: string\n assetType: DamAssetTypeType\n configName?: string\n showRefresh?: boolean\n refreshDisabled?: boolean\n /** Which of the two buttons is saving. */\n saving?: 'save' | 'saveAndApply' | null\n }>(),\n {\n dataCy: undefined,\n configName: undefined,\n showRefresh: false,\n refreshDisabled: false,\n saving: null,\n }\n)\nconst emit = defineEmits<{\n (e: 'save'): void\n (e: 'saveAndApply'): void\n (e: 'refresh'): void\n}>()\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst damConfigName = useDamConfigName(props.configName)\n\nconst { t } = useI18n()\n\nconst uploadQueuesStore = useUploadQueuesStore()\n\nconst canEditMetadata = computed(() => {\n const items = uploadQueuesStore.getQueueItems(props.queueKey)\n return items[0]?.canEditMetadata ?? false\n})\n\nconst v$ = useVuelidate({ $scope: ADamAssetMetadataValidationScopeSymbol })\n\nconst { showValidationError } = useAlerts()\n\nconst onSave = async () => {\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return\n }\n emit('save')\n}\n\nconst onSaveAndApply = async () => {\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return\n }\n emit('saveAndApply')\n}\n</script>\n\n<template>\n <AssetDetailSidebarActionsWrapper\n v-if=\"isActive\"\n :queue-key=\"queueKey\"\n >\n <ABtnTertiary\n v-if=\"showRefresh\"\n data-cy=\"button-refresh\"\n :disabled=\"refreshDisabled\"\n @click.stop=\"emit('refresh')\"\n >\n {{ t('common.button.refresh') }}\n </ABtnTertiary>\n <ABtnSecondary\n type=\"submit\"\n class=\"ml-2\"\n data-cy=\"button-save\"\n :loading=\"saving === 'save'\"\n :disabled=\"!canEditMetadata || saving === 'saveAndApply'\"\n @click.stop=\"onSave\"\n >\n {{ t('common.button.save') }}\n </ABtnSecondary>\n <ABtnPrimary\n type=\"submit\"\n class=\"mx-2\"\n data-cy=\"button-save-and-apply\"\n :loading=\"saving === 'saveAndApply'\"\n :disabled=\"!canEditMetadata || saving === 'save'\"\n @click.stop=\"onSaveAndApply\"\n >\n {{ t('common.damImage.upload.saveAndApply') }}\n </ABtnPrimary>\n </AssetDetailSidebarActionsWrapper>\n <UploadQueueDialogSingleSidebarMetadataContent\n :queue-key=\"queueKey\"\n :ext-system=\"extSystem\"\n :config-name=\"damConfigName\"\n />\n</template>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploadQueueDialogSingleSidebarMetadata.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","AssetDetailSidebarActionsWrapper","_withCtx","_withModifiers","_createTextVNode","_toDisplayString","_unref","_createVNode","UploadQueueDialogSingleSidebarMetadataContent","AssetDetailSidebarActionsWrapper_default","UploadQueueDialogSingleSidebarMetadataContent_default","useVuelidate","UploadQueueDialogSingleSidebarMetadata_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","damConfigName","useDamConfigName","useI18n","uploadQueuesStore","useUploadQueuesStore","canEditMetadata","computed","isUploaded","UploadQueueItemStatus","v$","ADamAssetMetadataValidationScopeSymbol","useAlerts","onSave","showValidationError","onSaveAndApply","_component_ABtnTertiary","resolveComponent","_component_ABtnSecondary","_component_ABtnPrimary","openBlock","createElementBlock","Fragment","createBlock","withCtx","_cache","withModifiers","createTextVNode","toDisplayString","unref","t","createCommentVNode","createVNode"],"sources":["../../../../../src/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadata.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport AssetDetailSidebarActionsWrapper from '@/domains/dam/assetDetail/components/AssetDetailSidebarActionsWrapper.vue'\nimport { useI18n } from 'vue-i18n'\nimport { computed } from 'vue'\nimport useVuelidate from '@vuelidate/core'\nimport type { DamAssetTypeType } from '@/domains/dam/types/Asset'\nimport UploadQueueDialogSingleSidebarMetadataContent from '@/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadataContent.vue'\nimport { ADamAssetMetadataValidationScopeSymbol } from '@/domains/dam/composables/uploadValidations'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { useUploadQueuesStore } from '@/domains/dam/uploadQueue/store/uploadQueuesStore'\nimport type { IntegerId } from '@/shared/types/common'\nimport { useDamConfigName } from '@/domains/dam/composables/damConfigName'\nimport { UploadQueueItemStatus } from '@/domains/dam/types/UploadQueue'\n\nconst props = withDefaults(\n defineProps<{\n queueKey: string\n extSystem: IntegerId\n isActive: boolean\n dataCy?: string\n assetType: DamAssetTypeType\n configName?: string\n showRefresh?: boolean\n refreshDisabled?: boolean\n /** Which of the two buttons is saving. */\n saving?: 'save' | 'saveAndApply' | null\n }>(),\n {\n dataCy: undefined,\n configName: undefined,\n showRefresh: false,\n refreshDisabled: false,\n saving: null,\n }\n)\nconst emit = defineEmits<{\n (e: 'save'): void\n (e: 'saveAndApply'): void\n (e: 'refresh'): void\n}>()\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst damConfigName = useDamConfigName(props.configName)\n\nconst { t } = useI18n()\n\nconst uploadQueuesStore = useUploadQueuesStore()\n\nconst canEditMetadata = computed(() => {\n const items = uploadQueuesStore.getQueueItems(props.queueKey)\n return items[0]?.canEditMetadata ?? false\n})\n// The form opens with the metadata, which the DAM reads off the first chunk, while the file is still sent.\n// The metadata can be saved then, but the image is handed over only once its file is uploaded, as in the multi-file dialog.\nconst isUploaded = computed(\n () => uploadQueuesStore.getQueueItems(props.queueKey)[0]?.status === UploadQueueItemStatus.Uploaded\n)\n\nconst v$ = useVuelidate({ $scope: ADamAssetMetadataValidationScopeSymbol })\n\nconst { showValidationError } = useAlerts()\n\nconst onSave = async () => {\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return\n }\n emit('save')\n}\n\nconst onSaveAndApply = async () => {\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return\n }\n emit('saveAndApply')\n}\n</script>\n\n<template>\n <AssetDetailSidebarActionsWrapper\n v-if=\"isActive\"\n :queue-key=\"queueKey\"\n >\n <ABtnTertiary\n v-if=\"showRefresh\"\n data-cy=\"button-refresh\"\n :disabled=\"refreshDisabled\"\n @click.stop=\"emit('refresh')\"\n >\n {{ t('common.button.refresh') }}\n </ABtnTertiary>\n <ABtnSecondary\n type=\"submit\"\n class=\"ml-2\"\n data-cy=\"button-save\"\n :loading=\"saving === 'save'\"\n :disabled=\"!canEditMetadata || saving === 'saveAndApply'\"\n @click.stop=\"onSave\"\n >\n {{ t('common.button.save') }}\n </ABtnSecondary>\n <ABtnPrimary\n type=\"submit\"\n class=\"mx-2\"\n data-cy=\"button-save-and-apply\"\n :loading=\"saving === 'saveAndApply'\"\n :disabled=\"!canEditMetadata || !isUploaded || saving === 'save'\"\n @click.stop=\"onSaveAndApply\"\n >\n {{ t('common.damImage.upload.saveAndApply') }}\n </ABtnPrimary>\n </AssetDetailSidebarActionsWrapper>\n <UploadQueueDialogSingleSidebarMetadataContent\n :queue-key=\"queueKey\"\n :ext-system=\"extSystem\"\n :config-name=\"damConfigName\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcA,IAAMe,IAAQC,GAqBRC,IAAOH,GAMPI,IAAgBC,EAAiBJ,EAAM,UAAU,GAEjD,EAAE,SAAMK,EAAQ,GAEhBC,IAAoBC,EAAqB,GAEzCC,IAAkBC,QACRH,EAAkB,cAAcN,EAAM,QAC7C,CAAA,CAAM,EAAE,EAAE,mBAAmB,EACrC,GAGKU,IAAaD,QACXH,EAAkB,cAAcN,EAAM,QAAQ,CAAC,CAAC,EAAE,EAAE,WAAWW,EAAsB,QAC7F,GAEMC,IAAKf,EAAa,EAAE,QAAQgB,EAAuC,CAAC,GAEpE,EAAE,2BAAwBC,EAAU,GAEpCC,IAAS,YAAY;GAEzB,AADAH,EAAG,MAAM,OAAO,GACZA,EAAG,MAAM,WACXI,EAAoB,IAGtBd,EAAK,MAAM;EACb,GAEMe,IAAiB,YAAY;GAEjC,AADAL,EAAG,MAAM,OAAO,GACZA,EAAG,MAAM,WACXI,EAAoB,IAGtBd,EAAK,cAAc;EACrB;;;G,wBAKUD,EAAA,YADRhB,EAAA,GAAAC,EAgCmCC,GAAA;;IA9BhC,aAAWc,EAAA;;IAEZ,SAAAb,QAOe;KANPa,EAAA,eADRhB,EAAA,GAAAC,EAOegC,GAAA;;MALb,WAAQ;MACP,UAAUjB,EAAA;MACV,SAAK,AAAA0B,EAAA,OAAAtC,GAAA,MAAOa,EAAI,SAAA,GAAA,CAAA,MAAA,CAAA;;MAEjB,SAAAd,QAAgC,CAA7BE,EAAAC,EAAAC,EAAAwC,CAAA,CAAC,CAAA,uBAAA,CAAA,GAAA,CAAA,C;;;KAENvC,EASgB2B,GAAA;MARd,MAAK;MACL,OAAM;MACN,WAAQ;MACP,SAASnB,EAAA,WAAM;MACf,UAAQ,CAAGO,EAAA,SAAmBP,EAAA,WAAM;MACpC,SAAKZ,EAAO0B,GAAM,CAAA,MAAA,CAAA;;MAEnB,SAAA3B,QAA6B,CAA1BE,EAAAC,EAAAC,EAAAwC,CAAA,CAAC,CAAA,oBAAA,CAAA,GAAA,CAAA,C;;;KAENvC,EASc4B,GAAA;MARZ,MAAK;MACL,OAAM;MACN,WAAQ;MACP,SAASpB,EAAA,WAAM;MACf,UAAQ,CAAGO,EAAA,SAAe,CAAKE,EAAA,SAAcT,EAAA,WAAM;MACnD,SAAKZ,EAAO4B,GAAc,CAAA,MAAA,CAAA;;MAE3B,SAAA7B,QAA8C,CAA3CE,EAAAC,EAAAC,EAAAwC,CAAA,CAAC,CAAA,qCAAA,CAAA,GAAA,CAAA,C;;;;;G,mCAGRvC,EAIEC,GAAA;IAHC,aAAWO,EAAA;IACX,cAAYA,EAAA;IACZ,eAAaT,EAAAW,CAAA"}
|
|
@@ -8,7 +8,7 @@ import { VBtn as C } from "vuetify/components/VBtn";
|
|
|
8
8
|
import { VList as w, VListItem as T, VListItemTitle as E } from "vuetify/components/VList";
|
|
9
9
|
import { VMenu as D } from "vuetify/components/VMenu";
|
|
10
10
|
// src/domains/filters/datatable/components/ADatatableOrdering.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var O = { class: "d-flex align-
|
|
11
|
+
var O = { class: "d-flex align-baseline justify-center" }, k = { class: "text-body-small mr-1" }, A = /*@__PURE__*/ d({
|
|
12
12
|
__name: "ADatatableOrdering",
|
|
13
13
|
props: /*@__PURE__*/ p({
|
|
14
14
|
variant: { default: "id" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ADatatableOrdering.vue_vue_type_script_setup_true_lang.js","names":["_useModel","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_unref","_createVNode","_component_VBtn","_withCtx","_createTextVNode","_component_VMenu","_component_VList","_Fragment","_renderList","_createBlock","_component_VListItem","_component_VListItemTitle","_normalizeClass","_hoisted_1","_hoisted_2","ADatatableOrdering_vue_vue_type_script_setup_true_lang_default","\"modelValue\"","\"modelModifiers\"","__emit","props","__props","emit","modelValue","useModel","pagination","inject","DatatablePaginationKey","isUndefined","useI18n","defaultItemsCreatedAt","SortOrder","defaultItemsId","defaultItemsMostRelevant","SORT_BY_SCORE","activeTitle","computed","found","options","item","t","onItemClick","paginationUpdateDefault","watch","newValue","oldValue","option","current","openBlock","createElementBlock","createElementVNode","toDisplayString","unref","createVNode","VBtn","withCtx","createTextVNode","VMenu","VList","Fragment","renderList","createBlock","VListItem","VListItemTitle","normalizeClass"],"sources":["../../../../../src/domains/filters/datatable/components/ADatatableOrdering.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed, inject, type Ref, watch } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport {\n type DatatableOrderingOption,\n type DatatableOrderingOptions,\n SORT_BY_SCORE,\n} from '@/domains/filters/datatable/utils/datatableColumns'\nimport { SortOrder } from '@/domains/api/types/SortOrder'\nimport { isUndefined } from '@/shared/utils/common'\nimport { DatatablePaginationKey } from '@/domains/filters/utils/filterInjectionKeys'\n\nimport type { Pagination } from '@/domains/api/composables/pagination'\n\nconst props = withDefaults(\n defineProps<{\n variant?: 'id' | 'createdAt' | 'most-relevant'\n customOptions?: undefined | DatatableOrderingOptions\n paginationUpdateCustomCb?: ((option: DatatableOrderingOption, pagination: Ref<Pagination>) => void) | undefined\n }>(),\n {\n variant: 'id',\n customOptions: undefined,\n paginationUpdateCustomCb: undefined,\n }\n)\nconst emit = defineEmits<{\n (e: 'sortByChange', data: DatatableOrderingOption): void\n}>()\n\nconst modelValue = defineModel<number>('modelValue', {\n default: 1,\n required: false,\n})\n\nconst pagination = inject(DatatablePaginationKey)\n\nif (isUndefined(pagination)) {\n throw new Error('Incorrect provide/inject config.')\n}\n\nconst { t } = useI18n()\n\nconst defaultItemsCreatedAt: DatatableOrderingOptions = [\n {\n id: 1,\n titleT: 'common.system.datatable.ordering.mostRecent',\n sortBy: { key: 'createdAt', order: SortOrder.Desc },\n },\n {\n id: 2,\n titleT: 'common.system.datatable.ordering.oldest',\n sortBy: { key: 'createdAt', order: SortOrder.Asc },\n },\n]\n\nconst defaultItemsId: DatatableOrderingOptions = [\n {\n id: 1,\n titleT: 'common.system.datatable.ordering.mostRecent',\n sortBy: { key: 'id', order: SortOrder.Desc },\n },\n {\n id: 2,\n titleT: 'common.system.datatable.ordering.oldest',\n sortBy: { key: 'id', order: SortOrder.Asc },\n },\n]\n\nconst defaultItemsMostRelevant: DatatableOrderingOptions = [\n {\n id: 3,\n titleT: 'common.system.datatable.ordering.mostRelevant',\n sortBy: { key: SORT_BY_SCORE, order: SortOrder.Desc },\n },\n {\n id: 1,\n titleT: 'common.system.datatable.ordering.mostRecent',\n sortBy: { key: 'createdAt', order: SortOrder.Desc },\n },\n {\n id: 2,\n titleT: 'common.system.datatable.ordering.oldest',\n sortBy: { key: 'createdAt', order: SortOrder.Asc },\n },\n]\n\nconst activeTitle = computed(() => {\n const found = options.value.find((item: any) => item.id === modelValue.value)\n if (found) return t(found.titleT)\n return ''\n})\n\nconst options = computed(() => {\n if (props.customOptions) return props.customOptions\n if (props.variant === 'most-relevant') return defaultItemsMostRelevant\n if (props.variant === 'id') return defaultItemsId\n return defaultItemsCreatedAt\n})\n\nconst onItemClick = (item: DatatableOrderingOption) => {\n modelValue.value = item.id\n}\n\nconst paginationUpdateDefault = (found: DatatableOrderingOption) => {\n if (!found.sortBy) {\n pagination.value = {\n ...pagination.value,\n sortBy: null,\n }\n emit('sortByChange', found)\n return\n }\n pagination.value.sortBy = found.sortBy\n emit('sortByChange', found)\n}\n\nwatch(modelValue, (newValue, oldValue) => {\n if (newValue === oldValue) return\n const found = options.value.find((option) => {\n return option.id === newValue\n })\n if (isUndefined(found)) {\n return\n }\n // Already the pagination's sort: the ordering only follows it (a loaded hash, `setSortBy`, an admin setting\n // the v-model with it). Applying it again made the list submit, which put a restored page back to 1.\n const current = pagination.value.sortBy\n if (current?.key === found.sortBy?.key && current?.order === found.sortBy?.order) {\n return\n }\n if (isUndefined(props.paginationUpdateCustomCb)) {\n paginationUpdateDefault(found)\n return\n }\n props.paginationUpdateCustomCb(found, pagination)\n})\n\n// A getter, not the ref. Admins set `pagination.value.sortBy` in place, which a shallow watch of the ref misses.\nwatch(\n () => ({ key: pagination.value.sortBy?.key, order: pagination.value.sortBy?.order }),\n (newValue, oldValue) => {\n if (newValue.key === oldValue?.key && newValue.order === oldValue?.order) {\n return\n }\n const found = options.value.find((option) => {\n return newValue.key === option.sortBy?.key && newValue.order === option.sortBy?.order\n })\n if (isUndefined(found)) {\n return\n }\n modelValue.value = found.id\n },\n { immediate: true }\n)\n</script>\n\n<template>\n <div class=\"d-flex align-
|
|
1
|
+
{"version":3,"file":"ADatatableOrdering.vue_vue_type_script_setup_true_lang.js","names":["_useModel","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_unref","_createVNode","_component_VBtn","_withCtx","_createTextVNode","_component_VMenu","_component_VList","_Fragment","_renderList","_createBlock","_component_VListItem","_component_VListItemTitle","_normalizeClass","_hoisted_1","_hoisted_2","ADatatableOrdering_vue_vue_type_script_setup_true_lang_default","\"modelValue\"","\"modelModifiers\"","__emit","props","__props","emit","modelValue","useModel","pagination","inject","DatatablePaginationKey","isUndefined","useI18n","defaultItemsCreatedAt","SortOrder","defaultItemsId","defaultItemsMostRelevant","SORT_BY_SCORE","activeTitle","computed","found","options","item","t","onItemClick","paginationUpdateDefault","watch","newValue","oldValue","option","current","openBlock","createElementBlock","createElementVNode","toDisplayString","unref","createVNode","VBtn","withCtx","createTextVNode","VMenu","VList","Fragment","renderList","createBlock","VListItem","VListItemTitle","normalizeClass"],"sources":["../../../../../src/domains/filters/datatable/components/ADatatableOrdering.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed, inject, type Ref, watch } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport {\n type DatatableOrderingOption,\n type DatatableOrderingOptions,\n SORT_BY_SCORE,\n} from '@/domains/filters/datatable/utils/datatableColumns'\nimport { SortOrder } from '@/domains/api/types/SortOrder'\nimport { isUndefined } from '@/shared/utils/common'\nimport { DatatablePaginationKey } from '@/domains/filters/utils/filterInjectionKeys'\n\nimport type { Pagination } from '@/domains/api/composables/pagination'\n\nconst props = withDefaults(\n defineProps<{\n variant?: 'id' | 'createdAt' | 'most-relevant'\n customOptions?: undefined | DatatableOrderingOptions\n paginationUpdateCustomCb?: ((option: DatatableOrderingOption, pagination: Ref<Pagination>) => void) | undefined\n }>(),\n {\n variant: 'id',\n customOptions: undefined,\n paginationUpdateCustomCb: undefined,\n }\n)\nconst emit = defineEmits<{\n (e: 'sortByChange', data: DatatableOrderingOption): void\n}>()\n\nconst modelValue = defineModel<number>('modelValue', {\n default: 1,\n required: false,\n})\n\nconst pagination = inject(DatatablePaginationKey)\n\nif (isUndefined(pagination)) {\n throw new Error('Incorrect provide/inject config.')\n}\n\nconst { t } = useI18n()\n\nconst defaultItemsCreatedAt: DatatableOrderingOptions = [\n {\n id: 1,\n titleT: 'common.system.datatable.ordering.mostRecent',\n sortBy: { key: 'createdAt', order: SortOrder.Desc },\n },\n {\n id: 2,\n titleT: 'common.system.datatable.ordering.oldest',\n sortBy: { key: 'createdAt', order: SortOrder.Asc },\n },\n]\n\nconst defaultItemsId: DatatableOrderingOptions = [\n {\n id: 1,\n titleT: 'common.system.datatable.ordering.mostRecent',\n sortBy: { key: 'id', order: SortOrder.Desc },\n },\n {\n id: 2,\n titleT: 'common.system.datatable.ordering.oldest',\n sortBy: { key: 'id', order: SortOrder.Asc },\n },\n]\n\nconst defaultItemsMostRelevant: DatatableOrderingOptions = [\n {\n id: 3,\n titleT: 'common.system.datatable.ordering.mostRelevant',\n sortBy: { key: SORT_BY_SCORE, order: SortOrder.Desc },\n },\n {\n id: 1,\n titleT: 'common.system.datatable.ordering.mostRecent',\n sortBy: { key: 'createdAt', order: SortOrder.Desc },\n },\n {\n id: 2,\n titleT: 'common.system.datatable.ordering.oldest',\n sortBy: { key: 'createdAt', order: SortOrder.Asc },\n },\n]\n\nconst activeTitle = computed(() => {\n const found = options.value.find((item: any) => item.id === modelValue.value)\n if (found) return t(found.titleT)\n return ''\n})\n\nconst options = computed(() => {\n if (props.customOptions) return props.customOptions\n if (props.variant === 'most-relevant') return defaultItemsMostRelevant\n if (props.variant === 'id') return defaultItemsId\n return defaultItemsCreatedAt\n})\n\nconst onItemClick = (item: DatatableOrderingOption) => {\n modelValue.value = item.id\n}\n\nconst paginationUpdateDefault = (found: DatatableOrderingOption) => {\n if (!found.sortBy) {\n pagination.value = {\n ...pagination.value,\n sortBy: null,\n }\n emit('sortByChange', found)\n return\n }\n pagination.value.sortBy = found.sortBy\n emit('sortByChange', found)\n}\n\nwatch(modelValue, (newValue, oldValue) => {\n if (newValue === oldValue) return\n const found = options.value.find((option) => {\n return option.id === newValue\n })\n if (isUndefined(found)) {\n return\n }\n // Already the pagination's sort: the ordering only follows it (a loaded hash, `setSortBy`, an admin setting\n // the v-model with it). Applying it again made the list submit, which put a restored page back to 1.\n const current = pagination.value.sortBy\n if (current?.key === found.sortBy?.key && current?.order === found.sortBy?.order) {\n return\n }\n if (isUndefined(props.paginationUpdateCustomCb)) {\n paginationUpdateDefault(found)\n return\n }\n props.paginationUpdateCustomCb(found, pagination)\n})\n\n// A getter, not the ref. Admins set `pagination.value.sortBy` in place, which a shallow watch of the ref misses.\nwatch(\n () => ({ key: pagination.value.sortBy?.key, order: pagination.value.sortBy?.order }),\n (newValue, oldValue) => {\n if (newValue.key === oldValue?.key && newValue.order === oldValue?.order) {\n return\n }\n const found = options.value.find((option) => {\n return newValue.key === option.sortBy?.key && newValue.order === option.sortBy?.order\n })\n if (isUndefined(found)) {\n return\n }\n modelValue.value = found.id\n },\n { immediate: true }\n)\n</script>\n\n<template>\n <!-- On the baseline: centred boxes put the text of the button a pixel below the label. -->\n <div class=\"d-flex align-baseline justify-center\">\n <div class=\"text-body-small mr-1\">{{ t('common.system.datatable.ordering.title') }}:</div>\n <VBtn\n variant=\"text\"\n rounded=\"xl\"\n size=\"small\"\n class=\"text-medium-emphasis\"\n append-icon=\"mdi-chevron-down\"\n >\n {{ activeTitle }}\n <VMenu\n activator=\"parent\"\n location=\"bottom\"\n close-on-content-click\n >\n <VList\n density=\"compact\"\n class=\"pa-0\"\n >\n <VListItem\n v-for=\"item in options\"\n :key=\"item.id\"\n @click=\"onItemClick(item)\"\n >\n <VListItemTitle :class=\"{ 'font-weight-bold': item.id === modelValue }\">\n {{ t(item.titleT) }}\n </VListItemTitle>\n </VListItem>\n </VList>\n </VMenu>\n </VBtn>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcA,IAAMwB,IAAQC,GAYRC,IAAOH,GAIPI,IAAa3B,EAAmByB,GAAC,YAGtC,GAEKI,IAAaC,EAAOC,CAAsB;EAEhD,IAAIC,EAAYH,CAAU,GACxB,MAAU,MAAM,kCAAkC;EAGpD,IAAM,EAAE,SAAMI,EAAQ,GAEhBC,IAAkD,CACtD;GACE,IAAI;GACJ,QAAQ;GACR,QAAQ;IAAE,KAAK;IAAa,OAAOC,EAAU;GAAK;EACpD,GACA;GACE,IAAI;GACJ,QAAQ;GACR,QAAQ;IAAE,KAAK;IAAa,OAAOA,EAAU;GAAI;EACnD,CACF,GAEMC,IAA2C,CAC/C;GACE,IAAI;GACJ,QAAQ;GACR,QAAQ;IAAE,KAAK;IAAM,OAAOD,EAAU;GA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|
@@ -8,6 +8,8 @@ type __VLS_Props = {
|
|
|
8
8
|
degraded?: boolean;
|
|
9
9
|
/** Key with the plural forms `1 | 2–4 | 5+`; `{count}` is the number, or `max+` above `max`. */
|
|
10
10
|
textKey?: string;
|
|
11
|
+
/** A smaller pill, 24px high with 11px text, for a narrow list. */
|
|
12
|
+
compact?: boolean;
|
|
11
13
|
};
|
|
12
14
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
15
|
click: () => any;
|
|
@@ -17,6 +19,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
17
19
|
failed: boolean;
|
|
18
20
|
degraded: boolean;
|
|
19
21
|
max: number;
|
|
22
|
+
compact: boolean;
|
|
20
23
|
changed: boolean;
|
|
21
24
|
textKey: string;
|
|
22
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createTextVNode as i, defineComponent as a,
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { VChip as
|
|
4
|
-
import { VBtn as
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, toDisplayString as c, unref as l, useTemplateRef as u, withCtx as d, withModifiers as f } from "vue";
|
|
2
|
+
import { useI18n as p } from "vue-i18n";
|
|
3
|
+
import { VChip as m } from "vuetify/components/VChip";
|
|
4
|
+
import { VBtn as h } from "vuetify/components/VBtn";
|
|
5
5
|
// src/domains/filters/datatable/components/ALiveListingPill.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var g = /*@__PURE__*/ a({
|
|
7
7
|
__name: "ALiveListingPill",
|
|
8
8
|
props: {
|
|
9
9
|
count: {},
|
|
@@ -20,59 +20,86 @@ var m = { class: "a-live-listing-pill" }, h = /*@__PURE__*/ a({
|
|
|
20
20
|
type: Boolean,
|
|
21
21
|
default: !1
|
|
22
22
|
},
|
|
23
|
-
textKey: { default: "common.system.datatable.liveListing.newRecords" }
|
|
23
|
+
textKey: { default: "common.system.datatable.liveListing.newRecords" },
|
|
24
|
+
compact: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
}
|
|
24
28
|
},
|
|
25
29
|
emits: ["click"],
|
|
26
|
-
setup(a, { emit:
|
|
27
|
-
let
|
|
28
|
-
let e =
|
|
29
|
-
return
|
|
30
|
-
})
|
|
31
|
-
|
|
30
|
+
setup(a, { emit: g }) {
|
|
31
|
+
let _ = a, v = g, { t: y } = p(), b = e(() => {
|
|
32
|
+
let e = _.count > _.max, t = e ? `${_.max}+` : _.count;
|
|
33
|
+
return y(_.textKey, { count: t }, e ? _.max + 1 : _.count);
|
|
34
|
+
}), x = e(() => ["a-live-listing-pill__item", { "a-live-listing-pill__item--compact": _.compact }]), S = u("root"), C = () => {
|
|
35
|
+
let e = S.value, t = e?.nextElementSibling;
|
|
36
|
+
return !e || !t ? 0 : e.getBoundingClientRect().top - t.getBoundingClientRect().top;
|
|
37
|
+
}, w = (e) => {
|
|
38
|
+
for (let t = e.parentElement; t && t !== document.body; t = t.parentElement) {
|
|
39
|
+
let e = getComputedStyle(t).overflowY;
|
|
40
|
+
if (e !== "visible" && e !== "clip") return t;
|
|
41
|
+
}
|
|
42
|
+
return window;
|
|
43
|
+
}, T = () => {
|
|
44
|
+
let e = C();
|
|
45
|
+
if (S.value && e > 1) {
|
|
46
|
+
let t = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
47
|
+
w(S.value).scrollBy({
|
|
48
|
+
top: -e,
|
|
49
|
+
behavior: t ? "auto" : "smooth"
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
v("click");
|
|
53
|
+
};
|
|
54
|
+
return (e, u) => (s(), r("div", {
|
|
55
|
+
ref_key: "root",
|
|
56
|
+
ref: S,
|
|
57
|
+
class: "a-live-listing-pill"
|
|
58
|
+
}, [a.count > 0 ? (s(), t(h, {
|
|
32
59
|
key: 0,
|
|
33
60
|
color: "primary",
|
|
34
61
|
size: "small",
|
|
35
62
|
rounded: "pill",
|
|
36
63
|
"prepend-icon": "mdi-arrow-up",
|
|
37
|
-
class:
|
|
38
|
-
onClick:
|
|
64
|
+
class: o(x.value),
|
|
65
|
+
onClick: f(T, ["stop"])
|
|
39
66
|
}, {
|
|
40
|
-
default:
|
|
67
|
+
default: d(() => [i(c(b.value), 1)]),
|
|
41
68
|
_: 1
|
|
42
|
-
})) : a.changed ? (
|
|
69
|
+
}, 8, ["class"])) : a.changed ? (s(), t(h, {
|
|
43
70
|
key: 1,
|
|
44
71
|
color: "primary",
|
|
45
72
|
size: "small",
|
|
46
73
|
rounded: "pill",
|
|
47
74
|
"prepend-icon": "mdi-refresh",
|
|
48
|
-
class:
|
|
49
|
-
onClick:
|
|
75
|
+
class: o(x.value),
|
|
76
|
+
onClick: u[0] ||= f((e) => v("click"), ["stop"])
|
|
50
77
|
}, {
|
|
51
|
-
default:
|
|
78
|
+
default: d(() => [i(c(l(y)("common.system.datatable.liveListing.changes")), 1)]),
|
|
52
79
|
_: 1
|
|
53
|
-
})) : a.failed ? (
|
|
80
|
+
}, 8, ["class"])) : a.failed ? (s(), t(m, {
|
|
54
81
|
key: 2,
|
|
55
82
|
color: "warning",
|
|
56
83
|
variant: "flat",
|
|
57
84
|
size: "small",
|
|
58
85
|
"prepend-icon": "mdi-alert-outline",
|
|
59
|
-
class:
|
|
86
|
+
class: o(x.value)
|
|
60
87
|
}, {
|
|
61
|
-
default:
|
|
88
|
+
default: d(() => [i(c(l(y)("common.system.datatable.liveListing.failed")), 1)]),
|
|
62
89
|
_: 1
|
|
63
|
-
})) : a.degraded ? (
|
|
90
|
+
}, 8, ["class"])) : a.degraded ? (s(), t(m, {
|
|
64
91
|
key: 3,
|
|
65
92
|
color: "warning",
|
|
66
93
|
variant: "flat",
|
|
67
94
|
size: "small",
|
|
68
95
|
"prepend-icon": "mdi-lan-disconnect",
|
|
69
|
-
class:
|
|
96
|
+
class: o(x.value)
|
|
70
97
|
}, {
|
|
71
|
-
default:
|
|
98
|
+
default: d(() => [i(c(l(y)("common.system.datatable.liveListing.degraded")), 1)]),
|
|
72
99
|
_: 1
|
|
73
|
-
})) : n("", !0)]));
|
|
100
|
+
}, 8, ["class"])) : n("", !0)], 512));
|
|
74
101
|
}
|
|
75
102
|
});
|
|
76
|
-
export {
|
|
103
|
+
export { g as default };
|
|
77
104
|
|
|
78
105
|
//# sourceMappingURL=ALiveListingPill.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ALiveListingPill.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createBlock","_component_VBtn","_withModifiers","_withCtx","_createTextVNode","_toDisplayString","_unref","_component_VChip","
|
|
1
|
+
{"version":3,"file":"ALiveListingPill.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createBlock","_component_VBtn","_normalizeClass","_withModifiers","_withCtx","_createTextVNode","_toDisplayString","_unref","_component_VChip","ALiveListingPill_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","useI18n","text","computed","overflow","count","t","itemClass","root","useTemplateRef","scrolledPast","el","next","scrollerOf","node","clickNew","by","reduce","openBlock","createElementBlock","createBlock","VBtn","normalizeClass","withModifiers","withCtx","createTextVNode","toDisplayString","_cache","unref","VChip","createCommentVNode"],"sources":["../../../../../src/domains/filters/datatable/components/ALiveListingPill.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed, useTemplateRef } from 'vue'\nimport { useI18n } from 'vue-i18n'\n\nconst props = withDefaults(\n defineProps<{\n count: number\n max?: number\n failed?: boolean\n /** Records already listed changed: the pill offers a reload while nothing new is counted. */\n changed?: boolean\n /** New records are looked for less promptly than usual, e.g. while backend signals are down. */\n degraded?: boolean\n /** Key with the plural forms `1 | 2–4 | 5+`; `{count}` is the number, or `max+` above `max`. */\n textKey?: string\n /** A smaller pill, 24px high with 11px text, for a narrow list. */\n compact?: boolean\n }>(),\n {\n max: 9,\n failed: false,\n changed: false,\n degraded: false,\n textKey: 'common.system.datatable.liveListing.newRecords',\n compact: false,\n }\n)\nconst emit = defineEmits<{\n (e: 'click'): void\n}>()\n\nconst { t } = useI18n()\n\nconst text = computed(() => {\n const overflow = props.count > props.max\n const count = overflow ? `${props.max}+` : props.count\n return t(props.textKey, { count }, overflow ? props.max + 1 : props.count)\n})\n\nconst itemClass = computed(() => ['a-live-listing-pill__item', { 'a-live-listing-pill__item--compact': props.compact }])\n\nconst root = useTemplateRef<HTMLElement>('root')\n// How far the list has scrolled past the place where the pill rests: the top of the element after it, as the pill\n// takes no height. Above zero the pill is stuck over the rows.\nconst scrolledPast = () => {\n const el = root.value\n const next = el?.nextElementSibling\n if (!el || !next) return 0\n return el.getBoundingClientRect().top - next.getBoundingClientRect().top\n}\n\n// The box the pill sticks in: the nearest ancestor that scrolls (overflow other than visible or clip), else the window.\nconst scrollerOf = (el: HTMLElement) => {\n for (let node = el.parentElement; node && node !== document.body; node = node.parentElement) {\n const overflow = getComputedStyle(node).overflowY\n if (overflow !== 'visible' && overflow !== 'clip') return node\n }\n return window\n}\n\n// Where the pill rests the click only reloads; stuck over the rows it also scrolls the list back to that place.\nconst clickNew = () => {\n const by = scrolledPast()\n if (root.value && by > 1) {\n const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches\n scrollerOf(root.value).scrollBy({ top: -by, behavior: reduce ? 'auto' : 'smooth' })\n }\n emit('click')\n}\n</script>\n\n<template>\n <div\n ref=\"root\"\n class=\"a-live-listing-pill\"\n >\n <!-- An offered reload stays clickable after a failed probe: the click loads the list anyway. -->\n <VBtn\n v-if=\"count > 0\"\n color=\"primary\"\n size=\"small\"\n rounded=\"pill\"\n prepend-icon=\"mdi-arrow-up\"\n :class=\"itemClass\"\n @click.stop=\"clickNew\"\n >\n {{ text }}\n </VBtn>\n <VBtn\n v-else-if=\"changed\"\n color=\"primary\"\n size=\"small\"\n rounded=\"pill\"\n prepend-icon=\"mdi-refresh\"\n :class=\"itemClass\"\n @click.stop=\"emit('click')\"\n >\n {{ t('common.system.datatable.liveListing.changes') }}\n </VBtn>\n <VChip\n v-else-if=\"failed\"\n color=\"warning\"\n variant=\"flat\"\n size=\"small\"\n prepend-icon=\"mdi-alert-outline\"\n :class=\"itemClass\"\n >\n {{ t('common.system.datatable.liveListing.failed') }}\n </VChip>\n <VChip\n v-else-if=\"degraded\"\n color=\"warning\"\n variant=\"flat\"\n size=\"small\"\n prepend-icon=\"mdi-lan-disconnect\"\n :class=\"itemClass\"\n >\n {{ t('common.system.datatable.liveListing.degraded') }}\n </VChip>\n </div>\n</template>\n\n<style lang=\"scss\">\n// Floats over the top of the list and stays there while it scrolls; it takes no height, so no row moves.\n.a-live-listing-pill {\n position: sticky;\n top: calc(var(--v-layout-top, 0px) + 0.25rem);\n z-index: 3;\n display: flex;\n justify-content: center;\n height: 0;\n overflow: visible;\n\n &__item {\n margin-top: 0.25rem;\n }\n\n // A message longer than the room wraps rather than reach past the list or what sits beside the pill. Stretched in\n // the pill, which has no height, the chip would keep only its minimum height.\n .v-chip.a-live-listing-pill__item {\n align-self: flex-start;\n height: auto;\n min-height: var(--v-chip-height);\n white-space: normal;\n }\n\n .v-btn.a-live-listing-pill__item--compact {\n --v-btn-height: 24px;\n --v-btn-size: 0.6875rem;\n\n padding: 0 0.625rem;\n font-size: 0.6875rem;\n }\n\n .v-chip.a-live-listing-pill__item--compact {\n --v-chip-height: 24px;\n --v-chip-size: 0.6875rem;\n\n padding-block: 0.0625rem;\n font-size: 0.6875rem;\n line-height: 0.8125rem;\n }\n}\n\n// A card clips its content with overflow: hidden, which also makes it the box the pill sticks in, so the pill would\n// scroll away with the list; clip cuts the same edges and leaves the pill stuck to the window.\n.v-card:has(.a-live-list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v: "„"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
t: 4,
|
|
1320
|
+
k: "name"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
t: 3,
|
|
1324
|
+
v: "“ je zdroj, jako autor se použít nedá"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
authorNotSource: {
|
|
1330
|
+
t: 0,
|
|
1331
|
+
b: {
|
|
1332
|
+
t: 2,
|
|
1333
|
+
i: [
|
|
1334
|
+
{
|
|
1335
|
+
t: 3,
|
|
1336
|
+
v: "„"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
t: 4,
|
|
1340
|
+
k: "name"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
t: 3,
|
|
1344
|
+
v: "“ je autor, jako zdroj se použít nedá"
|
|
1345
|
+
}
|
|
1346
|
+
]
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1309
1349
|
filterMinChars: {
|
|
1310
1350
|
t: 0,
|
|
1311
1351
|
b: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"damImage.js","names":["resource","\"image\"","\"model\"","\"texts\"","\"description\"","\"t\"","\"b\"","\"i\"","\"s\"","\"source\"","\"flags\"","\"showSource\"","\"meta\"","\"edit\"","\"authorsGivenMeanwhile\"","\"galleryAuthorsGivenMeanwhile\"","\"button\"","\"options\"","\"editAsset\"","\"upload\"","\"addFromDam\"","\"replaceFromDam\"","\"removeImage\"","\"help\"","\"media\"","\"damMedia\"","\"assetId\"","\"licenceId\"","\"title\"","\"authorNames\"","\"episodeName\"","\"episodeNumber\"","\"seriesName\"","\"preview\"","\"notPlayable\"","\"remove\"","\"queueItem\"","\"displayTitle\"","\"error\"","\"copyAssetId\"","\"stillUploadingOrProcessing\"","\"refreshFailed\"","\"assetGone\"","\"duplicateOriginalUnread\"","\"removeFromQueue\"","\"errorUnableToCopyToLicence\"","\"asset\"","\"authors\"","\"sources\"","\"sourcesEmpty\"","\"keywords\"","\"mainFileSingleUse\"","\"autoDelete\"","\"assetType\"","\"audio\"","\"video\"","\"document\"","\"list\"","\"noTitle\"","\"detail\"","\"sourceSystem\"","\"toggleInfo\"","\"metadataToggle\"","\"show\"","\"hide\"","\"tabs\"","\"info\"","\"roi\"","\"status\"","\"duplicate\"","\"draft\"","\"deleting\"","\"failed\"","\"metadata\"","\"file\"","\"field\"","\"id\"","\"mainFileId\"","\"type\"","\"mimeType\"","\"size\"","\"dominantColor\"","\"width\"","\"height\"","\"ratio\"","\"animated\"","\"licence\"","\"refresh\"","\"rotate\"","\"rotateMainFileImage\"","\"rotateClockwise\"","\"rotateCounterclockwise\"","\"massOperations\"","\"fillOneEmpty\"","\"fillAllEmpty\"","\"replaceOne\"","\"fillOneEmptyField\"","\"v\"","\"k\"","\"replaceOneField\"","\"replaceAll\"","\"clearForm\"","\"general\"","\"metaIcons\"","\"low\"","\"slots\"","\"rss\"","\"tts\"","\"fullHd\"","\"qhd\"","\"autoDeleteAt\"","\"assetFileFailReason\"","\"none\"","\"unknown\"","\"invalidChecksum\"","\"invalidMimeType\"","\"downloadFailed\"","\"invalidSize\"","\"waiting\"","\"processing\"","\"uploading\"","\"done\"","\"stop\"","\"add\"","\"save\"","\"saveAndApply\"","\"apply\"","\"titleDone\"","\"stopConfirmQuestion\"","\"stopConfirm\"","\"onlyOneFile\"","\"metadataJustLoaded\"","\"limits\"","\"uploadWarning\"","\"onUploadLimit\"","\"addingOverLimit\"","\"countAlreadyInProgress\"","\"onlyAllowedAtOnce\"","\"cancelOrUploadFirst\"","\"actionAddFirstItems\"","\"keyword\"","\"name\"","\"create\"","\"filterMinChars\"","\"author\"","\"identifier\"","\"reviewed\"","\"authorType\"","\"internal\"","\"external\"","\"agency\"","\"addSource\"","\"addConflict\"","\"addConflictNamed\"","\"createSource\"","\"conflicts\"","\"sourceFound\"","\"authorFound\"","\"uploadErrors\"","\"unknownError\"","\"systemError\"","\"offset\"","\"chunkValidationFailed\"","\"processingTooLong\"","\"readFailed\"","\"notificationsNotConnected\"","\"public\"","\"idOrUrl\"","\"inputError\"","\"imagePreview\"","\"loadingConfig\"","\"accessRights\"","\"unableToLock\""],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"damImage.js","names":["resource","\"image\"","\"model\"","\"texts\"","\"description\"","\"t\"","\"b\"","\"i\"","\"s\"","\"source\"","\"flags\"","\"showSource\"","\"meta\"","\"edit\"","\"authorsGivenMeanwhile\"","\"galleryAuthorsGivenMeanwhile\"","\"button\"","\"options\"","\"editAsset\"","\"upload\"","\"addFromDam\"","\"replaceFromDam\"","\"removeImage\"","\"help\"","\"media\"","\"damMedia\"","\"assetId\"","\"licenceId\"","\"title\"","\"authorNames\"","\"episodeName\"","\"episodeNumber\"","\"seriesName\"","\"preview\"","\"notPlayable\"","\"remove\"","\"queueItem\"","\"displayTitle\"","\"error\"","\"copyAssetId\"","\"stillUploadingOrProcessing\"","\"refreshFailed\"","\"assetGone\"","\"duplicateOriginalUnread\"","\"removeFromQueue\"","\"errorUnableToCopyToLicence\"","\"asset\"","\"authors\"","\"sources\"","\"sourcesEmpty\"","\"keywords\"","\"mainFileSingleUse\"","\"autoDelete\"","\"assetType\"","\"audio\"","\"video\"","\"document\"","\"list\"","\"noTitle\"","\"detail\"","\"sourceSystem\"","\"toggleInfo\"","\"metadataToggle\"","\"show\"","\"hide\"","\"tabs\"","\"info\"","\"roi\"","\"status\"","\"duplicate\"","\"draft\"","\"deleting\"","\"failed\"","\"metadata\"","\"file\"","\"field\"","\"id\"","\"mainFileId\"","\"type\"","\"mimeType\"","\"size\"","\"dominantColor\"","\"width\"","\"height\"","\"ratio\"","\"animated\"","\"licence\"","\"refresh\"","\"rotate\"","\"rotateMainFileImage\"","\"rotateClockwise\"","\"rotateCounterclockwise\"","\"massOperations\"","\"fillOneEmpty\"","\"fillAllEmpty\"","\"replaceOne\"","\"fillOneEmptyField\"","\"v\"","\"k\"","\"replaceOneField\"","\"replaceAll\"","\"clearForm\"","\"general\"","\"metaIcons\"","\"low\"","\"slots\"","\"rss\"","\"tts\"","\"fullHd\"","\"qhd\"","\"autoDeleteAt\"","\"assetFileFailReason\"","\"none\"","\"unknown\"","\"invalidChecksum\"","\"invalidMimeType\"","\"downloadFailed\"","\"invalidSize\"","\"waiting\"","\"processing\"","\"uploading\"","\"done\"","\"stop\"","\"add\"","\"save\"","\"saveAndApply\"","\"apply\"","\"titleDone\"","\"stopConfirmQuestion\"","\"stopConfirm\"","\"onlyOneFile\"","\"metadataJustLoaded\"","\"limits\"","\"uploadWarning\"","\"onUploadLimit\"","\"addingOverLimit\"","\"countAlreadyInProgress\"","\"onlyAllowedAtOnce\"","\"cancelOrUploadFirst\"","\"actionAddFirstItems\"","\"keyword\"","\"name\"","\"create\"","\"filterMinChars\"","\"author\"","\"identifier\"","\"reviewed\"","\"authorType\"","\"internal\"","\"external\"","\"agency\"","\"addSource\"","\"addConflict\"","\"addConflictNamed\"","\"createSource\"","\"conflicts\"","\"sourceFound\"","\"authorFound\"","\"sourceNotAuthor\"","\"authorNotSource\"","\"uploadErrors\"","\"unknownError\"","\"systemError\"","\"offset\"","\"chunkValidationFailed\"","\"processingTooLong\"","\"readFailed\"","\"notificationsNotConnected\"","\"public\"","\"idOrUrl\"","\"inputError\"","\"imagePreview\"","\"loadingConfig\"","\"accessRights\"","\"unableToLock\""],"sources":[],"mappings":""}
|
package/dist/locales/cs.d.ts
CHANGED
|
@@ -1306,6 +1306,46 @@ var e = {
|
|
|
1306
1306
|
]
|
|
1307
1307
|
}
|
|
1308
1308
|
},
|
|
1309
|
+
sourceNotAuthor: {
|
|
1310
|
+
t: 0,
|
|
1311
|
+
b: {
|
|
1312
|
+
t: 2,
|
|
1313
|
+
i: [
|
|
1314
|
+
{
|
|
1315
|
+
t: 3,
|
|
1316
|
+
v: "“"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
t: 4,
|
|
1320
|
+
k: "name"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
t: 3,
|
|
1324
|
+
v: "” is a source and cannot be used as an author"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
authorNotSource: {
|
|
1330
|
+
t: 0,
|
|
1331
|
+
b: {
|
|
1332
|
+
t: 2,
|
|
1333
|
+
i: [
|
|
1334
|
+
{
|
|
1335
|
+
t: 3,
|
|
1336
|
+
v: "“"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
t: 4,
|
|
1340
|
+
k: "name"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
t: 3,
|
|
1344
|
+
v: "” is an author and cannot be used as a source"
|
|
1345
|
+
}
|
|
1346
|
+
]
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1309
1349
|
filterMinChars: {
|
|
1310
1350
|
t: 0,
|
|
1311
1351
|
b: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"damImage.js","names":["resource","\"image\"","\"model\"","\"texts\"","\"description\"","\"t\"","\"b\"","\"i\"","\"s\"","\"source\"","\"flags\"","\"showSource\"","\"meta\"","\"edit\"","\"authorsGivenMeanwhile\"","\"galleryAuthorsGivenMeanwhile\"","\"button\"","\"options\"","\"editAsset\"","\"upload\"","\"addFromDam\"","\"replaceFromDam\"","\"removeImage\"","\"help\"","\"media\"","\"damMedia\"","\"assetId\"","\"licenceId\"","\"title\"","\"authorNames\"","\"episodeName\"","\"episodeNumber\"","\"seriesName\"","\"preview\"","\"notPlayable\"","\"remove\"","\"queueItem\"","\"displayTitle\"","\"error\"","\"copyAssetId\"","\"stillUploadingOrProcessing\"","\"refreshFailed\"","\"assetGone\"","\"duplicateOriginalUnread\"","\"removeFromQueue\"","\"errorUnableToCopyToLicence\"","\"asset\"","\"authors\"","\"sources\"","\"sourcesEmpty\"","\"keywords\"","\"mainFileSingleUse\"","\"autoDelete\"","\"assetType\"","\"audio\"","\"video\"","\"document\"","\"list\"","\"noTitle\"","\"detail\"","\"sourceSystem\"","\"toggleInfo\"","\"metadataToggle\"","\"show\"","\"hide\"","\"tabs\"","\"info\"","\"roi\"","\"status\"","\"duplicate\"","\"draft\"","\"deleting\"","\"failed\"","\"metadata\"","\"file\"","\"field\"","\"id\"","\"mainFileId\"","\"type\"","\"mimeType\"","\"size\"","\"dominantColor\"","\"width\"","\"height\"","\"ratio\"","\"animated\"","\"licence\"","\"refresh\"","\"rotate\"","\"rotateMainFileImage\"","\"rotateClockwise\"","\"rotateCounterclockwise\"","\"massOperations\"","\"fillOneEmpty\"","\"fillAllEmpty\"","\"replaceOne\"","\"fillOneEmptyField\"","\"v\"","\"k\"","\"replaceOneField\"","\"replaceAll\"","\"clearForm\"","\"general\"","\"metaIcons\"","\"low\"","\"slots\"","\"rss\"","\"tts\"","\"fullHd\"","\"qhd\"","\"autoDeleteAt\"","\"assetFileFailReason\"","\"none\"","\"unknown\"","\"invalidChecksum\"","\"invalidMimeType\"","\"downloadFailed\"","\"invalidSize\"","\"waiting\"","\"processing\"","\"uploading\"","\"done\"","\"stop\"","\"add\"","\"save\"","\"saveAndApply\"","\"apply\"","\"titleDone\"","\"stopConfirmQuestion\"","\"stopConfirm\"","\"onlyOneFile\"","\"metadataJustLoaded\"","\"limits\"","\"uploadWarning\"","\"onUploadLimit\"","\"addingOverLimit\"","\"countAlreadyInProgress\"","\"onlyAllowedAtOnce\"","\"cancelOrUploadFirst\"","\"actionAddFirstItems\"","\"keyword\"","\"name\"","\"create\"","\"filterMinChars\"","\"author\"","\"identifier\"","\"reviewed\"","\"authorType\"","\"internal\"","\"external\"","\"agency\"","\"addSource\"","\"addConflict\"","\"addConflictNamed\"","\"createSource\"","\"conflicts\"","\"sourceFound\"","\"authorFound\"","\"uploadErrors\"","\"unknownError\"","\"systemError\"","\"offset\"","\"chunkValidationFailed\"","\"processingTooLong\"","\"readFailed\"","\"notificationsNotConnected\"","\"public\"","\"idOrUrl\"","\"inputError\"","\"imagePreview\"","\"loadingConfig\"","\"accessRights\"","\"unableToLock\""],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"damImage.js","names":["resource","\"image\"","\"model\"","\"texts\"","\"description\"","\"t\"","\"b\"","\"i\"","\"s\"","\"source\"","\"flags\"","\"showSource\"","\"meta\"","\"edit\"","\"authorsGivenMeanwhile\"","\"galleryAuthorsGivenMeanwhile\"","\"button\"","\"options\"","\"editAsset\"","\"upload\"","\"addFromDam\"","\"replaceFromDam\"","\"removeImage\"","\"help\"","\"media\"","\"damMedia\"","\"assetId\"","\"licenceId\"","\"title\"","\"authorNames\"","\"episodeName\"","\"episodeNumber\"","\"seriesName\"","\"preview\"","\"notPlayable\"","\"remove\"","\"queueItem\"","\"displayTitle\"","\"error\"","\"copyAssetId\"","\"stillUploadingOrProcessing\"","\"refreshFailed\"","\"assetGone\"","\"duplicateOriginalUnread\"","\"removeFromQueue\"","\"errorUnableToCopyToLicence\"","\"asset\"","\"authors\"","\"sources\"","\"sourcesEmpty\"","\"keywords\"","\"mainFileSingleUse\"","\"autoDelete\"","\"assetType\"","\"audio\"","\"video\"","\"document\"","\"list\"","\"noTitle\"","\"detail\"","\"sourceSystem\"","\"toggleInfo\"","\"metadataToggle\"","\"show\"","\"hide\"","\"tabs\"","\"info\"","\"roi\"","\"status\"","\"duplicate\"","\"draft\"","\"deleting\"","\"failed\"","\"metadata\"","\"file\"","\"field\"","\"id\"","\"mainFileId\"","\"type\"","\"mimeType\"","\"size\"","\"dominantColor\"","\"width\"","\"height\"","\"ratio\"","\"animated\"","\"licence\"","\"refresh\"","\"rotate\"","\"rotateMainFileImage\"","\"rotateClockwise\"","\"rotateCounterclockwise\"","\"massOperations\"","\"fillOneEmpty\"","\"fillAllEmpty\"","\"replaceOne\"","\"fillOneEmptyField\"","\"v\"","\"k\"","\"replaceOneField\"","\"replaceAll\"","\"clearForm\"","\"general\"","\"metaIcons\"","\"low\"","\"slots\"","\"rss\"","\"tts\"","\"fullHd\"","\"qhd\"","\"autoDeleteAt\"","\"assetFileFailReason\"","\"none\"","\"unknown\"","\"invalidChecksum\"","\"invalidMimeType\"","\"downloadFailed\"","\"invalidSize\"","\"waiting\"","\"processing\"","\"uploading\"","\"done\"","\"stop\"","\"add\"","\"save\"","\"saveAndApply\"","\"apply\"","\"titleDone\"","\"stopConfirmQuestion\"","\"stopConfirm\"","\"onlyOneFile\"","\"metadataJustLoaded\"","\"limits\"","\"uploadWarning\"","\"onUploadLimit\"","\"addingOverLimit\"","\"countAlreadyInProgress\"","\"onlyAllowedAtOnce\"","\"cancelOrUploadFirst\"","\"actionAddFirstItems\"","\"keyword\"","\"name\"","\"create\"","\"filterMinChars\"","\"author\"","\"identifier\"","\"reviewed\"","\"authorType\"","\"internal\"","\"external\"","\"agency\"","\"addSource\"","\"addConflict\"","\"addConflictNamed\"","\"createSource\"","\"conflicts\"","\"sourceFound\"","\"authorFound\"","\"sourceNotAuthor\"","\"authorNotSource\"","\"uploadErrors\"","\"unknownError\"","\"systemError\"","\"offset\"","\"chunkValidationFailed\"","\"processingTooLong\"","\"readFailed\"","\"notificationsNotConnected\"","\"public\"","\"idOrUrl\"","\"inputError\"","\"imagePreview\"","\"loadingConfig\"","\"accessRights\"","\"unableToLock\""],"sources":[],"mappings":""}
|
package/dist/locales/en.d.ts
CHANGED
|
@@ -1306,6 +1306,46 @@ var e = {
|
|
|
1306
1306
|
]
|
|
1307
1307
|
}
|
|
1308
1308
|
},
|
|
1309
|
+
sourceNotAuthor: {
|
|
1310
|
+
t: 0,
|
|
1311
|
+
b: {
|
|
1312
|
+
t: 2,
|
|
1313
|
+
i: [
|
|
1314
|
+
{
|
|
1315
|
+
t: 3,
|
|
1316
|
+
v: "„"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
t: 4,
|
|
1320
|
+
k: "name"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
t: 3,
|
|
1324
|
+
v: "“ je zdroj, ako autor sa použiť nedá"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
authorNotSource: {
|
|
1330
|
+
t: 0,
|
|
1331
|
+
b: {
|
|
1332
|
+
t: 2,
|
|
1333
|
+
i: [
|
|
1334
|
+
{
|
|
1335
|
+
t: 3,
|
|
1336
|
+
v: "„"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
t: 4,
|
|
1340
|
+
k: "name"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
t: 3,
|
|
1344
|
+
v: "“ je autor, ako zdroj sa použiť nedá"
|
|
1345
|
+
}
|
|
1346
|
+
]
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1309
1349
|
filterMinChars: {
|
|
1310
1350
|
t: 0,
|
|
1311
1351
|
b: {
|