شعار Hof Cp Dialog

Hof Cp Dialog

مؤسسة
openreachtech
hof-cp-dialog

Use when building a modal, a confirm/destructive-action prompt, or a side panel, in a repo that consumes @openreachtech/furo-vue — "modal", "confirmation dialog", "are you sure prompt", "side panel", "delete confirmation". Routes to FuroDialog, FuroAlertDialog, FuroDrawer.

نظرة عامة

الناشرopenreachtech
المستودعhora-skills-ort-furo
اسم المهارةhof-cp-dialog
النجوم
32
التفريعات
0
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها openreachtech على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Hof Cp Dialog في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-dialog
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-cp-dialog .claude/skills/hof-cp-dialog
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Hof Cp Dialog في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Hof Cp Dialog تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Hof Cp Dialog بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

FuroDialog / FuroAlertDialog / FuroDrawer

Three organism-layer overlays that block or partially block the page, each for a different job. FuroDialog is the general-purpose modal (or non-modal, via parcel.modal: false) with header/body/footer regions and a close button — use it for forms, detail views, or any freeform modal content. FuroAlertDialog is a narrower, purpose-built confirmation prompt: no close button, outside-click never dismisses, and it ships built-in confirm/cancel buttons (with a destructive tone) — use it specifically when you need the user to make an explicit yes/no decision (e.g. delete confirmation). FuroDrawer is an edge-anchored sliding panel (left/right/top/bottom) with optional drag handle, swipe-to-dismiss, and snap points — use it for persistent side panels, mobile sheet-style UI, or content too long/wide for a centered modal. All three share the same title / description / busy / initialFocus / closeOnEscape keys in their parcel.

  • Layer: organism
  • Import: import { FuroDialog, FuroAlertDialog, FuroDrawer } from '@openreachtech/furo-vue'
  • Manifest entry: node_modules/@openreachtech/furo-vue/public/furo-vue/components.json → components[].name === 'FuroDialog' / 'FuroAlertDialog' / 'FuroDrawer'

Read the manifest before writing markup if you need to confirm this information is still current — the library may have added props/events since this skill was written.

When NOT to use

  • Small, click-anchored floating panel that doesn't need to block the page (inline edit, action panel) → use hof-cp-popover (FuroPopover), not a non-modal FuroDialog.
  • Simple hover/focus hint text → use hof-cp-popover (FuroTooltip).
  • A menu of discrete actions anchored to a trigger → use hof-cp-dropdown-menu.
  • Toast-style transient feedback (success/error message, not a decision) → use hof-cp-toast.
  • Inline expand/collapse of content within the page flow (not an overlay) → use hof-cp-collapsible.
  • Need a plain "yes/no" without a destructive tone but the decision is trivial and low-stakes — FuroAlertDialog is still correct; don't reach for FuroDialog + hand-rolled footer buttons just to avoid it, since FuroAlertDialog already encodes the "block until decided" behavior (no close button, no outside-click dismiss).

Props

All three take a single parcel prop — no other props.

ComponentPropTypeDefaultNotes
FuroDialogparcelFuroDialogParcel | nullnullReactive behavior object.
FuroAlertDialogparcelFuroAlertDialogParcel | nullnullReactive behavior object.
FuroDrawerparcelFuroDrawerParcel | nullnullReactive behavior object.

parcel fields

FuroDialog

FieldTypeDefaultNotes
openboolean—Controlled open state. When omitted, the dialog manages its own state.
disabledbooleanfalseDisables the trigger.
modalbooleantruefalse renders without the overlay scrim and keeps the page interactive.
titlestring | nullnullHeading text. Provide a title (or the title slot) for accessibility.
descriptionstring | nullnullSub-heading text below the title.
closeTextstring'Close'Accessible label for the built-in close button.
closeOnOutsideClickbooleantruefalse ignores overlay / outside-click dismissal.
closeOnEscapebooleantruefalse ignores the Escape key.
size'sm' | 'default' | 'lg' | 'fullscreen''default'Content width variant. fullscreen fills the viewport.
busybooleanfalseWhile true, all dismissal is blocked — use during async work.
initialFocusstring | nullnullCSS selector (scoped to the content) of the element to focus on open.

FuroAlertDialog

