@ozguraltan/strapi-content-input 1.0.12 → 1.0.22
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/README.md +187 -54
- package/dist/admin/{AnalyticsHubPage-DNREITPq.js → AnalyticsHubPage-B1_chQkG.js} +60 -9
- package/dist/admin/{AnalyticsHubPage-Dj4roAe0.mjs → AnalyticsHubPage-DUj3D2kA.mjs} +60 -9
- package/dist/admin/{ContentInputField-Ko-r12jl.mjs → ContentInputField-BrtpTCDd.mjs} +11898 -903
- package/dist/admin/{ContentInputField-2hk9xG8p.js → ContentInputField-CQFQxxgm.js} +11934 -921
- package/dist/admin/{SurveyWidgetEditor-B3F4DE5r.js → SurveyWidgetEditor-C5Uvyf_h.js} +3992 -1086
- package/dist/admin/{SurveyWidgetEditor-B1S83aBE.mjs → SurveyWidgetEditor-DGSwgTzR.mjs} +4012 -1107
- package/dist/admin/{en-bneQpRJa.js → en-BZg845za.js} +2 -2
- package/dist/admin/{en-DnLdDKyq.mjs → en-C9LN2PJY.mjs} +2 -2
- package/dist/admin/{index-gn-4eO6g.mjs → index-Dc7AFLOj.mjs} +16 -6
- package/dist/admin/{index-B4FpXxnK.js → index-i0NfSYto.js} +16 -6
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/color-codes/ColorCodesManager.d.ts +10 -0
- package/dist/admin/src/components/common/CIAspectRatioField.d.ts +35 -0
- package/dist/admin/src/components/common/CIColorField.d.ts +13 -0
- package/dist/admin/src/components/common/CIImageSettingsControl.d.ts +17 -0
- package/dist/admin/src/components/widgets/CustomCardWidgetEditor.d.ts +84 -0
- package/dist/admin/src/components/widgets/DataTableWidgetEditor.d.ts +65 -0
- package/dist/admin/src/components/widgets/EntityCardWidgetEditor.d.ts +10 -0
- package/dist/admin/src/components/widgets/HeroSliderStage.d.ts +156 -0
- package/dist/admin/src/components/widgets/HeroSliderWidgetEditor.d.ts +21 -0
- package/dist/admin/src/components/widgets/StrapiMediaPicker.d.ts +2 -0
- package/dist/admin/src/components/widgets/SurveyWidgetEditor.d.ts +1 -1
- package/dist/admin/src/core/canvasClasses.d.ts +1 -0
- package/dist/admin/src/core/colorUtils.d.ts +30 -0
- package/dist/admin/src/core/sampleData.d.ts +2 -1
- package/dist/admin/src/core/types.d.ts +12 -0
- package/dist/admin/src/core/useColorCodes.d.ts +43 -0
- package/dist/admin/{tr-00QqO0E7.mjs → tr-MtQFY92V.mjs} +2 -2
- package/dist/admin/{tr-O0nhB9er.js → tr-ZEmzAvKR.js} +2 -2
- package/dist/server/index.js +2162 -286
- package/dist/server/index.mjs +2162 -286
- package/dist/server/src/config/index.d.ts +4 -0
- package/dist/server/src/content-types/ci-color-palette/schema.json.d.ts +52 -0
- package/dist/server/src/content-types/index.d.ts +50 -0
- package/dist/server/src/controllers/ci-color.d.ts +14 -0
- package/dist/server/src/controllers/ci-image.d.ts +11 -2
- package/dist/server/src/controllers/index.d.ts +13 -0
- package/dist/server/src/index.d.ts +124 -0
- package/dist/server/src/services/ci-color.d.ts +127 -0
- package/dist/server/src/services/index.d.ts +57 -0
- package/dist/server/src/utils/image-variants.d.ts +74 -0
- package/dist/server/src/utils/mailer.d.ts +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
# @ozguraltan/strapi-content-input
|
|
2
2
|
|
|
3
|
-
**Visual Page & Content Builder (`JSONB` Custom Field),
|
|
3
|
+
**Visual Page & Content Builder (`JSONB` Custom Field), Hero Slider, Data Tables, Custom Card Studio, Color Codes Theme Engine, Dynamic Form Studio & Enterprise Survey Hub for Strapi v5**
|
|
4
4
|
|
|
5
|
-
`@ozguraltan/strapi-content-input` brings an enterprise-grade visual page and layout builder to **Strapi v5** as a native `json` (`PostgreSQL JSONB`) Custom Field (`plugin::content-input.content-input`), paired with official Vue 3 / Nuxt 3/4 storefront renderers for **Vuetify (`v3.5+` & `v4.+`)** and **Element Plus (`>=2.7.0 <4.0.0`)**.
|
|
5
|
+
`@ozguraltan/strapi-content-input` brings an enterprise-grade visual page and layout builder (**18 built-in widgets**) to **Strapi v5** as a native `json` (`PostgreSQL JSONB`) Custom Field (`plugin::content-input.content-input`), paired with official Vue 3 / Nuxt 3/4 storefront renderers for **Vuetify (`v3.5+` & `v4.+`)** and **Element Plus (`>=2.7.0 <4.0.0`)**.
|
|
6
6
|
|
|
7
7
|
- **Strapi Plugin Package:** `@ozguraltan/strapi-content-input`
|
|
8
8
|
- **Custom Field UID:** `plugin::content-input.content-input`
|
|
9
9
|
- **Plugin Content-Types:**
|
|
10
|
+
- `plugin::content-input.ci-color-palette` (`ci_color_palettes` — Semantic & custom brand **Color Codes** palettes with `HEX`, `RGB/RGBA` & `--ci-color-*` CSS variables)
|
|
11
|
+
- `plugin::content-input.ci-template` (`ci_templates` — Reusable Row, Block, Widget & **Custom Card Design** templates)
|
|
10
12
|
- `plugin::content-input.ci-menu` (`ci_menus` — Reusable hierarchical menus)
|
|
11
13
|
- `plugin::content-input.ci-form` (`ci_forms` — Dynamic `cms-core`-style forms, validation rules & mail configs)
|
|
12
14
|
- `plugin::content-input.ci-form-submission` (`ci_form_submissions` — Recorded form submissions & delivery logs)
|
|
13
15
|
- `plugin::content-input.ci-survey` (`ci_surveys` — Multi-step surveys, quick polls, conditional skip logic, lifecycle & anti-duplicate rules)
|
|
14
16
|
- `plugin::content-input.ci-survey-response` (`ci_survey_responses` — Recorded survey votes, completion duration, locale & salted voter hash)
|
|
15
|
-
- **Strapi Admin Left Sidebar Page:** `/admin/plugins/content-input` (**Surveys &
|
|
17
|
+
- **Strapi Admin Left Sidebar Page:** `/admin/plugins/content-input` (**Surveys, Forms & Color Codes Hub**)
|
|
16
18
|
- **Database Column Type:** `json` (stored as `JSONB` in PostgreSQL)
|
|
19
|
+
- **CI/CD & Packaging:** `dist/` is intentionally untracked in Git (`.gitignore`); packages compile automatically in GitLab CI (`.gitlab-ci.yml`) and on `npm install` via `"prepare": "npm run build"`.
|
|
17
20
|
- **Companion Storefront Renderers:**
|
|
18
21
|
- **Vuetify (3.5+ / 4.+):** `@ozguraltan/strapi-content-input-nuxt-vuetify` (`npx strapi-content-input-vuetify eject`)
|
|
19
22
|
- **Element Plus (2.7+ / 3.x):** `@ozguraltan/strapi-content-input-nuxt-element-plus` (`npx strapi-content-input-ep eject`)
|
|
@@ -34,15 +37,31 @@ npm install @ozguraltan/strapi-content-input
|
|
|
34
37
|
npm install git+ssh://git@gitlab.com:ozguraltan/strapi-content-input.git
|
|
35
38
|
```
|
|
36
39
|
|
|
37
|
-
### Step 2: Enable in `config/plugins.ts`
|
|
40
|
+
### Step 2: Enable in `config/plugins.ts` & `config/features.ts`
|
|
38
41
|
```ts
|
|
39
|
-
|
|
42
|
+
// config/plugins.ts
|
|
43
|
+
export default ({ env }) => ({
|
|
40
44
|
'content-input': {
|
|
41
45
|
enabled: true,
|
|
46
|
+
config: {
|
|
47
|
+
// Optional — defaults work out of the box even without .env variables:
|
|
48
|
+
imageVariantFolder: env('CI_IMAGE_VARIANT_FOLDER', 'ci-optimized'), // CDN subfolder for sharp WebP variants
|
|
49
|
+
imageVariantFormat: env('CI_IMAGE_VARIANT_FORMAT', 'webp'), // 'webp' (preserves PNG alpha transparency)
|
|
50
|
+
imageVariantQuality: env.int('CI_IMAGE_VARIANT_QUALITY', 85),
|
|
51
|
+
redirectProxyToCdn: env.bool('CI_IMAGE_REDIRECT_CDN', true), // 302 redirect /api/content-input/image -> CDN
|
|
52
|
+
},
|
|
42
53
|
},
|
|
43
54
|
});
|
|
44
55
|
```
|
|
45
56
|
|
|
57
|
+
For **Strapi v5.61+**, enable `useLegacyMediaLibrary: true` in `config/features.ts` so Strapi's full-featured classic **Media Library Modal** (with thumbnails, pagination, folder management, upload, and built-in Cropper.js image cropping) opens across all ContentInput widgets and full-screen studios:
|
|
58
|
+
```ts
|
|
59
|
+
// config/features.ts
|
|
60
|
+
export default () => ({
|
|
61
|
+
useLegacyMediaLibrary: true,
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
46
65
|
### Step 3: Configure Content Security Policy in `config/middlewares.ts`
|
|
47
66
|
To allow YouTube iframe embeds and external/CDN media previews inside the Strapi Admin panel:
|
|
48
67
|
```ts
|
|
@@ -107,13 +126,21 @@ export default [
|
|
|
107
126
|

|
|
108
127
|

|
|
109
128
|
|
|
110
|
-
### 2.2
|
|
111
|
-
- **
|
|
112
|
-
- **
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
|
|
129
|
+
### 2.2 Universal `sharp` WebP + CDN Variant Engine (`ci-optimized/`) & Native Media Library Modal
|
|
130
|
+
- **Official Strapi Media Library Modal (`components['media-library']` in `StrapiMediaPicker`):** Every media field across all 18 widgets and full-screen studios (`heroSlider` background image/video & floating layer, `customCard` media & author avatar, `entityCard`, `survey` image choice, `dataTable` image cells, `gallery`, `singleImage`, `youtubeVideo`, `banner`, `button`, `StyleControls` Row/Block `bgImage`, and `RichHtmlEditor`) opens Strapi's **official native Media Library Dialog** (`z-index: 310` cleanly above all `200–270` ContentInput studios) with full-color thumbnails, pagination, folder navigation/creation, drag-and-drop upload, asset metadata editing, and Strapi's built-in **Cropper.js** cropper — plus an optional 1-click inline `sharp` **Crop & Rotate Studio** (`Free`, `1:1`, `16:9`, `4:3`, `3:2`, `4:5`, `-90°/+90°`, `Duplicate & Crop` or `Crop Original Asset`).
|
|
131
|
+
- **Default `ci-optimized/` CDN Subfolder & Transparent-Safe WebP Conversion:**
|
|
132
|
+
- All `sharp`-generated variants are uploaded to Strapi's active Upload Provider (Azure Blob Storage, AWS S3, Cloudflare R2, GCS, Cloudinary) inside the **`ci-optimized`** folder **by default** (`https://<your-cdn>/.../ci-optimized/ci_fit_500x500_<hash>.webp`) — even when `CI_IMAGE_VARIANT_FOLDER` is **not** set in `.env` (override via `CI_IMAGE_VARIANT_FOLDER` or set `'/'` to write at the bucket root).
|
|
133
|
+
- Raster images (`JPEG`, `PNG`, `WebP`, `AVIF`, `TIFF`, `BMP`) are converted to **`WebP`** using `sharp.webp({ quality: 85, alphaQuality: 100, effort: 4 })`, preserving **full 8-bit alpha transparency** for transparent PNG logos and floating layers.
|
|
134
|
+
- **`SVG`**, animated **`GIF`**, video (`mp4`, `webm`), audio, and documents (`PDF`, `DOCX`, `XLSX`, `ZIP`) automatically bypass `sharp` untouched.
|
|
135
|
+
- **JSONB `formats` Persistence on Selection + Save/Publish (Zero Storefront Proxy Calls):**
|
|
136
|
+
- Eagerly on Media Library selection (`POST /content-input/media/optimize`) **and** automatically during Strapi `beforeCreate` / `beforeUpdate` lifecycle hooks on **Save / Publish**, ContentInput generates missing `ci_fit_WxH`, `ci_widen_Wx0`, and `ci_auto_Wx0` variants across **all visual media slots** (`gallery`, `singleImage`, `banner`, `youtubeVideo`, Row/Block `bgImage`, `heroSlider`, `customCard`, `entityCard`, `survey`, `dataTable`, and `HtmlEditor` `<img>`), persists them in `plugin::upload.file.formats`, and embeds `optimized_url`, `original_url`, and `formats` directly inside the `ContentInput` JSONB snapshot.
|
|
137
|
+
- Storefront Nuxt renderers read `asset.formats['ci_fit_WxH'].url` / `asset.optimized_url` directly so `<img src>` and CSS `background-image` point straight to your **CDN URL** with **zero** calls to `/api/content-input/image`!
|
|
138
|
+
- Gallery Lightbox Popups use crisp `ci_auto_1920x0` WebP (while `process: 'none'` serves `original_url` untouched).
|
|
139
|
+
- **302 CDN Redirect on `GET /api/content-input/image`:**
|
|
140
|
+
- For legacy un-resaved entries or headless on-the-fly usage, `GET /api/content-input/image` generates/reuses the CDN variant and responds with an **HTTP `302` redirect** to the permanent `https://` CDN URL (or returns `{ url, formatKey }` JSON when `?json=1` or `Accept: application/json` is passed; falls back to immutable byte-stream in local `/uploads/...` setups).
|
|
141
|
+
- **Official Swiper.js Engine + Native Framework Navigation Buttons (`CISwiperNavButtons`):**
|
|
142
|
+
- Supports touch/mouse drag-to-swipe (`grabCursor`), mousewheel scrolling (`mousewheel`), transition effects (`slide`, `fade`, `cube`, `coverflow`, `flip`), `slidesPerView`, `spaceBetween`, `loop`, `autoplay`, and `pagination`.
|
|
143
|
+
- Replaces Swiper's oversized raw `.swiper-button-prev`/`.swiper-button-next` chevrons across `heroSlider`, `gallery`, `entityCard`, and `customCard` with genuine Vuetify `<v-btn>` and Element Plus `<el-button>` components supporting selectable **`navButtonStyle`** (`'fab' | 'outlined' | 'tonal' | 'icon' | 'square'`), **`navButtonSize`** (`'sm' | 'md' | 'lg'`), and Color Codes / `#HEX` / `RGBA` **`navButtonColor`**.
|
|
117
144
|
|
|
118
145
|
---
|
|
119
146
|
|
|
@@ -192,24 +219,72 @@ MAIL_ENCRYPTION=tls
|
|
|
192
219
|
|
|
193
220
|
---
|
|
194
221
|
|
|
195
|
-
## 4. Linked Strapi `entityCard` Widget (
|
|
222
|
+
## 4. Linked Strapi `entityCard` Widget (Single Card, Swiper.js Carousel & Grid + Collection Feed)
|
|
223
|
+
|
|
224
|
+
The **`entityCard`** widget links to Strapi Collection-Type entries (e.g. `api::page.page`, `api::article.article`, `api::product.product`) and renders single cards, multi-item **Swiper.js Carousels**, or responsive grids:
|
|
225
|
+
1. **Three Display Modes (`options.displayMode`):**
|
|
226
|
+
- `'single'` (default, backward-compatible): Displays one linked Strapi entity card.
|
|
227
|
+
- `'swiper'`: Renders multiple cards inside official **Swiper.js** (`slidesPerView` responsive `[sm, md, lg, xl, 2xl]`, `spaceBetween`, `loop`, `autoplay`, `navigation`, `pagination`, `mousewheel`, `effect`: `slide` / `coverflow` / `cards`).
|
|
228
|
+
- `'grid'`: Renders multiple linked entity cards in a responsive multi-column CSS grid.
|
|
229
|
+
2. **Two Data Modes (`data.sourceMode`):**
|
|
230
|
+
- **Hand-Picked Multi-Entity List (`items[]`):** Pick multiple Strapi records, drag/reorder them, and set optional per-card manual `overrides`.
|
|
231
|
+
- **Automatic Collection Feed (`collectionFeed`):** Automatically pulls the latest `limit` published records from any Strapi collection (`GET ${baseUrl}/api/content-input/entity-cards?uid=...&sort=publishedAt:desc&limit=8`).
|
|
232
|
+
3. **Automatic Entity Fallback + Granular Overrides:** Any override (`image`, `title`, `subtitle`, `description`, `badgeText`, `buttonText`, `url`, `target`, `accentColor`) left blank automatically inherits from the linked Strapi record (including extracting summary text & media from `ContentInput` JSONB!). Each card item can also define its own per-card **`accentColor`** via `<CIColorField />` (Color Codes token, `#HEX`, or `RGBA`).
|
|
233
|
+
4. **Card Carousel Height Equalization (`options.heightMode` & `options.cardHeight`):** Supports `'equal'` (default — stretches all cards in a Swiper row or CSS grid to match the tallest card while pinning CTA buttons flush at the bottom), `'fixed'` (explicit `cardHeight` in `px`, e.g. `420px`), and `'auto'` (natural content height).
|
|
234
|
+
5. **Universal Card Props & Color Codes (`options.cardProps`):** `layout` (`vertical` | `horizontal` | `overlay`), `variant` (`elevated` | `outlined` | `flat` | `tonal`), `elevation`, `rounded`, `color`, `textColor`, `accentColor` (all backed by `<CIColorField />` + Color Codes tokens), `imageHeight`, `showBadge`, `showButton`, `buttonVariant`, `hoverEffect`.
|
|
235
|
+
6. **External Override Support:** Override globally via `:components="{ entityCard: MyEntityCard }"` or inline via `<template #widget-entityCard="{ entityCardData }">`.
|
|
236
|
+
|
|
237
|
+
---
|
|
196
238
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
239
|
+
## 5. Color Codes Theme Engine, Hero Slider, Data Tables & Custom Card Designer
|
|
240
|
+
|
|
241
|
+
### 5.1 Color Codes (`plugin::content-input.ci-color-palette` & `<CIColorField />`)
|
|
242
|
+
Manage site-wide semantic and custom brand color tokens from **two places** in Strapi Admin (`Left Sidebar -> Surveys, Forms & Colors -> Color Codes` tab, or the **🎨 Color Codes** button in the Visual Editor top bar):
|
|
243
|
+
- **13 Semantic Tokens + Unlimited Custom Tokens:** `primary`, `secondary`, `accent`, `success`, `warning`, `error`, `info`, `surface`, `surfaceAlt`, `background`, `textPrimary`, `textSecondary`, `border` plus custom tokens (e.g. `brandGold`, `ctaCoral`).
|
|
244
|
+
- **Multi-Mode Color Input Everywhere (`Visual Spectrum + #HEX + RGB/RGBA`):**
|
|
245
|
+
- Interactive 2D Saturation/Brightness Spectrum + Hue & Alpha (`0%–100%`) sliders.
|
|
246
|
+
- Explicit **`#HEX`** input (`#RRGGBB` & 8-digit `#RRGGBBAA`) with 1-click copy.
|
|
247
|
+
- Explicit **`RGB / RGBA`** numeric spinboxes (`R: 0–255`, `G: 0–255`, `B: 0–255`, `A: 0–100%`) AND direct `rgb(...)` / `rgba(...)` CSS string input.
|
|
248
|
+
- **"+ Save This Color to Color Codes"**: Save any custom `#HEX` / `rgba(...)` color directly into the active Color Codes palette on the fly from any widget/row/block inspector!
|
|
249
|
+
- **Live `--ci-color-*` CSS Variable Binding:** Widgets bound to a token store `var(--ci-color-primary, #4f46e5)` (plus automatic `--ci-color-primary-rgb` and `-soft` alpha variants). `<ContentInputPreview>` in both Nuxt packages fetches `GET ${baseUrl}/api/content-input/color-codes` (or accepts `:theme-slug="'emerald-fintech'"` / `:color-variables="{ '--ci-color-primary': '#059669' }"`) so switching palettes updates the entire storefront instantly without editing pages!
|
|
250
|
+
|
|
251
|
+
### 5.2 Hero Slider (`heroSlider` — Homepage Multi-Layer Banner Engine & Scaled Live Studio)
|
|
252
|
+
Powered by official **Swiper.js** (`EffectFade`, `EffectCreative`, `EffectCoverflow`, `EffectCube`, `EffectFlip`, `Parallax`, `Autoplay`, `Navigation`, `Pagination`, `Mousewheel`):
|
|
253
|
+
- **Scaled Virtual Viewport Studio (`1280px` / `768px` / `390px` Mobile Portrait) & Live FX Playback:** The full-screen **Hero Slider Live Studio** renders slides at exact target viewport widths (`1280px` Desktop, `768px` Tablet, `390px` Mobile Portrait bezel) scaled dynamically with `ResizeObserver` (`Fit`, `50%`, `75%`, `100%`, `⤢ Zen` mode, `# Grid` `12×12` guide) and live `swiper/react` transition playback (`◀ ▶`, `↻ Efektleri Oynat`, `▶ Auto`).
|
|
254
|
+
- **Freeform Layer Positioning (`X, Y, Width, Height, Z-Index`) + Responsive Overrides:** Each layer (`badge`, `heading`, `subtitle`, `buttons`, `floating_image`, `stats`) supports `positionMode: 'flow' | 'free'`. In `'free'` mode, drag layers directly on the scaled stage or resize with **8 handles** (`dx / effectiveScale` compensated + `50%` center snap guides), use the **9-point quick-align matrix**, and define per-device coordinate overrides (`box`, `boxTablet`, `boxMobile`), `tabletFontSize` / `mobileFontSize`, and `hiddenOn`.
|
|
255
|
+
- **19 Common Aspect Ratio Presets + Manual `W : H` / Pixel Ratio (`<CIAspectRatioField />`):** Choose from **19 categorized presets** (`4:1`, `3:1`, `32:9`, `2.40:1`, `21:9`, `2:1`, `16:9`, `16:10`, `3:2`, `4:3`, `5:4`, `1:1`, `4:5`, `3:4`, `5:7`, `2:3`, `9:16`, `9:19.5`, `9:21`) or enter any custom ratio / pixel pair (`1920:680`, `2.35:1`) globally and per slide across Desktop, Tablet, and Mobile Portrait (also supported in `gallery`).
|
|
256
|
+
- **Dedicated Mobile Portrait Slides & Media Overrides:** Set per-slide `deviceVisibility` (`'all' | 'desktop_tablet' | 'mobile_only' | 'desktop_only' | 'tablet_only'`), clone a desktop slide into a `4:5` vertical mobile slide in 1 click via **"📱 Mobil Portrait Kopyası Türet"**, or set a mobile-only background override (`mobileBgType`, `mobileBgImage`, `mobileBgGradient`, `mobileBgVideoUrl`).
|
|
257
|
+
- **7 Built-in Typographic Effects & Ken Burns:** `none`, `gradient_text`, `typewriter` (live typing/deleting cursor), `rotating_words`, `highlight_marker`, `outline_stroke`, and `glow` + **Ken Burns** motion (`zoom-in`, `zoom-out`, `pan-left`, `pan-right`).
|
|
258
|
+
|
|
259
|
+
### 5.3 Interactive Data Table (`dataTable`)
|
|
260
|
+
Supports **Excel / CSV File Upload**, **Clipboard Paste**, and **Live Strapi Collection** data sources:
|
|
261
|
+
1. **Excel (`.xlsx`, `.xls`) & CSV (`.csv`, `.tsv`) File Upload + Paste Importer (`sourceMode: 'manual'`):** Upload `.xlsx`, `.xls`, `.csv`, or `.tsv` files via drag-and-drop dropzone (powered by `xlsx` / SheetJS with multi-sheet workbook selector, replace vs append mode, and automatic column type inference), paste directly from Excel / Google Sheets, or edit typed cells inline.
|
|
262
|
+
2. **Live Strapi Collection Source + Selectable Fields (`sourceMode: 'strapi_collection'`):** Connect to any allowed Strapi Collection-Type (`GET ${baseUrl}/api/content-input/data-table?uid=api::page.page`), interactively pick **which collection fields** to display via an `availableFields` checklist, reorder columns, customize column headers/formats, and preview live records (`private` / `password` fields and `admin::*` UIDs are strictly blocked on the server).
|
|
263
|
+
3. **Fixed (Sticky) Header + Horizontal & Vertical Scroll:** Configure `stickyHeader` (pins `<thead>` at `top: 0` while scrolling), `verticalScroll` + `maxHeight` (e.g. `360px`–`480px`), `horizontalScroll` + `minTableWidth` (e.g. `960px`–`1040px`), `stickyFirstColumn` (pins the first column at `left: 0` during horizontal scroll), and Color Codes `headerBgColor` / `headerTextColor`.
|
|
264
|
+
4. **9 Rich Column Formats & Interactive Visitor Toolbar:** `text`, `number`, `currency`, `progress` (visual progress bar), `badge` (mapped to Color Codes semantic colors), `boolean`, `image` (with click-to-zoom lightbox), `date`, `link` — plus live search, column sorting, quick filter chips, pagination, summary footer (`SUM` / `AVG` / `COUNT`), zebra striping, and 1-click visitor **CSV Export**.
|
|
265
|
+
|
|
266
|
+
### 5.4 Custom Card Designer (`customCard`)
|
|
267
|
+
Design bespoke cards visually without writing Vue/CSS code, and display them as a **Swiper.js Carousel**, **Responsive Grid**, or **Single Card**:
|
|
268
|
+
- **6 Built-in Card Archetypes:**
|
|
269
|
+
1. `feature` — Icon / Media + Eyebrow + Title + Description + CTA
|
|
270
|
+
2. `pricing` — Plan Name + Price (`₺` / `$` / `/mo`) + Highlighted **"MOST POPULAR"** Ribbon + `✓` Checklist + Full-Width CTA
|
|
271
|
+
3. `testimonial` — Quote + 5-Star Rating + Author Avatar, Name & Role
|
|
272
|
+
4. `profile` — Team Member Photo + Name, Title, Bio & Action Links
|
|
273
|
+
5. `stat` — Big KPI Metric + Trend Badge (`+24.8% ↑`) + Context Label
|
|
274
|
+
6. `overlay_story` — Full-bleed background image with gradient scrim & glassmorphism badge
|
|
275
|
+
- **Vertical Height Equalization, Scaled Live Carousel Stage & Per-Card Accent Color:** Toggle between **`🎯 Single Card`** and **`🎬 Scaled Live Stage` (`1280px` / `768px` / `390px`)** inside the Custom Card Designer Studio to preview multi-card Swiper carousels & grids live; set `heightMode: 'equal' | 'fixed' | 'auto'` (`cardHeight` in `px`) and override **`accentOverride`** per individual card item via `<CIColorField />`.
|
|
276
|
+
- **Visual Style Studio + Reusable Design Presets:** Customize border radius (`0–32px`), border, shadow/glassmorphism, hover animations (`lift`, `glow`, `scale`, `border-accent`), Color Codes bindings, and save/load card styles via **Saved Card Design Templates** (`plugin::content-input.ci-template`, `category: 'card_design'`).
|
|
277
|
+
|
|
278
|
+
### 5.5 Tabs & Accordions Color Codes + Active Bottom Line Styling (`tab` & `accordion`)
|
|
279
|
+
Both `tab` and `accordion` widgets support full theme token (`var(--ci-color-*)`) and custom `<CIColorField />` (`#HEX` + `RGB/RGBA`) styling:
|
|
280
|
+
- **Header & Content Colors:** `headerBgColor`, `headerTextColor` (`fontColor`), `activeBgColor`, `activeTextColor` (`activeColor`), `borderColor`, `contentBgColor`, and `contentTextColor`.
|
|
281
|
+
- **Active Tab Bottom Indicator Line & Active Accordion Accent Bar:** Configure `indicatorColor` (active tab underline slider `.v-tab__slider` / `.el-tabs__active-bar` and open accordion header bottom accent border) and `indicatorHeight` (`2px`–`8px`), plus optional per-item `header.color` and `header.textColor` overrides.
|
|
207
282
|
|
|
208
283
|
---
|
|
209
284
|
|
|
210
|
-
##
|
|
285
|
+
## 6. Enterprise Survey & Poll Module (`survey`) + Strapi Analytics Hub
|
|
211
286
|
|
|
212
|
-
The **`survey`** widget
|
|
287
|
+
The **`survey`** widget provides a full-featured survey, NPS, and quick-poll platform with native Strapi reporting, statistical breakdowns, and anti-duplicate voting controls.
|
|
213
288
|
|
|
214
289
|
### 5.1 Three Display Modes (`displayMode`)
|
|
215
290
|
1. **`quick_poll` (Quick Poll):** Compact single-card poll for 1-click voting and instant live `%` bar feedback.
|
|
@@ -272,31 +347,36 @@ Reporting is available in **two places** inside Strapi Admin:
|
|
|
272
347
|
|
|
273
348
|
---
|
|
274
349
|
|
|
275
|
-
##
|
|
350
|
+
## 7. Component Map Keys (`widget.id`) & Reference Table (All 18 Widgets)
|
|
276
351
|
|
|
277
|
-
All
|
|
352
|
+
All 18 built-in widgets use the following `widget.id` keys across the Strapi Visual Editor and both Nuxt storefront renderers (`@ozguraltan/strapi-content-input-nuxt-vuetify` and `@ozguraltan/strapi-content-input-nuxt-element-plus`):
|
|
278
353
|
|
|
279
354
|
| Component Map Key (`widget.id`) | Category | `slotContext` Helper Property | Description & Supported Scenarios |
|
|
280
355
|
| :--- | :--- | :--- | :--- |
|
|
356
|
+
| `heroSlider` | Media & Visuals | `widget.data`, `widget.options` | Homepage multi-layer **Swiper.js** hero banner (`CIHeroSlider`) with mouse drag-to-slide (`effect: 'slide'` default + `fade`/`creative`/`coverflow`/`cube`/`flip`), Ken Burns motion, Parallax layers (`badge`, `heading`, `subtitle`, `buttons`, `floating_image`, `stats`), and 7 typographic effects (`typewriter`, `gradient_text`, `rotating_words`, `highlight_marker`, `outline_stroke`, `glow`). |
|
|
357
|
+
| `dataTable` | Dynamic & Modules | `widget.data`, `widget.options` | Interactive **Data Table** (`CIDataTable`) supporting `.xlsx`/`.xls`/`.csv` file upload, Excel/CSV paste & live Strapi Collection (`GET /api/content-input/data-table`) with selectable fields, fixed/sticky header + X/Y scroll (`maxHeight`, `minTableWidth`, `stickyFirstColumn`), 9 column types, search, sorting, filter chips, pagination, summary row (`SUM`/`AVG`/`COUNT`), and CSV export. |
|
|
358
|
+
| `customCard` | Dynamic & Modules | `widget.data`, `widget.options` | **Custom Card Designer** (`CICustomCard`) with 6 archetypes (`feature`, `pricing` with ribbon & checklist, `testimonial` with stars, `profile`, `stat`, `overlay_story`), `heightMode` (`equal`/`fixed`/`auto`), per-card `accentOverride`, saved card design presets, Color Codes bindings, and `swiper` / `grid` / `single` display modes. |
|
|
359
|
+
| `entityCard` | Dynamic & Modules | `entityCardData` (`NormalizedEntityCardData`) | Linked Strapi entity card(s) supporting `'single'`, `'swiper'` (**Swiper.js Carousel**), and `'grid'` modes, `heightMode` (`equal`/`fixed`/`auto`), multi-entity `items[]` or automatic `collectionFeed`, field inheritance + per-card `accentColor` & manual overrides, and Color Codes `cardProps`. |
|
|
281
360
|
| `HtmlEditor` | Content & Typography | `resolvedHtml` (`string`) | WYSIWYG rich HTML editor with source code view, media download link picker, transparent default background, and automatic `baseUrl` resolution for `/uploads/...` URLs. |
|
|
282
|
-
| `heading` | Content & Typography | `headingData` (`{ text, tag, align, color, fontSize, fontWeight }`) | Semantic heading (`h1`–`h6`) with alignment (`left`, `center`, `right`), color, font size, and weight. |
|
|
283
|
-
| `button` | Interactive & Navigation | `buttonData` (`{ label, url, target, variant, size, align }`) | CTA button supporting `primary`, `secondary`, `outline`, `ghost` variants and `sm`, `md`, `lg` sizes. |
|
|
361
|
+
| `heading` | Content & Typography | `headingData` (`{ text, tag, align, color, fontSize, fontWeight }`) | Semantic heading (`h1`–`h6`) with alignment (`left`, `center`, `right`), Color Codes / HEX / RGBA color, font size, and weight. |
|
|
362
|
+
| `button` | Interactive & Navigation | `buttonData` (`{ label, url, target, variant, size, align }`) | CTA button supporting `primary`, `secondary`, `outline`, `ghost` variants, custom Color Codes tokens, and `sm`, `md`, `lg` sizes. |
|
|
284
363
|
| `singleImage` | Media & Visuals | `widget.data` (`{ image, alt, caption, link, objectFit, borderRadius, maxWidth }`) | Single image with caption, border radius, `cover`/`contain` mode, and optional external link. |
|
|
285
|
-
| `spacer` | Layout | `widget.data` (`{ height, divider, dividerColor, lineWidth }`) | Configurable vertical space (`height` in `px`) with optional horizontal divider line. |
|
|
364
|
+
| `spacer` | Layout | `widget.data` (`{ height, divider, dividerColor, lineWidth }`) | Configurable vertical space (`height` in `px`) with optional Color Codes horizontal divider line. |
|
|
286
365
|
| `gallery` | Media & Visuals | `galleryList` (`CIMediaAsset[]`) | **Swiper Carousel (`kind: 'swiper'`):** Official Swiper.js with mouse/touch drag, mousewheel, `slide`/`fade`/`cube`/`coverflow`/`flip` effects, `slidesPerView`, `spaceBetween`, `loop`, `autoplay`.<br>**Grid Gallery (`kind: 'gridGallery'`):** 5-breakpoint `itemsPerRow`, `aspectRatio`, `gridPadding`.<br>**Thumbnails vs Lightbox:** `sharp` `fit`/`widen` thumbnails in slides, **full-size original image** in Lightbox Popup. |
|
|
287
366
|
| `youtubeVideo` | Media & Visuals | `ytData` (`{ videos, title, activeTitle, description, activeVideoId, thumb, isPopup, isThumbnailMode, iframeUrl, watchUrl }`) | Custom cover thumbnail (`customThumbnail`), hover animated Play button, Lightbox modal player (`popup: true`) with multi-video playlist, or inline card playback (`popup: false`). |
|
|
288
|
-
| `tab` | Interactive & Navigation | `tabAccItems` (`NormalizedTabAccItem[]`) | Horizontal or vertical tabs (`options.vertical`, `options.grow`)
|
|
289
|
-
| `accordion` | Interactive & Navigation | `tabAccItems` (`NormalizedTabAccItem[]`) | Single or multi-open (`options.multiple`) accordion panels with
|
|
367
|
+
| `tab` | Interactive & Navigation | `tabAccItems` (`NormalizedTabAccItem[]`) | Horizontal or vertical tabs (`options.vertical`, `options.grow`) with Color Codes & `<CIColorField />` styling (`headerBgColor`, `headerTextColor`, `activeBgColor`, `activeTextColor`, active bottom line `indicatorColor` & `indicatorHeight`), Rich HTML (`contentMode: 'text'`), and recursive nested `ContentInput` rows (`contentMode: 'builder'`). |
|
|
368
|
+
| `accordion` | Interactive & Navigation | `tabAccItems` (`NormalizedTabAccItem[]`) | Single or multi-open (`options.multiple`) accordion panels with Color Codes & `<CIColorField />` styling (`headerBgColor`, `headerTextColor`, `activeBgColor`, `activeTextColor`, active bottom accent `indicatorColor`, per-node `header.color` / `header.textColor`), Rich HTML, and nested `ContentInput` rows. |
|
|
290
369
|
| `menu` | Dynamic & Modules | `menuData` (`{ name, mode, items: CIMenuNodeItem[] }`) | Unlimited-depth hierarchical menu (`horizontal` dropdowns & `vertical` collapsible tree), reusable DB menu templates (`plugin::content-input.ci-menu`), and Strapi Collection-Type entity tree picker. |
|
|
291
370
|
| `contentForm` | Dynamic & Modules | `formData`, `submitForm` | Async DB-backed dynamic form (`CIDynamicForm`) with 9 field types, dynamic Strapi `i18n` locales, shared client+server `vee-validate` rules, Google reCAPTCHA v2, Mailtrap/Mailgun/SMTP delivery, and `@submit-form` event. |
|
|
292
371
|
| `survey` | Dynamic & Modules | `surveyData`, `submitSurvey` | Enterprise Survey & Quick Poll (`CISurvey`) supporting `quick_poll`, `single_page`, and `multi_step` wizard modes, 13 question types (NPS, Star, Likert, Matrix, Borda Ranking, Image Choice, etc.), conditional skip logic, HMAC duplicate protection, live `%` results, and `@submit-survey` event. |
|
|
293
|
-
| `entityCard` | Dynamic & Modules | `entityCardData` (`NormalizedEntityCardData`) | Linked Strapi entity card (`vertical`, `horizontal`, `overlay` layouts) that auto-inherits entity fields (`title`, `description`, `image`, `url`) with optional per-field manual overrides and Vuetify/Element Plus `cardProps`. |
|
|
294
372
|
| `iframe` | Media & Visuals | `widget.data` (`string` or `{ url, height }`) | Embedded iframe (OpenStreetMap, Google Maps, external embeds) with configurable height. |
|
|
295
373
|
| `banner` | Media & Visuals | `widget.data` (`{ banner: { id, name } }`) | Campaign / promotional banner widget designed to be easily customized via slots or `:components`. |
|
|
296
374
|
|
|
297
375
|
---
|
|
298
376
|
|
|
299
|
-
##
|
|
377
|
+
## 8. Storefront Customization & Theme Props Guide (Nuxt Vuetify & Element Plus)
|
|
378
|
+
|
|
379
|
+
`<ContentInputPreview>` automatically fetches the active **Color Codes** palette (`GET ${baseUrl}/api/content-input/color-codes`) and binds `--ci-color-*` CSS variables on its root wrapper. You can also pass `:theme-slug="'emerald-fintech'"` or `:color-variables="{ '--ci-color-primary': '#059669' }"` to switch themes dynamically at runtime.
|
|
300
380
|
|
|
301
381
|
Both `@ozguraltan/strapi-content-input-nuxt-vuetify` and `@ozguraltan/strapi-content-input-nuxt-element-plus` provide **3 ways** to customize widget rendering in your Nuxt 3/4 or Vue 3 application:
|
|
302
382
|
|
|
@@ -335,7 +415,7 @@ Pass an object mapping any `widget.id` key from the table above to your own Vue
|
|
|
335
415
|
```
|
|
336
416
|
|
|
337
417
|
### Method 3: CLI Template Ejection (`npx ... eject`)
|
|
338
|
-
Copy the entire set of Vue SFC templates (`ContentInputPreview.vue`, `CIRow.vue`, `CIBlock.vue`, `CIWidget.vue`, `CIDynamicForm.vue`, `CISurvey.vue`) and utilities (`utils/helpers.ts`, `utils/formValidation.ts`, `utils/surveyHelpers.ts`) directly into your project so you can edit every line of template/CSS freely:
|
|
418
|
+
Copy the entire set of Vue SFC templates (`ContentInputPreview.vue`, `CIRow.vue`, `CIBlock.vue`, `CIWidget.vue`, `CISwiperNavButtons.vue`, `CIHeroSlider.vue`, `CIDataTable.vue`, `CICustomCard.vue`, `CIDynamicForm.vue`, `CISurvey.vue`) and utilities (`utils/helpers.ts`, `utils/colorCodes.ts`, `utils/formValidation.ts`, `utils/surveyHelpers.ts`) directly into your project so you can edit every line of template/CSS freely:
|
|
339
419
|
|
|
340
420
|
```bash
|
|
341
421
|
# For Nuxt + Vuetify projects:
|
|
@@ -355,7 +435,7 @@ npx strapi-content-input-vuetify eject ./components/content-input --force
|
|
|
355
435
|
|
|
356
436
|
## 1. Mevcut Bir Strapi v5 Projesine Kurulum ve Entegrasyon
|
|
357
437
|
|
|
358
|
-
`@ozguraltan/strapi-content-input`, gelişmiş **ContentInput** görsel sayfa/içerik tasarım motorunu, **
|
|
438
|
+
`@ozguraltan/strapi-content-input`, gelişmiş **ContentInput** görsel sayfa/içerik tasarım motorunu (**18 yerleşik bileşen**), **Hero Slider**, **Veri Tabloları (`dataTable`)**, **Özel Kart Tasarımcısı (`customCard`)**, **Color Codes Tema Motorunu (`HEX` + `RGB/RGBA` + `--ci-color-*`)**, **Dinamik Form Stüdyosunu (`contentForm`)** ve **Kurumsal Anket & Raporlama Merkezini (`survey`)** **Strapi v5** ekosistemine yerel bir `json` (`PostgreSQL JSONB`) özel alanı (**Custom Field**) olarak taşır.
|
|
359
439
|
|
|
360
440
|
### Adım 1: Paketi Strapi Projenize Çekin
|
|
361
441
|
```bash
|
|
@@ -364,15 +444,36 @@ npm install @ozguraltan/strapi-content-input
|
|
|
364
444
|
npm install git+ssh://git@gitlab.com:ozguraltan/strapi-content-input.git
|
|
365
445
|
```
|
|
366
446
|
|
|
367
|
-
### Adım 2: `config/plugins.ts` İçinde Etkinleştirin
|
|
447
|
+
### Adım 2: `config/plugins.ts` ve `config/features.ts` İçinde Etkinleştirin
|
|
368
448
|
```ts
|
|
369
|
-
|
|
449
|
+
// config/plugins.ts
|
|
450
|
+
export default ({ env }) => ({
|
|
370
451
|
'content-input': {
|
|
371
452
|
enabled: true,
|
|
453
|
+
config: {
|
|
454
|
+
// Opsiyonel — .env içinde tanımlanmasa bile varsayılan değerler otomatik çalışır:
|
|
455
|
+
imageVariantFolder: env('CI_IMAGE_VARIANT_FOLDER', 'ci-optimized'), // CDN alt klasörü (varsayılan: ci-optimized)
|
|
456
|
+
imageVariantFormat: env('CI_IMAGE_VARIANT_FORMAT', 'webp'), // Transparan PNG destekli WebP
|
|
457
|
+
imageVariantQuality: env.int('CI_IMAGE_VARIANT_QUALITY', 85),
|
|
458
|
+
redirectProxyToCdn: env.bool('CI_IMAGE_REDIRECT_CDN', true), // /api/content-input/image -> 302 CDN yönlendirmesi
|
|
459
|
+
},
|
|
372
460
|
},
|
|
373
461
|
});
|
|
374
462
|
```
|
|
375
463
|
|
|
464
|
+
> **Evrensel `sharp` WebP + `ci-optimized` CDN Varyant Mimarisi:**
|
|
465
|
+
> - `.env` dosyasında `CI_IMAGE_VARIANT_FOLDER` tanımlı **olmasa bile** `sharp` ile üretilen tüm görsel varyantları aktif Upload Provider / CDN üzerinde otomatik olarak **`ci-optimized/`** klasörü altına (`https://<cdn-adresiniz>/.../ci-optimized/ci_*_<hash>.webp`) yüklenir.
|
|
466
|
+
> - **`SVG`** ve animasyonlu **`GIF`** (ayrıca video ve PDF/ofis dokümanları) hariç tüm raster görseller (`JPEG`, `PNG`, `WebP`, `AVIF`, `TIFF`, `BMP`), transparan PNG alfa kanalını tam koruyan (`alphaQuality: 100`) **`WebP`** formatına dönüştürülür.
|
|
467
|
+
> - Yalnızca Galeri değil; **`singleImage`**, **`banner`**, **`youtubeVideo` kapak görseli**, **Satır/Sütun `bgImage`**, **`heroSlider` (`bgImage`, `mobileBgImage`, `floating_image`)**, **`customCard` (`image` & `authorAvatar`)**, **`entityCard`**, **`survey` (`image_choice`)**, **`dataTable` (`image` hücreleri)** ve **`HtmlEditor` (`<img>`)** dahil görsel seçilen tüm alanlar hem seçim anında hem de **Save / Publish** sırasında otomatik optimize edilerek `optimized_url` ve `formats` (`ci_fit_*`, `ci_widen_*`, `ci_auto_*`) bilgisini doğrudan `ContentInput` JSONB içine yazar. Böylece Nuxt vitrin (storefront) uygulamaları `localhost:1337/api/content-input/image` proxy adresine gitmeden **doğrudan CDN URL'lerini** render eder; eski içerikler için `/api/content-input/image` uç noktası da CDN adresine **HTTP `302` Redirect** uygular (`?json=1` ile JSON döner, lokal ortamda byte-stream fallback korunur).
|
|
468
|
+
|
|
469
|
+
**Strapi v5.61+** sürümlerinde tüm ContentInput bileşenlerinde ve tam ekran stüdyolarda Strapi'nin kendi tam özellikli **Medya Kütüphanesi Modalının** (küçük resimler/thumbnails, sayfalama, klasör yönetimi, çoklu yükleme ve dahili kırpma/crop aracı ile) açılması için `config/features.ts` dosyasına `useLegacyMediaLibrary: true` ekleyin:
|
|
470
|
+
```ts
|
|
471
|
+
// config/features.ts
|
|
472
|
+
export default () => ({
|
|
473
|
+
useLegacyMediaLibrary: true,
|
|
474
|
+
});
|
|
475
|
+
```
|
|
476
|
+
|
|
376
477
|
### Adım 3: `schema.json` İçine Custom Field Olarak Ekleyin
|
|
377
478
|
```json
|
|
378
479
|
{
|
|
@@ -426,19 +527,46 @@ export default () => ({
|
|
|
426
527
|
|
|
427
528
|
---
|
|
428
529
|
|
|
429
|
-
## 3. Bağlı İçerik Kartı (`entityCard`) —
|
|
530
|
+
## 3. Bağlı İçerik Kartı (`entityCard`) — Tekli Kart, Swiper.js Carousel, Grid ve Otomatik Koleksiyon Akışı
|
|
430
531
|
|
|
431
|
-
|
|
432
|
-
- **
|
|
433
|
-
-
|
|
434
|
-
- **
|
|
532
|
+
**`entityCard`** bileşeni herhangi bir Strapi içerik kaydına (`api::page.page`, makale, ürün vb.) bağlanır ve **3 farklı görünüm modunu** destekler:
|
|
533
|
+
- **Görünüm Modları (`options.displayMode`):** `'single'` (tek kart), `'swiper'` (resmi **Swiper.js Carousel** — `slidesPerView`, `spaceBetween`, `loop`, `autoplay`, `navigation`, `pagination`, `mousewheel`, `coverflow`/`cards` efektleri) ve `'grid'` (çok sütunlu duyarlı ızgara).
|
|
534
|
+
- **Çoklu Seçim (`items[]`) veya Otomatik Koleksiyon Akışı (`collectionFeed`):** Birden fazla Strapi kaydını elle seçip sıralayabilir veya bir Strapi koleksiyonundaki son `N` yayını (`GET /api/content-input/entity-cards`) otomatik olarak Swiper Carousel / Grid içinde listeleyebilirsiniz.
|
|
535
|
+
- **Otomatik Miras (Fallback), Kart Bazlı Accent Renk & Manuel Ezme (Override):** Editör kart üzerindeki Başlık (`title`), Alt Başlık (`subtitle`), Açıklama (`description`), Görsel (`image`), Rozet (`badgeText`), Link (`url`) veya kart bazlı Vurgu Rengi (`accentColor`) alanlarını boş bıraktığında bu bilgiler otomatik olarak bağlı Strapi kaydından/genel kart ayarından çekilir; doldurulan alanlar ise o kart özelinde ezilir.
|
|
536
|
+
- **Kart Carousel Düşey Yükseklik Eşitleme (`options.heightMode` & `options.cardHeight`):** Metin satır sayısı farklı olsa bile kartların boyunun kısalmaması için `'equal'` (varsayılan — en yüksek karta eşitler ve alt butonları aynı hizada sabitler), `'fixed'` (`cardHeight` piksel sabit yükseklik) ve `'auto'` seçeneklerini sunar.
|
|
537
|
+
- **Vuetify & Element Plus Kart Propları ve Color Codes (`options.cardProps`):** `layout` (`vertical`, `horizontal`, `overlay`), `variant` (`elevated`, `outlined`, `flat`, `tonal`), `elevation` (`0`–`24`), `rounded`, `color`, `textColor`, `accentColor` (Color Codes token destekli), `imageHeight`, `showBadge`, `showButton`, `buttonVariant`, `hoverEffect`.
|
|
435
538
|
- **Dışarıdan Tam Özelleştirme:** `#widget-entityCard="{ entityCardData }"` slotu veya `:components="{ entityCard: BenimKartBilesenim }"` prop'u ile tamamen kendi kart tasarımınızı kullanabilirsiniz.
|
|
436
539
|
|
|
437
540
|
---
|
|
438
541
|
|
|
439
|
-
## 4.
|
|
542
|
+
## 4. Color Codes Tema Motoru, Hero Slider, Veri Tabloları ve Özel Kart Tasarımcısı
|
|
543
|
+
|
|
544
|
+
1. **Color Codes Tema Renk Yönetimi (`HEX` + `RGB/RGBA` + Görsel Spektrum + `--ci-color-*`):**
|
|
545
|
+
- Hem Strapi Sol Menüsündeki **Surveys, Forms & Colors -> Color Codes** sekmesinden hem de Görsel Editör üst çubuğundaki **🎨 Color Codes** butonundan yönetilir.
|
|
546
|
+
- `primary`, `secondary`, `accent`, `success`, `warning`, `error`, `info`, `surface`, `surfaceAlt`, `background`, `textPrimary`, `textSecondary`, `border` semantik renklerinin yanı sıra sınırsız sayıda özel marka rengi tanımlanabilir.
|
|
547
|
+
- Tüm renk alanlarında (`<CIColorField />`) **2D Görsel Renk Seçici**, doğrudan **`#HEX` (`#RRGGBB` / `#RRGGBBAA`)** girişi, sayısal **`RGB / RGBA` (`R`, `G`, `B`, `A%`)** kutuları + `rgb(...)`/`rgba(...)` metin girişi ve **"+ Bu Rengi Color Codes'a Kaydet"** özelliği bulunur. Aktif palet değiştiğinde bağlı tüm bileşenler (`var(--ci-color-primary, ...)`) sayfaları tek tek düzenlemeye gerek kalmadan anında güncellenir!
|
|
548
|
+
2. **Hero Slider (`heroSlider` — Ölçekli Canlı Stüdyo, Serbest X/Y Katmanlar, 19+ Özel En-Boy Oranı ve Mobil Portrait Modu):**
|
|
549
|
+
- **Ölçekli Gerçek Viewport Sahnesi (`1280px` / `768px` / `390px` Mobil Portrait) ve Canlı Efekt Oynatımı:** Modal stüdyoda slaytları sıkıştırmak yerine gerçek hedef ekran genişliklerinde (`Fit`, `%50`, `%75`, `%100`, `# Grid`, `⤢ Zen`) ölçekleyerek birebir vitrin görünümüyle önizler; `◀ ▶`, `↻ Efektleri Oynat` ve `▶ Auto` ile tüm Swiper geçişlerini (`slide`, `fade`, `creative`, `coverflow`, `cube`, `flip`), Ken Burns ve tipografik efektleri canlı çalıştırır.
|
|
550
|
+
- **Serbest Katman Konumlandırma (`X, Y, Width, Height, Z-Index`):** Katmanları `Akış (Flow)` veya `Serbest (Free)` modda konumlandırın; sahne üzerinde fare ile sürükleyip 8 tutamaçla boyutlandırın, 9 noktalı hızlı hizalama matrisini kullanın ve masaüstü/tablet/mobil için ayrı kutu koordinatları (`box`, `boxTablet`, `boxMobile`) ve font boyutları tanımlayın.
|
|
551
|
+
- **19 Yaygın Aspect Ratio + Manuel Özel Oran (`W : H` / Piksel):** `4:1`'den `9:21`'e kadar kategorize 19 hazır en-boy oranı seçeneğinin yanı sıra `1920:680`, `2.35:1` gibi serbest manuel oran girişi hem Hero Slider (cihaz ve slayt bazlı) hem Galeri bileşeninde desteklenir.
|
|
552
|
+
- **Mobil Portrait Özel Slaytlar:** Cihaz bazlı slayt görünürlüğü (`all`, `desktop_tablet`, `mobile_only`, `desktop_only`, `tablet_only`), tek tıkla **"📱 Mobil Portrait Kopyası Türet"** aksiyonu ve mobil cihaza özel arka plan görseli/videosu (`mobileBgType` / `mobileBgImage`) ezme desteği sunar.
|
|
553
|
+
3. **Veri Tabloları (`dataTable`):**
|
|
554
|
+
- **Excel (`.xlsx`, `.xls`) ve CSV (`.csv`, `.tsv`) Dosya Yükleme (Upload / Sürükle-Bırak)** (`xlsx` çoklu sayfa/sheet seçici ile), panodan yapıştırma (`manual`) veya **Canlı Strapi Koleksiyonu (`strapi_collection` -> `/api/content-input/data-table`)** veri kaynağıyla çalışır.
|
|
555
|
+
- Strapi koleksiyonu seçildiğinde koleksiyondaki **hangi alanların tabloya geleceği (`availableFields`)** onay kutularıyla seçilebilir ve sütun sırası/başlıkları özelleştirilebilir.
|
|
556
|
+
- **Sabit Tablo Başlığı (`stickyHeader`) + Yatay ve Düşey Scroll:** Düşey kaydırma (`verticalScroll` + `maxHeight`), yatay kaydırma (`horizontalScroll` + `minTableWidth`) ve ilk sütunu sabitleme (`stickyFirstColumn`) seçeneklerini destekler.
|
|
557
|
+
- `text`, `number`, `currency`, `progress` (yüzde çubuğu), `badge` (Color Codes rozetleri), `boolean`, `image` (tıklayınca büyüyen Lightbox), `date`, `link` hücre tiplerini; canlı arama, sütun sıralama, hızlı filtre çiplerini, sayfalamayı, alt toplam (`SUM`/`AVG`/`COUNT`) satırını ve ziyaretçi **CSV indirme** butonunu destekler.
|
|
558
|
+
4. **Özel Kart Tasarımcısı (`customCard`):**
|
|
559
|
+
- **6 Hazır Kart Arketipi:** `feature` (Özellik/Hizmet), `pricing` (`"EN POPÜLER"` şeritli ve `✓` maddeli Fiyat Paketi), `testimonial` (5 yıldızlı Müşteri Yorumu), `profile` (Ekip Kartı), `stat` (KPI İstatistik Kartı), `overlay_story` (Görsel Üzeri Hikaye Kartı).
|
|
560
|
+
- **Düşey Yükseklik Eşitleme & Kart Bazlı Accent Renk:** `heightMode: 'equal' | 'fixed' | 'auto'` (`cardHeight` px) ile metin satır sayısına göre kartların kısalmasını engeller (en yüksek karta eşitler veya sabit yükseklik verir) ve her kart öğesi için ayrı **`accentOverride`** rengi seçilmesine olanak tanır.
|
|
561
|
+
- Köşe yuvarlatma, gölge/glassmorphism, hover efektleri (`lift`, `glow`, `scale`, `border-accent`), Color Codes bağlantıları ve tek tıkla **Kayıtlı Kart Tasarım Şablonu (`card_design`)** kaydetme/yükleme özellikleriyle birlikte `swiper` (Carousel), `grid` veya `single` olarak sergilenir.
|
|
562
|
+
5. **Sekme (`tab`) ve Akordiyon (`accordion`) Color Codes & Renk Seçici Desteği:**
|
|
563
|
+
- Sekme ve akordiyon bileşenlerinde arka plan rengi (`headerBgColor`, `contentBgColor`), yazı rengi (`headerTextColor`, `contentTextColor`), aktif sekme/panel rengi (`activeBgColor`, `activeTextColor`) ve **aktif olan sekmenin altındaki çizgi rengi (`indicatorColor`) ile kalınlığı (`indicatorHeight`)** hem Color Codes token'ları hem de `#HEX` / `RGB/RGBA` renk seçici (`<CIColorField />`) ile düzenlenebilir.
|
|
564
|
+
|
|
565
|
+
---
|
|
566
|
+
|
|
567
|
+
## 5. Kurumsal Anket & Oylama Modülü (`survey`) ve Strapi Raporlama Merkezi
|
|
440
568
|
|
|
441
|
-
**`survey`** bileşeni
|
|
569
|
+
**`survey`** bileşeni; tek tıkla hızlı oylamalardan çok adımlı (Typeform tarzı) kurumsal anketlere, koşullu soru mantığından Strapi içi görsel analitik ve Excel dışa aktarımına kadar uçtan uca bir anket altyapısı sunar:
|
|
442
570
|
|
|
443
571
|
1. **3 Farklı Görünüm Modu (`displayMode`):**
|
|
444
572
|
- `quick_poll`: Tek kartta hızlı oylama ve oy sonrası anlık `%` çubuk grafiği.
|
|
@@ -463,29 +591,32 @@ Yeni **`entityCard`** bileşeni herhangi bir Strapi içerik kaydına (`api::page
|
|
|
463
591
|
|
|
464
592
|
---
|
|
465
593
|
|
|
466
|
-
##
|
|
594
|
+
## 6. Bileşen Haritası Anahtarları (`widget.id` — Tüm 18 Bileşen)
|
|
467
595
|
|
|
468
596
|
| Anahtar (`widget.id`) | Etiket | `slotContext` Verisi | Açıklama |
|
|
469
597
|
| :--- | :--- | :--- | :--- |
|
|
598
|
+
| `heroSlider` | Hero Slider | `data`, `options` | Fare ile sürükle-bırak kaydırmalı (`slide` varsayılan) çok katmanlı **Swiper.js** ana sayfa banner alanı (`CIHeroSlider`), Ken Burns, Parallax ve 7 tipografik efekt (`typewriter`, `gradient_text`, `highlight_marker` vb.) |
|
|
599
|
+
| `dataTable` | Veri Tablosu | `data`, `options` | `.xlsx`/`.xls`/`.csv` dosya yükleme, yapıştırma veya alan seçilebilir canlı Strapi koleksiyon tablosu (`CIDataTable`); sabit başlık (`stickyHeader`), yatay/düşey scroll, ilk sütun sabitleme, 9 hücre formatı, arama, sıralama, filtre çipleri, alt toplam ve CSV indirme |
|
|
600
|
+
| `customCard` | Özel Kart Tasarımcısı | `data`, `options` | 6 arketipli (`feature`, `pricing`, `testimonial`, `profile`, `stat`, `overlay_story`) görsel kart stüdyosu (`CICustomCard`), düşey yükseklik eşitleme (`heightMode`), kart bazlı `accentOverride`, şablon kaydı ve `swiper` / `grid` / `single` gösterim |
|
|
601
|
+
| `entityCard` | İçerik Kartı / Carousel | `entityCardData` | Strapi kayıtlarından veri miras alan tekli kart, **Swiper.js Carousel (`swiper`)** veya `grid`; düşey yükseklik eşitleme (`heightMode`), kart bazlı `accentColor`, çoklu seçim (`items[]`) ve otomatik `collectionFeed` destekli |
|
|
470
602
|
| `HtmlEditor` | Metin Editörü | `resolvedHtml` | WYSIWYG zengin metin, kaynak kodu, dosya indirme linki ve transparan arka plan |
|
|
471
|
-
| `heading` | Başlık | `headingData` | `H1`–`H6` seviye, hizalama, boyut ve renk seçenekli başlık |
|
|
472
|
-
| `button` | Buton | `buttonData` | `primary`, `secondary`, `outline`, `ghost`
|
|
473
|
-
| `spacer` | Boşluk | `data` | Piksel yüksekliği ve isteğe bağlı ayırıcı çizgi (`divider: true`) |
|
|
603
|
+
| `heading` | Başlık | `headingData` | `H1`–`H6` seviye, hizalama, boyut ve Color Codes / HEX / RGBA renk seçenekli başlık |
|
|
604
|
+
| `button` | Buton | `buttonData` | `primary`, `secondary`, `outline`, `ghost` varyantlı, Color Codes renkli ve `sm`/`md`/`lg` boyutlu aksiyon butonu |
|
|
605
|
+
| `spacer` | Boşluk | `data` | Piksel yüksekliği ve isteğe bağlı Color Codes ayırıcı çizgi (`divider: true`) |
|
|
474
606
|
| `singleImage` | Tek Görsel | `data` | Alt yazılı, köşe yuvarlatmalı (`borderRadius`) ve dış linkli görsel |
|
|
475
607
|
| `gallery` | Galeri | `galleryList` | Resmi **Swiper.js** (`swiper`) veya çok sütunlu ızgara (`gridGallery`) + `sharp` thumbnail + tam boyutlu Lightbox Popup |
|
|
476
608
|
| `youtubeVideo` | YouTube Video | `ytData` | Özel kapak görseli (`customThumbnail`), hover Play butonu, çoklu videolu Lightbox modal veya kart içi oynatıcı |
|
|
477
|
-
| `tab` | Sekme (Tab) | `tabAccItems` | Yatay/Dikey sekmeler; zengin HTML ve iç içe (nested) `ContentInput` ızgarası |
|
|
478
|
-
| `accordion` | Akordiyon | `tabAccItems` | Tekli/Çoklu açılır paneller;
|
|
609
|
+
| `tab` | Sekme (Tab) | `tabAccItems` | Yatay/Dikey sekmeler; Color Codes & renk seçici ile arka plan, yazı, aktif sekme ve aktif alt çizgi rengi (`indicatorColor`/`indicatorHeight`), zengin HTML ve iç içe (nested) `ContentInput` ızgarası |
|
|
610
|
+
| `accordion` | Akordiyon | `tabAccItems` | Tekli/Çoklu açılır paneller; Color Codes & renk seçici ile başlık, yazı, aktif panel ve alt vurgu çizgisi rengi, zengin HTML ve iç içe `ContentInput` ızgarası |
|
|
479
611
|
| `menu` | Menü | `menuData` | Yatay/Düşey sınırsız kırılımlı ağaç menü, DB şablon kaydı ve Strapi Entity ağaç seçici |
|
|
480
612
|
| `contentForm` | Dinamik Form | `formData`, `submitForm` | PostgreSQL tabanlı dinamik form (`CIDynamicForm`), dinamik Strapi `i18n` dil desteği, `vee-validate` kuralları, reCAPTCHA v2 ve Mailtrap/Mailgun/SMTP gönderimi |
|
|
481
613
|
| `survey` | Anket & Oylama | `surveyData`, `submitSurvey` | Çok adımlı sihirbaz / hızlı oylama (`CISurvey`), 13 soru tipi (NPS, Yıldız, Likert, Matris, Borda Sıralama, Görsel Seçim vb.), koşullu mantık, HMAC mükerrer oy engelleme ve canlı `%` sonuç grafikleri |
|
|
482
|
-
| `entityCard` | İçerik Kartı | `entityCardData` | Strapi kaydından otomatik veri miras alan, alan bazlı ezilebilen ve Vuetify/Element Plus kart proplarını destekleyen kart |
|
|
483
614
|
| `iframe` | Iframe | `data` | Harita veya harici sayfa yerleştirme (özelleştirilebilir yükseklik) |
|
|
484
615
|
| `banner` | Banner | `data` | Kampanya ve tanıtım alanı (`#widget-banner` veya `:components="{ banner: MyBanner }"` ile özelleştirmeye hazır) |
|
|
485
616
|
|
|
486
617
|
### `npx` Komutu ile Nuxt Şablonlarını Projeye Kopyalama (`eject`)
|
|
487
618
|
```bash
|
|
488
|
-
# Vuetify projeleri için (
|
|
619
|
+
# Vuetify projeleri için (CIHeroSlider.vue, CIDataTable.vue, CICustomCard.vue, CIDynamicForm.vue, CISurvey.vue ve utils/colorCodes.ts dahil tüm dosyaları kopyalar):
|
|
489
620
|
npx strapi-content-input-vuetify eject ./components/content-input
|
|
490
621
|
|
|
491
622
|
# Element Plus projeleri için:
|
|
@@ -494,7 +625,9 @@ npx strapi-content-input-ep eject ./components/content-input
|
|
|
494
625
|
|
|
495
626
|
---
|
|
496
627
|
|
|
497
|
-
##
|
|
628
|
+
## 7. Lokal Geliştirme, GitLab CI/CD ve Playground Ortamları
|
|
629
|
+
|
|
630
|
+
> **Not (`dist/` ve GitLab CI/CD):** Derlenmiş `dist/` klasörü Git deposuna **push edilmez** (`.gitignore` içerisindedir). Paket GitLab CI/CD boru hattında (`.gitlab-ci.yml`) otomatik derlenir ve `git+ssh` kurulumlarında `package.json` içindeki `"prepare": "npm run build"` betiği sayesinde tüketici projede otomatik olarak inşa edilir.
|
|
498
631
|
|
|
499
632
|
```bash
|
|
500
633
|
# 1. PostgreSQL veritabanını başlatın
|
|
@@ -3,21 +3,29 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const admin = require("@strapi/strapi/admin");
|
|
6
|
-
const index = require("./index-
|
|
7
|
-
const SurveyWidgetEditor = require("./SurveyWidgetEditor-
|
|
6
|
+
const index = require("./index-i0NfSYto.js");
|
|
7
|
+
const SurveyWidgetEditor = require("./SurveyWidgetEditor-C5Uvyf_h.js");
|
|
8
8
|
const AnalyticsHubPage = () => {
|
|
9
9
|
const { get, post } = admin.useFetchClient();
|
|
10
10
|
const { locales: strapiLocales } = SurveyWidgetEditor.useStrapiLocales();
|
|
11
11
|
const [uiLocale, setUiLocale] = React.useState(() => SurveyWidgetEditor.getInitialLocale());
|
|
12
12
|
const tr = uiLocale === "tr";
|
|
13
|
-
const [section, setSection] = React.useState(
|
|
13
|
+
const [section, setSection] = React.useState(() => {
|
|
14
|
+
try {
|
|
15
|
+
const sp = new URLSearchParams(window.location.search);
|
|
16
|
+
const tab = sp.get("tab");
|
|
17
|
+
if (tab === "colors" || tab === "forms" || tab === "surveys") return tab;
|
|
18
|
+
} catch {
|
|
19
|
+
}
|
|
20
|
+
return "surveys";
|
|
21
|
+
});
|
|
14
22
|
const [surveys, setSurveys] = React.useState([]);
|
|
15
23
|
const [selectedSurveySlug, setSelectedSurveySlug] = React.useState("showcase_dx_survey");
|
|
16
24
|
const [analyticsRefreshKey, setAnalyticsRefreshKey] = React.useState(0);
|
|
17
25
|
const [reseeding, setReseeding] = React.useState(false);
|
|
18
26
|
const [studioOpen, setStudioOpen] = React.useState(false);
|
|
19
27
|
const [studioTarget, setStudioTarget] = React.useState(
|
|
20
|
-
() => SurveyWidgetEditor.createBlankSurveyDraft()
|
|
28
|
+
() => SurveyWidgetEditor.createBlankSurveyDraft(uiLocale)
|
|
21
29
|
);
|
|
22
30
|
const [forms, setForms] = React.useState([]);
|
|
23
31
|
const [selectedFormSlug, setSelectedFormSlug] = React.useState("all");
|
|
@@ -152,7 +160,7 @@ const AnalyticsHubPage = () => {
|
|
|
152
160
|
}
|
|
153
161
|
),
|
|
154
162
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
155
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { style: { margin: 0, fontSize: 20, fontWeight: 800, letterSpacing: "-0.01em" }, children: tr ? "ContentInput — Anket &
|
|
163
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { style: { margin: 0, fontSize: 20, fontWeight: 800, letterSpacing: "-0.01em" }, children: tr ? "ContentInput — Anket, Form & Color Codes Merkezi" : "ContentInput — Surveys, Forms & Color Codes Hub" }),
|
|
156
164
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: 12, color: "#cbd5e1", marginTop: 3 }, children: tr ? `${surveys.length} Aktif Anket • ${totalAllResponses} Toplam Anket Yanıtı • Strapi i18n Dilleri: ${strapiLocales.map((l) => l.code.toUpperCase()).join(", ")}` : `${surveys.length} Active Surveys • ${totalAllResponses} Total Survey Responses • Strapi i18n Locales: ${strapiLocales.map((l) => l.code.toUpperCase()).join(", ")}` })
|
|
157
165
|
] })
|
|
158
166
|
] }),
|
|
@@ -162,7 +170,7 @@ const AnalyticsHubPage = () => {
|
|
|
162
170
|
{
|
|
163
171
|
type: "button",
|
|
164
172
|
onClick: () => {
|
|
165
|
-
setStudioTarget(SurveyWidgetEditor.createBlankSurveyDraft());
|
|
173
|
+
setStudioTarget(SurveyWidgetEditor.createBlankSurveyDraft(uiLocale));
|
|
166
174
|
setStudioOpen(true);
|
|
167
175
|
},
|
|
168
176
|
style: {
|
|
@@ -219,7 +227,7 @@ const AnalyticsHubPage = () => {
|
|
|
219
227
|
overflow: "hidden",
|
|
220
228
|
border: "1px solid rgba(255,255,255,0.25)"
|
|
221
229
|
},
|
|
222
|
-
children: ["
|
|
230
|
+
children: ["en", "tr"].map((loc) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
223
231
|
"button",
|
|
224
232
|
{
|
|
225
233
|
type: "button",
|
|
@@ -315,11 +323,54 @@ const AnalyticsHubPage = () => {
|
|
|
315
323
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: tr ? "Dinamik Form Başvuruları" : "Dynamic Form Submissions" })
|
|
316
324
|
]
|
|
317
325
|
}
|
|
326
|
+
),
|
|
327
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
328
|
+
"button",
|
|
329
|
+
{
|
|
330
|
+
type: "button",
|
|
331
|
+
onClick: () => setSection("colors"),
|
|
332
|
+
style: {
|
|
333
|
+
padding: "13px 18px",
|
|
334
|
+
border: "none",
|
|
335
|
+
borderBottom: section === "colors" ? "3px solid #2563eb" : "3px solid transparent",
|
|
336
|
+
background: "transparent",
|
|
337
|
+
color: section === "colors" ? "#1d4ed8" : "#475569",
|
|
338
|
+
fontSize: 13,
|
|
339
|
+
fontWeight: 700,
|
|
340
|
+
cursor: "pointer",
|
|
341
|
+
display: "inline-flex",
|
|
342
|
+
alignItems: "center",
|
|
343
|
+
gap: 7
|
|
344
|
+
},
|
|
345
|
+
children: [
|
|
346
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
347
|
+
index.MaterialIcon,
|
|
348
|
+
{
|
|
349
|
+
name: "palette",
|
|
350
|
+
size: 17,
|
|
351
|
+
color: section === "colors" ? "#2563eb" : "#64748b"
|
|
352
|
+
}
|
|
353
|
+
),
|
|
354
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: tr ? "Color Codes & Tema Renkleri" : "Color Codes & Theme Palettes" })
|
|
355
|
+
]
|
|
356
|
+
}
|
|
318
357
|
)
|
|
319
358
|
]
|
|
320
359
|
}
|
|
321
360
|
),
|
|
322
|
-
section === "
|
|
361
|
+
section === "colors" ? /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "22px 28px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
362
|
+
"div",
|
|
363
|
+
{
|
|
364
|
+
style: {
|
|
365
|
+
background: "#ffffff",
|
|
366
|
+
borderRadius: 14,
|
|
367
|
+
border: "1px solid #cbd5e1",
|
|
368
|
+
padding: 20,
|
|
369
|
+
boxShadow: "0 4px 18px rgba(15, 23, 42, 0.04)"
|
|
370
|
+
},
|
|
371
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SurveyWidgetEditor.ColorCodesManager, { locale: uiLocale })
|
|
372
|
+
}
|
|
373
|
+
) }) : section === "surveys" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
323
374
|
"div",
|
|
324
375
|
{
|
|
325
376
|
style: {
|
|
@@ -389,7 +440,7 @@ const AnalyticsHubPage = () => {
|
|
|
389
440
|
]
|
|
390
441
|
}
|
|
391
442
|
),
|
|
392
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: 13, fontWeight: 700, color: "#0f172a" }, children: srv.title }),
|
|
443
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: 13, fontWeight: 700, color: "#0f172a" }, children: SurveyWidgetEditor.pickTextForLocale(srv.titleI18n, uiLocale, srv.title) }),
|
|
393
444
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
394
445
|
"div",
|
|
395
446
|
{
|