ch3chi-commons-vue 1.2.0 → 1.8.0

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.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/dist/api/ApiService.d.ts +0 -233
  3. package/dist/auth/AuthorizationService.d.ts +0 -56
  4. package/dist/auth/PermissionDescriptor.d.ts +0 -37
  5. package/dist/components/CAlert.vue.d.ts +0 -17
  6. package/dist/components/CAlertDefine.d.ts +0 -14
  7. package/dist/components/CBSToast.vue.d.ts +0 -6
  8. package/dist/components/CGlobalSpinner.vue.d.ts +0 -13
  9. package/dist/components/CRowCheckBox.vue.d.ts +0 -14
  10. package/dist/components/CRowTextInput.vue.d.ts +0 -10
  11. package/dist/components/CTable.vue.d.ts +0 -24
  12. package/dist/components/CTableDefine.d.ts +0 -201
  13. package/dist/components/CTableTD.vue.d.ts +0 -7
  14. package/dist/components/form/CChangePasswordFormField.vue.d.ts +0 -14
  15. package/dist/components/form/CCheckBoxFormField.vue.d.ts +0 -30
  16. package/dist/components/form/CDateFormField.vue.d.ts +0 -17
  17. package/dist/components/form/CDateQueryField.vue.d.ts +0 -16
  18. package/dist/components/form/CDateRangeFormField.vue.d.ts +0 -17
  19. package/dist/components/form/CFilePickerFormField.vue.d.ts +0 -28
  20. package/dist/components/form/CRadioFormField.vue.d.ts +0 -30
  21. package/dist/components/form/CSelectFormField.vue.d.ts +0 -18
  22. package/dist/components/form/CTextAreaFormField.vue.d.ts +0 -16
  23. package/dist/components/form/CTextInputFormField.vue.d.ts +0 -22
  24. package/dist/directive/CBootstrapDirective.d.ts +0 -17
  25. package/dist/directive/CDateFormatterDirective.d.ts +0 -10
  26. package/dist/directive/CFTurnstileDirective.d.ts +0 -15
  27. package/dist/directive/CFormDirective.d.ts +0 -9
  28. package/dist/directive/PermissionDirective.d.ts +0 -15
  29. package/dist/index.cjs.js +0 -19103
  30. package/dist/index.d.ts +0 -45
  31. package/dist/index.es.js +0 -19086
  32. package/dist/model/BSFieldStyleConfig.d.ts +0 -121
  33. package/dist/model/BaseDictionary.d.ts +0 -34
  34. package/dist/model/BaseFormDataModel.d.ts +0 -199
  35. package/dist/model/BaseListViewModel.d.ts +0 -165
  36. package/dist/model/CBSModalViewModel.d.ts +0 -44
  37. package/dist/model/CFileDataModel.d.ts +0 -74
  38. package/dist/model/CImageViewModel.d.ts +0 -8
  39. package/dist/model/CMenuItem.d.ts +0 -86
  40. package/dist/model/EmailReceiverDataModel.d.ts +0 -57
  41. package/dist/model/EmptyDataModel.d.ts +0 -7
  42. package/dist/model/FormOptions.d.ts +0 -60
  43. package/dist/model/LoginDataModel.d.ts +0 -12
  44. package/dist/model/PasswordDataModel.d.ts +0 -15
  45. package/dist/model/QueryParameter.d.ts +0 -92
  46. package/dist/model/SessionUser.d.ts +0 -45
  47. package/dist/model/ShowMessageDataModel.d.ts +0 -44
  48. package/dist/model/TokenUser.d.ts +0 -50
  49. package/dist/stores/FormDataStore.d.ts +0 -31
  50. package/dist/stores/ViewStore.d.ts +0 -349
  51. package/dist/style.css +0 -223
  52. package/dist/utils/CToolUtils.d.ts +0 -53
