pukaad-ui-lib 1.465.0 → 1.467.0

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 (118) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +12 -7
  3. package/dist/runtime/assets/css/core.css +1 -1
  4. package/dist/runtime/components/card/card-blog.d.vue.ts +3 -1
  5. package/dist/runtime/components/card/card-blog.vue +2 -7
  6. package/dist/runtime/components/card/card-blog.vue.d.ts +3 -1
  7. package/dist/runtime/components/card/card-content/card-content-menu.d.vue.ts +0 -2
  8. package/dist/runtime/components/card/card-content/card-content-menu.vue +14 -14
  9. package/dist/runtime/components/card/card-content/card-content-menu.vue.d.ts +0 -2
  10. package/dist/runtime/components/card/card-profile/card-profile-header.d.vue.ts +1 -1
  11. package/dist/runtime/components/card/card-profile/card-profile-header.vue.d.ts +1 -1
  12. package/dist/runtime/components/card/card-reaction.d.vue.ts +1 -1
  13. package/dist/runtime/components/card/card-reaction.vue.d.ts +1 -1
  14. package/dist/runtime/components/card/card-review.d.vue.ts +4 -4
  15. package/dist/runtime/components/card/card-review.vue.d.ts +4 -4
  16. package/dist/runtime/components/card/card-user/card-user-item.d.vue.ts +23 -3
  17. package/dist/runtime/components/card/card-user/card-user-item.vue +35 -7
  18. package/dist/runtime/components/card/card-user/card-user-item.vue.d.ts +23 -3
  19. package/dist/runtime/components/chat/chat-conversation-item.d.vue.ts +1 -1
  20. package/dist/runtime/components/chat/chat-conversation-item.vue.d.ts +1 -1
  21. package/dist/runtime/components/display/display-video.d.vue.ts +4 -4
  22. package/dist/runtime/components/display/display-video.vue +2 -1
  23. package/dist/runtime/components/display/display-video.vue.d.ts +4 -4
  24. package/dist/runtime/components/drawer/drawer-profile-network.d.vue.ts +1 -1
  25. package/dist/runtime/components/drawer/drawer-profile-network.vue.d.ts +1 -1
  26. package/dist/runtime/components/input/input-address.d.vue.ts +2 -2
  27. package/dist/runtime/components/input/input-address.vue.d.ts +2 -2
  28. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
  29. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  30. package/dist/runtime/components/input/input-birth-date.d.vue.ts +1 -1
  31. package/dist/runtime/components/input/input-birth-date.vue.d.ts +1 -1
  32. package/dist/runtime/components/input/input-chat.d.vue.ts +1 -1
  33. package/dist/runtime/components/input/input-chat.vue.d.ts +1 -1
  34. package/dist/runtime/components/input/input-combobox.d.vue.ts +1 -1
  35. package/dist/runtime/components/input/input-combobox.vue.d.ts +1 -1
  36. package/dist/runtime/components/input/input-comment.d.vue.ts +2 -2
  37. package/dist/runtime/components/input/input-comment.vue.d.ts +2 -2
  38. package/dist/runtime/components/input/input-date-picker.d.vue.ts +1 -1
  39. package/dist/runtime/components/input/input-date-picker.vue.d.ts +1 -1
  40. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  41. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  42. package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
  43. package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
  44. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  45. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  46. package/dist/runtime/components/input/input-select.vue +1 -1
  47. package/dist/runtime/components/input/input-suggest.d.vue.ts +1 -1
  48. package/dist/runtime/components/input/input-suggest.vue.d.ts +1 -1
  49. package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
  50. package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
  51. package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
  52. package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
  53. package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +1 -1
  54. package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +1 -1
  55. package/dist/runtime/components/modal/modal-report.vue +24 -1
  56. package/dist/runtime/components/modal/modal-secure.d.vue.ts +1 -1
  57. package/dist/runtime/components/modal/modal-secure.vue.d.ts +1 -1
  58. package/dist/runtime/components/modal/suggest-edit-place/place-address.d.vue.ts +2 -2
  59. package/dist/runtime/components/modal/suggest-edit-place/place-address.vue.d.ts +2 -2
  60. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +2 -0
  61. package/dist/runtime/components/preview/preview-blog.d.vue.ts +39 -0
  62. package/dist/runtime/components/preview/preview-blog.vue +203 -0
  63. package/dist/runtime/components/preview/preview-blog.vue.d.ts +39 -0
  64. package/dist/runtime/components/preview/preview-content.d.vue.ts +1 -1
  65. package/dist/runtime/components/preview/preview-content.vue +53 -32
  66. package/dist/runtime/components/preview/preview-content.vue.d.ts +1 -1
  67. package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +4 -4
  68. package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +4 -4
  69. package/dist/runtime/components/ui/chart/ChartTooltipContent.d.vue.ts +1 -1
  70. package/dist/runtime/components/ui/chart/ChartTooltipContent.vue.d.ts +1 -1
  71. package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +4 -4
  72. package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +4 -4
  73. package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +4 -4
  74. package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +4 -4
  75. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
  76. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
  77. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +4 -4
  78. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
  79. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +4 -4
  80. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +4 -4
  81. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +4 -4
  82. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +4 -4
  83. package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +4 -4
  84. package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +4 -4
  85. package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
  86. package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
  87. package/dist/runtime/components/ui/select/SelectItem.vue +1 -1
  88. package/dist/runtime/components/ui/select/SelectTrigger.vue +1 -1
  89. package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +4 -4
  90. package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +4 -4
  91. package/dist/runtime/components/video.vue +2 -1
  92. package/dist/runtime/composables/store-notification.d.ts +1 -1
  93. package/dist/runtime/composables/useSso.d.ts +1 -0
  94. package/dist/runtime/composables/useSso.js +27 -2
  95. package/package.json +3 -2
  96. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Bold.ttf +0 -0
  97. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-ExtraLight.ttf +0 -0
  98. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Light.ttf +0 -0
  99. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Medium.ttf +0 -0
  100. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Regular.ttf +0 -0
  101. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-SemiBold.ttf +0 -0
  102. package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Thin.ttf +0 -0
  103. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Bold.ttf +0 -0
  104. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-BoldItalic.ttf +0 -0
  105. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraBold.ttf +0 -0
  106. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraBoldItalic.ttf +0 -0
  107. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraLight.ttf +0 -0
  108. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraLightItalic.ttf +0 -0
  109. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Italic.ttf +0 -0
  110. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Light.ttf +0 -0
  111. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-LightItalic.ttf +0 -0
  112. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Medium.ttf +0 -0
  113. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-MediumItalic.ttf +0 -0
  114. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Regular.ttf +0 -0
  115. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-SemiBold.ttf +0 -0
  116. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-SemiBoldItalic.ttf +0 -0
  117. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Thin.ttf +0 -0
  118. package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ThinItalic.ttf +0 -0
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.465.0",
4
+ "version": "1.467.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -72,6 +72,7 @@ const module$1 = defineNuxtModule({
72
72
  const components = normalizeComponents(_options.components);
