@aerogel/cli 0.0.0-next.44f5953d2450ac149ceabae6448a967b9def9d2a → 0.0.0-next.46a3020f90bb19fb98d8b9c75a7228de4fe76346
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/dist/aerogel-cli.js +140 -154
- package/dist/aerogel-cli.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/generate-component.test.ts +1 -1
- package/src/lib/Editor.ts +0 -1
- package/src/plugins/Plugin.ts +0 -19
- package/src/plugins/Solid.ts +0 -8
- package/templates/app/.vscode/launch.json +1 -0
- package/templates/app/index.html +2 -2
- package/templates/app/package.json +7 -6
- package/templates/app/src/App.vue +1 -1
- package/templates/app/src/assets/css/main.css +4 -3
- package/templates/component-button/[component.name].vue +2 -2
- package/templates/overrides/components/overrides/ConfirmModal.vue +4 -4
- package/templates/overrides/components/overrides/ErrorReportModal.vue +6 -6
- package/templates/overrides/components/overrides/ModalWrapper.vue +3 -3
- package/templates/overrides/components/overrides/SnackbarNotification.vue +3 -3
- package/templates/overrides-story/Overrides.story.vue +10 -10
- package/templates/app/postcss.config.js +0 -6
- package/templates/app/tailwind.config.js +0 -5
- package/templates/postcss-pseudo-classes/postcss.config.js +0 -15
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
:current-report="activeReportIndex + 1"
|
|
6
6
|
:total-reports="reports.length"
|
|
7
7
|
/>
|
|
8
|
-
<
|
|
8
|
+
<Button color="ghost" :disabled="activeReportIndex === 0" @click="activeReportIndex--">
|
|
9
9
|
{{ previousReportText }}
|
|
10
|
-
</
|
|
11
|
-
<
|
|
10
|
+
</Button>
|
|
11
|
+
<Button color="ghost" :disabled="activeReportIndex === reports.length - 1" @click="activeReportIndex++">
|
|
12
12
|
{{ nextReportText }}
|
|
13
|
-
</
|
|
13
|
+
</Button>
|
|
14
14
|
<AGErrorReportModalButtons :report="report">
|
|
15
15
|
<template
|
|
16
16
|
#default="{ url, handler, iconComponent, description }: IAGErrorReportModalButtonsDefaultSlotProps"
|
|
17
17
|
>
|
|
18
|
-
<
|
|
18
|
+
<Button :url="url" :aria-label="description" @click="handler">
|
|
19
19
|
<component :is="iconComponent" />
|
|
20
20
|
{{ description }}
|
|
21
|
-
</
|
|
21
|
+
</Button>
|
|
22
22
|
</template>
|
|
23
23
|
</AGErrorReportModalButtons>
|
|
24
24
|
<AGMarkdown v-if="report.description" :text="report.description" />
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
13
|
import { ref } from 'vue';
|
|
14
|
-
import {
|
|
14
|
+
import { modalExpose, modalProps } from '@aerogel/core';
|
|
15
15
|
import type { IAGHeadlessModal, IAGModal } from '@aerogel/core';
|
|
16
16
|
|
|
17
|
-
const props = defineProps(
|
|
17
|
+
const props = defineProps(modalProps());
|
|
18
18
|
const $modal = ref<IAGHeadlessModal>();
|
|
19
19
|
|
|
20
20
|
defineOptions({ inheritAttrs: false });
|
|
21
|
-
defineExpose
|
|
21
|
+
defineExpose(modalExpose($modal));
|
|
22
22
|
</script>
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
<AGHeadlessSnackbar :class="colorClasses">
|
|
3
3
|
<AGMarkdown :text="message" inline />
|
|
4
4
|
|
|
5
|
-
<
|
|
5
|
+
<Button
|
|
6
6
|
v-for="(action, i) of actions"
|
|
7
7
|
:key="i"
|
|
8
|
-
:
|
|
8
|
+
:variant="color"
|
|
9
9
|
@click="activate(action)"
|
|
10
10
|
>
|
|
11
11
|
{{ action.text }}
|
|
12
|
-
</
|
|
12
|
+
</Button>
|
|
13
13
|
</AGHeadlessSnackbar>
|
|
14
14
|
</template>
|
|
15
15
|
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
<Story :layout="{ type: 'grid', width: '90%' }">
|
|
3
3
|
<Variant title="Playground">
|
|
4
4
|
<div class="flex space-x-3">
|
|
5
|
-
<
|
|
5
|
+
<Button @click="$ui.alert(alertTitle, alertMessage)">
|
|
6
6
|
Alert
|
|
7
|
-
</
|
|
8
|
-
<
|
|
7
|
+
</Button>
|
|
8
|
+
<Button @click="$ui.confirm(confirmTitle, confirmMessage)">
|
|
9
9
|
Confirm
|
|
10
|
-
</
|
|
11
|
-
<
|
|
10
|
+
</Button>
|
|
11
|
+
<Button @click="$ui.loading(loadingMessage, after({ seconds: loadingDuration }))">
|
|
12
12
|
Loading
|
|
13
|
-
</
|
|
14
|
-
<
|
|
13
|
+
</Button>
|
|
14
|
+
<Button @click="$ui.showSnackbar(snackbarMessage, snackbarOptions)">
|
|
15
15
|
Snackbar
|
|
16
|
-
</
|
|
17
|
-
<
|
|
16
|
+
</Button>
|
|
17
|
+
<Button @click="$errors.inspect(errorReports)">
|
|
18
18
|
Error Report
|
|
19
|
-
</
|
|
19
|
+
</Button>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
22
|
<AGAppOverlays />
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const plugins = {
|
|
2
|
-
tailwindcss: {},
|
|
3
|
-
autoprefixer: {},
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
if (process.env.NODE_ENV === 'development') {
|
|
7
|
-
plugins['postcss-pseudo-classes'] = {
|
|
8
|
-
blacklist: [],
|
|
9
|
-
restrictTo: ['focus', 'focus-visible', 'focus-within', 'hover'],
|
|
10
|
-
allCombinations: true,
|
|
11
|
-
preserveBeforeAfter: false,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
module.exports = { plugins };
|