@antcde/component-library 0.1.27-rc.9 → 0.1.28-rc.1
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/build/uno.safelist.d.ts +1 -1
- package/dist/build/uno.safelist.js +1 -1
- package/dist/index.js +6115 -6089
- package/dist/types/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +13 -1
- package/dist/types/components/BaseAppCard/index.vue.d.ts +16 -2
- package/lib/build/uno.safelist.ts +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,19 @@ type __VLS_Props = {
|
|
|
3
3
|
state?: UpdateState;
|
|
4
4
|
updateAvailable?: boolean;
|
|
5
5
|
nextVersion?: string;
|
|
6
|
+
/** App name — used only to name the control, so it says WHICH app it updates. */
|
|
7
|
+
appTitle?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Render the badge as a real control. Opt-in: most surfaces that draw a card
|
|
10
|
+
* (quick search, the OS bar) have no update action to offer, and a badge that
|
|
11
|
+
* looks pressable without being pressable is the defect this fixes (AAD-1005).
|
|
12
|
+
*/
|
|
13
|
+
updatable?: boolean;
|
|
6
14
|
};
|
|
7
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
update: () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onUpdate?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
20
|
declare const _default: typeof __VLS_export;
|
|
9
21
|
export default _default;
|
|
@@ -34,16 +34,30 @@ type __VLS_Props = {
|
|
|
34
34
|
scopeLabel?: string;
|
|
35
35
|
/** Host-derived update affordance; falls back to the app's own flags. */
|
|
36
36
|
updateAvailable?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Render the tile and title inside a real link. The host still owns what a
|
|
39
|
+
* click DOES (via `clicked`); the href is what makes right-click → open in
|
|
40
|
+
* new tab and copy-link work, and what modified clicks follow natively.
|
|
41
|
+
*/
|
|
42
|
+
href?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The host can act on an available update, so the corner badge becomes a
|
|
45
|
+
* button. Off by default: a surface with no update action must not render
|
|
46
|
+
* something that looks pressable (AAD-1005).
|
|
47
|
+
*/
|
|
48
|
+
updatable?: boolean;
|
|
37
49
|
};
|
|
38
|
-
declare var
|
|
50
|
+
declare var __VLS_24: {
|
|
39
51
|
foregroundColor: string;
|
|
40
52
|
};
|
|
41
53
|
type __VLS_Slots = {} & {
|
|
42
|
-
'bottom-right'?: (props: typeof
|
|
54
|
+
'bottom-right'?: (props: typeof __VLS_24) => any;
|
|
43
55
|
};
|
|
44
56
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
update: (app: AppLike) => any;
|
|
45
58
|
clicked: (app: AppLike) => any;
|
|
46
59
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
60
|
+
onUpdate?: ((app: AppLike) => any) | undefined;
|
|
47
61
|
onClicked?: ((app: AppLike) => any) | undefined;
|
|
48
62
|
}>, {
|
|
49
63
|
showLoadingIndicator: boolean;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Every utility class this library's own components use, so a consuming app emits
|
|
5
5
|
* them even though UnoCSS never scans `dist/index.js`. See the generator for why.
|
|
6
6
|
*
|
|
7
|
-
* 244 classes, from
|
|
7
|
+
* 244 classes, from 949 candidates, filtered by asking Uno
|
|
8
8
|
* which ones actually resolve.
|
|
9
9
|
*/
|
|
10
10
|
export const libraryClassSafelist: string[] = [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.28-rc.1",
|
|
5
5
|
"description": "Helper to use ant components in Vue 3",
|
|
6
6
|
"author": "CollaborAll",
|
|
7
7
|
"exports": {
|
|
@@ -208,8 +208,8 @@
|
|
|
208
208
|
"vue-i18n": "^11.4.10"
|
|
209
209
|
},
|
|
210
210
|
"devDependencies": {
|
|
211
|
-
"@antcde/connect-ts": "0.4.
|
|
212
|
-
"@antcde/vue-utils": "0.2.
|
|
211
|
+
"@antcde/connect-ts": "0.4.30-rc.1",
|
|
212
|
+
"@antcde/vue-utils": "0.2.25-rc.1",
|
|
213
213
|
"@iconify-json/mdi": "^1.2.3",
|
|
214
214
|
"@iconify/vue": "^5.0.1",
|
|
215
215
|
"@intlify/unplugin-vue-i18n": "^11.2.5",
|