fit2cloud-ui-plus 1.1.17 → 1.2.0-beta.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 (41) hide show
  1. package/lib/fit2cloud-ui-plus.es.js +53 -53
  2. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  3. package/package.json +3 -3
  4. package/src/locale/index.ts +4 -0
  5. package/src/locale/lang/ja.ts +59 -0
  6. package/src/locale/lang/ms.ts +59 -0
  7. package/src/locale/lang/pt-br.ts +59 -0
  8. package/src/locale/lang/ru.ts +59 -0
  9. package/src/styles/common/function.scss +9 -7
  10. package/src/styles/common/mixins.scss +3 -0
  11. package/types/examples/pages/search/attributes.d.ts +57 -0
  12. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
  13. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
  14. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
  15. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
  16. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
  17. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
  18. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
  19. package/types/examples/pages/search/index.vue.d.ts +150 -0
  20. package/types/src/components/ steps/FuHorizontalNavigation.vue.d.ts +13 -0
  21. package/types/src/components/ steps/FuHorizontalSteps.vue.d.ts +6 -0
  22. package/types/src/components/ steps/FuStep.vue.d.ts +2 -0
  23. package/types/src/components/ steps/FuStepButton.vue.d.ts +2 -0
  24. package/types/src/components/ steps/FuSteps.vue.d.ts +12 -0
  25. package/types/src/components/ steps/FuStepsFooter.d.ts +6 -0
  26. package/types/src/components/ steps/FuVerticalNavigation.vue.d.ts +14 -0
  27. package/types/src/components/ steps/FuVerticalSteps.vue.d.ts +6 -0
  28. package/types/src/components/ steps/Stepper.d.ts +39 -0
  29. package/types/src/components/ steps/index.d.ts +2 -0
  30. package/types/src/components/ steps/types.d.ts +27 -0
  31. package/types/src/components/filter-bar/FuSearchInput.vue.d.ts +17 -0
  32. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  33. package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
  34. package/types/src/components/table/FuTableBody-backup.d.ts +3 -0
  35. package/types/src/components/table/types.d.ts +2 -0
  36. package/types/src/locale/index.d.ts +4 -0
  37. package/types/src/locale/lang/ja.d.ts +60 -0
  38. package/types/src/locale/lang/ms.d.ts +60 -0
  39. package/types/src/locale/lang/pt-br.d.ts +60 -0
  40. package/types/src/locale/lang/ru.d.ts +60 -0
  41. package/types/src/tools/utils.d.ts +2 -0
