スケジューラ

このサンプルでは、FlexSchedulerコントロールの概要を説明します。組み込みビューとカスタムビューの定義、プロジェクション評価、軸バインディング、勤務時間の設定、アイテムテンプレート、ナビゲーション、リソース、イベントの編集などの機能を示します。サポートされていないレイアウトは拒否され、情報が失われるレイアウトは警告付きで適用されます。

import 'bootstrap.css'; import '@mescius/wijmo.styles/wijmo.css'; import './styles.css'; import * as wjcCore from '@mescius/wijmo'; import * as wjcInput from '@mescius/wijmo.input'; import * as wjcScheduler from '@mescius/wijmo.scheduler'; import { getDemoDisplayDate, getSchedulerItems, getSchedulerResources } from './data'; const bindings = { none: null, 'time:hour': { type: wjcScheduler.SchedulerAxisBindingType.Time, unit: wjcScheduler.SchedulerTimeUnit.Hour, visible: (args) => args.hour !== undefined && args.hour >= 6 && args.hour < 20, }, 'time:day': { type: wjcScheduler.SchedulerAxisBindingType.Time, unit: wjcScheduler.SchedulerTimeUnit.Day }, 'time:dayOfWeek': { type: wjcScheduler.SchedulerAxisBindingType.Time, unit: wjcScheduler.SchedulerTimeUnit.DayOfWeek, }, 'time:dayOfMonth': { type: wjcScheduler.SchedulerAxisBindingType.Time, unit: wjcScheduler.SchedulerTimeUnit.DayOfMonth, }, 'time:weekOfMonth': { type: wjcScheduler.SchedulerAxisBindingType.Time, unit: wjcScheduler.SchedulerTimeUnit.WeekOfMonth, }, 'resource:team': { type: wjcScheduler.SchedulerAxisBindingType.Resource, fieldExpr: 'teamId' }, 'resource:region': { type: wjcScheduler.SchedulerAxisBindingType.Resource, fieldExpr: 'regionId' }, }; const bindingLabels = { none: 'なし', 'time:hour': '時間', 'time:day': '日', 'time:dayOfWeek': '曜日', 'time:dayOfMonth': '日付', 'time:weekOfMonth': '週番号', 'resource:team': 'リソース:チーム', 'resource:region': 'リソース:地域', }; function clone(config) { return { viewport: config.viewport, semantic: config.semantic, row: config.row.slice(), column: config.column.slice(), }; } function preset(viewport) { const timed = wjcScheduler.SchedulerCellSemantic.Timed; const summary = wjcScheduler.SchedulerCellSemantic.Summary; switch (viewport) { case 'day': return { viewport, semantic: timed, row: ['time:hour'], column: ['time:day'] }; case 'month': return { viewport, semantic: summary, row: ['time:weekOfMonth'], column: ['time:dayOfWeek'] }; case 'timelineDay': return { viewport, semantic: timed, row: [], column: ['time:day', 'time:hour'] }; case 'timelineWeek': return { viewport, semantic: timed, row: [], column: ['time:dayOfWeek', 'time:hour'] }; case 'timelineMonth': return { viewport, semantic: summary, row: [], column: ['time:dayOfMonth'] }; case 'workWeek': return { viewport, semantic: timed, row: ['time:hour'], column: ['time:dayOfWeek'] }; default: return { viewport: 'week', semantic: timed, row: ['time:hour'], column: ['time:dayOfWeek'] }; } } function definition(config) { const make = (keys) => keys.map((key) => bindings[key]).filter((value) => !!value); const columns = make(config.column).map((binding) => binding.type === wjcScheduler.SchedulerAxisBindingType.Time && binding.unit === wjcScheduler.SchedulerTimeUnit.DayOfWeek && config.viewport === 'workWeek' ? Object.assign(Object.assign({}, binding), { visible: (args) => args.dayOfWeek >= 1 && args.dayOfWeek <= 5 }) : binding); return { key: config.viewport === 'custom' ? 'customOverview' : config.viewport, rows: { bindings: make(config.row) }, columns: { bindings: columns }, cellSemantic: config.semantic, }; } function init() { const resourceData = getSchedulerResources(); const itemsSource = new wjcCore.CollectionView(getSchedulerItems()); const resources = [ { fieldExpr: 'teamId', label: 'チーム', dataSource: resourceData.teams, valueExpr: 'id', displayExpr: 'text' }, { fieldExpr: 'regionId', label: '地域', dataSource: resourceData.regions, valueExpr: 'id', displayExpr: 'text', }, ]; const scheduler = new wjcScheduler.FlexScheduler('#theScheduler', { itemsSource, resources, definition: definition(preset('workWeek')), displayDate: getDemoDisplayDate(), timeZone: 'Asia/Shanghai', workHours: [{ start: '06:00', end: '19:00' }], showToolbar: true, showColumnHeaders: true, showRowHeaders: true, allowDragEvent: true, allowResizeEvent: true, }); const state = { config: preset('workWeek'), workingTime: true, customTemplate: false }; const dateInput = new wjcInput.InputDate('#displayDateInput', { value: scheduler.displayDate }); dateInput.valueChanged.addHandler(() => { if (dateInput.value) scheduler.displayDate = dateInput.value; }); scheduler.displayDateChanged.addHandler(() => { if (!dateInput.value || dateInput.value.getTime() !== scheduler.displayDate.getTime()) dateInput.value = scheduler.displayDate; }); document.querySelectorAll('[data-config-tab]').forEach((button) => button.addEventListener('click', () => { document.querySelectorAll('.config-section').forEach((section) => { section.hidden = section.dataset.section !== button.dataset.configTab; }); document.querySelectorAll('[data-config-tab]').forEach((tab) => { const selected = tab === button; tab.classList.toggle('active', selected); tab.setAttribute('aria-selected', String(selected)); }); })); document.querySelectorAll('.config-section').forEach((section) => { section.hidden = section.dataset.section !== 'view'; }); const definitionFeedback = document.querySelector('#definitionFeedback'); const apply = () => { const next = definition(state.config); const integrity = wjcScheduler.planSchedulerProjection(next).integrity; if (integrity.level === 'unsupported') { showDefinitionFeedback('error', `レイアウトは適用されません: ${integrity.reasons.join(' ')}`); return; } scheduler.definition = Object.assign(Object.assign({}, next), { itemTemplate: state.customTemplate ? renderItem : null }); if (integrity.level === 'lossy') { showDefinitionFeedback('warning', `レイアウトは調整されました: ${integrity.reasons.join(' ')}`); } else { definitionFeedback.hidden = true; definitionFeedback.textContent = ''; } }; const showDefinitionFeedback = (level, message) => { definitionFeedback.className = `definition-feedback ${level}`; definitionFeedback.textContent = message; definitionFeedback.hidden = false; }; const select = document.querySelector('#viewportSelect'); select.addEventListener('change', () => { if (select.value !== 'custom') { state.config = preset(select.value); render(); apply(); } }); document.querySelector('#semanticSelect').addEventListener('change', (event) => { state.config.semantic = event.target.value === 'summary' ? wjcScheduler.SchedulerCellSemantic.Summary : wjcScheduler.SchedulerCellSemantic.Timed; state.config.viewport = 'custom'; render(); }); document.querySelector('#applyAxisConfig').addEventListener('click', apply); document.querySelector('#resetAxisConfig').addEventListener('click', () => { state.config = preset('workWeek'); render(); apply(); }); document .querySelector('#timeZoneSelect') .addEventListener('change', (event) => (scheduler.timeZone = event.target.value || null)); document.querySelector('#workingTime').addEventListener('change', (event) => { state.workingTime = event.target.checked; scheduler.workHours = state.workingTime ? [{ start: '06:00', end: '19:00' }] : null; }); document.querySelector('#customItemTemplate').addEventListener('change', (event) => { state.customTemplate = event.target.checked; apply(); }); document .querySelector('#showToolbar') .addEventListener('change', (event) => (scheduler.showToolbar = event.target.checked)); document .querySelector('#showColumnHeaders') .addEventListener('change', (event) => (scheduler.showColumnHeaders = event.target.checked)); document .querySelector('#showRowHeaders') .addEventListener('change', (event) => (scheduler.showRowHeaders = event.target.checked)); document .querySelector('#allowDrag') .addEventListener('change', (event) => (scheduler.allowDragEvent = event.target.checked)); document .querySelector('#allowResize') .addEventListener('change', (event) => (scheduler.allowResizeEvent = event.target.checked)); document.querySelectorAll('[data-add-binding]').forEach((button) => button.addEventListener('click', () => { const group = button.dataset.addBinding; (group === 'row' ? state.config.row : state.config.column).push('none'); state.config.viewport = 'custom'; render(); })); render(); function render() { select.value = state.config.viewport; document.querySelector('#semanticSelect').value = state.config.semantic === wjcScheduler.SchedulerCellSemantic.Summary ? 'summary' : 'timed'; for (const group of ['row', 'column']) { const list = document.querySelector(`#${group}BindingsList`); list.textContent = ''; state.config[group].forEach((value, index) => { const row = document.createElement('div'); const bindingSelect = document.createElement('select'); const removeButton = document.createElement('button'); row.className = 'binding-row'; Object.keys(bindings).forEach((key) => bindingSelect.add(new Option(bindingLabels[key], key))); bindingSelect.value = value; bindingSelect.addEventListener('change', () => { state.config[group][index] = bindingSelect.value; state.config.viewport = 'custom'; render(); }); removeButton.className = 'icon-button'; removeButton.type = 'button'; removeButton.title = 'バインディングを削除'; removeButton.textContent = 'x'; removeButton.addEventListener('click', () => { state.config[group].splice(index, 1); state.config.viewport = 'custom'; render(); }); row.append(bindingSelect, removeButton); list.appendChild(row); }); } document.querySelector('#configRowsPreview').textContent = `行: ${state.config.row.map((key) => bindingLabels[key]).join(' + ') || 'なし'}`; document.querySelector('#configColumnsPreview').textContent = `列: ${state.config.column.map((key) => bindingLabels[key]).join(' + ') || 'なし'}`; } } function renderItem(ctx, element) { element.textContent = ''; const subject = document.createElement('strong'); subject.textContent = ctx.item.subject; element.appendChild(subject); return null; } document.readyState === 'loading' ? document.addEventListener('DOMContentLoaded', init) : init();
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>MESCIUS Wijmo Scheduler Overview</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://cdn.jsdelivr.net/npm/systemjs@0.21.5/dist/system.src.js" integrity="sha512-skZbMyvYdNoZfLmiGn5ii6KmklM82rYX2uWctBhzaXPxJgiv4XBwJnFGr5k8s+6tE1pcR1nuTKghozJHyzMcoA==" crossorigin="anonymous"></script> <script src="systemjs.config.js"></script> <script>System.import('./src/app');</script> </head> <body> <main class="scheduler-demo-page"> <section class="workspace-layout"> <div class="scheduler-shell"><div id="theScheduler"></div></div> <aside class="config-panel"> <div class="config-panel-header"> <h2>スケジューラの構成</h2> <div class="config-tabs" role="tablist" aria-label="スケジューラの構成"> <button class="active" type="button" role="tab" data-config-tab="view" aria-selected="true">ビュー</button> <button type="button" role="tab" data-config-tab="time" aria-selected="false">時間</button> <button type="button" role="tab" data-config-tab="display" aria-selected="false">表示</button> <button type="button" role="tab" data-config-tab="interaction" aria-selected="false">操作</button> </div> </div> <div class="config-panel-body"> <section class="config-section" data-section="view"> <label class="field-control"><span>ビュープリセット</span><select id="viewportSelect"><option value="custom">カスタム</option><option value="day">日</option><option value="week">週</option><option value="workWeek">稼働日</option><option value="month">月</option><option value="timelineDay">タイムライン日</option><option value="timelineWeek">タイムライン週間</option><option value="timelineMonth">タイムライン月</option></select></label> <label class="field-control"><span>セルセマンティック</span><select id="semanticSelect"><option value="timed">時刻指定</option><option value="summary">サマリー</option></select></label> <section class="binding-section"><div class="section-heading"><h3>行バインディング</h3><button class="small-button" type="button" data-add-binding="row">追加</button></div><div id="rowBindingsList" class="binding-list"></div></section> <section class="binding-section"><div class="section-heading"><h3>列バインディング</h3><button class="small-button" type="button" data-add-binding="column">追加</button></div><div id="columnBindingsList" class="binding-list"></div></section> <div class="draft-preview"><span id="configRowsPreview"></span><span id="configColumnsPreview"></span></div> <div id="definitionFeedback" class="definition-feedback" role="alert" aria-live="polite" hidden></div> <div class="button-row"><button id="applyAxisConfig" class="demo-button primary-button" type="button">レイアウトを適用</button><button id="resetAxisConfig" class="demo-button" type="button">レイアウトをリセット</button></div> </section> <section class="config-section" data-section="time"> <div class="field-control"><label for="displayDateInput">表示日</label><div id="displayDateInput"></div></div> <label class="field-control"><span>タイムゾーン</span><select id="timeZoneSelect"><option value="">ブラウザーのローカル</option><option value="UTC">協定世界時 (UTC)</option><option value="America/Los_Angeles">アメリカ/ロサンゼルス</option><option value="America/New_York">アメリカ/ニューヨーク</option><option value="Europe/London">ヨーロッパ/ロンドン</option><option value="Asia/Tokyo">アジア/東京</option><option value="Asia/Shanghai" selected>アジア/上海</option></select></label> <label class="toggle-control"><input id="workingTime" type="checkbox" checked><span>勤務時間(06:00-19:00)</span></label> </section> <section class="config-section" data-section="display"> <div class="toggle-list"><label class="toggle-control"><input id="showToolbar" type="checkbox" checked><span>ツールバー</span></label><label class="toggle-control"><input id="showColumnHeaders" type="checkbox" checked><span>列ヘッダー</span></label><label class="toggle-control"><input id="showRowHeaders" type="checkbox" checked><span>行ヘッダー</span></label><label class="toggle-control"><input id="customItemTemplate" type="checkbox"><span>カスタムアイテムテンプレート</span></label></div> </section> <section class="config-section" data-section="interaction"><div class="toggle-list"><label class="toggle-control"><input id="allowDrag" type="checkbox" checked><span>ドラッグを許可</span></label><label class="toggle-control"><input id="allowResize" type="checkbox" checked><span>サイズ変更を許可</span></label></div></section> </div> </aside> </section> </main> </body> </html>
function createUtcDate(year, month, day, hour, minute = 0) { // デモデータは固定された時点を使用しているため、ブラウザのタイムゾーンを変更すると、表示されるスロットも変わります。 return new Date(Date.UTC(year, month, day, hour, minute, 0, 0)); } export function getDemoDisplayDate() { return createUtcDate(2026, 4, 6, 1, 0); } export function getSchedulerResources() { return { regions: [ { id: 'region-east', text: '関東エリア', backgroundColor: '#dbeafe', foreColor: '#0f172a' }, { id: 'region-west', text: '関西エリア', backgroundColor: '#dcfce7', foreColor: '#0f172a' }, { id: 'region-central', text: '中部エリア', backgroundColor: '#fef3c7', foreColor: '#0f172a' }, ], teams: [ { id: 'team-a', text: 'Aチーム', backgroundColor: '#4f8ef7', foreColor: '#ffffff' }, { id: 'team-b', text: 'Bチーム', backgroundColor: '#36b37e', foreColor: '#ffffff' }, { id: 'team-c', text: 'Cチーム', backgroundColor: '#8a6fd1', foreColor: '#ffffff' }, { id: 'team-d', text: 'Dチーム', backgroundColor: '#e7785b', foreColor: '#ffffff' }, { id: 'team-e', text: 'Eチーム', backgroundColor: '#d19a3b', foreColor: '#ffffff' }, { id: 'team-f', text: 'Fチーム', backgroundColor: '#3ba7c9', foreColor: '#ffffff' }, { id: 'team-g', text: 'Gチーム', backgroundColor: '#6574cd', foreColor: '#ffffff' }, ], }; } export function getSchedulerItems() { return [ { id: 1, subject: '通常業務', start: createUtcDate(2026, 4, 4, 0, 30), end: createUtcDate(2026, 4, 4, 1, 15), regionId: 'region-east', teamId: 'team-a', description: '当日の優先事項、人員配置、サービスの状況を確認する。', }, { id: 2, subject: 'ロードマップ計画', start: createUtcDate(2026, 4, 4, 2, 0), end: createUtcDate(2026, 4, 4, 3, 30), regionId: 'region-central', teamId: 'team-b', description: '製品担当者と開発チームで、次回リリースの重要なマイルストーンの優先順位を確認する。', }, { id: 3, subject: '顧客導入支援', start: createUtcDate(2026, 4, 4, 5, 30), end: createUtcDate(2026, 4, 4, 6, 30), regionId: 'region-west', teamId: 'team-c', description: 'リリースに向けた作業と担当範囲について、顧客チームを支援する。', }, { id: 4, subject: '設計レビュー', start: createUtcDate(2026, 4, 5, 1, 0), end: createUtcDate(2026, 4, 5, 2, 0), regionId: 'region-west', teamId: 'team-d', description: '新しい業務フローを確認し、未決定の設計方針を整理する。', }, { id: 5, subject: '導入顧客向けデモ', start: createUtcDate(2026, 4, 5, 3, 0), end: createUtcDate(2026, 4, 5, 4, 0), regionId: 'region-east', teamId: 'team-e', description: '導入顧客へレポート機能の利用手順を説明する。', }, { id: 6, subject: 'リリース準備', start: createUtcDate(2026, 4, 5, 6, 0), end: createUtcDate(2026, 4, 5, 8, 0), regionId: 'region-central', teamId: 'team-f', description: 'リリースに向けた確認項目を完了し、デプロイ作業の担当範囲を明確にする。', }, { id: 7, subject: 'サポート案件の優先度確認', start: createUtcDate(2026, 4, 6, 0, 0), end: createUtcDate(2026, 4, 6, 0, 45), regionId: 'region-east', teamId: 'team-g', description: '夜間に発生した問い合わせや障害を確認し、顧客対応の担当を決める。', }, { id: 8, subject: 'スプリント計画', start: createUtcDate(2026, 4, 6, 2, 30), end: createUtcDate(2026, 4, 6, 4, 0), regionId: 'region-central', teamId: 'team-a', description: 'スプリントの方針を決め、チーム全体の開発リソースを確認する。', }, { id: 9, subject: 'キャンペーン説明会', start: createUtcDate(2026, 4, 6, 5, 0), end: createUtcDate(2026, 4, 6, 6, 0), regionId: 'region-west', teamId: 'team-b', description: 'キャンペーンの実施時期や訴求内容について、営業チームとマーケティングチームの認識を合わせる。', }, { id: 10, subject: 'アーキテクチャレビュー', start: createUtcDate(2026, 4, 6, 7, 0), end: createUtcDate(2026, 4, 6, 8, 30), regionId: 'region-east', teamId: 'team-c', description: '各システムの連携方法を確認し、採用する実装方法を決定する。', }, { id: 11, subject: '営業案件レビュー', start: createUtcDate(2026, 4, 7, 1, 0), end: createUtcDate(2026, 4, 7, 2, 0), regionId: 'region-west', teamId: 'team-d', description: '優先度の高い営業案件を確認し、今後の対応方針を決定する。', }, { id: 12, subject: 'セキュリティレビュー', start: createUtcDate(2026, 4, 7, 3, 30), end: createUtcDate(2026, 4, 7, 5, 0), regionId: 'region-central', teamId: 'team-e', description: 'アクセス権限を見直し、監査で指摘された未対応事項を解消する。', }, { id: 13, subject: '顧客定例会', start: createUtcDate(2026, 4, 7, 6, 30), end: createUtcDate(2026, 4, 7, 7, 15), regionId: 'region-east', teamId: 'team-f', description: '進捗状況を確認し、来週の優先課題を整理する。', }, { id: 14, subject: '週次実績レビュー', start: createUtcDate(2026, 4, 8, 0, 30), end: createUtcDate(2026, 4, 8, 1, 30), regionId: 'region-central', teamId: 'team-g', description: '製品の利用状況、サービス品質、提供実績の推移を確認する。', }, { id: 15, subject: '製品説明会', start: createUtcDate(2026, 4, 8, 2, 30), end: createUtcDate(2026, 4, 8, 4, 0), regionId: 'region-east', teamId: 'team-a', description: '完成した機能を紹介し、関係者からフィードバックを収集する。', }, { id: 16, subject: 'チーム振り返り', start: createUtcDate(2026, 4, 8, 6, 0), end: createUtcDate(2026, 4, 8, 7, 0), regionId: 'region-west', teamId: 'team-b', description: 'スプリントを振り返り、良かった点や課題を整理して次回の改善策を決める。', }, { id: 17, subject: 'リリース準備レビュー', start: createUtcDate(2026, 4, 12, 1, 0), end: createUtcDate(2026, 4, 12, 2, 0), regionId: 'region-west', teamId: 'team-c', description: 'リリース条件、関係者への連絡内容、サポート体制を確認する。', }, { id: 18, subject: '四半期計画策定', start: createUtcDate(2026, 4, 13, 5, 0), end: createUtcDate(2026, 4, 13, 7, 0), regionId: 'region-central', teamId: 'team-d', description: '四半期の成果目標、関連タスク、責任者を整理する。', }, ]; }
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; background: #f3f4f6; color: #1f2937; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Light", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; user-select: none; } .scheduler-demo-page { box-sizing: border-box; height: 100vh; min-height: 100vh; padding: 5px; } .workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); gap: 12px; box-sizing: border-box; height: 100%; min-height: 0; } .scheduler-shell, .config-panel { box-sizing: border-box; height: 100%; min-height: 0; border: 1px solid #e5e7eb; background: #fff; } .scheduler-shell { min-width: 0; overflow: hidden; } #theScheduler { width: 100%; height: 100%; min-height: 0; } .config-panel { min-width: 0; overflow: auto; } .config-panel, .config-panel button, .config-panel input, .config-panel select, .config-panel .wj-control, .config-panel .wj-input, .config-panel .wj-listbox, .config-panel .wj-listbox-item, .config-panel .wj-calendar { font-family: inherit; } .config-panel { font-size: 14px; line-height: 1.4; } .config-panel .wj-control { font-size: 14px; } .config-panel .wj-listbox-item { font-size: 14px; line-height: 1.4; } .config-panel-header { padding: 14px 16px 0; border-bottom: 1px solid #e5e7eb; } .config-panel-header h2 { margin: 0 0 12px; color: #111827; font-size: 16px; font-weight: 600; } .config-tabs { display: flex; gap: 2px; overflow-x: auto; } .config-tabs button { min-height: 34px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6b7280; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; } .config-tabs button.active { border-bottom-color: #4f46e5; color: #3730a3; } .config-tabs button:focus-visible, .demo-button:focus-visible, .small-button:focus-visible, .icon-button:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; } .config-panel-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; } .config-section { display: flex; flex-direction: column; gap: 12px; } .field-control { display: flex; flex-direction: column; gap: 5px; } .field-control > span, .field-control > label, .toggle-control, .section-heading h3 { color: #4b5563; font-size: 14px; font-weight: 600; } .field-control select, .binding-row select { width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid #d1d5db; background: #fff; color: #111827; font: inherit; } .binding-section { display: flex; flex-direction: column; gap: 8px; } .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .section-heading h3 { margin: 0; color: #111827; font-size: 14px; } .binding-list { display: flex; flex-direction: column; gap: 6px; } .binding-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 6px; align-items: center; } .small-button, .demo-button, .icon-button { min-height: 32px; padding: 0 9px; border: 1px solid #d1d5db; background: #fff; color: #111827; font: inherit; font-size: 14px; font-weight: 600; } .icon-button { width: 28px; padding: 0; color: #b91c1c; } .primary-button { border-color: #4f46e5; background: #4f46e5; color: #fff; } .draft-preview { display: flex; flex-direction: column; gap: 5px; padding: 9px; border: 1px solid #e5e7eb; background: #f9fafb; color: #4b5563; font-size: 11px; } .definition-feedback { padding: 8px 10px; border: 1px solid; border-radius: 4px; font-size: 12px; line-height: 1.4; } .definition-feedback.warning { border-color: #d97706; background: #fffbeb; color: #92400e; } .definition-feedback.error { border-color: #dc2626; background: #fef2f2; color: #991b1b; } .button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .toggle-list { display: flex; flex-direction: column; gap: 10px; } .toggle-control { display: flex; align-items: center; gap: 8px; color: #374151; } .toggle-control input { accent-color: #4f46e5; } .view-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } .view-item-grid label { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 7px; border: 1px solid #e5e7eb; color: #374151; font-size: 14px; } .wj-control:focus-within { outline: 2px solid rgb(79 70 229 / 24%); outline-offset: 1px; } @media (max-width: 760px) {html, body { overflow: auto; }.workspace-layout { grid-template-columns: 1fr; height: auto; min-height: 100vh; }.scheduler-shell, .config-panel { height: auto; }#theScheduler { height: 680px; min-height: 680px; }.config-panel { max-height: none; } } input, textarea, [contenteditable="true"] { user-select: text; }
(function (global) { System.config({ transpiler: 'plugin-babel', babelOptions: { es2015: true, }, meta: { '*.css': { loader: 'css' }, }, paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { '@mescius/wijmo': 'npm:@mescius/wijmo/index.js', '@mescius/wijmo.input': 'npm:@mescius/wijmo.input/index.js', '@mescius/wijmo.scheduler': 'npm:@mescius/wijmo.scheduler/index.js', '@mescius/wijmo.styles': 'npm:@mescius/wijmo.styles', '@mescius/wijmo.cultures': 'npm:@mescius/wijmo.cultures', jszip: 'npm:jszip/dist/jszip.js', 'bootstrap.css': 'npm:bootstrap/dist/css/bootstrap.min.css', css: 'npm:systemjs-plugin-css/css.js', 'plugin-babel': 'npm:systemjs-plugin-babel/plugin-babel.js', 'systemjs-babel-build': 'npm:systemjs-plugin-babel/systemjs-babel-browser.js', }, packages: { src: { defaultExtension: 'js', }, node_modules: { defaultExtension: 'js', }, }, }); })(this);