admins-components 9.0.6 → 9.0.8

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.
Files changed (188) hide show
  1. package/dist/admins-components.js +57 -57
  2. package/dist/admins-components100.js +26 -27
  3. package/dist/admins-components101.js +25 -169
  4. package/dist/admins-components102.js +165 -61
  5. package/dist/admins-components103.js +61 -70
  6. package/dist/admins-components104.js +65 -28
  7. package/dist/admins-components105.js +28 -14
  8. package/dist/admins-components106.js +15 -26
  9. package/dist/admins-components107.js +26 -9
  10. package/dist/admins-components108.js +9 -4
  11. package/dist/admins-components109.js +4 -3
  12. package/dist/admins-components11.js +9 -38
  13. package/dist/admins-components110.js +2 -2
  14. package/dist/admins-components111.js +3 -21
  15. package/dist/admins-components112.js +21 -14
  16. package/dist/admins-components113.js +14 -8
  17. package/dist/admins-components114.js +8 -13
  18. package/dist/admins-components115.js +12 -33
  19. package/dist/admins-components116.js +24 -81
  20. package/dist/admins-components117.js +82 -10
  21. package/dist/admins-components118.js +10 -4
  22. package/dist/admins-components119.js +5 -8
  23. package/dist/admins-components12.js +37 -141
  24. package/dist/admins-components120.js +7 -6
  25. package/dist/admins-components121.js +6 -5
  26. package/dist/admins-components122.js +4 -13
  27. package/dist/admins-components123.js +11 -9
  28. package/dist/admins-components124.js +13 -30
  29. package/dist/admins-components125.js +30 -4
  30. package/dist/admins-components126.js +4 -29
  31. package/dist/admins-components127.js +29 -5
  32. package/dist/admins-components128.js +3 -3
  33. package/dist/admins-components129.js +4 -21
  34. package/dist/admins-components13.js +145 -5
  35. package/dist/admins-components130.js +7 -81
  36. package/dist/admins-components131.js +70 -29
  37. package/dist/admins-components132.js +27 -57
  38. package/dist/admins-components133.js +57 -22
  39. package/dist/admins-components134.js +21 -47
  40. package/dist/admins-components135.js +48 -30
  41. package/dist/admins-components136.js +31 -3
  42. package/dist/admins-components137.js +3 -186
  43. package/dist/admins-components138.js +176 -43
  44. package/dist/admins-components139.js +44 -35
  45. package/dist/admins-components14.js +5 -46
  46. package/dist/admins-components140.js +34 -43
  47. package/dist/admins-components141.js +42 -138
  48. package/dist/admins-components142.js +134 -51
  49. package/dist/admins-components143.js +58 -7
  50. package/dist/admins-components144.js +6 -5
  51. package/dist/admins-components145.js +6 -76
  52. package/dist/admins-components146.js +76 -29
  53. package/dist/admins-components147.js +29 -1931
  54. package/dist/admins-components148.js +1763 -24900
  55. package/dist/admins-components149.js +24810 -8
  56. package/dist/admins-components15.js +49 -4
  57. package/dist/admins-components150.js +9 -7
  58. package/dist/admins-components151.js +7 -142
  59. package/dist/admins-components152.js +141 -8
  60. package/dist/admins-components153.js +3 -3
  61. package/dist/admins-components154.js +10 -0
  62. package/dist/admins-components156.js +161 -44
  63. package/dist/admins-components157.js +50 -8
  64. package/dist/admins-components158.js +8 -49
  65. package/dist/admins-components159.js +50 -6
  66. package/dist/admins-components16.js +4 -94
  67. package/dist/admins-components160.js +6 -80
  68. package/dist/admins-components161.js +70 -48
  69. package/dist/admins-components162.js +31 -32
  70. package/dist/admins-components163.js +58 -8
  71. package/dist/admins-components164.js +8 -51
  72. package/dist/admins-components165.js +51 -8
  73. package/dist/admins-components166.js +10 -0
  74. package/dist/{admins-components167.js → admins-components168.js} +4 -4
  75. package/dist/admins-components17.js +91 -225
  76. package/dist/admins-components18.js +245 -5
  77. package/dist/admins-components19.js +5 -181
  78. package/dist/admins-components20.js +183 -0
  79. package/dist/admins-components22.js +6 -72
  80. package/dist/admins-components23.js +78 -6
  81. package/dist/admins-components24.js +6 -58
  82. package/dist/admins-components25.js +59 -0
  83. package/dist/admins-components27.js +6 -60
  84. package/dist/admins-components28.js +61 -0
  85. package/dist/admins-components30.js +6 -36
  86. package/dist/admins-components31.js +37 -0
  87. package/dist/admins-components33.js +6 -36
  88. package/dist/admins-components34.js +36 -4
  89. package/dist/admins-components35.js +4 -32
  90. package/dist/admins-components36.js +33 -0
  91. package/dist/admins-components38.js +6 -147
  92. package/dist/admins-components39.js +148 -0
  93. package/dist/admins-components4.js +9 -56
  94. package/dist/admins-components41.js +6 -124
  95. package/dist/admins-components42.js +124 -4
  96. package/dist/admins-components43.js +4 -179
  97. package/dist/admins-components44.js +179 -4
  98. package/dist/admins-components45.js +4 -19
  99. package/dist/admins-components46.js +20 -0
  100. package/dist/admins-components48.js +6 -54
  101. package/dist/admins-components49.js +54 -93
  102. package/dist/admins-components5.js +57 -4
  103. package/dist/admins-components50.js +94 -0
  104. package/dist/admins-components52.js +6 -25
  105. package/dist/admins-components53.js +25 -9
  106. package/dist/admins-components54.js +9 -19
  107. package/dist/admins-components55.js +18 -72
  108. package/dist/admins-components56.js +73 -59
  109. package/dist/admins-components57.js +59 -4
  110. package/dist/admins-components58.js +4 -120
  111. package/dist/admins-components59.js +122 -0
  112. package/dist/admins-components6.js +4 -29
  113. package/dist/admins-components61.js +7 -143
  114. package/dist/admins-components62.js +148 -0
  115. package/dist/admins-components64.js +7 -7
  116. package/dist/admins-components65.js +7 -263
  117. package/dist/admins-components66.js +264 -0
  118. package/dist/admins-components68.js +6 -111
  119. package/dist/admins-components69.js +112 -0
  120. package/dist/admins-components7.js +29 -252
  121. package/dist/admins-components71.js +6 -59
  122. package/dist/admins-components72.js +55 -217
  123. package/dist/admins-components73.js +222 -0
  124. package/dist/admins-components75.js +6 -8
  125. package/dist/admins-components76.js +7 -45
  126. package/dist/admins-components77.js +45 -249
  127. package/dist/admins-components78.js +264 -0
  128. package/dist/admins-components8.js +253 -0
  129. package/dist/admins-components80.js +7 -37
  130. package/dist/admins-components81.js +38 -0
  131. package/dist/admins-components83.js +6 -198
  132. package/dist/admins-components84.js +199 -0
  133. package/dist/admins-components86.js +6 -203
  134. package/dist/admins-components87.js +204 -0
  135. package/dist/admins-components89.js +7 -3
  136. package/dist/admins-components90.js +3 -16
  137. package/dist/admins-components91.js +16 -3
  138. package/dist/admins-components92.js +3 -52
  139. package/dist/admins-components93.js +50 -80
  140. package/dist/admins-components94.js +78 -109
  141. package/dist/admins-components95.js +110 -41
  142. package/dist/admins-components96.js +39 -101
  143. package/dist/admins-components97.js +105 -6
  144. package/dist/admins-components98.js +5 -261
  145. package/dist/admins-components99.js +250 -25
  146. package/dist/base.css +1 -1
  147. package/dist/index.d.ts +2 -0
  148. package/dist/src/components/Button.vue.d.ts +2 -3
  149. package/dist/src/components/Calendar.vue.d.ts +1 -1
  150. package/dist/src/components/ConfirmModal.vue.d.ts +1 -1
  151. package/dist/src/components/DatePicker.vue.d.ts +4 -2
  152. package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
  153. package/dist/src/components/DropdownMenu.vue.d.ts +4 -2
  154. package/dist/src/components/DropdownSelect.vue.d.ts +1 -1
  155. package/dist/src/components/HeaderComponent.vue.d.ts +2 -2
  156. package/dist/src/components/custom/ImagePicker.vue.d.ts +1 -1
  157. package/dist/src/components/data-table/DataCards.vue.d.ts +2 -2
  158. package/dist/src/components/data-table/DataCell.vue.d.ts +1 -1
  159. package/dist/src/components/data-table/DataFilters.vue.d.ts +4 -4
  160. package/dist/src/components/data-table/DataList.vue.d.ts +4 -4
  161. package/dist/src/components/data-table/DataListGuide.vue.d.ts +1 -1
  162. package/dist/src/components/data-table/DataListOptions.vue.d.ts +2 -2
  163. package/dist/src/components/data-table/DataPaginator.vue.d.ts +1 -1
  164. package/dist/src/components/data-table/DataTable.vue.d.ts +3 -3
  165. package/dist/src/components/data-table/FilterTags.vue.d.ts +1 -1
  166. package/dist/src/components/data-table/FiltersHistory.vue.d.ts +1 -1
  167. package/dist/src/index.d.ts +85 -85
  168. package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
  169. package/package.json +2 -3
  170. package/dist/admins-components10.js +0 -10
  171. package/dist/admins-components155.js +0 -169
  172. package/dist/admins-components21.js +0 -7
  173. package/dist/admins-components26.js +0 -7
  174. package/dist/admins-components29.js +0 -7
  175. package/dist/admins-components32.js +0 -7
  176. package/dist/admins-components37.js +0 -7
  177. package/dist/admins-components40.js +0 -7
  178. package/dist/admins-components47.js +0 -7
  179. package/dist/admins-components51.js +0 -7
  180. package/dist/admins-components60.js +0 -8
  181. package/dist/admins-components63.js +0 -8
  182. package/dist/admins-components67.js +0 -7
  183. package/dist/admins-components70.js +0 -7
  184. package/dist/admins-components74.js +0 -7
  185. package/dist/admins-components79.js +0 -8
  186. package/dist/admins-components82.js +0 -7
  187. package/dist/admins-components85.js +0 -7
  188. package/dist/admins-components88.js +0 -8