FieldTypeDefaultNotes
openboolean—Controlled open state. When omitted, the dialog manages its own state.
disabledbooleanfalseDisables the trigger.
titlestring | nullnullHeading text. Provide a title (or the title slot) for accessibility.
descriptionstring | nullnullSub-heading text below the title.
confirmTextstring'Confirm'Label for the built-in confirm button.
cancelTextstring'Cancel'Label for the built-in cancel button.
tone'default' | 'destructive''default'destructive renders the confirm button with the destructive variant.
closeOnEscapebooleantruefalse ignores the Escape key.
size'sm' | 'default' | 'lg''default'Content width variant.
busybooleanfalseWhile true, dismissal is blocked and the action buttons are disabled (confirm shows a loading state).
initialFocusstring | nullnullCSS selector (scoped to the content) of the element to focus on open. When unset, the cancel button is focused.

FuroDrawer

FieldTypeDefaultNotes
openboolean—Controlled open state. When omitted, the drawer manages its own state.
disabledbooleanfalseDisables the trigger.
modalboolean | 'trap-focus'truetrue: overlay + focus trap + scroll lock. 'trap-focus': focus trapped, page interactive. false: fully non-modal.
titlestring | nullnullHeading text. Provide a title (or the title slot) for accessibility.
descriptionstring | nullnullSub-heading text below the title.
closeTextstring'Close'Accessible label for the built-in close button.
closeOnOutsideClickbooleantruefalse ignores overlay / outside-click dismissal.
closeOnEscapebooleantruefalse ignores the Escape key.
side'left' | 'right' | 'top' | 'bottom''right'Edge the panel docks to, slides in from, and is swiped toward to dismiss.
size'sm' | 'default' | 'lg' | 'fullscreen''default'Cross-axis extent: width for left/right, height for top/bottom. fullscreen fills the docking axis.
snapPointsArray<number | string> | nullnullPreset resting positions: fractions 0–1, pixels > 1, or '148px'/'30rem' strings.
activeSnapPointnumber | string | nullnullControlled active snap point. When set, the parent owns it (update:activeSnapPoint).
sequentialSnapbooleanfalsetrue snaps one point at a time; false snaps to the nearest by distance.
swipeToOpenbooleanfalseRenders an edge grab strip so the panel can be swiped open from closed.
dragHandlebooleanfalseRenders a drag handle (grab indicator) on the docked edge.
busybooleanfalseWhile true, all dismissal is blocked — use during async work.
initialFocusstring | nullnullCSS selector (scoped to the drawer content) of the element to focus on open.

Events

ComponentEventPayloadFires when
FuroDialogupdate:openbooleanOpen state changed — enables v-model:open.
FuroDialogopen:change{ open: boolean }Open state changed (semantic form).
FuroAlertDialogconfirm—The confirm action was chosen.
FuroAlertDialogcancel—The cancel action was chosen (button or Escape).
FuroAlertDialogupdate:openbooleanOpen state changed — enables v-model:open.
FuroAlertDialogopen:change{ open: boolean }Open state changed (semantic form).
FuroDrawerupdate:openbooleanOpen state changed — enables v-model:open.
FuroDraweropen:change{ open: boolean }Open state changed (semantic form).
FuroDrawerupdate:activeSnapPointnumber | string | nullActive snap point changed — enables v-model:activeSnapPoint.
FuroDrawersnap:change{ snapPoint: number | string | null }Active snap point changed (semantic form).

Slots

FuroDialog

SlotDescription
triggerOptional element that opens the dialog, rendered via as-child. Omit when opened via controlled open.
titleOverrides the heading (falls back to parcel.title).
descriptionOverrides the description (falls back to parcel.description).
default (scoped: { close })Dialog body content. Receives a close() slot prop to dismiss from inside.
footer (scoped: { close })Footer region. Receives a close() slot prop so action buttons can dismiss the dialog.
closeContent of the built-in close button (defaults to ✕).

FuroAlertDialog

SlotDescription
triggerOptional element that opens the dialog, rendered via as-child. Omit when opened via controlled open.
titleOverrides the heading (falls back to parcel.title).
descriptionOverrides the description (falls back to parcel.description).
defaultOptional body content rendered between the heading and the footer.
footer (scoped: { confirm, cancel })Overrides the built-in confirm / cancel buttons. Receives confirm() and cancel() slot props.