@@ -1,30 +0,0 @@
1
- import { COptionItem } from '../../model/FormOptions';
2
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
3
- type __VLS_Props = {
4
- /**
5
- * Radio 欄位的標籤文字
6
- */
7
- label?: string;
8
- /**
9
- * Radio 欄位是否為必填
10
- */
11
- required?: boolean;
12
- /**
13
- * Radio 欄位的名稱,為 form field 的 name 屬性
14
- */
15
- name: string;
16
- /**
17
- * Radio 選項集
18
- */
19
- optionList: COptionItem[];
20
- /**
21
- * 是否為閱讀模式,若為 true 則只顯示選項文字,不顯示 Radio 按鈕
22
- */
23
- readMode?: boolean;
24
- /**
25
- * BS 欄位樣式設定
26
- */
27
- styleConfig?: IBSFieldStyleConfig;
28
- };
29
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
- export default _default;
@@ -1,17 +0,0 @@
1
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
2
- type __VLS_Props = {
3
- id?: string;
4
- label?: string;
5
- name: string;
6
- required?: boolean;
7
- placeholder?: string;
8
- readMode?: boolean;
9
- timeType?: 'startOfDay' | 'endOfDay';
10
- styleConfig?: IBSFieldStyleConfig;
11
- };
12
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
- label: string;
14
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
- dateBtn: HTMLButtonElement;
16
- }, HTMLDivElement>;
17
- export default _default;
@@ -1,16 +0,0 @@
1
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
2
- type __VLS_Props = {
3
- id?: string;
4
- label?: string;
5
- model: any;
6
- name: string;
7
- placeholder?: string;
8
- timeType?: 'startOfDay' | 'endOfDay';
9
- styleConfig?: IBSFieldStyleConfig;
10
- };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
- label: string;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
- dateBtn: HTMLButtonElement;
15
- }, HTMLDivElement>;
16
- export default _default;
@@ -1,17 +0,0 @@
1
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
2
- type __VLS_Props = {
3
- id?: string;
4
- label?: string;
5
- required?: boolean;
6
- startDateFieldName?: string;
7
- endDateFieldName?: string;
8
- styleConfig?: IBSFieldStyleConfig;
9
- };
10
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
- label: string;
12
- startDateFieldName: string;
13
- endDateFieldName: string;
14
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
- dateBtn: HTMLButtonElement;
16
- }, HTMLDivElement>;
17
- export default _default;
@@ -1,28 +0,0 @@
1
- import { CFileDataModel } from '../../model/CFileDataModel';
2
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
3
- type __VLS_Props = {
4
- id?: string;
5
- label?: string;
6
- name?: string;
7
- dataModel?: any;
8
- validationDataKey?: string;
9
- placeholder?: string;
10
- tip?: string;
11
- accept?: string;
12
- required?: boolean;
13
- multiple?: boolean;
14
- fileCountLimit?: number;
15
- fileSizeLimit?: number;
16
- styleConfig?: IBSFieldStyleConfig;
17
- };
18
- declare function addSavedFiles(files: CFileDataModel[]): void;
19
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
20
- addSavedFiles: typeof addSavedFiles;
21
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
- label: string;
23
- placeholder: string;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
- fileInputRef: HTMLInputElement;
26
- textInputRef: HTMLInputElement;
27
- }, any>;
28
- export default _default;
@@ -1,30 +0,0 @@
1
- import { COptionItem } from '../../model/FormOptions';
2
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
3
- type __VLS_Props = {
4
- /**
5
- * Radio 欄位的標籤文字
6
- */
7
- label?: string;
8
- /**
9
- * Radio 欄位是否為必填
10
- */
11
- required?: boolean;
12
- /**
13
- * Radio 欄位的名稱,為 form field 的 name 屬性
14
- */
15
- name: string;
16
- /**
17
- * Radio 選項集
18
- */
19
- optionList: COptionItem[];
20
- /**
21
- * 是否為閱讀模式,若為 true 則只顯示選項文字,不顯示 Radio 按鈕
22
- */
23
- readMode?: boolean;
24
- /**
25
- * BS 欄位樣式設定
26
- */
27
- styleConfig?: IBSFieldStyleConfig;
28
- };
29
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
- export default _default;
@@ -1,18 +0,0 @@
1
- import { COptionItem } from '../../model/FormOptions';
2
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
3
- type __VLS_Props = {
4
- id?: string;
5
- label?: string;
6
- required?: boolean;
7
- placeholder?: string;
8
- name: string;
9
- optionList?: COptionItem[] | Promise<COptionItem[]>;
10
- readMode?: boolean;
11
- dependentField?: string;
12
- fetchOptions?: (linkedValue: any) => Promise<COptionItem[]>;
13
- styleConfig?: IBSFieldStyleConfig;
14
- };
15
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
- placeholder: string;
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
- export default _default;
@@ -1,16 +0,0 @@
1
- import { ComputedRef } from 'vue';
2
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
3
- type __VLS_Props = {
4
- id?: string;
5
- label?: string;
6
- name: string;
7
- required?: boolean;
8
- placeholder?: string;
9
- rows?: number;
10
- maxlength?: number;
11
- disabledState?: ComputedRef<boolean>;
12
- readMode?: boolean;
13
- styleConfig?: IBSFieldStyleConfig;
14
- };
15
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
- export default _default;
@@ -1,22 +0,0 @@
1
- import { InputHTMLAttributes } from '@vue/runtime-dom';
2
- import { ComputedRef } from 'vue';
3
- import { IBSFieldStyleConfig } from '../../model/BSFieldStyleConfig';
4
- type __VLS_Props = Partial</* @vue-ignore */ InputHTMLAttributes> & {
5
- id?: string;
6
- label?: string;
7
- name: string;
8
- type?: string;
9
- required?: boolean;
10
- placeholder?: string;
11
- autocomplete?: string;
12
- disabledState?: ComputedRef<boolean>;
13
- readMode?: boolean;
14
- min?: number;
15
- max?: number;
16
- styleConfig?: IBSFieldStyleConfig;
17
- };
18
- declare function setIsRequired(value: boolean): void;
19
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
20
- setIsRequired: typeof setIsRequired;
21
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
- export default _default;
@@ -1,17 +0,0 @@
1
- import { Directive } from 'vue';
2
- /**
3
- * v-tooltip 指令
4
- * 初始化 Bootstrap 的 Tooltip
5
- * 使用方式:<button v-tooltip>Hover me</button>
6
- */
7
- export declare const vdTooltip: Directive;
8
- /**
9
- * v-cbs-modal 指令
10
- * binding.value 必須是 CBSModalViewModel 的實例
11
- */
12
- export declare const vdCBSModal: Directive;
13
- /**
14
- * v-cbs-dropdown 指令
15
- * 初始化 Bootstrap 的 Dropdown
16
- */
17
- export declare const vdCBSDropdown: Directive;
@@ -1,10 +0,0 @@
1
- import { Directive } from 'vue';
2
- /**
3
- * v-date-formatter 指令
4
- * 解析 ref<Date> 並格式化為文字,根據元素型態輸出
5
- * 可以透過 attribute data-date-format 指定日期格式,預設為 'YYYY-MM-DD'
6
- * 使用方式:
7
- * <input type="text" v-date-formatter="dateRef" data-date-format="YYYY/MM/DD" />
8
- * <span v-date-formatter="dateRef" data-date-format="DD-MM-YYYY"></span>
9
- */
10
- export declare const vdDateFormatter: Directive;
@@ -1,15 +0,0 @@
1
- import { Directive } from 'vue';
2
- /**
3
- * v-cf-turnstile 指令
4
- * 用於在表單中嵌入 Cloudflare Turnstile 驗證碼
5
- * 使用方式:
6
- * <pre>
7
- * <div v-cf-turnstile="fieldContext"></div>
8
- * 其中 fieldContext 為 vee-validate 的 FieldContext,用於接收驗證碼 token
9
- * </pre>
10
- * 需要在全域變數中定義 Cloudflare Turnstile 的 site key:
11
- * <pre>
12
- * (window as any).__CLOUDFLARE_TURNSTILE_SITE_KEY__ = 'your-site-key-here';
13
- * </pre>
14
- */
15
- export declare const CFTurnstileDirective: Directive;
@@ -1,9 +0,0 @@
1
- import { Directive } from 'vue';
2
- /**
3
- * 此指令用於當 FormField 有錯誤時,顯示錯誤樣式 'is-invalid'。
4
- */
5
- export declare const CFormFieldErrorStyleDirective: Directive;
6
- /**
7
- * 此指令用於當 Yup Schema 驗證失敗時,顯示錯誤樣式 'is-invalid'。
8
- */
9
- export declare const CFormFieldErrorOnYupDirective: Directive;
@@ -1,15 +0,0 @@
1
- import { Directive } from 'vue';
2
- /**
3
- * 此指令用於根據使用者權限來控制元素的顯示與否。
4
- * 使用方式:v-permission="{need: ['PERMISSION_1', 'PERMISSION_2'], granted: userPermissionsArray, enableVisible: true}"
5
- * 當使用者擁有其中一個權限時,元素將會顯示,否則隱藏。
6
- * 根據 enableVisible 參數決定是隱藏元素還是移除元素,true 為隱藏 (使用 d-none),false 為移除元素。
7
- */
8
- export declare const PermissionDirective: Directive;
9
- /**
10
- * 此指令用於根據使用者權限來控制元素的顯示與否,使用 UserSessionActions 來檢查權限。
11
- * 使用方式:v-store-permission="{sessionStore: userSessionStore, need: ['PERMISSION_1', 'PERMISSION_2'], enableVisible: true}"
12
- * 當使用者擁有其中一個權限時,元素將會顯示,否則隱藏。
13
- * 根據 enableVisible 參數決定是隱藏元素還是移除元素,true 為隱藏 (使用 d-none),false 為移除元素。
14
- */
15
- export declare const StorePermissionDirective: Directive;