@@ -1,180 +1,5 @@
1
- import e from "./admins-components5.js";
2
- import t from "./admins-components21.js";
3
- import n from "./admins-components32.js";
4
- import r from "./admins-components40.js";
5
- import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, watch as m, withCtx as h } from "vue";
6
- //#region src/components/custom/InternalArticleOffer.vue?vue&type=script&setup=true&lang.ts
7
- var g = { class: "flex-column gap-2 ac-component" }, _ = {
8
- key: 0,
9
- class: "flex gap-2"
10
- }, v = { class: "c-input-row" }, y = ["value"], b = { class: "c-input-row" }, x = ["value"], S = { class: "c-input-row" }, C = ["value"], w = { class: "c-input-row" }, T = ["value"], E = ["id", "apiurl"], D = "00000000-0000-0000-0000-000000000000", O = /*@__PURE__*/ l({
11
- __name: "InternalArticleOffer",
12
- props: {
13
- modelValue: {},
14
- searchArticleApiUrl: {},
15
- searchArticleWidgetUrl: {},
16
- environment: {},
17
- searchImageWidgetUrl: {},
18
- imageBaseUrl: {},
19
- imageViewId: {},
20
- showIds: {
21
- type: Boolean,
22
- default: !0
23
- },
24
- formats: {}
25
- },
26
- emits: ["update:modelValue"],
27
- setup(l, { emit: O }) {
28
- let k = {
29
- article: {
30
- siteId: "",
31
- id: "",
32
- imageId: "",
33
- title: "",
34
- lead: ""
35
- },
36
- format: ""
37
- }, A = O, j = l, M = p(k), N = p({
38
- id: M.value.article.imageId || "",
39
- url: "",
40
- source: "",
41
- title: "",
42
- isAdult: !1
43
- }), P = p(!1);
44
- m(() => j.modelValue, (e) => {
45
- e ? M.value = e : M.value = k;
46
- }, {
47
- deep: !0,
48
- immediate: !0
49
- }), m(() => M, (e) => {
50
- A("update:modelValue", M.value), N.value.id = e.value.article.imageId;
51
- }, {
52
- deep: !0,
53
- immediate: !0
54
- }), m(() => N.value.id, (e) => {
55
- M.value.article.imageId = e;
56
- }, {
57
- deep: !0,
58
- immediate: !0
59
- });
60
- let F = p((/* @__PURE__ */ new Date()).getTime().toString() + "article");
61
- d(() => {
62
- window.removeEventListener("search_posts_selected", I);
63
- }), u(() => {
64
- window.addEventListener("search_posts_selected", I);
65
- });
66
- let I = (e) => {
67
- if (e.detail.id == F.value) {
68
- if (e.detail.result && e.detail.posts.length > 0) {
69
- M.value.article.id = e.detail.posts[0].id, M.value.article.siteId = e.detail.posts[0].siteId, M.value.article.title = e.detail.posts[0].title, M.value.article.lead = e.detail.posts[0].lead;
70
- let t = e.detail.posts[0].featuredImage;
71
- M.value.article.imageId = t || D;
72
- }
73
- P.value = !1;
74
- }
75
- }, L = () => {
76
- P.value = !0;
77
- }, R = (e) => {
78
- if (!customElements.get("search-posts-widget") && !document.querySelector(`script[src="${e}"]`)) {
79
- let t = document.createElement("script");
80
- t.type = "text/javascript", t.src = e, document.head.appendChild(t);
81
- }
82
- };
83
- if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${j.searchImageWidgetUrl}"]`)) {
84
- let e = document.createElement("script");
85
- e.type = "text/javascript", e.src = j.searchImageWidgetUrl, e.async = !0, document.head.appendChild(e);
86
- }
87
- return R(j.searchArticleWidgetUrl), (u, d) => (f(), o("div", g, [
88
- s("div", null, [c(e, {
89
- type: "success",
90
- label: "Cikk kiválasztása",
91
- class: "nowrap",
92
- onClick: L,
93
- icon: "fa-solid fa-newspaper"
94
- })]),
95
- l.showIds ? (f(), o("div", _, [s("div", null, [d[5] ||= s("label", {
96
- for: "articleId",
97
- class: "c-label"
98
- }, "Article ID", -1), s("div", v, [s("input", {
99
- id: "articleId",
100
- type: "text",
101
- class: "c-input",
102
- placeholder: "Article ID",
103
- disabled: "",
104
- value: M.value.article.id
105
- }, null, 8, y)])]), s("div", null, [d[6] ||= s("label", {
106
- for: "articleSiteId",
107
- class: "c-label"
108
- }, "Site ID", -1), s("div", b, [s("input", {
109
- id: "articleSiteId",
110
- type: "text",
111
- class: "c-input",
112
- placeholder: "Site ID",
113
- disabled: "",
114
- value: M.value.article.siteId
115
- }, null, 8, x)])])])) : a("", !0),
116
- s("div", null, [d[7] ||= s("label", {
117
- for: "articleTitle",
118
- class: "c-label"
119
- }, "Title", -1), s("div", S, [s("textarea", {
120
- id: "articleTitle",
121
- class: "c-input",
122
- placeholder: "Article title",
123
- value: M.value.article.title,
124
- onInput: d[0] ||= (e) => M.value.article.title = e.target?.value || ""
125
- }, null, 40, C)])]),
126
- s("div", null, [d[8] ||= s("label", {
127
- for: "articleLead",
128
- class: "c-label"
129
- }, "Lead", -1), s("div", w, [s("textarea", {
130
- id: "articleLead",
131
- class: "c-input",
132
- placeholder: "Article lead / description",
133
- value: M.value.article.lead,
134
- onInput: d[1] ||= (e) => M.value.article.lead = e.target?.value || ""
135
- }, null, 40, T)])]),
136
- d[10] ||= s("hr", { class: "separator" }, null, -1),
137
- s("div", null, [c(r, {
138
- modelValue: N.value,
139
- "onUpdate:modelValue": d[2] ||= (e) => N.value = e,
140
- details: !1,
141
- editable: !1,
142
- environment: j.environment,
143
- "article-editor-url": j.searchArticleApiUrl,
144
- "search-image-widget-url": j.searchImageWidgetUrl,
145
- "image-base-url": j.imageBaseUrl,
146
- "image-view-id": j.imageViewId
147
- }, null, 8, [
148
- "modelValue",
149
- "environment",
150
- "article-editor-url",
151
- "search-image-widget-url",
152
- "image-base-url",
153
- "image-view-id"
154
- ])]),
155
- s("div", null, [d[9] ||= s("label", { class: "c-label" }, "Format", -1), c(t, {
156
- modelValue: M.value.format,
157
- "onUpdate:modelValue": d[3] ||= (e) => M.value.format = e,
158
- options: j.formats,
159
- config: { placeholder: "Select format..." }
160
- }, null, 8, ["modelValue", "options"])]),
161
- P.value ? (f(), i(n, {
162
- key: 1,
163
- title: "Search Article",
164
- onClose: d[4] ||= (e) => P.value = !1
165
- }, {
166
- default: h(() => [s("search-posts-widget", {
167
- id: F.value,
168
- selector: "true",
169
- apiurl: j.searchArticleApiUrl,
170
- wpurl: "",
171
- searchurl: "",
172
- style: { height: "500px" }
173
- }, null, 8, E)]),
174
- _: 1
175
- })) : a("", !0)
176
- ]));
177
- }
178
- });
1
+ import e from "./admins-components42.js";
2
+ //#region src/components/custom/ExternalArticleOffer.vue
3
+ var t = e;
179
4
  //#endregion