FuroDrawer

SlotDescription
triggerOptional element that opens the drawer (rendered via as-child). Omit when opened via controlled open or swipe-to-open.
titleOverrides the heading (falls back to parcel.title).
descriptionOverrides the description (falls back to parcel.description).
default (scoped: { close })Drawer body content. Receives a close() slot prop to dismiss from inside.
footer (scoped: { close })Footer region (e.g. action buttons). Receives a close() slot prop.
closeContent of the built-in close button (defaults to ✕).

Close button size

Before 1.5.0From 1.5.0
FuroDialog and FuroDrawer built-in close buttonFixed at 1.75rem wide and tall in the component's CSSReads --size-close-button-medium, which defaults to 1.75rem, 28px
Override from the appDeclaring the token changes nothing, because the component never reads itRedefine the token, and the button follows

From 1.5.0, an app raises the button to a larger touch target by overriding the token as /hof-lib-tokens describes, never the dialog's CSS. The token holds one value in both themes, so put it on :root, either unlayered or in @layer app:

css
:root {
  --size-close-button-medium: 2.5rem;
}

FuroAlertDialog has no close button, so the token does not touch it.

Fallthrough attributes

class and style compose onto the root. Every other attribute you write on the component (id, aria-*, data-*) is dropped and reaches no element.

Usage

vue
<script>
import {
  FuroDialog,
  FuroAlertDialog,
  FuroDrawer,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroDialog,
    FuroAlertDialog,
    FuroDrawer,
  },
}
</script>

<template>
  <FuroDialog
    v-model:open="context.isEditDialogOpen"
    :parcel="{ title: 'Edit member', busy: context.isSubmitting }"
  >
    <template #trigger>
      <button type="button">
        Edit
      </button>
    </template>

    <template #default="{ close }">
      <MemberEditForm @submitted="close()" />
    </template>
  </FuroDialog>

  <FuroAlertDialog
    v-model:open="context.isDeleteConfirmOpen"
    :parcel="{
      title: 'Delete this member?',
      description: 'This action cannot be undone.',
      tone: 'destructive',
      busy: context.isDeleting,
    }"
    @confirm="context.onConfirmDelete()"
    @cancel="context.onCancelDelete()"
  />

  <FuroDrawer
    v-model:open="context.isFilterDrawerOpen"
    :parcel="{ side: 'right', title: 'Filters', dragHandle: true }"
  >
    <template #default>
      <FilterForm @apply="context.onApplyFilters({ payload: $event })" />
    </template>
  </FuroDrawer>
</template>

Rules (per project conventions)

  • All three use parcel + v-model:open for open/close state — this is the documented exception to the project's general no-v-model rule, which applies only to custom in-project components, not to furo-vue library components. FuroDrawer also supports v-model:activeSnapPoint.
  • None of the three follow the form-control (parcel.value) contract — they are visibility/overlay components, not inputs.
  • FuroAlertDialog is not a generic modal: it has no update:open-driven close button and no outside-click dismissal by design. Its real contract is the confirm / cancel events — always handle both, and do the actual destructive action (e.g. the delete mutation) inside the confirm handler in the page/component Context, never inline in the template.
  • Never import the underlying headless primitives (reka-ui's DialogRoot, etc.) — only the public FuroDialog / FuroAlertDialog / FuroDrawer exports.
  • Keep business logic (what happens on confirm/cancel/close, what data the dialog body submits) in the page/component Context, not inline in the template.
  • Pass only the parcel keys this skill lists. A component reads the keys it names and ignores the rest, so a mistyped key changes nothing and reports nothing, so check a key against the manifest rather than trusting silence.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Hof Cp Dialog؟

Use when building a modal, a confirm/destructive-action prompt, or a side panel, in a repo that consumes @openreachtech/furo-vue — "modal", "confirmation dialog", "are you sure prompt", "side panel", "delete confirmation". Routes to FuroDialog, FuroAlertDialog, FuroDrawer.

لماذا تستخدم Hof Cp Dialog على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Hof Cp Dialog عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Hof Cp Dialog في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-dialog. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Hof Cp Dialog؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Hof Cp Dialog؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Hof Cp Dialog معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Hof Cp Dialog مجانية؟

نعم. نشرها openreachtech على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