@vc-shell/framework 1.1.87 → 1.1.89
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/CHANGELOG.md +13 -0
- package/dist/framework.js +1861 -1822
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +2 -2
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/sign-in/useExternalProvider.ts +3 -3
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +45 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue"],"names":[],"mappings":"yBAwkBiB,CAAC,SAAS;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAk9BO,mBAAmB,CAAC;;4BAh6BN,GAAG;kCACG,GAAG,EAAE;8BACT,MAAM;uCACG,MAAM;iCACZ,MAAM;;;kBA7CnB,CAAC;oBACC,GAAG;uB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
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
91
91
|
"@laynezh/vite-plugin-lib-assets": "v1.1.0",
|
|
92
92
|
"@types/dompurify": "^3.0.5",
|
|
93
|
-
"@vc-shell/api-client-generator": "^1.1.
|
|
94
|
-
"@vc-shell/config-generator": "^1.1.
|
|
95
|
-
"@vc-shell/ts-config": "^1.1.
|
|
93
|
+
"@vc-shell/api-client-generator": "^1.1.89",
|
|
94
|
+
"@vc-shell/config-generator": "^1.1.89",
|
|
95
|
+
"@vc-shell/ts-config": "^1.1.89",
|
|
96
96
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
97
97
|
"@vue/test-utils": "^2.4.5",
|
|
98
98
|
"cypress-signalr-mock": "^1.5.0",
|
|
@@ -4,8 +4,8 @@ import { ExternalSignInClient, ExternalSignInProviderInfo } from "../../../core/
|
|
|
4
4
|
|
|
5
5
|
export interface IUseExternalProvider {
|
|
6
6
|
storage: Ref<{ providerType?: string | undefined }>;
|
|
7
|
-
signIn: (authenticationType?: string) => void
|
|
8
|
-
signOut: (authenticationType: string) => void
|
|
7
|
+
signIn: (authenticationType?: string) => Promise<void>;
|
|
8
|
+
signOut: (authenticationType: string) => Promise<void>;
|
|
9
9
|
getProviders: () => Promise<ExternalSignInProviderInfo[] | undefined>;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -58,7 +58,7 @@ export const useExternalProvider = (): IUseExternalProvider => {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
async function externalSignOut(authenticationType: string)
|
|
61
|
+
async function externalSignOut(authenticationType: string) {
|
|
62
62
|
try {
|
|
63
63
|
const origin = window.location.origin;
|
|
64
64
|
const returnUrl = window.location.pathname ?? "/";
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
:model-value="value"
|
|
8
8
|
:rules="computedProperty.rules"
|
|
9
9
|
>
|
|
10
|
-
<template
|
|
10
|
+
<template
|
|
11
|
+
v-if="computedProperty.valueType !== 'Color' && computedProperty.dictionary && !computedProperty.multivalue"
|
|
12
|
+
>
|
|
11
13
|
<VcSelect
|
|
12
14
|
v-bind="$attrs"
|
|
13
15
|
v-model="value"
|
|
@@ -286,6 +288,48 @@
|
|
|
286
288
|
></VcCol>
|
|
287
289
|
</VcRow>
|
|
288
290
|
</template>
|
|
291
|
+
<template
|
|
292
|
+
v-if="computedProperty.valueType === 'Color' && computedProperty.dictionary && !computedProperty.multivalue"
|
|
293
|
+
>
|
|
294
|
+
<VcSelect
|
|
295
|
+
v-bind="$attrs"
|
|
296
|
+
v-model="value"
|
|
297
|
+
:error="!!errors.length"
|
|
298
|
+
:error-message="errorMessage"
|
|
299
|
+
:label="computedProperty.displayName"
|
|
300
|
+
:required="computedProperty.required"
|
|
301
|
+
:placeholder="computedProperty.placeholder"
|
|
302
|
+
:options="items"
|
|
303
|
+
:option-value="computedProperty.optionValue"
|
|
304
|
+
:option-label="computedProperty.optionLabel"
|
|
305
|
+
:disabled="disabled"
|
|
306
|
+
searchable
|
|
307
|
+
:multilanguage="multilanguage"
|
|
308
|
+
:current-language="currentLanguage"
|
|
309
|
+
:loading="loading"
|
|
310
|
+
@search="onSearch"
|
|
311
|
+
@close="onClose"
|
|
312
|
+
>
|
|
313
|
+
<template #selected-item="scope">
|
|
314
|
+
<div class="tw-flex tw-items-center tw-gap-2">
|
|
315
|
+
<div
|
|
316
|
+
class="tw-w-5 tw-h-5 tw-rounded"
|
|
317
|
+
:style="{ backgroundColor: scope.opt.colorCode }"
|
|
318
|
+
></div>
|
|
319
|
+
<span>{{ scope.opt.value }}</span>
|
|
320
|
+
</div>
|
|
321
|
+
</template>
|
|
322
|
+
<template #option="scope">
|
|
323
|
+
<div class="tw-flex tw-items-center tw-gap-2">
|
|
324
|
+
<div
|
|
325
|
+
class="tw-w-5 tw-h-5 tw-rounded"
|
|
326
|
+
:style="{ backgroundColor: scope.opt.colorCode }"
|
|
327
|
+
></div>
|
|
328
|
+
<span>{{ scope.opt.value }}</span>
|
|
329
|
+
</div>
|
|
330
|
+
</template>
|
|
331
|
+
</VcSelect>
|
|
332
|
+
</template>
|
|
289
333
|
</Field>
|
|
290
334
|
</template>
|
|
291
335
|
|
|
@@ -439,7 +483,6 @@ const value = computed({
|
|
|
439
483
|
return internalModel.value;
|
|
440
484
|
},
|
|
441
485
|
set(newValue) {
|
|
442
|
-
|
|
443
486
|
console.log(newValue);
|
|
444
487
|
emit("update:model-value", {
|
|
445
488
|
value: newValue,
|