180
- export { O as default };
5
+ export { t as default };
@@ -1,5 +1,180 @@
1
- import e from "./admins-components43.js";
2
- //#region src/components/custom/InternalArticleOffer.vue
3
- var t = e;
1
+ import e from "./admins-components6.js";
2
+ import t from "./admins-components22.js";
3
+ import n from "./admins-components33.js";
4
+ import r from "./admins-components41.js";
5
+ import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, watch as m, withCtx as h } from "vue";
6
+ //#region src/components/custom/InternalArticleOffer.vue?vue&type=script&setup=true&lang.ts
7
+ var g = { class: "flex-column gap-2 ac-component" }, _ = {
8
+ key: 0,
9
+ class: "flex gap-2"
10
+ }, v = { class: "c-input-row" }, y = ["value"], b = { class: "c-input-row" }, x = ["value"], S = { class: "c-input-row" }, C = ["value"], w = { class: "c-input-row" }, T = ["value"], E = ["id", "apiurl"], D = "00000000-0000-0000-0000-000000000000", O = /* @__PURE__ */ l({
11
+ __name: "InternalArticleOffer",
12
+ props: {
13
+ modelValue: {},
14
+ searchArticleApiUrl: {},
15
+ searchArticleWidgetUrl: {},
16
+ environment: {},
17
+ searchImageWidgetUrl: {},
18
+ imageBaseUrl: {},
19
+ imageViewId: {},
20
+ showIds: {
21
+ type: Boolean,
22
+ default: !0
23
+ },
24
+ formats: {}
25
+ },
26
+ emits: ["update:modelValue"],
27
+ setup(l, { emit: O }) {
28
+ let k = {
29
+ article: {
30
+ siteId: "",
31
+ id: "",
32
+ imageId: "",
33
+ title: "",
34
+ lead: ""
35
+ },
36
+ format: ""
37
+ }, A = O, j = l, M = p(k), N = p({
38
+ id: M.value.article.imageId || "",
39
+ url: "",
40
+ source: "",
41
+ title: "",
42
+ isAdult: !1
43
+ }), P = p(!1);
44
+ m(() => j.modelValue, (e) => {
45
+ e ? M.value = e : M.value = k;
46
+ }, {
47
+ deep: !0,
48
+ immediate: !0
49
+ }), m(() => M, (e) => {
50
+ A("update:modelValue", M.value), N.value.id = e.value.article.imageId;
51
+ }, {
52
+ deep: !0,
53
+ immediate: !0
54
+ }), m(() => N.value.id, (e) => {
55
+ M.value.article.imageId = e;
56
+ }, {
57
+ deep: !0,
58
+ immediate: !0
59
+ });
60
+ let F = p((/* @__PURE__ */ new Date()).getTime().toString() + "article");
61
+ d(() => {
62
+ window.removeEventListener("search_posts_selected", I);
63
+ }), u(() => {
64
+ window.addEventListener("search_posts_selected", I);
65
+ });
66
+ let I = (e) => {
67
+ if (e.detail.id == F.value) {
68
+ if (e.detail.result && e.detail.posts.length > 0) {
69
+ M.value.article.id = e.detail.posts[0].id, M.value.article.siteId = e.detail.posts[0].siteId, M.value.article.title = e.detail.posts[0].title, M.value.article.lead = e.detail.posts[0].lead;
70
+ let t = e.detail.posts[0].featuredImage;
71
+ M.value.article.imageId = t || D;
72
+ }
73
+ P.value = !1;
74
+ }
75
+ }, L = () => {
76
+ P.value = !0;
77
+ }, R = (e) => {
78
+ if (!customElements.get("search-posts-widget") && !document.querySelector(`script[src="${e}"]`)) {
79
+ let t = document.createElement("script");
80
+ t.type = "text/javascript", t.src = e, document.head.appendChild(t);
81
+ }
82
+ };
83
+ if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${j.searchImageWidgetUrl}"]`)) {
84
+ let e = document.createElement("script");
85
+ e.type = "text/javascript", e.src = j.searchImageWidgetUrl, e.async = !0, document.head.appendChild(e);
86
+ }
87
+ return R(j.searchArticleWidgetUrl), (u, d) => (f(), o("div", g, [
88
+ s("div", null, [c(e, {
89
+ type: "success",
90
+ label: "Cikk kiválasztása",
91
+ class: "nowrap",
92
+ onClick: L,
93
+ icon: "fa-solid fa-newspaper"
94
+ })]),
95
+ l.showIds ? (f(), o("div", _, [s("div", null, [d[5] ||= s("label", {
96
+ for: "articleId",
97
+ class: "c-label"
98
+ }, "Article ID", -1), s("div", v, [s("input", {
99
+ id: "articleId",
100
+ type: "text",
101
+ class: "c-input",
102
+ placeholder: "Article ID",
103
+ disabled: "",
104
+ value: M.value.article.id
105
+ }, null, 8, y)])]), s("div", null, [d[6] ||= s("label", {
106
+ for: "articleSiteId",
107
+ class: "c-label"
108
+ }, "Site ID", -1), s("div", b, [s("input", {
109
+ id: "articleSiteId",
110
+ type: "text",
111
+ class: "c-input",
112
+ placeholder: "Site ID",
113
+ disabled: "",
114
+ value: M.value.article.siteId
115
+ }, null, 8, x)])])])) : a("", !0),
116
+ s("div", null, [d[7] ||= s("label", {
117
+ for: "articleTitle",
118
+ class: "c-label"
119
+ }, "Title", -1), s("div", S, [s("textarea", {
120
+ id: "articleTitle",
121
+ class: "c-input",
122
+ placeholder: "Article title",
123
+ value: M.value.article.title,
124
+ onInput: d[0] ||= (e) => M.value.article.title = e.target?.value || ""
125
+ }, null, 40, C)])]),
126
+ s("div", null, [d[8] ||= s("label", {
127
+ for: "articleLead",
128
+ class: "c-label"
129
+ }, "Lead", -1), s("div", w, [s("textarea", {
130
+ id: "articleLead",
131
+ class: "c-input",
132
+ placeholder: "Article lead / description",
133
+ value: M.value.article.lead,
134
+ onInput: d[1] ||= (e) => M.value.article.lead = e.target?.value || ""
135
+ }, null, 40, T)])]),
136
+ d[10] ||= s("hr", { class: "separator" }, null, -1),
137
+ s("div", null, [c(r, {
138
+ modelValue: N.value,
139
+ "onUpdate:modelValue": d[2] ||= (e) => N.value = e,
140
+ details: !1,
141
+ editable: !1,
142
+ environment: j.environment,
143
+ "article-editor-url": j.searchArticleApiUrl,
144
+ "search-image-widget-url": j.searchImageWidgetUrl,
145
+ "image-base-url": j.imageBaseUrl,
146
+ "image-view-id": j.imageViewId
147
+ }, null, 8, [
148
+ "modelValue",
149
+ "environment",
150
+ "article-editor-url",
151
+ "search-image-widget-url",
152
+ "image-base-url",
153
+ "image-view-id"
154
+ ])]),
155
+ s("div", null, [d[9] ||= s("label", { class: "c-label" }, "Format", -1), c(t, {
156
+ modelValue: M.value.format,
157
+ "onUpdate:modelValue": d[3] ||= (e) => M.value.format = e,
158
+ options: j.formats,
159
+ config: { placeholder: "Select format..." }
160
+ }, null, 8, ["modelValue", "options"])]),
161
+ P.value ? (f(), i(n, {
162
+ key: 1,
163
+ title: "Search Article",
164
+ onClose: d[4] ||= (e) => P.value = !1
165
+ }, {
166
+ default: h(() => [s("search-posts-widget", {
167
+ id: F.value,
168
+ selector: "true",
169
+ apiurl: j.searchArticleApiUrl,
170
+ wpurl: "",
171
+ searchurl: "",
172
+ style: { height: "500px" }
173
+ }, null, 8, E)]),
174
+ _: 1
175
+ })) : a("", !0)
176
+ ]));
177
+ }
178
+ });
4
179
  //#endregion
