17 Commits

Author SHA1 Message Date
Sebastian 9e026d7e42 chore(deps): update dependency @vue/test-utils to v2.5.0
JS Unit Tests / test (pull_request) Successful in 57s
Build Test / test (pull_request) Successful in 1m7s
2026-09-07 03:03:01 +00:00
Sebastian a2ab50ba80 Merge pull request 'chore(deps): update dependency jsdom to v30.0.1' (#52) from renovate/jsdom-30.x-lockfile into main
Reviewed-on: #52
2026-09-06 01:21:52 +00:00
Sebastian 9ff08e85b0 Merge pull request 'chore(deps): update dependency pinia to v4.0.3' (#53) from renovate/pinia-4.x-lockfile into main
Reviewed-on: #53
2026-09-06 01:21:46 +00:00
Sebastian a2ddf0545b chore(deps): update dependency pinia to v4.0.3
JS Unit Tests / test (pull_request) Successful in 56s
Build Test / test (pull_request) Successful in 1m2s
2026-09-03 03:02:43 +00:00
Sebastian 649896d28b chore(deps): update dependency jsdom to v30.0.1
Build Test / test (pull_request) Successful in 1m6s
JS Unit Tests / test (pull_request) Successful in 1m1s
2026-09-03 03:02:40 +00:00
Sebastian fe059b7153 Merge pull request 'chore(deps): update dependency jsdom to v30' (#47) from renovate/jsdom-30.x into main
Reviewed-on: #47
2026-09-01 11:45:30 +00:00
Sebastian c5d7f2b73d Merge pull request 'chore(deps): update dependency vuetify to v4.1.12' (#48) from renovate/vuetify-4.x-lockfile into main
Reviewed-on: #48
2026-09-01 11:45:23 +00:00
Sebastian 8e6cb50ef0 Merge pull request 'chore(deps): update dependency vue-tsc to v3.3.11' (#50) from renovate/vue-language-tools-monorepo into main
Reviewed-on: #50
2026-09-01 11:45:18 +00:00
Sebastian 3615caa019 Merge pull request 'chore(deps): update dependency vue to v3.5.42' (#51) from renovate/vue-monorepo into main
Reviewed-on: #51
2026-09-01 11:45:12 +00:00
Sebastian 5833b1dc0e Merge pull request 'chore(deps): update dependency vite to v8.2.2' (#49) from renovate/vite-8.x-lockfile into main
Reviewed-on: #49
2026-09-01 11:45:04 +00:00
Sebastian e51c91b919 chore(deps): update dependency vite to v8.2.2
Build Test / test (pull_request) Successful in 45s
JS Unit Tests / test (pull_request) Successful in 50s
2026-09-01 03:07:54 +00:00
Sebastian f6dca79b2e chore(deps): update dependency vuetify to v4.1.12
JS Unit Tests / test (pull_request) Successful in 1m11s
Build Test / test (pull_request) Successful in 1m20s
2026-09-01 03:07:50 +00:00
Sebastian 0a67ad9a10 chore(deps): update dependency vue-tsc to v3.3.11
Build Test / test (pull_request) Successful in 1m37s
JS Unit Tests / test (pull_request) Successful in 1m32s
2026-09-01 03:07:38 +00:00
Sebastian 9ccd3d42c6 chore(deps): update dependency vue to v3.5.42
JS Unit Tests / test (pull_request) Successful in 1m38s
Build Test / test (pull_request) Successful in 1m45s
2026-09-01 03:07:36 +00:00
Sebastian 48e238c3b7 refactor(module): register integrations through runtime contexts
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-08-31 22:55:11 -04:00
Sebastian df8450b09d refactor: improve properties input
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-08-10 21:43:54 -04:00
Sebastian f245de16d6 chore(deps): update dependency jsdom to v30
Build Test / test (pull_request) Successful in 39s
JS Unit Tests / test (pull_request) Successful in 40s
2026-07-28 03:08:12 +00:00
8 changed files with 333 additions and 879 deletions
+7 -12
View File
@@ -2,13 +2,14 @@
namespace KTXM\Chrono;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract;
/**
* Chrono Module - Calendaring and Tasks
*/
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
class Module extends ModuleInstanceAbstract
{
public function __construct()
@@ -50,17 +51,11 @@ class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
];
}
public function registerBI(): array
public function configure(ModuleContextInterface $context): void
{
return [
'handle' => $this->handle(),
'namespace' => 'Chrono',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'Chrono', 'static/module.mjs');
}
}
}
+282 -783
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -28,7 +28,7 @@
"@vitest/coverage-v8": "^4.1.6",
"@vue/test-utils": "^2.4.10",
"@vue/tsconfig": "^0.9.0",
"jsdom": "^29.1.1",
"jsdom": "^30.0.0",
"typescript": "~6.0.0",
"vite": "^8.0.0",
"vitest": "^4.1.6",
-2
View File
@@ -252,9 +252,7 @@ watch(
<EventEditorParticipants
:mode="mode"
:organizer="entityObject!.organizer"
:participants="entityObject!.participants || {}"
@update:organizer="entityObject!.organizer = $event"
@add-participant="addParticipant"
@remove-participant="removeParticipant"
/>
+21 -23
View File
@@ -22,21 +22,30 @@ const hasLocations = () => {
<template>
<div v-if="hasLocations() || mode === 'edit'" class="event-editor-section">
<div class="text-subtitle-1 mb-2">Locations</div>
<div class="d-flex align-center justify-space-between mb-2">
<div class="text-subtitle-1">Locations</div>
<div v-if="mode === 'edit'" class="d-flex ga-2">
<v-btn
icon="mdi-map-marker"
size="x-small"
variant="text"
rounded="0"
title="Add Physical Location"
@click="$emit('add-location-physical')">
</v-btn>
<v-btn
icon="mdi-web"
size="x-small"
variant="text"
rounded="0"
title="Add Virtual Location"
@click="$emit('add-location-virtual')">
</v-btn>
</div>
</div>
<!-- Physical Locations -->
<div v-if="Object.keys(locationsPhysical || {}).length > 0 || mode === 'edit'" class="mb-4">
<div class="d-flex align-center justify-space-between mb-2">
<div class="text-subtitle-2">Physical</div>
<v-btn v-if="mode === 'edit'"
size="small"
variant="outlined"
@click="$emit('add-location-physical')">
<v-icon left>mdi-plus</v-icon>
Add
</v-btn>
</div>
<!-- Read-only view -->
<div v-if="mode === 'view'">
<div v-for="(location, key) in locationsPhysical" :key="key" class="mb-2 pa-2 border rounded">
@@ -100,17 +109,6 @@ const hasLocations = () => {
<!-- Virtual Locations -->
<div v-if="Object.keys(locationsVirtual || {}).length > 0 || mode === 'edit'">
<div class="d-flex align-center justify-space-between mb-2">
<div class="text-subtitle-2">Virtual</div>
<v-btn v-if="mode === 'edit'"
size="small"
variant="outlined"
@click="$emit('add-location-virtual')">
<v-icon left>mdi-plus</v-icon>
Add
</v-btn>
</div>
<!-- Read-only view -->
<div v-if="mode === 'view'">
<div v-for="(location, key) in locationsVirtual" :key="key" class="mb-2 pa-2 border rounded">
@@ -56,11 +56,12 @@ const formatNotification = (notification: any) => {
<div class="d-flex align-center justify-space-between mb-2">
<div class="text-subtitle-1">Notifications</div>
<v-btn v-if="mode === 'edit'"
size="small"
variant="outlined"
icon="mdi-bell"
size="x-small"
variant="text"
rounded="0"
title="Add Notification"
@click="$emit('add-notification')">
<v-icon left>mdi-plus</v-icon>
Add
</v-btn>
</div>
@@ -221,13 +221,13 @@ const formatRecurrence = (pattern: RecurrencePattern) => {
<div class="text-subtitle-1">Recurrence</div>
<v-btn
v-if="mode === 'edit' && !pattern"
size="small"
variant="outlined"
icon="mdi-repeat"
size="x-small"
variant="text"
rounded="0"
title="Add Recurrence"
@click="addRecurrence"
>
<v-icon start icon="mdi-plus" />
Add
</v-btn>
/>
<v-btn
v-else-if="mode === 'edit'"
icon="mdi-delete"
@@ -1,14 +1,12 @@
<script setup lang="ts">
interface Props {
mode: 'edit' | 'view'
organizer: any | null
participants: Record<string, any>
}
const props = defineProps<Props>()
const emit = defineEmits<{
'update:organizer': [organizer: any | null]
'add-participant': []
'remove-participant': [key: string]
}>()
@@ -39,61 +37,26 @@ const typeOptions = [
]
const hasParticipants = () => {
return props.organizer || Object.keys(props.participants || {}).length > 0
return Object.keys(props.participants || {}).length > 0
}
</script>
<template>
<div v-if="hasParticipants() || mode === 'edit'" class="event-editor-section">
<div class="text-subtitle-1 mb-2">Participants</div>
<!-- Organizer -->
<div v-if="organizer || mode === 'edit'" class="mb-4">
<div class="text-subtitle-2 mb-2">Organizer</div>
<!-- Read-only view -->
<div v-if="mode === 'view' && organizer" class="pa-2 border rounded">
<div class="mb-1"><strong>{{ organizer.name || organizer.address }}</strong></div>
<div class="text-caption text-grey">{{ organizer.address }}</div>
</div>
<!-- Edit view -->
<div v-else-if="mode === 'edit'" class="pa-3 border rounded">
<v-row dense>
<v-col cols="12" md="6">
<v-text-field
v-model="organizer.name"
label="Name"
variant="outlined"
density="compact"
/>
</v-col>
<v-col cols="12" md="6">
<v-text-field
v-model="organizer.address"
label="Email/Address"
variant="outlined"
density="compact"
:rules="[v => !!v || 'Address is required']"
/>
</v-col>
</v-row>
</div>
<div class="d-flex align-center justify-space-between mb-2">
<div class="text-subtitle-1">Participants</div>
<v-btn v-if="mode === 'edit'"
icon="mdi-account"
size="x-small"
variant="text"
rounded="0"
title="Add Attendee"
@click="$emit('add-participant')">
</v-btn>
</div>
<!-- Participants List -->
<div v-if="Object.keys(participants || {}).length > 0 || mode === 'edit'">
<div class="d-flex align-center justify-space-between mb-2">
<div class="text-subtitle-2">Attendees</div>
<v-btn v-if="mode === 'edit'"
size="small"
variant="outlined"
@click="$emit('add-participant')">
<v-icon left>mdi-plus</v-icon>
Add
</v-btn>
</div>
<!-- Read-only view -->
<div v-if="mode === 'view'">
<div v-for="(participant, key) in participants" :key="key" class="mb-2 pa-2 border rounded">