@@ -0,0 +1,59 @@
1
+ export default {
2
+ name: 'ja',
3
+ fu: {
4
+ filter_bar: {
5
+ filter: "フィルター",
6
+ results: "件の結果",
7
+ clear: "条件をクリア",
8
+ drawer_title: "フィルター条件",
9
+ cancel: "キャンセル",
10
+ search: "検索",
11
+ refresh: "リフレッシュ",
12
+ select_all: "すべて選択",
13
+ more: "もっと見る"
14
+ },
15
+ search_bar: {
16
+ search: "検索",
17
+ adv_search: "高度な検索",
18
+ ok: "確定",
19
+ cancel: "キャンセル",
20
+ please_select: "選択してください",
21
+ please_input: "入力してください",
22
+ like: "を含む",
23
+ not_like: "含まない",
24
+ in: "に属する",
25
+ not_in: "に属さない",
26
+ gt: "より大きい",
27
+ ge: "以上",
28
+ lt: "より小さい",
29
+ le: "以下",
30
+ eq: "等しい",
31
+ ne: "等しくない",
32
+ between: "の間",
33
+ select_date: '日付を選択',
34
+ start_date: '開始日',
35
+ end_date: '終了日',
36
+ select_date_time: '日時を選択',
37
+ start_date_time: '開始日時',
38
+ end_date_time: '終了日時',
39
+ range_separator: "から",
40
+ data_time_error: "開始日は終了日より後にすることはできません",
41
+ clean: "クリア",
42
+ refresh: "リフレッシュ",
43
+ },
44
+ table: {
45
+ ok: "確定",
46
+ cancel: "キャンセル",
47
+ custom_table_fields: "テーブルフィールドのカスタマイズ",
48
+ custom_table_fields_desc: "固定フィールドは選択範囲外で、ドラッグして順序をカスタマイズできます",
49
+ custom_table_rows: "オプション列",
50
+ more: "もっと見る"
51
+ },
52
+ steps: {
53
+ cancel: "キャンセル",
54
+ next: "次へ",
55
+ prev: "前へ",
56
+ finish: "完了",
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,59 @@
1
+ export default {
2
+ name: 'ms',
3
+ fu: {
4
+ filter_bar: {
5
+ filter: "Penapis",
6
+ results: "keputusan",
7
+ clear: "Kosongkan syarat",
8
+ drawer_title: "Syarat Penapisan",
9
+ cancel: "Batal",
10
+ search: "Cari",
11
+ refresh: "Segar semula",
12
+ select_all: "Pilih Semua",
13
+ more: "Lagi"
14
+ },
15
+ search_bar: {
16
+ search: "Cari",
17
+ adv_search: "Carian Lanjutan",
18
+ ok: "Sahkan",
19
+ cancel: "Batal",
20
+ please_select: "Sila pilih",
21
+ please_input: "Sila masukkan",
22
+ like: "Mengandungi",
23
+ not_like: "Tidak mengandungi",
24
+ in: "Termasuk dalam",
25
+ not_in: "Tidak termasuk dalam",
26
+ gt: "Lebih besar daripada",
27
+ ge: "Lebih besar atau sama dengan",
28
+ lt: "Kurang daripada",
29
+ le: "Kurang atau sama dengan",
30
+ eq: "Sama dengan",
31
+ ne: "Tidak sama dengan",
32
+ between: "Antara",
33
+ select_date: 'Pilih tarikh',
34
+ start_date: 'Tarikh mula',
35
+ end_date: 'Tarikh tamat',
36
+ select_date_time: 'Pilih tarikh dan masa',
37
+ start_date_time: 'Tarikh dan masa mula',
38
+ end_date_time: 'Tarikh dan masa tamat',
39
+ range_separator: "hingga",
40
+ data_time_error: "Tarikh mula tidak boleh lebih besar daripada tarikh tamat",
41
+ clean: "Kosongkan",
42
+ refresh: "Segar semula",
43
+ },
44
+ table: {
45
+ ok: "Sahkan",
46
+ cancel: "Batal",
47
+ custom_table_fields: "Suai Medan Jadual",
48
+ custom_table_fields_desc: "Medan tetap tidak boleh dipilih. Seret untuk menyesuaikan susunan.",
49
+ custom_table_rows: "Lajur Pilihan",
50
+ more: "Lagi"
51
+ },
52
+ steps: {
53
+ cancel: "Batal",
54
+ next: "Seterusnya",
55
+ prev: "Sebelumnya",
56
+ finish: "Selesai",
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,59 @@
1
+ export default {
2
+ name: 'pt-br',
3
+ fu: {
4
+ filter_bar: {
5
+ filter: "Filtrar",
6
+ results: "resultados",
7
+ clear: "Limpar filtros",
8
+ drawer_title: "Filtros",
9
+ cancel: "Cancelar",
10
+ search: "Pesquisar",
11
+ refresh: "Atualizar",
12
+ select_all: "Selecionar todos",
13
+ more: "Mais"
14
+ },
15
+ search_bar: {
16
+ search: "Pesquisar",
17
+ adv_search: "Pesquisa avançada",
18
+ ok: "Confirmar",
19
+ cancel: "Cancelar",
20
+ please_select: "Selecione",
21
+ please_input: "Digite",
22
+ like: "Contém",
23
+ not_like: "Não contém",
24
+ in: "Está em",
25
+ not_in: "Não está em",
26
+ gt: "Maior que",
27
+ ge: "Maior ou igual a",
28
+ lt: "Menor que",
29
+ le: "Menor ou igual a",
30
+ eq: "Igual a",
31
+ ne: "Diferente de",
32
+ between: "Entre",
33
+ select_date: 'Selecionar data',
34
+ start_date: 'Data inicial',
35
+ end_date: 'Data final',
36
+ select_date_time: 'Selecionar data e hora',
37
+ start_date_time: 'Data e hora inicial',
38
+ end_date_time: 'Data e hora final',
39
+ range_separator: "até",
40
+ data_time_error: "A data inicial não pode ser maior que a data final",
41
+ clean: "Limpar",
42
+ refresh: "Atualizar",
43
+ },
44
+ table: {
45
+ ok: "Confirmar",
46
+ cancel: "Cancelar",
47
+ custom_table_fields: "Personalizar campos da tabela",
48
+ custom_table_fields_desc: "Campos fixos não estão disponíveis para seleção. Arraste para personalizar a ordem.",
49
+ custom_table_rows: "Colunas de opções",
50
+ more: "Mais"
51
+ },
52
+ steps: {
53
+ cancel: "Cancelar",
54
+ next: "Próximo",
55
+ prev: "Anterior",
56
+ finish: "Concluir",
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,59 @@
1
+ export default {
2
+ name: 'ru',
3
+ fu: {
4
+ filter_bar: {
5
+ filter: "Фильтр",
6
+ results: "результатов",
7
+ clear: "Очистить условия",
8
+ drawer_title: "Условия фильтрации",
9
+ cancel: "Отмена",
10
+ search: "Поиск",
11
+ refresh: "Обновить",
12
+ select_all: "Выбрать все",
13
+ more: "Еще"
14
+ },
15
+ search_bar: {
16
+ search: "Поиск",
17
+ adv_search: "Расширенный поиск",
18
+ ok: "ОК",
19
+ cancel: "Отмена",
20
+ please_select: "Пожалуйста, выберите",
21
+ please_input: "Пожалуйста, введите",
22
+ like: "Содержит",
23
+ not_like: "Не содержит",
24
+ in: "Входит в",
25
+ not_in: "Не входит в",
26
+ gt: "Больше",
27
+ ge: "Больше или равно",
28
+ lt: "Меньше",
29
+ le: "Меньше или равно",
30
+ eq: "Равно",
31
+ ne: "Не равно",
32
+ between: "Между",
33
+ select_date: 'Выбрать дату',
34
+ start_date: 'Начальная дата',
35
+ end_date: 'Конечная дата',
36
+ select_date_time: 'Выбрать дату и время',
37
+ start_date_time: 'Начальная дата и время',
38
+ end_date_time: 'Конечная дата и время',
39
+ range_separator: "до",
40
+ data_time_error: "Начальная дата не может быть больше конечной",
41
+ clean: "Очистить",
42
+ refresh: "Обновить",
43
+ },
44
+ table: {
45
+ ok: "ОК",
46
+ cancel: "Отмена",
47
+ custom_table_fields: "Настройка полей таблицы",
48
+ custom_table_fields_desc: "Фиксированные поля не доступны для выбора, можно перетаскивать для изменения порядка",
49
+ custom_table_rows: "Столбцы с опциями",
50
+ more: "Еще"
51
+ },
52
+ steps: {
53
+ cancel: "Отмена",
54
+ next: "Следующий шаг",
55
+ prev: "Предыдущий шаг",
56
+ finish: "Завершить",
57
+ }
58
+ }
59
+ }
@@ -1,16 +1,18 @@
1
1
  @use 'config';
2
+ @use 'sass:string';
3
+ @use 'sass:meta';
2
4
 
3
5
  // BEM support Func
4
6
  @function selectorToString($selector) {
5
- $selector: inspect($selector);
6
- $selector: str-slice($selector, 2, -2);
7
+ $selector: meta.inspect($selector);
8
+ $selector: string.slice($selector, 2, -2);
7
9
  @return $selector;
8
10
  }
9
11
 
10
12
  @function containsModifier($selector) {
11
13
  $selector: selectorToString($selector);
12
14
 
13
- @if str-index($selector, config.$modifier-separator) {
15
+ @if string.index($selector, config.$modifier-separator) {
14
16
  @return true;
15
17
  } @else {
16
18
  @return false;
@@ -20,7 +22,7 @@
20
22
  @function containWhenFlag($selector) {
21
23
  $selector: selectorToString($selector);
22
24
 
23
- @if str-index($selector, '.' + config.$state-prefix) {
25
+ @if string.index($selector, '.' + config.$state-prefix) {
24
26
  @return true;
25
27
  } @else {
26
28
  @return false;
@@ -30,7 +32,7 @@
30
32
  @function containPseudoClass($selector) {
31
33
  $selector: selectorToString($selector);
32
34
 
33
- @if str-index($selector, ':') {
35
+ @if string.index($selector, ':') {
34
36
  @return true;
35
37
  } @else {
36
38
  @return false;
@@ -81,10 +83,10 @@
81
83
  }
82
84
 
83
85
  @function str-replace($string, $search, $replace: '') {
84
- $index: str-index($string, $search);
86
+ $index: string.index($string, $search);
85
87
 
86
88
  @if $index {
87
- @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
89
+ @return string.slice($string, 1, $index - 1) + $replace + str-replace(string.slice($string, $index + str-length($search)), $search, $replace);
88
90
  }
89
91
 
90
92
  @return $string;
@@ -1,8 +1,11 @@
1
1
  @use 'function' as *;
2
2
  @use 'config' as *;
3
+ $B: null;
4
+ $E: null;
3
5
 
4
6
  // BEM
5
7
  @mixin b($block) {
8
+
6
9
  $B: $namespace + '-' + $block !global;
7
10
 
8
11
  .#{$B} {
@@ -0,0 +1,57 @@
1
+ declare var _default: {
2
+ name: string;
3
+ children: ({
4
+ name: string;
5
+ header: {
6
+ prop: string;
7
+ desc: string;
8
+ type: string;
9
+ enum: string;
10
+ default: string;
11
+ event?: undefined;
12
+ value?: undefined;
13
+ name?: undefined;
14
+ };
15
+ table: {
16
+ prop: string;
17
+ desc: string;
18
+ type: string;
19
+ enum: string;
20
+ default: string;
21
+ }[];
22
+ } | {
23
+ name: string;
24
+ header: {
25
+ event: string;
26
+ desc: string;
27
+ value: string;
28
+ prop?: undefined;
29
+ type?: undefined;
30
+ enum?: undefined;
31
+ default?: undefined;
32
+ name?: undefined;
33
+ };
34
+ table: {
35
+ event: string;
36
+ desc: string;
37
+ value: string;
38
+ }[];
39
+ } | {
40
+ name: string;
41
+ header: {
42
+ name: string;
43
+ desc: string;
44
+ prop?: undefined;
45
+ type?: undefined;
46
+ enum?: undefined;
47
+ default?: undefined;
48
+ event?: undefined;
49
+ value?: undefined;
50
+ };
51
+ table: {
52
+ name: string;
53
+ desc: string;
54
+ }[];
55
+ })[];
56
+ }[];
57
+ export default _default;
@@ -0,0 +1,66 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ function data(): {
4
+ components: ({
5
+ field: string;
6
+ label: string;
7
+ component: string;
8
+ options?: undefined;
9
+ change?: undefined;
10
+ } | {
11
+ field: string;
12
+ label: string;
13
+ component: string;
14
+ options: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ change: (val: any) => void;
19
+ } | {
20
+ field: string;
21
+ label: string;
22
+ component: string;
23
+ options: {
24
+ label: string;
25
+ value: string;
26
+ }[];
27
+ change?: undefined;
28
+ })[];
29
+ condition: {};
30
+ };
31
+ function data(): {
32
+ components: ({
33
+ field: string;
34
+ label: string;
35
+ component: string;
36
+ options?: undefined;
37
+ change?: undefined;
38
+ } | {
39
+ field: string;
40
+ label: string;
41
+ component: string;
42
+ options: {
43
+ label: string;
44
+ value: string;
45
+ }[];
46
+ change: (val: any) => void;
47
+ } | {
48
+ field: string;
49
+ label: string;
50
+ component: string;
51
+ options: {
52
+ label: string;
53
+ value: string;
54
+ }[];
55
+ change?: undefined;
56
+ })[];
57
+ condition: {};
58
+ };
59
+ namespace methods {
60
+ function close(): void;
61
+ function close(): void;
62
+ function search(condition: any): void;
63
+ function search(condition: any): void;
64
+ }
65
+ }
66
+ export default _default;
@@ -0,0 +1,60 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ function data(): {
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ components: ({
9
+ field: string;
10
+ label: string;
11
+ component: string;
12
+ options?: undefined;
13
+ multiple?: undefined;
14
+ filterable?: undefined;
15
+ } | {
16
+ field: string;
17
+ label: string;
18
+ component: string;
19
+ options: {
20
+ label: string;
21
+ value: string;
22
+ }[];
23
+ multiple: boolean;
24
+ filterable: boolean;
25
+ })[];
26
+ condition: {};
27
+ };
28
+ function data(): {
29
+ options: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ components: ({
34
+ field: string;
35
+ label: string;
36
+ component: string;
37
+ options?: undefined;
38
+ multiple?: undefined;
39
+ filterable?: undefined;
40
+ } | {
41
+ field: string;
42
+ label: string;
43
+ component: string;
44
+ options: {
45
+ label: string;
46
+ value: string;
47
+ }[];
48
+ multiple: boolean;
49
+ filterable: boolean;
50
+ })[];
51
+ condition: {};
52
+ };
53
+ namespace methods {
54
+ function initOptions(options: any, loading: any): void;
55
+ function initOptions(options: any, loading: any): void;
56
+ function search(condition: any): void;
57
+ function search(condition: any): void;
58
+ }
59
+ }
60
+ export default _default;
@@ -0,0 +1,84 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ function data(): {
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ components: ({
9
+ field: string;
10
+ label: string;
11
+ component: string;
12
+ options?: undefined;
13
+ min?: undefined;
14
+ max?: undefined;
15
+ step?: undefined;
16
+ } | {
17
+ field: string;
18
+ label: string;
19
+ component: string;
20
+ options: {
21
+ label: string;
22
+ value: string;
23
+ }[];
24
+ min?: undefined;
25
+ max?: undefined;
26
+ step?: undefined;
27
+ } | {
28
+ field: string;
29
+ label: string;
30
+ component: string;
31
+ min: number;
32
+ max: number;
33
+ step: number;
34
+ options?: undefined;
35
+ })[];
36
+ condition: {};
37
+ condition2: {};
38
+ };
39
+ function data(): {
40
+ options: {
41
+ label: string;
42
+ value: string;
43
+ }[];
44
+ components: ({
45
+ field: string;
46
+ label: string;
47
+ component: string;
48
+ options?: undefined;
49
+ min?: undefined;
50
+ max?: undefined;
51
+ step?: undefined;
52
+ } | {
53
+ field: string;
54
+ label: string;
55
+ component: string;
56
+ options: {
57
+ label: string;
58
+ value: string;
59
+ }[];
60
+ min?: undefined;
61
+ max?: undefined;
62
+ step?: undefined;
63
+ } | {
64
+ field: string;
65
+ label: string;
66
+ component: string;
67
+ min: number;
68
+ max: number;
69
+ step: number;
70
+ options?: undefined;
71
+ })[];
72
+ condition: {};
73
+ condition2: {};
74
+ };
75
+ namespace methods {
76
+ function change(value: any): void;
77
+ function change(value: any): void;
78
+ function search(condition: any): void;
79
+ function search(condition: any): void;
80
+ function search2(condition: any): void;
81
+ function search2(condition: any): void;
82
+ }
83
+ }
84
+ export default _default;
@@ -0,0 +1,50 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ namespace components {
4
+ export { CustomSearchComponent };
5
+ }
6
+ function data(): {
7
+ condition: {};
8
+ };
9
+ function data(): {
10
+ condition: {};
11
+ };
12
+ namespace methods {
13
+ function initOptions(options: any, loading: any): void;
14
+ function initOptions(options: any, loading: any): void;
15
+ function search(condition: any): void;
16
+ function search(condition: any): void;
17
+ }
18
+ }
19
+ export default _default;
20
+ declare namespace CustomSearchComponent {
21
+ const name_1: string;
22
+ export { name_1 as name };
23
+ export namespace props {
24
+ const field: StringConstructor;
25
+ const label: StringConstructor;
26
+ }
27
+ export function data(): {
28
+ condition: string;
29
+ operator: string;
30
+ operatorLabel: string;
31
+ };
32
+ export function data(): {
33
+ condition: string;
34
+ operator: string;
35
+ operatorLabel: string;
36
+ };
37
+ export namespace computed {
38
+ function valueLabel(): any;
39
+ function valueLabel(): any;
40
+ }
41
+ export namespace methods_1 {
42
+ function getCondition(): any;
43
+ function getCondition(): any;
44
+ function init(): void;
45
+ function init(): void;
46
+ }
47
+ export { methods_1 as methods };
48
+ export function render(): JSX.Element;
49
+ export function render(): JSX.Element;
50
+ }
@@ -0,0 +1,52 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ function data(): {
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ components: ({
9
+ field: string;
10
+ label: string;
11
+ component: string;
12
+ options?: undefined;
13
+ } | {
14
+ field: string;
15
+ label: string;
16
+ component: string;
17
+ options: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ })[];
22
+ condition: {};
23
+ };
24
+ function data(): {
25
+ options: {
26
+ label: string;
27
+ value: string;
28
+ }[];
29
+ components: ({
30
+ field: string;
31
+ label: string;
32
+ component: string;
33
+ options?: undefined;
34
+ } | {
35
+ field: string;
36
+ label: string;
37
+ component: string;
38
+ options: {
39
+ label: string;
40
+ value: string;
41
+ }[];
42
+ })[];
43
+ condition: {};
44
+ };
45
+ namespace methods {
46
+ function init(): void;
47
+ function init(): void;
48
+ function search(condition: any): void;
49
+ function search(condition: any): void;
50
+ }
51
+ }
52
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ function data(): {
4
+ quick: string;
5
+ condition: string;
6
+ };
7
+ function data(): {
8
+ quick: string;
9
+ condition: string;
10
+ };
11
+ namespace methods {
12
+ function change(value: any): void;
13
+ function change(value: any): void;
14
+ function search(condition: any): void;
15
+ function search(condition: any): void;
16
+ }
17
+ }
18
+ export default _default;