5
- export { t as default };
180
+ export { O as default };
@@ -1,20 +1,5 @@
1
- import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r } from "vue";
2
- //#region src/components/Loader.vue?vue&type=script&setup=true&lang.ts
3
- var i = /*@__PURE__*/ t({
4
- __name: "Loader",
5
- props: {
6
- loading: { type: Boolean },
7
- size: { default: "2rem" }
8
- },
9
- setup(t) {
10
- return (i, a) => (r(), e("div", {
11
- class: "loader",
12
- style: n({
13
- width: t.size,
14
- "--loader-thickness": `calc(${t.size} / 5)`
15
- })
16
- }, null, 4));
17
- }
18
- });
1
+ import e from "./admins-components44.js";
2
+ //#region src/components/custom/InternalArticleOffer.vue
3
+ var t = e;
19
4
  //#endregion
20
- export { i as default };
5
+ export { t as default };
@@ -0,0 +1,20 @@
1
+ import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r } from "vue";
2
+ //#region src/components/Loader.vue?vue&type=script&setup=true&lang.ts
3
+ var i = /* @__PURE__ */ t({
4
+ __name: "Loader",
5
+ props: {
6
+ loading: { type: Boolean },
7
+ size: { default: "2rem" }
8
+ },
9
+ setup(t) {
10
+ return (i, a) => (r(), e("div", {
11
+ class: "loader",
12
+ style: n({
13
+ width: t.size,
14
+ "--loader-thickness": `calc(${t.size} / 5)`
15
+ })
16
+ }, null, 4));
17
+ }
18
+ });
19
+ //#endregion
20
+ export { i as default };
@@ -1,55 +1,7 @@
1
- import { ref as e } from "vue";
2
- //#region src/services/toast.ts
3
- var t = e(null);
4
- function n(e) {
5
- t.value = e;
6
- }
7
- function r(e) {
8
- return t.value ? t.value.addToast(e) : (console.warn("[useToast] No <ToastNotification /> instance is mounted. Mount it once in your app root (e.g. App.vue) before calling toast.*"), null);
9
- }
10
- function i(e, t, n = {}) {
11
- return r({
12
- title: e,
13
- message: t,
14
- type: "success",
15
- ...n
16
- });
17
- }
18
- function a(e, t, n = {}) {
19
- return r({
20
- title: e,
21
- message: t,
22
- type: "error",
23
- displayDuration: n.displayDuration ?? 1e4,
24
- ...n
25
- });
26
- }
27
- function o(e, t, n = {}) {
28
- return r({
29
- title: e,
30
- message: t,
31
- type: "warning",
32
- ...n
33
- });
34
- }
35
- function s(e, t, n = {}) {
36
- return r({
37
- title: e,
38
- message: t,
39
- type: "info",
40
- ...n
41
- });
42
- }
43
- function c(e) {
44
- t.value?.dismiss(e);
45
- }
46
- var l = {
47
- show: r,
48
- success: i,
49
- error: a,
50
- warning: o,
51
- info: s,
52
- dismiss: c
53
- };
1
+ import './src/styles/components/loader.scss_vue_type_style_index_0_src_true_lang.css';
2
+ import e from "./admins-components46.js";
3
+ /* empty css */
4
+ //#region src/components/Loader.vue
5
+ var t = e;
54
6
  //#endregion
