@tekkare/auriga 0.2.43 → 0.2.45

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 (60) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/argChaptersNav.vue +24 -11
  3. package/dist/runtime/components/argChaptersNav.vue.d.ts +1 -0
  4. package/dist/runtime/components/argComplexSelect.vue +52 -51
  5. package/dist/runtime/components/argComplexSelect.vue.d.ts +11 -26
  6. package/dist/runtime/components/argDate.vue +46 -18
  7. package/dist/runtime/components/argDate.vue.d.ts +1 -1
  8. package/dist/runtime/components/argDropdownSelect.vue +25 -5
  9. package/dist/runtime/components/argDropdownSelect.vue.d.ts +4 -4
  10. package/dist/runtime/components/argFilterCard.vue +27 -34
  11. package/dist/runtime/components/argFilterCard.vue.d.ts +1 -0
  12. package/dist/runtime/components/argFooter.vue +29 -14
  13. package/dist/runtime/components/argFooter.vue.d.ts +3 -1
  14. package/dist/runtime/components/argHomeAllBlocks.vue +29 -15
  15. package/dist/runtime/components/argHomeAllBlocks.vue.d.ts +4 -3
  16. package/dist/runtime/components/argHomeHeader.vue +28 -3
  17. package/dist/runtime/components/argHomeHeader.vue.d.ts +3 -1
  18. package/dist/runtime/components/argHomeLayout.vue +1 -1
  19. package/dist/runtime/components/argHomeSelectedBlock.vue +29 -8
  20. package/dist/runtime/components/argHomeSelectedBlock.vue.d.ts +3 -1
  21. package/dist/runtime/components/argMainLayout.vue +1 -1
  22. package/dist/runtime/components/argMapsFrRegionsToDepartements.vue +31 -15
  23. package/dist/runtime/components/argMapsFrRegionsToDepartements.vue.d.ts +12 -2
  24. package/dist/runtime/components/argMultipleSelect.vue +29 -8
  25. package/dist/runtime/components/argMultipleSelect.vue.d.ts +5 -4
  26. package/dist/runtime/components/argNoSavedScope.vue +44 -38
  27. package/dist/runtime/components/argNoSavedScope.vue.d.ts +4 -15
  28. package/dist/runtime/components/argNoSelectedScope.vue +35 -31
  29. package/dist/runtime/components/argNoSelectedScope.vue.d.ts +2 -1
  30. package/dist/runtime/components/argScopeChange.vue +27 -20
  31. package/dist/runtime/components/argScopeChange.vue.d.ts +2 -1
  32. package/dist/runtime/components/argScopeCriteria.vue +33 -32
  33. package/dist/runtime/components/argScopeCriteria.vue.d.ts +4 -11
  34. package/dist/runtime/components/argScopeCriteriaIndicator.vue +31 -18
  35. package/dist/runtime/components/argScopeCriteriaIndicator.vue.d.ts +3 -1
  36. package/dist/runtime/components/argScopeHeader.vue +27 -12
  37. package/dist/runtime/components/argScopeHeader.vue.d.ts +1 -0
  38. package/dist/runtime/components/argScopeManage.vue +30 -36
  39. package/dist/runtime/components/argScopeManage.vue.d.ts +1 -0
  40. package/dist/runtime/components/argScopeModal.vue +33 -64
  41. package/dist/runtime/components/argScopeModal.vue.d.ts +1 -0
  42. package/dist/runtime/components/argSearchInput.vue +37 -15
  43. package/dist/runtime/components/argSearchInput.vue.d.ts +2 -10
  44. package/dist/runtime/components/argSidebar.vue +28 -16
  45. package/dist/runtime/components/argSidebar.vue.d.ts +1 -0
  46. package/dist/runtime/components/argSourceCollapse.vue +26 -6
  47. package/dist/runtime/components/argSourceCollapse.vue.d.ts +1 -0
  48. package/dist/runtime/components/argTable.vue +42 -14
  49. package/dist/runtime/components/argTable.vue.d.ts +5 -5
  50. package/dist/runtime/components/argTipsBox.vue +27 -17
  51. package/dist/runtime/components/argTipsBox.vue.d.ts +3 -2
  52. package/dist/runtime/components/argToolbarSources.vue +29 -22
  53. package/dist/runtime/components/argToolbarSources.vue.d.ts +3 -1
  54. package/dist/runtime/components/locales/en.json +180 -1
  55. package/dist/runtime/components/locales/es.json +179 -1
  56. package/dist/runtime/components/locales/fr.json +179 -1
  57. package/dist/runtime/components/locales/jp.json +179 -2
  58. package/package.json +1 -1
  59. package/dist/runtime/components/textHighlight.vue +0 -251
  60. package/dist/runtime/components/textHighlight.vue.d.ts +0 -96