73
73
  const css = normalizeCss(_options.css);
74
74
  const features = _options.features ?? {};
75
+ const _require = createRequire(import.meta.url);
75
76
  addImportsDir(resolver.resolve("./runtime/composables"));
76
77
  if (components.enabled) {
77
78
  addComponentsDir({
@@ -144,12 +145,17 @@ const module$1 = defineNuxtModule({
144
145
  });
145
146
  }
146
147
  if (isEnabled(features.fonts, true)) {
147
- await installModule("@nuxt/fonts", {
148
- families: [
149
- "Anuphan:100,200,300,400,500,600,700",
150
- "Sarabun:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i"
151
- ]
152
- });
148
+ for (const file of [
149
+ "@fontsource/anuphan/400.css",
150
+ "@fontsource/anuphan/500.css",
151
+ "@fontsource/anuphan/600.css",
152
+ "@fontsource/anuphan/700.css",
153
+ "@fontsource/sarabun/400.css",
154
+ "@fontsource/sarabun/500.css",
155
+ "@fontsource/sarabun/600.css"
156
+ ]) {
157
+ _nuxt.options.css.push(_require.resolve(file));
158
+ }
153
159
  }
154
160
  if (isEnabled(features.loadingPage, true)) {
155
161
  addPlugin(resolver.resolve("./runtime/plugins/loadingPage"));
@@ -190,7 +196,6 @@ const module$1 = defineNuxtModule({
190
196
  });
191
197
  }
192
198
  _nuxt.options.alias["#pukaad-ui"] = resolver.resolve(".");
193
- const _require = createRequire(import.meta.url);
194
199
  if (css.leaflet) {
195
200
  _nuxt.options.css.push(_require.resolve("leaflet/dist/leaflet.css"));
196
201
  }
@@ -1 +1 @@
1
- @import "tailwindcss";@import "tw-animate-css";@import "./system.css";@import "./scroll-bar.css";@custom-variant dark (&:is(.dark *));@theme inline{--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--color-background:var(--background);--color-foreground:var(--foreground);--color-card:var(--card);--color-card-foreground:var(--card-foreground);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-primary-foreground:var(--primary-foreground);--color-secondary-foreground:var(--secondary-foreground);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--color-sidebar-ring:var(--sidebar-ring);--color-red:var(--red);--color-error:var(--error);--color-success:var(--success);--color-green:var(--green);--color-warning:var(--warning);--color-yellow:var(--yellow);--color-pink:var(--pink);--color-primary:var(--primary);--color-secondary:var(--secondary);--color-info:var(--info);--color-info-foreground:var(--info-foreground);--color-black:var(--black);--color-dark:var(--dark);--color-gray:var(--gray);--color-cloud:var(--cloud);--color-mercury:var(--mercury);--color-green-light:var(--green-light);--color-red-light:var(--red-light);--color-yellow-light:var(--yellow-light);--color-bright:var(--bright);--color-silver:var(--silver);--color-smoke:var(--smoke);--color-orange:var(--orange);--color-orange-info:var(--orange-info);--z-index-content:10;--z-index-navbar:11;--z-index-dropdown:12;--z-index-overlay:13;--z-index-loading:14;--z-index-drawer:15;--z-index-modal:16;--z-index-toast:100;--z-index-loading-page:101}:root{--radius:0.625rem;--red:#b71c1c;--success:#43a047;--green:#1b5e20;--warning:#f9a825;--yellow:#fbc02d;--info:#e3f2fd;--info-foreground:var(--primary);--black:#212121;--dark:#424242;--gray:#616161;--cloud:#c4c4c4;--mercury:#e0e0e0;--green-light:#e3f5e3;--red-light:#fde3e3;--yellow-light:#fef3c7;--bright:#f5f5f5;--silver:#f7f7f7;--smoke:#fafafa;--white:#fff;--pink:#ffe6f4;--orange:#ed4d2d;--orange-info:#ffdac3;--background:var(--white);--foreground:var(--black);--card:var(--background);--card-foreground:var(--foreground);--popover:var(--background);--popover-foreground:var(--foreground);--primary:#1976b8;--primary-foreground:var(--white);--secondary:#22a7ef;--secondary-foreground:var(--white);--muted:oklch(0.97 0 0);--muted-foreground:var(--cloud);--accent:oklch(0.97 0 0);--accent-foreground:oklch(0.205 0 0);--destructive:#d32f2f;--destructive-foreground:var(--white);--border:var(--color-mercury);--input:var(--color-mercury);--ring:var(--mercury);--chart-1:oklch(0.646 0.222 41.116);--chart-2:oklch(0.6 0.118 184.704);--chart-3:oklch(0.398 0.07 227.392);--chart-4:oklch(0.828 0.189 84.429);--chart-5:oklch(0.769 0.188 70.08);--sidebar:oklch(0.985 0 0);--sidebar-foreground:var(--foreground);--sidebar-primary:oklch(0.205 0 0);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.97 0 0);--sidebar-accent-foreground:oklch(0.205 0 0);--sidebar-border:var(--color-mercury);--sidebar-ring:var(--color-mercury)}.dark{--background:oklch(0.145 0 0);--foreground:oklch(0.985 0 0);--card:oklch(0.145 0 0);--card-foreground:oklch(0.985 0 0);--popover:oklch(0.145 0 0);--popover-foreground:oklch(0.985 0 0);--primary:oklch(0.985 0 0);--primary-foreground:oklch(0.205 0 0);--secondary:oklch(0.269 0 0);--secondary-foreground:oklch(0.985 0 0);--muted:oklch(0.269 0 0);--muted-foreground:oklch(0.708 0 0);--accent:oklch(0.269 0 0);--accent-foreground:oklch(0.985 0 0);--destructive:oklch(0.396 0.141 25.723);--destructive-foreground:oklch(0.637 0.237 25.331);--border:oklch(0.269 0 0);--input:oklch(0.269 0 0);--ring:oklch(0.439 0 0);--chart-1:oklch(0.488 0.243 264.376);--chart-2:oklch(0.696 0.17 162.48);--chart-3:oklch(0.769 0.188 70.08);--chart-4:oklch(0.627 0.265 303.9);--chart-5:oklch(0.645 0.246 16.439);--sidebar:oklch(0.205 0 0);--sidebar-foreground:oklch(0.985 0 0);--sidebar-primary:oklch(0.488 0.243 264.376);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.269 0 0);--sidebar-accent-foreground:oklch(0.985 0 0);--sidebar-border:oklch(0.269 0 0);--sidebar-ring:oklch(0.439 0 0)}@layer base{*{@apply border-border outline-ring/50}body{@apply bg-background text-foreground}}
1
+ @import "tailwindcss";@import "tw-animate-css";@import "./system.css";@import "./scroll-bar.css";@custom-variant dark (&:is(.dark *));@theme inline{--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--color-background:var(--background);--color-foreground:var(--foreground);--color-card:var(--card);--color-card-foreground:var(--card-foreground);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-primary-foreground:var(--primary-foreground);--color-secondary-foreground:var(--secondary-foreground);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--color-sidebar-ring:var(--sidebar-ring);--color-red:var(--red);--color-error:var(--error);--color-success:var(--success);--color-green:var(--green);--color-warning:var(--warning);--color-yellow:var(--yellow);--color-pink:var(--pink);--color-primary:var(--primary);--color-secondary:var(--secondary);--color-info:var(--info);--color-info-foreground:var(--info-foreground);--color-black:var(--black);--color-dark:var(--dark);--color-gray:var(--gray);--color-cloud:var(--cloud);--color-mercury:var(--mercury);--color-green-light:var(--green-light);--color-red-light:var(--red-light);--color-yellow-light:var(--yellow-light);--color-bright:var(--bright);--color-silver:var(--silver);--color-smoke:var(--smoke);--color-orange:var(--orange);--color-orange-info:var(--orange-info);--z-index-content:10;--z-index-navbar:11;--z-index-dropdown:12;--z-index-overlay:13;--z-index-loading:14;--z-index-drawer:15;--z-index-modal:16;--z-index-toast:100;--z-index-loading-page:101}:root{--radius:0.625rem;--red:#b71c1c;--success:#43a047;--green:#1b5e20;--warning:#f9a825;--yellow:#fbc02d;--info:#e3f2fd;--info-foreground:var(--primary);--black:#212121;--dark:#424242;--gray:#616161;--cloud:#c4c4c4;--mercury:#e0e0e0;--green-light:#e3f5e3;--red-light:#fde3e3;--yellow-light:#fef3c7;--bright:#f5f5f5;--silver:#f7f7f7;--smoke:#fafafa;--white:#fff;--pink:#ffe6f4;--orange:#ed4d2d;--orange-info:#ffdac3;--background:var(--white);--foreground:var(--black);--card:var(--background);--card-foreground:var(--foreground);--popover:var(--background);--popover-foreground:var(--foreground);--primary:#1976b8;--primary-foreground:var(--white);--secondary:#22a7ef;--secondary-foreground:var(--white);--muted:oklch(0.97 0 0);--muted-foreground:var(--cloud);--accent:oklch(0.97 0 0);--accent-foreground:oklch(0.205 0 0);--destructive:#d32f2f;--destructive-foreground:var(--white);--border:var(--color-mercury);--input:var(--color-mercury);--ring:var(--mercury);--chart-1:oklch(0.646 0.222 41.116);--chart-2:oklch(0.6 0.118 184.704);--chart-3:oklch(0.398 0.07 227.392);--chart-4:oklch(0.828 0.189 84.429);--chart-5:oklch(0.769 0.188 70.08);--sidebar:oklch(0.985 0 0);--sidebar-foreground:var(--foreground);--sidebar-primary:oklch(0.205 0 0);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.97 0 0);--sidebar-accent-foreground:oklch(0.205 0 0);--sidebar-border:var(--color-mercury);--sidebar-ring:var(--color-mercury)}.dark{--background:oklch(0.145 0 0);--foreground:oklch(0.985 0 0);--card:oklch(0.145 0 0);--card-foreground:oklch(0.985 0 0);--popover:oklch(0.145 0 0);--popover-foreground:oklch(0.985 0 0);--primary:oklch(0.985 0 0);--primary-foreground:oklch(0.205 0 0);--secondary:oklch(0.269 0 0);--secondary-foreground:oklch(0.985 0 0);--muted:oklch(0.269 0 0);--muted-foreground:oklch(0.708 0 0);--accent:oklch(0.269 0 0);--accent-foreground:oklch(0.985 0 0);--destructive:oklch(0.396 0.141 25.723);--destructive-foreground:oklch(0.637 0.237 25.331);--border:oklch(0.269 0 0);--input:oklch(0.269 0 0);--ring:oklch(0.439 0 0);--chart-1:oklch(0.488 0.243 264.376);--chart-2:oklch(0.696 0.17 162.48);--chart-3:oklch(0.769 0.188 70.08);--chart-4:oklch(0.627 0.265 303.9);--chart-5:oklch(0.645 0.246 16.439);--sidebar:oklch(0.205 0 0);--sidebar-foreground:oklch(0.985 0 0);--sidebar-primary:oklch(0.488 0.243 264.376);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.269 0 0);--sidebar-accent-foreground:oklch(0.985 0 0);--sidebar-border:oklch(0.269 0 0);--sidebar-ring:oklch(0.439 0 0)}@layer base{*{@apply border-border outline-ring/50}body{@apply bg-background text-foreground;font-family:Sarabun,serif;font-size:16px;font-weight:400;line-height:26px}}
@@ -26,20 +26,22 @@ type __VLS_Props = {
26
26
  disabledMenu?: boolean;
27
27
  };
28
28
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
29
+ click: (id: string) => any;
29
30
  "blog-edit": () => any;
30
31
  "blog-pinned": (id: string) => any;
31
32
  "blog-unpinned": (id: string) => any;
32
33
  "blog-updated": (id: string, data: any) => any;
33
34
  "blog-deleted": (id: string) => any;
34
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onClick?: ((id: string) => any) | undefined;
35
37
  "onBlog-edit"?: (() => any) | undefined;
36
38
  "onBlog-pinned"?: ((id: string) => any) | undefined;
37
39
  "onBlog-unpinned"?: ((id: string) => any) | undefined;
38
40
  "onBlog-updated"?: ((id: string, data: any) => any) | undefined;
39
41
  "onBlog-deleted"?: ((id: string) => any) | undefined;
40
42
  }>, {
41
- disabledMenu: boolean;
42
43
  isMyProfile: boolean;
44
+ disabledMenu: boolean;
43
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
46
  declare const _default: typeof __VLS_export;
45
47
  export default _default;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="flex gap-[16px] cursor-pointer items-start" @click="onClick">
2
+ <div class="flex gap-[16px] cursor-pointer items-start" @click="$emit('click', props.item.id)">
3
3
  <Image v-if="displayImage" :src="displayImage" :width="227" :height="128" class="rounded-[4px]"
4
4
  fit="cover" />
5
5
  <div class="flex flex-col gap-[4px] w-full">
@@ -52,10 +52,8 @@
52
52
 
53
53
  <script setup>
54
54
  import { useConvert } from "#pukaad-ui/runtime/composables/useConvert";
55
- import { useRouter } from "vue-router";
56
55
  import { computed, ref, watch, onMounted, onBeforeUnmount } from "vue";
57
56
  const { convertNumber, convertDateToRelativeText } = useConvert();
58
- const router = useRouter();
59
57
  const props = defineProps({
60
58
  item: { type: Object, required: true },
61
59
  isMyProfile: { type: Boolean, required: false, default: false },
@@ -89,7 +87,7 @@ const displayDescription = computed(() => {
89
87
  if (props.item.description) return props.item.description;
90
88
  return extractTextFromDelta(props.item.content);
91
89
  });
92
- const emit = defineEmits(["blog-edit", "blog-pinned", "blog-unpinned", "blog-updated", "blog-deleted"]);
90
+ const emit = defineEmits(["click", "blog-edit", "blog-pinned", "blog-unpinned", "blog-updated", "blog-deleted"]);
93
91
  const isPinned = ref(props.item.is_pinned);
94
92
  watch(
95
93
  () => props.item.is_pinned,
@@ -97,7 +95,4 @@ watch(
97
95
  isPinned.value = !!val;
98
96
  }
99
97
  );
100
- const onClick = () => {
101
- router.push(`/blog/${props.item.id}`);
102
- };
103
98
  </script>
@@ -26,20 +26,22 @@ type __VLS_Props = {
26
26
  disabledMenu?: boolean;
27
27
  };
28
28
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
29
+ click: (id: string) => any;
29
30
  "blog-edit": () => any;
30
31
  "blog-pinned": (id: string) => any;
31
32
  "blog-unpinned": (id: string) => any;
32
33
  "blog-updated": (id: string, data: any) => any;
33
34
  "blog-deleted": (id: string) => any;
34
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onClick?: ((id: string) => any) | undefined;
35
37
  "onBlog-edit"?: (() => any) | undefined;
36
38
  "onBlog-pinned"?: ((id: string) => any) | undefined;
37
39
  "onBlog-unpinned"?: ((id: string) => any) | undefined;
38
40
  "onBlog-updated"?: ((id: string, data: any) => any) | undefined;
39
41
  "onBlog-deleted"?: ((id: string) => any) | undefined;
40
42
  }>, {
41
- disabledMenu: boolean;
42
43
  isMyProfile: boolean;
44
+ disabledMenu: boolean;
43
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
46
  declare const _default: typeof __VLS_export;
45
47
  export default _default;
@@ -3,7 +3,6 @@ type __VLS_Props = {
3
3
  item?: CardContentItem;
4
4
  state?: CardContentMenuState;
5
5
  isPinned?: boolean;
6
- isHidden?: boolean;
7
6
  isBookmarked?: boolean;
8
7
  isShow?: boolean;
9
8
  hidePin?: boolean;
@@ -16,7 +15,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
16
15
  onAction?: ((name: string) => any) | undefined;
17
16
  }>, {
18
17
  isPinned: boolean;
19
- isHidden: boolean;
20
18
  isBookmarked: boolean;
21
19
  isShow: boolean;
22
20
  hidePin: boolean;
@@ -17,11 +17,12 @@
17
17
 
18
18
  <script setup>
19
19
  import { computed } from "vue";
20
+ import { useNow } from "@vueuse/core";
21
+ import dayjs from "#pukaad-ui/runtime/utils/dayjs";
20
22
  const props = defineProps({
21
23
  item: { type: Object, required: false },
22
24
  state: { type: String, required: false },
23
25
  isPinned: { type: Boolean, required: false, default: false },
24
- isHidden: { type: Boolean, required: false, default: false },
25
26
  isBookmarked: { type: Boolean, required: false, default: false },
26
27
  isShow: { type: Boolean, required: false, default: false },
27
28
  hidePin: { type: Boolean, required: false, default: false },
@@ -33,8 +34,12 @@ const onActionClick = (action) => {
33
34
  if (action.clickable === false) return;
34
35
  emit("action", action.name);
35
36
  };
37
+ const now = useNow({ interval: 6e4 });
38
+ const isExpiringSoon = computed(() => {
39
+ const target = dayjs(props.item?.expireAt);
40
+ return target.isValid() && target.diff(now.value, "hour", true) < 24;
41
+ });
36
42
  const isPinned = computed(() => props.item?.pinned ?? props.isPinned);
37
- const isHidden = computed(() => props.item?.hidden ?? props.isHidden);
38
43
  const isBookmarked = computed(
39
44
  () => props.item?.bookmarked ?? props.isBookmarked
40
45
  );
@@ -54,30 +59,25 @@ const actions = computed(() => {
54
59
  }
55
60
  if (props.state === "business") {
56
61
  const result = [];
57
- if (!props.hidePin && !isHidden.value) {
62
+ if (!props.hidePin) {
58
63
  result.push({
59
64
  name: "pin",
60
65
  icon: "lucide:pin",
61
66
  isActive: isPinned.value
62
67
  });
63
68
  }
64
- if (!isPinned.value) {
65
- result.push({
66
- name: "hide",
67
- icon: isHidden.value ? "lucide:eye-off" : "lucide:eye",
68
- isActive: isHidden.value
69
- });
70
- }
71
69
  if (!props.hidePreview) {
72
70
  result.push({
73
71
  name: "preview",
74
72
  icon: "lucide:tv-minimal-play"
75
73
  });
76
74
  }
77
- result.push({
78
- name: "renew",
79
- icon: "lucide:history"
80
- });
75
+ if (isExpiringSoon.value) {
76
+ result.push({
77
+ name: "renew",
78
+ icon: "lucide:history"
79
+ });
80
+ }
81
81
  result.push({
82
82
  name: "delete",
83
83
  icon: "lucide:trash-2",
@@ -3,7 +3,6 @@ type __VLS_Props = {
3
3
  item?: CardContentItem;
4
4
  state?: CardContentMenuState;
5
5
  isPinned?: boolean;
6
- isHidden?: boolean;
7
6
  isBookmarked?: boolean;
8
7
  isShow?: boolean;
9
8
  hidePin?: boolean;
@@ -16,7 +15,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
16
15
  onAction?: ((name: string) => any) | undefined;
17
16
  }>, {
18
17
  isPinned: boolean;
19
- isHidden: boolean;
20
18
  isBookmarked: boolean;
21
19
  isShow: boolean;
22
20
  hidePin: boolean;
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
7
7
  onFollow?: ((isFollowing: boolean) => any) | undefined;
8
8
  }>, {
9
9
  type: "article" | "media" | "sale-info";
10
- preview: boolean;
11
10
  disabledPadding: boolean;
11
+ preview: boolean;
12
12
  optionMenuButtonType: "solid" | "text";
13
13
  actionsHidden: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
7
7
  onFollow?: ((isFollowing: boolean) => any) | undefined;
8
8
  }>, {
9
9
  type: "article" | "media" | "sale-info";
10
- preview: boolean;
11
10
  disabledPadding: boolean;
11
+ preview: boolean;
12
12
  optionMenuButtonType: "solid" | "text";
13
13
  actionsHidden: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -25,7 +25,6 @@ type __VLS_Props = {
25
25
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
26
  disabled: boolean;
27
27
  id: string;
28
- state: string;
29
28
  itemCount: Count;
30
29
  itemActive: Reacted;
31
30
  padding: string | number;
@@ -33,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
33
32
  disabledDividerTop: boolean;
34
33
  disabledDividerBottom: boolean;
35
34
  iconSize: number | string;
35
+ state: string;
36
36
  loginPath: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
@@ -25,7 +25,6 @@ type __VLS_Props = {
25
25
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
26
  disabled: boolean;
27
27
  id: string;
28
- state: string;
29
28
  itemCount: Count;
30
29
  itemActive: Reacted;
31
30
  padding: string | number;
@@ -33,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
33
32
  disabledDividerTop: boolean;
34
33
  disabledDividerBottom: boolean;
35
34
  iconSize: number | string;
35
+ state: string;
36
36
  loginPath: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
@@ -37,16 +37,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
37
37
  }>, {
38
38
  item: CardReviewProps;
39
39
  disabledMenu: boolean;
40
+ isProfile: boolean;
41
+ disabledLike: boolean;
42
+ allowReply: boolean;
43
+ replyAvatar: string;
40
44
  place: {
41
45
  id: string | number;
42
46
  name?: string;
43
47
  address?: string;
44
48
  cover?: string;
45
49
  };
46
- isProfile: boolean;
47
- disabledLike: boolean;
48
- allowReply: boolean;
49
- replyAvatar: string;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const _default: typeof __VLS_export;
52
52
  export default _default;
@@ -37,16 +37,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
37
37
  }>, {
38
38
  item: CardReviewProps;
39
39
  disabledMenu: boolean;
40
+ isProfile: boolean;
41
+ disabledLike: boolean;
42
+ allowReply: boolean;
43
+ replyAvatar: string;
40
44
  place: {
41
45
  id: string | number;
42
46
  name?: string;
43
47
  address?: string;
44
48
  cover?: string;
45
49
  };
46
- isProfile: boolean;
47
- disabledLike: boolean;
48
- allowReply: boolean;
49
- replyAvatar: string;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const _default: typeof __VLS_export;
52
52
  export default _default;
@@ -9,13 +9,33 @@ export interface User {
9
9
  is_my_profile?: boolean;
10
10
  profile_verify?: boolean;
11
11
  }
12
+ type __VLS_Props = {
13
+ /** ไม่พาไปหน้าโปรไฟล์ /@:id ตอนกดการ์ด (แอปที่ไม่มีหน้านี้) */
14
+ disabledLink?: boolean;
15
+ /** ซ่อนปุ่มติดตาม (เช่นรายการผู้ติดตามของ business ที่มีแค่เมนู ⋮) */
16
+ hideFollow?: boolean;
17
+ };
12
18
  type __VLS_ModelProps = {
13
19
  modelValue?: User;
14
20
  };
15
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
+ declare var __VLS_19: {};
23
+ type __VLS_Slots = {} & {
24
+ actions?: (props: typeof __VLS_19) => any;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
27
  "update:modelValue": (value: User) => any;
17
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
29
  "onUpdate:modelValue"?: ((value: User) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ }>, {
31
+ disabledLink: boolean;
32
+ hideFollow: boolean;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
35
  declare const _default: typeof __VLS_export;
21
36
  export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -1,16 +1,31 @@
1
1
  <template>
2
- <div class="flex gap-[16px] items-center justify-between cursor-pointer transition-colors" @click="onClickCard">
3
- <div class="flex gap-[8px]">
2
+ <div
3
+ class="flex gap-[16px] items-center justify-between cursor-pointer transition-colors"
4
+ @click="onClickCard"
5
+ >
6
+ <div class="flex flex-1 min-w-0 gap-[8px]">
4
7
  <Avatar :src="modelValue?.avatar" :alt="modelValue?.name" :size="40" />
5
- <div class="flex flex-col gap-[4px]">
8
+ <div class="flex flex-col flex-1 min-w-0 gap-[4px]">
6
9
  <div class="font-body-large-prominent flex items-center gap-[4px]">
7
10
  {{ modelValue?.name }}
11
+ <Icon
12
+ v-if="modelValue?.profile_verify"
13
+ name="pukaad-verify"
14
+ :size="16"
15
+ class="shrink-0"
16
+ />
8
17
  </div>
9
18
  <div class="flex flex-col gap-[4px] font-body-small text-gray">
10
19
  <div class="flex items-center gap-[4px]">
11
- <div>ผู้ติดตาม {{ $convert.convertNumber(modelValue?.follower_count || 0) }}</div>
20
+ <div>
21
+ ผู้ติดตาม
22
+ {{ $convert.convertNumber(modelValue?.follower_count || 0) }}
23
+ </div>
12
24
  <div>•</div>
13
- <div>กำลังเผยแพร่ {{ $convert.convertNumber(modelValue?.public_count || 0) }}</div>
25
+ <div>
26
+ กำลังเผยแพร่
27
+ {{ $convert.convertNumber(modelValue?.public_count || 0) }}
28
+ </div>
14
29
  </div>
15
30
  <div v-if="modelValue?.description" class="line-clamp-2">
16
31
  {{ modelValue?.description }}
@@ -18,10 +33,18 @@
18
33
  </div>
19
34
  </div>
20
35
  </div>
21
- <Button v-if="!modelValue?.is_my_profile" :variant="modelValue?.is_following ? 'default' : 'outline'"
22
- :color="modelValue?.is_following ? 'default' : 'primary'" @click.stop="onFollowToggle">
36
+ <Button
37
+ v-if="!modelValue?.is_my_profile && !hideFollow"
38
+ :variant="modelValue?.is_following ? 'default' : 'outline'"
39
+ :color="modelValue?.is_following ? 'default' : 'primary'"
40
+ @click.stop="onFollowToggle"
41
+ >
23
42
  {{ modelValue?.is_following ? "\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E41\u0E25\u0E49\u0E27" : "\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21" }}
24
43
  </Button>
44
+ <!-- เช่นเมนู ⋮ ของแต่ละแอป — กดแล้วไม่เปิดโปรไฟล์ -->
45
+ <div v-if="$slots.actions" class="shrink-0" @click.stop>
46
+ <slot name="actions" />
47
+ </div>
25
48
  </div>
26
49
  </template>
27
50
 
@@ -29,11 +52,16 @@
29
52
  import { ref } from "vue";
30
53
  import { useRouter } from "vue-router";
31
54
  import { useApi } from "../../../composables/useApi";
55
+ const props = defineProps({
56
+ disabledLink: { type: Boolean, required: false, default: false },
57
+ hideFollow: { type: Boolean, required: false, default: false }
58
+ });
32
59
  const modelValue = defineModel({ type: Object, ...{
33
60
  default: () => ({})
34
61
  } });
35
62
  const router = useRouter();
36
63
  const onClickCard = () => {
64
+ if (props.disabledLink) return;
37
65
  if (modelValue.value?.id) {
38
66
  router.push(`/@${modelValue.value.id}`);
39
67
  }
@@ -9,13 +9,33 @@ export interface User {
9
9
  is_my_profile?: boolean;
10
10
  profile_verify?: boolean;
11
11
  }
12
+ type __VLS_Props = {
13
+ /** ไม่พาไปหน้าโปรไฟล์ /@:id ตอนกดการ์ด (แอปที่ไม่มีหน้านี้) */
14
+ disabledLink?: boolean;
15
+ /** ซ่อนปุ่มติดตาม (เช่นรายการผู้ติดตามของ business ที่มีแค่เมนู ⋮) */
16
+ hideFollow?: boolean;
17
+ };
12
18
  type __VLS_ModelProps = {
13
19
  modelValue?: User;
14
20
  };
15
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
+ declare var __VLS_19: {};
23
+ type __VLS_Slots = {} & {
24
+ actions?: (props: typeof __VLS_19) => any;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
27
  "update:modelValue": (value: User) => any;
17
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
29
  "onUpdate:modelValue"?: ((value: User) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ }>, {
31
+ disabledLink: boolean;
32
+ hideFollow: boolean;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
35
  declare const _default: typeof __VLS_export;
21
36
  export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -26,13 +26,13 @@ declare const __VLS_export: import("vue").DefineComponent<ChatConversationItemPr
26
26
  name: string;
27
27
  avatar: string | null;
28
28
  muted: boolean;
29
+ disabledMenu: boolean;
29
30
  preview: string;
30
31
  to: string;
31
32
  active: boolean;
32
33
  typing: boolean;
33
34
  unreadCount: number;
34
35
  pinned: boolean;
35
- disabledMenu: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -26,13 +26,13 @@ declare const __VLS_export: import("vue").DefineComponent<ChatConversationItemPr
26
26
  name: string;
27
27
  avatar: string | null;
28
28
  muted: boolean;
29
+ disabledMenu: boolean;
29
30
  preview: string;
30
31
  to: string;
31
32
  active: boolean;
32
33
  typing: boolean;
33
34
  unreadCount: number;
34
35
  pinned: boolean;
35
- disabledMenu: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -81,16 +81,16 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
81
81
  toggle: () => void;
82
82
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
83
  close: (payload: DisplayVideoAction) => any;
84
- fullscreen: (payload: DisplayVideoAction) => any;
85
- "play-click": (payload: DisplayVideoAction) => any;
86
84
  prev: (payload: DisplayVideoAction) => any;
87
85
  next: (payload: DisplayVideoAction) => any;
86
+ fullscreen: (payload: DisplayVideoAction) => any;
87
+ "play-click": (payload: DisplayVideoAction) => any;
88
88
  }, string, import("vue").PublicProps, Readonly<DisplayVideoProps> & Readonly<{
89
89
  onClose?: ((payload: DisplayVideoAction) => any) | undefined;
90
- onFullscreen?: ((payload: DisplayVideoAction) => any) | undefined;
91
- "onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
92
90
  onPrev?: ((payload: DisplayVideoAction) => any) | undefined;
93
91
  onNext?: ((payload: DisplayVideoAction) => any) | undefined;
92
+ onFullscreen?: ((payload: DisplayVideoAction) => any) | undefined;
93
+ "onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
94
94
  }>, {
95
95
  src: string;
96
96
  fullWidth: boolean;
@@ -275,7 +275,8 @@ const onPlayClick = () => {
275
275
  const el = videoRef.value;
276
276
  if (el) {
277
277
  userToggled = true;
278
- if (el.paused) el.play();
278
+ if (el.paused) el.play().catch(() => {
279
+ });
279
280
  else el.pause();
280
281
  }
281
282
  emit("play-click", actionPayload());
@@ -81,16 +81,16 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
81
81
  toggle: () => void;
82
82
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
83
  close: (payload: DisplayVideoAction) => any;
84
- fullscreen: (payload: DisplayVideoAction) => any;
85
- "play-click": (payload: DisplayVideoAction) => any;
86
84
  prev: (payload: DisplayVideoAction) => any;
87
85
  next: (payload: DisplayVideoAction) => any;
86
+ fullscreen: (payload: DisplayVideoAction) => any;
87
+ "play-click": (payload: DisplayVideoAction) => any;
88
88
  }, string, import("vue").PublicProps, Readonly<DisplayVideoProps> & Readonly<{
89
89
  onClose?: ((payload: DisplayVideoAction) => any) | undefined;
90
- onFullscreen?: ((payload: DisplayVideoAction) => any) | undefined;
91
- "onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
92
90
  onPrev?: ((payload: DisplayVideoAction) => any) | undefined;
93
91
  onNext?: ((payload: DisplayVideoAction) => any) | undefined;
92
+ onFullscreen?: ((payload: DisplayVideoAction) => any) | undefined;
93
+ "onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
94
94
  }>, {
95
95
  src: string;
96
96
  fullWidth: boolean;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  "onExplore-places"?: (() => any) | undefined;
31
31
  "onRequire-auth"?: (() => any) | undefined;
32
32
  }>, {
33
+ isMyProfile: boolean;
33
34
  profileId: string;
34
35
  defaultTab: "followers" | "following" | "favorites";
35
- isMyProfile: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  "onExplore-places"?: (() => any) | undefined;
31
31
  "onRequire-auth"?: (() => any) | undefined;
32
32
  }>, {
33
+ isMyProfile: boolean;
33
34
  profileId: string;
34
35
  defaultTab: "followers" | "following" | "favorites";
35
- isMyProfile: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -50,12 +50,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
50
50
  label: string;
51
51
  name: string;
52
52
  required: boolean;
53
- placeholder: string;
54
53
  layout: "vertical" | "horizontal";
55
- gap: number | string;
54
+ placeholder: string;
56
55
  labelDetail: string;
57
56
  placeholderDetail: string;
58
57
  requiredDetail: boolean;
58
+ gap: number | string;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
60
  declare const _default: typeof __VLS_export;
61
61
  export default _default;