55
- export { n as __setToastInstance, l as toast };
7
+ export { t as default };
@@ -1,94 +1,55 @@
1
- import { __setToastInstance as e } from "./admins-components48.js";
2
- import { Fragment as t, TransitionGroup as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _ } from "vue";
3
- //#region src/components/ToastNotification.vue?vue&type=script&setup=true&lang.ts
4
- var v = { class: "ac-component" }, y = { class: "c-toast__body" }, b = {
5
- key: 0,
6
- class: "c-toast__title"
7
- }, x = { class: "c-toast__message" }, S = ["onClick"], C = /*@__PURE__*/ s({
8
- __name: "ToastNotification",
9
- props: {
10
- defaultPosition: { default: "bottom-right" },
11
- defaultDisplayDuration: { default: 5e3 }
12
- },
13
- setup(s, { expose: C }) {
14
- let w = s, T = null, E = 0, D = m([]);
15
- function O(e) {
16
- let t = e.id ?? ++E, n = {
17
- id: t,
18
- title: e.title,
19
- message: e.message,
20
- type: e.type ?? "info",
21
- displayDuration: e.displayDuration ?? w.defaultDisplayDuration,
22
- position: e.position ?? w.defaultPosition,
23
- addedAt: Date.now()
24
- };
25
- return D.value.push(n), t;
26
- }
27
- function k(e) {
28
- D.value = D.value.filter((t) => t.id !== e);
29
- }
30
- function A() {
31
- let e = Date.now();
32
- D.value = D.value.filter((t) => e - t.addedAt < t.displayDuration);
33
- }
34
- T ||= setInterval(A, 500), d(() => {
35
- T &&= (clearInterval(T), null);
36
- }), C({
37
- addToast: O,
38
- dismiss: k
39
- });
40
- let j = c();
41
- f(() => {
42
- e(j?.exposed ?? null);
43
- }), d(() => {
44
- e(null);
45
- });
46
- function M(e) {
47
- switch (e) {
48
- case "success": return "fa-solid fa-circle-check";
49
- case "warning": return "fa-solid fa-triangle-exclamation";
50
- case "error": return "fa-solid fa-circle-xmark";
51
- default: return "fa-solid fa-circle-info";
52
- }
53
- }
54
- function N(e) {
55
- let t = 0;
56
- for (let n of D.value) {
57
- if (n.id === e.id) break;
58
- n.position === e.position && t++;
59
- }
60
- return t;
61
- }
62
- return (e, s) => (p(), i("div", v, [o(n, {
63
- tag: "div",
64
- class: "c-toast-container",
65
- name: "c-toast"
66
- }, {
67
- default: _(() => [(p(!0), i(t, null, h(D.value, (e) => (p(), i("div", {
68
- key: e.id,
69
- class: l(["c-toast", [`c-toast--${e.type}`, `c-toast--pos-${e.position}`]]),
70
- style: u({ "--stack-index": N(e) }),
71
- role: "status",
72
- "aria-live": "polite"
73
- }, [
74
- a("i", {
75
- class: l(["c-toast__icon", M(e.type)]),
76
- "aria-hidden": "true"
77
- }, null, 2),
78
- a("div", y, [e.title ? (p(), i("div", b, g(e.title), 1)) : r("", !0), a("div", x, g(e.message), 1)]),
79
- a("button", {
80
- type: "button",
81
- class: "c-toast__close",
82
- "aria-label": "Bezárás",
83
- onClick: (t) => k(e.id)
84
- }, [...s[0] ||= [a("i", {
85
- class: "fa-solid fa-xmark",
86
- "aria-hidden": "true"
87
- }, null, -1)]], 8, S)
88
- ], 6))), 128))]),
89
- _: 1
90
- })]));
91
- }
92
- });
1
+ import { ref as e } from "vue";
2
+ //#region src/services/toast.ts
3
+ var t = e(null);
4
+ function n(e) {
5
+ t.value = e;
6
+ }
7
+ function r(e) {
8
+ return t.value ? t.value.addToast(e) : (console.warn("[useToast] No <ToastNotification /> instance is mounted. Mount it once in your app root (e.g. App.vue) before calling toast.*"), null);
9
+ }
10
+ function i(e, t, n = {}) {
11
+ return r({
12
+ title: e,
13
+ message: t,
14
+ type: "success",
15
+ ...n
16
+ });
17
+ }
18
+ function a(e, t, n = {}) {
19
+ return r({
20
+ title: e,
21
+ message: t,
22
+ type: "error",
23
+ displayDuration: n.displayDuration ?? 1e4,
24
+ ...n
25
+ });
26
+ }
27
+ function o(e, t, n = {}) {
28
+ return r({
29
+ title: e,
30
+ message: t,
31
+ type: "warning",
32
+ ...n
33
+ });
34
+ }
35
+ function s(e, t, n = {}) {
36
+ return r({
37
+ title: e,
38
+ message: t,
39
+ type: "info",
40
+ ...n
41
+ });
42
+ }
43
+ function c(e) {
44
+ t.value?.dismiss(e);
45
+ }
46
+ var l = {
47
+ show: r,
48
+ success: i,
49
+ error: a,
50
+ warning: o,
51
+ info: s,
52
+ dismiss: c
53
+ };
93
54
  //#endregion