@@ -7,6 +7,183 @@
7
7
  "save-analysis": "保存して分析結果を見る",
8
8
  "download": "全てダウンロード",
9
9
  "close": "閉じる"
10
- }
11
-
10
+ },
11
+ "chapters": "チャプター",
12
+ "complex": {
13
+ "quick": "クイック選択",
14
+ "current": "選択内容",
15
+ "empty": "未選択",
16
+ "loading": "読み込み中です...",
17
+ "wait": "お待ちください",
18
+ "search": "検索オプション...",
19
+ "searchSelect": "選択済みオプションから検索...",
20
+ "max": "最大選択数に達しました",
21
+ "notFound": "表示できるものがありません",
22
+ "custom": "カスタム選択",
23
+ "orCustom": "またはカスタムセレクション",
24
+ "noSelection": "まだ選択されていません",
25
+ "all": "全て選択する",
26
+ "clear": "クリア"
27
+ },
28
+ "dropdown": {
29
+ "empty": "未選択",
30
+ "loading": "読み込み中です...",
31
+ "wait": "お待ちください",
32
+ "search": "検索オプション...",
33
+ "notFound": "表示できるものがありません"
34
+ },
35
+ "multiple": {
36
+ "empty": "未選択",
37
+ "loading": "読み込み中です...",
38
+ "wait": "お待ちください",
39
+ "search": "検索オプション...",
40
+ "notFound": "表示できるものがありません",
41
+ "all": "すべて"
42
+ },
43
+ "search": {
44
+ "loading": "その他のローディングの提案",
45
+ "empty": "提案は見つからなかった"
46
+ },
47
+ "date": {
48
+ "compact": {
49
+ "jan": "1月",
50
+ "feb": "2月",
51
+ "mar": "3月",
52
+ "apr": "4月",
53
+ "may": "5月",
54
+ "jun": "6月",
55
+ "jul": "7月",
56
+ "aug": "8月",
57
+ "sep": "9月",
58
+ "oct": "10月",
59
+ "nov": "11月",
60
+ "dec": "12月"
61
+ },
62
+ "full": {
63
+ "jan": "1月",
64
+ "feb": "2月",
65
+ "mar": "3月",
66
+ "apr": "4月",
67
+ "may": "5月",
68
+ "jun": "6月",
69
+ "jul": "7月",
70
+ "aug": "8月",
71
+ "sep": "9月",
72
+ "oct": "10月",
73
+ "nov": "11月",
74
+ "dec": "12月"
75
+ }
76
+ },
77
+ "tips": {
78
+ "close": "閉じる",
79
+ "more": "詳しく見る",
80
+ "hide": "隠す"
81
+ },
82
+ "sourceCollapse": {
83
+ "copySource": "コピー",
84
+ "sector": "セクター"
85
+ },
86
+ "backOIP": "OIPに戻る",
87
+ "footer": {
88
+ "rights": "All rights reserved",
89
+ "terms": "利用規約"
90
+ },
91
+ "sidebar": {
92
+ "home": "ホーム",
93
+ "open": "サイドバーを開く"
94
+ },
95
+ "map": {
96
+ "dep": "部門規模",
97
+ "reg": "地域規模",
98
+ "return": "地域に戻る"
99
+ },
100
+ "homeBlocks": {
101
+ "all": "全てのテーマ",
102
+ "countries": "国別",
103
+ "global": "グローバルテーマ",
104
+ "search": "検索...",
105
+ "empty1": "検索結果0件",
106
+ "empty2": "一致する検索結果がありませんでした。キーワードを変えるか、Tekkareまでアシスタントをご要望ください。"
107
+ },
108
+ "selectedBlock": {
109
+ "title": "テーマを選択する",
110
+ "subtitle": "分析結果を表示するためテーマを選択して下さい"
111
+ },
112
+ "noScope": {
113
+ "message": "分析結果やデータを見るためにはスコープを選択して下さい。",
114
+ "exist": "保存済みのスコープを適用する",
115
+ "apply": "スコープを適用する",
116
+ "new": "+ 新しいスコープ",
117
+ "or": "または"
118
+ },
119
+ "scopeChange": {
120
+ "save": "スコープを保存",
121
+ "new": "新しいスコープ",
122
+ "change": "スコープを変える",
123
+ "apply": "スコープを適用する"
124
+ },
125
+ "scopeIndic": {
126
+ "apply": "適用スコープ:",
127
+ "custom": "カスタム"
128
+ },
129
+ "myScope": "スコープ",
130
+ "scopeCriteria": {
131
+ "tabs": {
132
+ "new": "新しいスコープ条件",
133
+ "saved": "保存済みのスコープを適用する"
134
+ },
135
+ "title": "スコープ条件",
136
+ "saved": "保存済みスコープ"
137
+ },
138
+ "scopeManage": {
139
+ "title": "スコープを管理する",
140
+ "del": "削除",
141
+ "created": " 作成",
142
+ "criteria": "基準",
143
+ "close": "基準"
144
+ },
145
+ "scopeCreate": {
146
+ "title": "スコープを保存する",
147
+ "myscope": "スコープ",
148
+ "name": "スコープタイトル",
149
+ "namePlaceholder": "スコープ名 例 ベンチマーク2023 ",
150
+ "nameError": "スコープ名は必須項目です",
151
+ "descr": "スコープの内容",
152
+ "descrPlaceholder": "説明",
153
+ "crit": "基準",
154
+ "cancel": "キャンセル",
155
+ "save": "スコープを保存して続ける"
156
+ },
157
+ "noSavedScope": {
158
+ "main": "まだスコープが保存されていません。新しいスコープを作成する方法を説明します: ",
159
+ "step1": "新しいスコープ基準」に切り替える",
160
+ "step2": "必要な条件をすべて選択",
161
+ "step3": "画面右上の「save and continue」をクリックします。",
162
+ "step4": "フォームに必要な情報を入力し、「Save scope and continue 」をクリックします。",
163
+ "end": "これで完了です!スコープが保存され、次回接続時に復元できるようになります。"
164
+ },
165
+ "toolbarSource": {
166
+ "comply": "",
167
+ "list": "に基づき、当データを使用したレポート等にデータソース名を掲載して下さい。",
168
+ "copy": "”コピー”ボタンでデータソース名をコピーできます"
169
+ },
170
+ "filterCard": {
171
+ "title": "フィルター",
172
+ "save": "スコープを保存する",
173
+ "clear": "全てリセットする",
174
+ "hide": "隠す",
175
+ "show": "表示する"
176
+ },
177
+ "table": {
178
+ "page": "ページネーション付き表示",
179
+ "full": "完全な表を表示",
180
+ "searchBy": "で検索",
181
+ "or": "または",
182
+ "searchAll": "すべて検索",
183
+ "loadingTitle": "読み込み中です...",
184
+ "loadingSub": "お待ちください",
185
+ "emptyTitle": "表示できるものがありません",
186
+ "emptySub": "検索条件を変更または空にする"
187
+ },
188
+ "close": "閉じる"
12
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.43",
3
+ "version": "0.2.45",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,251 +0,0 @@
1
- <template>
2
- <div :class="haveReadMore && needsMore ? 'crop_display' : ''">
3
- <div
4
- :id="id"
5
- :class="crop && !showMore ? 'crop' : ''"
6
- :style="crop && !showMore ? `-webkit-line-clamp: ${lines}` : ''"
7
- v-html="renderText"
8
- />
9
- <arg-text-btn v-if="crop && haveReadMore && needsMore" @click="toggleMore">
10
- {{ getReadMore }}
11
- </arg-text-btn>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- import { onMounted, ref, computed, defineComponent } from "vue";
17
- import argTextBtn from "./argTextBtn.vue";
18
- export default defineComponent({
19
- name: "textHighlight",
20
- components: { argTextBtn },
21
- props: {
22
- text: {
23
- type: String,
24
- required: true
25
- },
26
- queries: {
27
- type: Array,
28
- default: null
29
- },
30
- crop: {
31
- type: Boolean,
32
- default: false
33
- },
34
- lines: {
35
- type: Number,
36
- default: 3
37
- },
38
- haveReadMore: {
39
- type: Boolean,
40
- default: false
41
- },
42
- id: {
43
- type: String,
44
- default: null
45
- },
46
- customReadMore: {
47
- type: Object,
48
- default: null
49
- },
50
- lang: {
51
- type: String,
52
- default: "en",
53
- validator: (value) => {
54
- return ["en", "fr", "es"].includes(value);
55
- }
56
- }
57
- },
58
- emits: ["onShowMore", "onShowLess"],
59
- setup(props, { emit }) {
60
- const showMore = ref(false);
61
- const indic = ref(null);
62
- const getReadMore = computed(() => {
63
- if (props.customReadMore !== null) {
64
- return showMore.value ? props.customReadMore.less : props.customReadMore.more;
65
- } else {
66
- const texts = {
67
- more: { en: "Read more", fr: "Voir plus", es: "Ver m\xE1s" },
68
- less: { en: "Read less", fr: "Voir moins", es: "Ver menos" }
69
- };
70
- return showMore.value ? texts.less[props.lang] : texts.more[props.lang];
71
- }
72
- });
73
- function toggleMore() {
74
- showMore.value = !showMore.value;
75
- if (showMore.value) {
76
- emit("onShowMore");
77
- } else {
78
- emit("onShowLess");
79
- }
80
- }
81
- function escapeRegExp(str) {
82
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\<script lang="ts">
83
- import { onMounted, ref, computed, defineComponent } from "vue";
84
- import argTextBtn from "./argTextBtn.vue";
85
-
86
- export default defineComponent({
87
- name: "textHighlight",
88
- components: { argTextBtn },
89
- props: {
90
- text: {
91
- type: String,
92
- required: true,
93
- },
94
- queries: {
95
- type: Array as () => string[],
96
- default: null,
97
- },
98
- crop: {
99
- type: Boolean,
100
- default: false,
101
- },
102
- lines: {
103
- type: Number,
104
- default: 3,
105
- },
106
- haveReadMore: {
107
- type: Boolean,
108
- default: false,
109
- },
110
- id: {
111
- type: String,
112
- default: null,
113
- },
114
- customReadMore: {
115
- type: Object as () => { more: string; less: string },
116
- default: null,
117
- },
118
- lang: {
119
- type: String as () => "en" | "fr" | "es",
120
- default: "en",
121
- validator: (value: string) => {
122
- return ["en", "fr", "es"].includes(value);
123
- },
124
- },
125
- },
126
- emits: ["onShowMore", "onShowLess"],
127
- setup(props, { emit }) {
128
- const showMore = ref(false);
129
- const indic = ref<HTMLElement | null>(null);
130
-
131
- const getReadMore = computed(() => {
132
- if (props.customReadMore !== null) {
133
- return showMore.value
134
- ? props.customReadMore.less
135
- : props.customReadMore.more;
136
- } else {
137
- const texts = {
138
- more: { en: "Read more", fr: "Voir plus", es: "Ver más" },
139
- less: { en: "Read less", fr: "Voir moins", es: "Ver menos" },
140
- };
141
- return showMore.value ? texts.less[props.lang] : texts.more[props.lang];
142
- }
143
- });
144
-
145
- function toggleMore() {
146
- showMore.value = !showMore.value;
147
-
148
- if (showMore.value) {
149
- emit("onShowMore");
150
- } else {
151
- emit("onShowLess");
152
- }
153
- }
154
-
155
- function escapeRegExp(str: string) {
156
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
157
- }
158
-
159
- const needsMore = computed(() => {
160
- const fullHeight = ref(0);
161
- const originalHeight = ref(0);
162
-
163
- if (indic.value !== null) {
164
- indic.value.classList.remove("crop");
165
-
166
- fullHeight.value = indic.value.clientHeight;
167
- indic.value.classList.add("crop");
168
- originalHeight.value = indic.value.clientHeight;
169
- }
170
- return fullHeight.value > originalHeight.value;
171
- });
172
-
173
- const renderText = computed(() => {
174
- let returnText = props.text;
175
- if (
176
- props.queries !== null &&
177
- props.queries.length > 0 &&
178
- returnText !== null
179
- ) {
180
- props.queries.forEach((word: string) => {
181
- const regex = new RegExp(`\\b(${escapeRegExp(word)})\\b`, "gi");
182
- returnText = returnText.replace(regex, (match: string) => {
183
- if (match.toLowerCase() === "mark") {
184
- return match;
185
- }
186
- return `<mark>${match}</mark>`;
187
- });
188
- });
189
- }
190
-
191
- return returnText;
192
- });
193
-
194
- onMounted(() => {
195
- indic.value = document.getElementById(props.id);
196
- });
197
-
198
- return {
199
- showMore,
200
- needsMore,
201
- renderText,
202
- getReadMore,
203
- toggleMore,
204
- };
205
- },
206
- });
207
- </script>");
208
- }
209
- const needsMore = computed(() => {
210
- const fullHeight = ref(0);
211
- const originalHeight = ref(0);
212
- if (indic.value !== null) {
213
- indic.value.classList.remove("crop");
214
- fullHeight.value = indic.value.clientHeight;
215
- indic.value.classList.add("crop");
216
- originalHeight.value = indic.value.clientHeight;
217
- }
218
- return fullHeight.value > originalHeight.value;
219
- });
220
- const renderText = computed(() => {
221
- let returnText = props.text;
222
- if (props.queries !== null && props.queries.length > 0 && returnText !== null) {
223
- props.queries.forEach((word) => {
224
- const regex = new RegExp(`\\b(${escapeRegExp(word)})\\b`, "gi");
225
- returnText = returnText.replace(regex, (match) => {
226
- if (match.toLowerCase() === "mark") {
227
- return match;
228
- }
229
- return `<mark>${match}</mark>`;
230
- });
231
- });
232
- }
233
- return returnText;
234
- });
235
- onMounted(() => {
236
- indic.value = document.getElementById(props.id);
237
- });
238
- return {
239
- showMore,
240
- needsMore,
241
- renderText,
242
- getReadMore,
243
- toggleMore
244
- };
245
- }
246
- });
247
- </script>
248
-
249
- <style scoped>
250
- .crop{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.crop_display{align-items:flex-start;display:flex;flex-direction:column;gap:8px}
251
- </style>
@@ -1,96 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- text: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- queries: {
7
- type: () => string[];
8
- default: null;
9
- };
10
- crop: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- lines: {
15
- type: NumberConstructor;
16
- default: number;
17
- };
18
- haveReadMore: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
- id: {
23
- type: StringConstructor;
24
- default: null;
25
- };
26
- customReadMore: {
27
- type: () => {
28
- more: string;
29
- less: string;
30
- };
31
- default: null;
32
- };
33
- lang: {
34
- type: () => "en" | "fr" | "es";
35
- default: string;
36
- validator: (value: string) => boolean;
37
- };
38
- }, {
39
- showMore: import("vue").Ref<boolean>;
40
- needsMore: import("vue").ComputedRef<boolean>;
41
- renderText: import("vue").ComputedRef<string>;
42
- getReadMore: import("vue").ComputedRef<string>;
43
- toggleMore: () => void;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onShowMore" | "onShowLess")[], "onShowMore" | "onShowLess", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
- text: {
46
- type: StringConstructor;
47
- required: true;
48
- };
49
- queries: {
50
- type: () => string[];
51
- default: null;
52
- };
53
- crop: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- lines: {
58
- type: NumberConstructor;
59
- default: number;
60
- };
61
- haveReadMore: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- };
65
- id: {
66
- type: StringConstructor;
67
- default: null;
68
- };
69
- customReadMore: {
70
- type: () => {
71
- more: string;
72
- less: string;
73
- };
74
- default: null;
75
- };
76
- lang: {
77
- type: () => "en" | "fr" | "es";
78
- default: string;
79
- validator: (value: string) => boolean;
80
- };
81
- }>> & {
82
- onOnShowMore?: ((...args: any[]) => any) | undefined;
83
- onOnShowLess?: ((...args: any[]) => any) | undefined;
84
- }, {
85
- id: string;
86
- lang: "en" | "fr" | "es";
87
- queries: string[];
88
- crop: boolean;
89
- lines: number;
90
- haveReadMore: boolean;
91
- customReadMore: {
92
- more: string;
93
- less: string;
94
- };
95
- }, {}>;
96
- export default _default;