ShtukbaseStandard
страница пакета→ /design/shtukbase-ui-html/components/shell/panel/panel.html

pages/design/shtukbase-ui-html/components/shell/panel/panel.html

31 строка, 13.1 КБ. Открыть как есть (в проекте рядом лежат другие файлы, здесь их может не быть).

Файл как есть в пакете: код и комментарии в нём не переводятся.

  1. <!---
  2. id: panel
  3. title: Side panel
  4. level: shell
  5. description: The right panel of every lens, or the optional left one - one floating white sheet inset from the window edge with the even shadow; the title and a panel icon button that folds the whole sheet into a small square button in the corner, plain sections with one hairline between them, a preset first, Reset and Copy link pinned at the bottom.
  6. uses: [panel-section, button, select, input]
  7. parts: [panel-header, panel-title, panel-close, panel-body, panel-footer]
  8. states: [default, left, long-text]
  9. status: [loading, empty, error]
  10. controls:
  11. side: {kind: segment, label: Side, options: [right, left], default: right}
  12. cssProperties: [--panel-width]
  13. --->
  14. <template data-state="default">
  15. <section data-slot="panel" class="panel" data-side="right" aria-label="Package map" style="height: 560px"><header data-slot="panel-header" class="panel-header"><h2 data-slot="panel-title" class="panel-title" title="Package map">Package map</h2><button type="button" data-slot="panel-close" class="panel-close" aria-label="Fold the panel" aria-expanded="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></svg></button></header><div data-slot="panel-body" class="panel-body"><p class="panel-lead">Core and packages, with their settings. Fold a section, pick a preset, copy a link.</p><div class="panel-preset"><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Preset">Preset</span><div data-slot="panel-section-control" class="panel-section-control"><span data-slot="select" class="select" data-variant="filled" data-size="sm"><select data-slot="select-trigger" class="select-trigger"><option>Main</option><option>Editorial</option></select><svg data-slot="select-icon" class="select-icon" viewBox="0 0 8 5" aria-hidden="true"><path d="M.5.5 4 4 7.5.5"/></svg></span></div></div></div><details data-slot="panel-section" class="panel-section" open><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">Cards</span></summary><div data-slot="panel-section-content" class="panel-section-content"><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Icon">Icon</span><div data-slot="panel-section-control" class="panel-section-control"><div class="panel-section-seg" role="radiogroup"><button type="button" role="radio" aria-checked="true">left</button><button type="button" role="radio" aria-checked="false">on top</button></div></div></div><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Size">Size</span><div data-slot="panel-section-control" class="panel-section-control"><div class="panel-section-seg" role="radiogroup"><button type="button" role="radio" aria-checked="false">S</button><button type="button" role="radio" aria-checked="true">M</button><button type="button" role="radio" aria-checked="false">L</button></div></div></div><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Cover">Cover</span><div data-slot="panel-section-control" class="panel-section-control"><span data-slot="select" class="select" data-variant="filled" data-size="sm"><select data-slot="select-trigger" class="select-trigger"><option>line on top</option><option>none</option></select><svg data-slot="select-icon" class="select-icon" viewBox="0 0 8 5" aria-hidden="true"><path d="M.5.5 4 4 7.5.5"/></svg></span></div></div></div></details><details data-slot="panel-section" class="panel-section" open><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">Chips</span></summary><div data-slot="panel-section-content" class="panel-section-content"><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Style">Style</span><div data-slot="panel-section-control" class="panel-section-control"><span data-slot="select" class="select" data-variant="filled" data-size="sm"><select data-slot="select-trigger" class="select-trigger"><option>grey outline</option></select><svg data-slot="select-icon" class="select-icon" viewBox="0 0 8 5" aria-hidden="true"><path d="M.5.5 4 4 7.5.5"/></svg></span></div></div><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Place">Place</span><div data-slot="panel-section-control" class="panel-section-control"><div class="panel-section-seg" role="radiogroup"><button type="button" role="radio" aria-checked="true">under text</button><button type="button" role="radio" aria-checked="false">right</button></div></div></div></div></details><details data-slot="panel-section" class="panel-section"><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">Edge</span></summary><div data-slot="panel-section-content" class="panel-section-content"></div></details><details data-slot="panel-section" class="panel-section"><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">About the lens</span></summary><div data-slot="panel-section-content" class="panel-section-content"><p class="panel-note">How to read the picture.</p></div></details></div><div data-slot="panel-footer" class="panel-footer"><button type="button" data-slot="button" class="button" data-variant="secondary" data-size="sm">Reset</button><button type="button" data-slot="button" class="button" data-variant="secondary" data-size="sm">Copy link</button></div></section>
  16. </template>
  17. <template data-state="left">
  18. <section data-slot="panel" class="panel" data-side="left" aria-label="Plants" style="height: 560px"><header data-slot="panel-header" class="panel-header"><h2 data-slot="panel-title" class="panel-title" title="Plants">Plants</h2><button type="button" data-slot="panel-close" class="panel-close" aria-label="Fold the panel" aria-expanded="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16"/></svg></button></header><div data-slot="panel-body" class="panel-body"><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Search">Search</span><div data-slot="panel-section-control" class="panel-section-control"><input data-slot="input" class="input" data-variant="filled" data-size="sm" type="search" placeholder="Find a card"></div></div><details data-slot="panel-section" class="panel-section" open><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">Breadcrumbs</span></summary><div data-slot="panel-section-content" class="panel-section-content"><p class="panel-note">Lenses / Base / Plants</p></div></details></div></section>
  19. </template>
  20. <template data-state="long-text">
  21. <section data-slot="panel" class="panel" data-side="right" aria-label="Карта пакетов стандарта Штукбазы и их зависимости" style="height: 560px"><header data-slot="panel-header" class="panel-header"><h2 data-slot="panel-title" class="panel-title" title="Карта пакетов стандарта Штукбазы и их зависимости">Карта пакетов стандарта Штукбазы и их зависимости</h2><button type="button" data-slot="panel-close" class="panel-close" aria-label="Fold the panel" aria-expanded="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></svg></button></header><div data-slot="panel-body" class="panel-body"><details data-slot="panel-section" class="panel-section" open><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">Карточки пакетов и их оформление</span></summary><div data-slot="panel-section-content" class="panel-section-content"><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Расположение значка">Расположение значка</span><div data-slot="panel-section-control" class="panel-section-control"><div class="panel-section-seg" role="radiogroup"><button type="button" role="radio" aria-checked="true">слева</button><button type="button" role="radio" aria-checked="false">сверху</button></div></div></div><div data-slot="panel-section-row" class="panel-section-row"><span data-slot="panel-section-label" class="panel-section-label" title="Размер карточки">Размер карточки</span><div data-slot="panel-section-control" class="panel-section-control"><div class="panel-section-seg" role="radiogroup"><button type="button" role="radio" aria-checked="false">S</button><button type="button" role="radio" aria-checked="true">M</button><button type="button" role="radio" aria-checked="false">L</button></div></div></div></div></details><details data-slot="panel-section" class="panel-section"><summary data-slot="panel-section-trigger" class="panel-section-trigger"><span data-slot="panel-section-title" class="panel-section-title">Фильтры по слоям</span></summary><div data-slot="panel-section-content" class="panel-section-content"></div></details></div><div data-slot="panel-footer" class="panel-footer"><button type="button" data-slot="button" class="button" data-variant="secondary" data-size="sm">Reset</button><button type="button" data-slot="button" class="button" data-variant="secondary" data-size="sm">Copy link</button></div></section>
  22. </template>
  23. <template data-status="loading">
  24. <section data-slot="panel" class="panel" data-side="right" data-status="loading" aria-busy="true" aria-label="Package map" style="height: 560px"><header data-slot="panel-header" class="panel-header"><h2 data-slot="panel-title" class="panel-title" title="Package map">Package map</h2><button type="button" data-slot="panel-close" class="panel-close" aria-label="Fold the panel" aria-expanded="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></svg></button></header><div data-slot="panel-body" class="panel-body"><div class="panel-skeleton"></div><div class="panel-skeleton" style="width: 60%"></div><div class="panel-skeleton" style="width: 80%"></div></div></section>
  25. </template>
  26. <template data-status="empty">
  27. <section data-slot="panel" class="panel" data-side="right" data-status="empty" aria-label="Plants" style="height: 560px"><header data-slot="panel-header" class="panel-header"><h2 data-slot="panel-title" class="panel-title" title="Plants">Plants</h2><button type="button" data-slot="panel-close" class="panel-close" aria-label="Fold the panel" aria-expanded="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></svg></button></header><div data-slot="panel-body" class="panel-body"><p class="panel-note">This page has no settings.</p></div></section>
  28. </template>
  29. <template data-status="error">
  30. <section data-slot="panel" class="panel" data-side="right" data-status="error" aria-label="Package map" style="height: 560px"><header data-slot="panel-header" class="panel-header"><h2 data-slot="panel-title" class="panel-title" title="Package map">Package map</h2><button type="button" data-slot="panel-close" class="panel-close" aria-label="Fold the panel" aria-expanded="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></svg></button></header><div data-slot="panel-body" class="panel-body"><p class="panel-note" role="alert">The settings did not load: the link holds a value this page does not know. Reset to start again.</p></div><div data-slot="panel-footer" class="panel-footer"><button type="button" data-slot="button" class="button" data-variant="secondary" data-size="sm">Reset</button><button type="button" data-slot="button" class="button" data-variant="secondary" data-size="sm">Copy link</button></div></section>
  31. </template>