94
- export { C as default };
55
+ export { n as __setToastInstance, l as toast };
@@ -1,5 +1,58 @@
1
- import e from "./admins-components4.js";
2
- //#region src/components/Button.vue
3
- var t = e;
1
+ import { sizeToClass as e, typeToClass as t } from "./admins-components4.js";
2
+ import { computed as n, createCommentVNode as r, createElementBlock as i, createTextVNode as a, defineComponent as o, mergeDefaults as s, normalizeClass as c, openBlock as l, toDisplayString as u } from "vue";
3
+ //#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
4
+ var d = ["aria-label", "title"], f = {
5
+ key: 0,
6
+ class: "c-btn-indicator"
7
+ }, p = {
8
+ size: "normal",
9
+ type: "normal",
10
+ outline: !1,
11
+ icon: void 0,
12
+ iconPosition: "left",
13
+ labelAlignmentFix: !1
14
+ }, m = /* @__PURE__ */ o({
15
+ __name: "Button",
16
+ props: /* @__PURE__ */ s({
17
+ size: {},
18
+ type: {},
19
+ outline: { type: Boolean },
20
+ icon: {},
21
+ iconPosition: {},
22
+ label: {},
23
+ ariaLabel: {},
24
+ callback: { type: Function },
25
+ indicator: {},
26
+ labelAlignmentFix: { type: Boolean }
27
+ }, { ...p }),
28
+ setup(o) {
29
+ let s = o, p = n(() => [
30
+ "c-btn",
31
+ e(s.size, "c-btn"),
32
+ s.outline && "c-btn-outline",
33
+ t(s.type, "c-btn")
34
+ ]);
35
+ return (e, t) => (l(), i("button", {
36
+ type: "button",
37
+ class: c(p.value),
38
+ "aria-label": o.ariaLabel ?? o.label,
39
+ title: o.ariaLabel ?? o.label,
40
+ onClick: t[0] ||= (e) => o.callback?.()
41
+ }, [
42
+ o.icon && o.iconPosition === "left" ? (l(), i("i", {
43
+ key: 0,
44
+ class: c(o.icon)
45
+ }, null, 2)) : r("", !0),
46
+ o.label ? (l(), i("span", {
47
+ key: 1,
48
+ class: c({ "align-center-text-fix": o.labelAlignmentFix })
49
+ }, [a(u(o.label) + " ", 1), o.indicator !== void 0 && o.indicator !== null ? (l(), i("span", f, u(o.indicator), 1)) : r("", !0)], 2)) : r("", !0),
50
+ o.icon && o.iconPosition === "right" ? (l(), i("i", {
51
+ key: 2,
52
+ class: c(o.icon)
53
+ }, null, 2)) : r("", !0)
54
+ ], 10, d));
55
+ }
56
+ });
4
57
  //#endregion
5
- export { t as default };
58
+ export { p as buttonDefaults, m as default };