@tekkare/auriga 0.1.9 → 0.1.11

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 (59) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/allIcons.vue +1112 -0
  3. package/dist/runtime/components/allIcons.vue.d.ts +6 -0
  4. package/dist/runtime/components/argActions.vue +47 -12
  5. package/dist/runtime/components/argActions.vue.d.ts +27 -4
  6. package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
  7. package/dist/runtime/components/argChart.vue +109 -167
  8. package/dist/runtime/components/argChart.vue.d.ts +1 -1
  9. package/dist/runtime/components/argCheckbox.vue +35 -28
  10. package/dist/runtime/components/argCheckbox.vue.d.ts +9 -1
  11. package/dist/runtime/components/argCircleAmount.vue +37 -0
  12. package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
  13. package/dist/runtime/components/argDate.vue +77 -0
  14. package/dist/runtime/components/argDate.vue.d.ts +34 -0
  15. package/dist/runtime/components/argDropdownSelect.vue +5 -19
  16. package/dist/runtime/components/argEmoji.vue +34 -0
  17. package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
  18. package/dist/runtime/components/argErrors.vue +167 -0
  19. package/dist/runtime/components/argErrors.vue.d.ts +54 -0
  20. package/dist/runtime/components/argFileBtn.vue +10 -2
  21. package/dist/runtime/components/argFileBtn.vue.d.ts +9 -0
  22. package/dist/runtime/components/argFilterCard.vue +1 -1
  23. package/dist/runtime/components/argHeader.vue +15 -7
  24. package/dist/runtime/components/argHeader.vue.d.ts +9 -0
  25. package/dist/runtime/components/argHybridChart.vue +277 -0
  26. package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
  27. package/dist/runtime/components/argMainLayout.vue +1 -0
  28. package/dist/runtime/components/argMenuLink.vue +46 -17
  29. package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
  30. package/dist/runtime/components/argMultipleChoice.vue +1 -1
  31. package/dist/runtime/components/argMultipleSelect.vue +29 -17
  32. package/dist/runtime/components/argMultipleSelect.vue.d.ts +8 -0
  33. package/dist/runtime/components/argNumberInput.vue +223 -0
  34. package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
  35. package/dist/runtime/components/argRadioButtons.vue +2 -1
  36. package/dist/runtime/components/argScopeCriteria.vue +91 -0
  37. package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
  38. package/dist/runtime/components/argScopeHeader.vue +90 -0
  39. package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
  40. package/dist/runtime/components/argScopeLayout.vue +61 -0
  41. package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
  42. package/dist/runtime/components/argSidebar.vue +10 -7
  43. package/dist/runtime/components/argSidebar.vue.d.ts +9 -0
  44. package/dist/runtime/components/argSimpleChart.vue +123 -0
  45. package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
  46. package/dist/runtime/components/argSimpleInput.vue +94 -0
  47. package/dist/runtime/components/argSimpleInput.vue.d.ts +40 -0
  48. package/dist/runtime/components/argSimpleLabel.vue +1 -1
  49. package/dist/runtime/components/argSmallAreaChart.vue +138 -0
  50. package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
  51. package/dist/runtime/components/argStyle.vue +90 -65
  52. package/dist/runtime/components/argTags.vue +7 -5
  53. package/dist/runtime/components/argTipsBox.vue +153 -0
  54. package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
  55. package/dist/runtime/components/argTrendIndicator.vue +82 -0
  56. package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
  57. package/dist/runtime/components/argTutoModal.vue +185 -0
  58. package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
  59. package/package.json +2 -1
@@ -5,12 +5,14 @@
5
5
  id="arg_header"
6
6
  >
7
7
  <div class="arg_header_title_group">
8
- <nuxt-link :to="backTo" v-if="backTo" class="arg_header_back_button">
9
- <arg-icon name="CaretLeft" size="20px" />
10
- </nuxt-link>
11
- <button @click="goBack()" v-else class="arg_header_back_button">
12
- <arg-icon name="CaretLeft" size="20px" />
13
- </button>
8
+ <div v-if="haveReturn">
9
+ <nuxt-link :to="backTo" v-if="backTo" class="arg_header_back_button">
10
+ <arg-icon name="CaretLeft" size="20px" />
11
+ </nuxt-link>
12
+ <button @click="goBack()" v-else class="arg_header_back_button">
13
+ <arg-icon name="CaretLeft" size="20px" />
14
+ </button>
15
+ </div>
14
16
  <h1 class="arg_header_title">
15
17
  {{ title }}
16
18
  </h1>
@@ -38,6 +40,7 @@ export default defineComponent({
38
40
  props: {
39
41
  title: { type: String, required: true },
40
42
  backTo: { type: String, required: false },
43
+ haveReturn: { type: Boolean, default: false },
41
44
  tabs: { type: Array, required: false },
42
45
  index_menu: { type: [String, Number], default: 1 },
43
46
  sidebarOpen: { type: Boolean, default: false }
@@ -75,7 +78,12 @@ export default defineComponent({
75
78
  background: transparent;
76
79
  width: 100%;
77
80
  box-sizing: border-box;
78
- margin-left: -8px;
81
+ }
82
+ .arg_header_with_sidebar {
83
+ left: 200px;
84
+ }
85
+ .arg_header_no_sidebar {
86
+ left: 52px;
79
87
  }
80
88
  .arg_header_title_group {
81
89
  display: flex;
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  required: false;
9
9
  };
10
+ haveReturn: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  tabs: {
11
15
  type: ArrayConstructor;
12
16
  required: false;
@@ -31,6 +35,10 @@ declare const _default: import("vue").DefineComponent<{
31
35
  type: StringConstructor;
32
36
  required: false;
33
37
  };
38
+ haveReturn: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
34
42
  tabs: {
35
43
  type: ArrayConstructor;
36
44
  required: false;
@@ -48,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
48
56
  "onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
49
57
  }, {
50
58
  index_menu: string | number;
59
+ haveReturn: boolean;
51
60
  sidebarOpen: boolean;
52
61
  }, {}>;
53
62
  export default _default;
@@ -0,0 +1,277 @@
1
+ <template>
2
+ <div>
3
+ <client-only>
4
+ <table class="oip_hybrid_chart">
5
+ <thead class="oip_hybrid_chart__header">
6
+ <tr>
7
+ <th
8
+ class="oip_hybrid_chart__header_elem"
9
+ v-for="(header, index) in heads"
10
+ :key="index"
11
+ >
12
+ {{ header }}
13
+ </th>
14
+ </tr>
15
+ </thead>
16
+ <tbody class="oip_hybrid_chart__body">
17
+ <tr v-for="(row, tableIndex) in tableBody" :key="tableIndex">
18
+ <td
19
+ v-for="(val, index) in row.values"
20
+ :key="index"
21
+ class="oip_hybrid_chart__td"
22
+ >
23
+ <div class="oip_hybrid_chart__bar_group" v-if="index === 0">
24
+ <div
25
+ class="oip_hybrid_chart__bar"
26
+ :style="{
27
+ background: barColor + '1a',
28
+ width: `${getPercentage(row.values[1].percentage)}%`,
29
+ }"
30
+ ></div>
31
+ <arg-tooltip
32
+ :id="`tooltip-${val}`"
33
+ :disable="isEllipsisActive(val)"
34
+ :tooltipText="val"
35
+ :dir="tableIndex === tableBody.length - 1 ? 'bottom' : 'top'"
36
+ class="oip_hybrid_chart__bar_content"
37
+ >
38
+ <div :id="`text-value-${val}`" class="truncated">
39
+ {{ val }}
40
+ </div>
41
+ </arg-tooltip>
42
+ </div>
43
+ <div class="oip_hybrid_chart__td_content" v-if="index === 1">
44
+ <p>
45
+ {{
46
+ new Intl.NumberFormat("fr-FR")
47
+ .format(val.value)
48
+ .replace(",", ".")
49
+ }}
50
+ <span class="oip_hybrid_chart__bar_percentage"
51
+ >({{ val.percentage }} %)</span
52
+ >
53
+ </p>
54
+ </div>
55
+ <div class="oip_hybrid_chart__td_content" v-if="index > 1">
56
+ {{ val }}
57
+ </div>
58
+ </td>
59
+ </tr>
60
+ </tbody>
61
+ </table>
62
+ </client-only>
63
+ <div class="oip_hybrid_chart__footer" v-if="limiter">
64
+ <arg-btn
65
+ btnStyle="skeleton"
66
+ prefixIcon="CornersOut"
67
+ @onClick="changeShowState(true)"
68
+ v-if="!showAll"
69
+ >Show all</arg-btn
70
+ >
71
+ <arg-btn
72
+ btnStyle="skeleton"
73
+ prefixIcon="CornersIn"
74
+ @onClick="changeShowState(false)"
75
+ v-if="showAll"
76
+ >Show less</arg-btn
77
+ >
78
+ </div>
79
+ </div>
80
+ </template>
81
+ <script>
82
+ import argBtn from "./argBtn";
83
+ import argTooltip from "./argTooltip";
84
+ import {
85
+ onMounted,
86
+ ref,
87
+ computed,
88
+ watch,
89
+ defineComponent
90
+ } from "vue";
91
+ export default defineComponent({
92
+ name: "argHybridChart",
93
+ components: { argBtn, argTooltip },
94
+ props: {
95
+ heads: {
96
+ type: Array,
97
+ required: true
98
+ },
99
+ contents: {
100
+ type: Array,
101
+ required: true
102
+ },
103
+ barColor: {
104
+ type: String,
105
+ default: "#4475FB"
106
+ },
107
+ limiter: {
108
+ type: Number,
109
+ required: false
110
+ }
111
+ },
112
+ emits: ["showState"],
113
+ setup(props, { emit }) {
114
+ const showAll = ref(false);
115
+ const maxValue = ref(0);
116
+ const tableBody = computed(() => {
117
+ let contentValues = [];
118
+ if (props.limiter) {
119
+ if (!showAll.value) {
120
+ contentValues = props.contents.slice(0, props.limiter);
121
+ } else {
122
+ contentValues = props.contents;
123
+ }
124
+ } else {
125
+ contentValues = props.contents;
126
+ }
127
+ return contentValues;
128
+ });
129
+ onMounted(() => {
130
+ getMaxValue();
131
+ });
132
+ watch(
133
+ () => props.contents,
134
+ (new_contents) => {
135
+ maxValue.value = 0;
136
+ getMaxValue();
137
+ }
138
+ );
139
+ function isEllipsisActive(value) {
140
+ let textValue = document?.getElementById(`text-value-${value}`);
141
+ let tooltip = document?.getElementById(`tooltip-${value}`);
142
+ if (textValue !== void 0 && textValue !== null && tooltip !== null) {
143
+ tooltip.style.maxWidth = "12000px";
144
+ textValue.style.overflow = "initial";
145
+ const noEllipsisWidth = textValue.offsetWidth;
146
+ tooltip.style.maxWidth = "100%";
147
+ textValue.style.overflow = "hidden";
148
+ const ellipsisWidth = textValue.offsetWidth;
149
+ if (ellipsisWidth < noEllipsisWidth) {
150
+ return false;
151
+ } else {
152
+ return true;
153
+ }
154
+ }
155
+ }
156
+ function getMaxValue() {
157
+ for (let i = 0; i < props.contents.length; i++) {
158
+ if (parseFloat(props.contents[i].values[1].percentage) > maxValue.value) {
159
+ parseFloat(maxValue.value = props.contents[i].values[1].percentage);
160
+ }
161
+ }
162
+ }
163
+ function changeShowState(val) {
164
+ showAll.value = val;
165
+ emit("showState", val);
166
+ }
167
+ function getPercentage(value) {
168
+ if (maxValue.value === 100) {
169
+ return value;
170
+ } else {
171
+ if (value === maxValue.value) {
172
+ return 100;
173
+ } else {
174
+ return value * 100 / maxValue.value;
175
+ }
176
+ }
177
+ }
178
+ return {
179
+ maxValue,
180
+ showAll,
181
+ getMaxValue,
182
+ changeShowState,
183
+ getPercentage,
184
+ tableBody,
185
+ isEllipsisActive
186
+ };
187
+ }
188
+ });
189
+ </script>
190
+ <style scoped>
191
+ .oip_hybrid_chart {
192
+ border-collapse: collapse;
193
+ border-spacing: 0;
194
+ width: 100%;
195
+ table-layout: auto;
196
+ }
197
+ .oip_hybrid_chart__header th {
198
+ font-style: normal;
199
+ font-weight: 400;
200
+ font-size: 12px;
201
+ line-height: 14px;
202
+ color: var(--cool-grey);
203
+ }
204
+ .oip_hybrid_chart__header_elem:first-child {
205
+ text-align: left;
206
+ padding-left: 0;
207
+ }
208
+ .oip_hybrid_chart__header_elem:last-child {
209
+ padding-right: 0;
210
+ }
211
+ .oip_hybrid_chart__header_elem {
212
+ padding: 5px 10px;
213
+ white-space: nowrap;
214
+ text-align: right;
215
+ }
216
+ .oip_hybrid_chart__body tr {
217
+ padding: 4px 0;
218
+ height: 40px;
219
+ }
220
+ .oip_hybrid_chart__td:first-child {
221
+ width: 100%;
222
+ padding-left: 0;
223
+ }
224
+ .oip_hybrid_chart__td:last-child .oip_hybrid_chart__td_content {
225
+ padding-right: 0;
226
+ }
227
+ .oip_hybrid_chart__td {
228
+ vertical-align: top !important;
229
+ }
230
+ .oip_hybrid_chart__td_content {
231
+ padding: 5px 10px;
232
+ font-style: normal;
233
+ font-weight: 500;
234
+ font-size: 14px;
235
+ line-height: 160%;
236
+ color: var(--independence);
237
+ white-space: nowrap;
238
+ text-align: right;
239
+ }
240
+
241
+ .oip_hybrid_chart__bar_group {
242
+ position: relative;
243
+ width: 100%;
244
+ }
245
+ .oip_hybrid_chart__bar {
246
+ position: absolute;
247
+ z-index: 0;
248
+ height: 32px;
249
+ }
250
+ .oip_hybrid_chart__bar_content {
251
+ position: absolute;
252
+ z-index: 1;
253
+ padding: 8px 10px;
254
+ white-space: nowrap;
255
+ font-style: normal;
256
+ font-weight: 400;
257
+ font-size: 14px;
258
+ max-width: 100%;
259
+ }
260
+
261
+ .oip_hybrid_chart__bar_percentage {
262
+ margin-left: 4px;
263
+ font-weight: 400;
264
+ }
265
+ .oip_hybrid_chart__footer {
266
+ display: flex;
267
+ justify-content: center;
268
+ margin-top: 32px;
269
+ }
270
+
271
+ .truncated {
272
+ display: block;
273
+ white-space: nowrap; /* forces text to single line */
274
+ overflow: hidden;
275
+ text-overflow: ellipsis;
276
+ }
277
+ </style>
@@ -0,0 +1,48 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ heads: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ contents: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ barColor: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ limiter: {
15
+ type: NumberConstructor;
16
+ required: false;
17
+ };
18
+ }, {
19
+ maxValue: import("vue").Ref<number>;
20
+ showAll: import("vue").Ref<boolean>;
21
+ getMaxValue: () => void;
22
+ changeShowState: (val: boolean) => void;
23
+ getPercentage: (value: number) => number;
24
+ tableBody: import("vue").ComputedRef<never[]>;
25
+ isEllipsisActive: (value: string) => boolean | undefined;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "showState"[], "showState", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ heads: {
28
+ type: ArrayConstructor;
29
+ required: true;
30
+ };
31
+ contents: {
32
+ type: ArrayConstructor;
33
+ required: true;
34
+ };
35
+ barColor: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ limiter: {
40
+ type: NumberConstructor;
41
+ required: false;
42
+ };
43
+ }>> & {
44
+ onShowState?: ((...args: any[]) => any) | undefined;
45
+ }, {
46
+ barColor: string;
47
+ }, {}>;
48
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div :class="sidebarOpen ? 'arg_main_with_sidebar' : 'arg_main_no_sidebar'">
3
3
  <slot name="sidebar" />
4
+ <slot name="tuto" />
4
5
  <div class="arg_main_layout_body">
5
6
  <div class="arg_info" id="arg_info_section">
6
7
  <slot name="infoBar" />
@@ -1,48 +1,77 @@
1
1
  <template>
2
- <nuxt-link :to="to" class="arg_menu_link">
3
- <arg-tooltip
4
- :tooltip-text="label"
5
- :disable="sidebarOpen"
6
- dir="right"
7
- :class="['tooltip_display', sidebarOpen ? '' : 'link_menu_tooltip_icon']"
8
- >
9
- <arg-icon :name="icon" color="var(--cool-grey)" size="20" />
10
- </arg-tooltip>
11
- <span v-show="sidebarOpen">{{ label }}</span>
12
- </nuxt-link>
2
+ <div>
3
+ <nuxt-link v-if="!isAction" :to="to" class="arg_menu_link">
4
+ <arg-tooltip
5
+ :tooltip-text="label"
6
+ :disable="sidebarOpen"
7
+ dir="right"
8
+ :class="[
9
+ 'tooltip_display',
10
+ sidebarOpen ? '' : 'link_menu_tooltip_icon',
11
+ ]"
12
+ >
13
+ <arg-icon :name="icon" color="var(--cool-grey)" size="20" />
14
+ </arg-tooltip>
15
+ <span v-show="sidebarOpen">{{ label }}</span>
16
+ </nuxt-link>
17
+ <div v-else class="arg_menu_link" @click="sendAction()">
18
+ <arg-tooltip
19
+ :tooltip-text="label"
20
+ :disable="sidebarOpen"
21
+ dir="right"
22
+ :class="[
23
+ 'tooltip_display',
24
+ sidebarOpen ? '' : 'link_menu_tooltip_icon',
25
+ ]"
26
+ >
27
+ <arg-icon :name="icon" color="var(--cool-grey)" size="20" />
28
+ </arg-tooltip>
29
+ <span v-show="sidebarOpen">{{ label }}</span>
30
+ </div>
31
+ </div>
13
32
  </template>
14
33
  <script>
15
34
  import {
16
35
  defineComponent
17
36
  } from "vue";
18
37
  import argIcon from "./argIcon.vue";
19
- import argStyle from "./argStyle.vue";
20
38
  export default defineComponent({
21
39
  name: "argMenuLink",
22
- components: { argIcon, argStyle },
40
+ components: { argIcon },
23
41
  props: {
24
42
  icon: { type: String, required: true },
25
43
  label: { type: String, required: true },
26
- to: { type: String, required: true, default: "/" },
27
- sidebarOpen: { type: Boolean, default: true }
44
+ to: { type: String, default: "/" },
45
+ sidebarOpen: { type: Boolean, default: true },
46
+ isAction: { type: Boolean, default: false }
47
+ },
48
+ emits: ["onClick"],
49
+ setup(props, { emit }) {
50
+ function sendAction() {
51
+ emit("onClick");
52
+ }
53
+ return {
54
+ sendAction
55
+ };
28
56
  }
29
57
  });
30
58
  </script>
31
59
  <style>
32
60
  .arg_menu_link {
33
61
  display: flex;
34
- height: 32px;
35
62
  padding: 6px;
36
63
  align-items: center;
37
64
  gap: 6px;
38
65
  align-self: stretch;
39
- color: var(--cool-grey);
66
+ color: var(--independence);
40
67
  font-size: 14px;
41
68
  font-style: normal;
42
69
  font-weight: 400;
43
70
  line-height: 160%;
44
71
  text-transform: capitalize;
45
72
  cursor: pointer;
73
+ border-radius: 4px;
74
+ margin: 8px 0px;
46
75
  }
47
76
 
48
77
  .arg_menu_link:hover svg {
@@ -9,14 +9,19 @@ declare const _default: import("vue").DefineComponent<{
9
9
  };
10
10
  to: {
11
11
  type: StringConstructor;
12
- required: true;
13
12
  default: string;
14
13
  };
15
14
  sidebarOpen: {
16
15
  type: BooleanConstructor;
17
16
  default: boolean;
18
17
  };
19
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ isAction: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }, {
23
+ sendAction: () => void;
24
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
25
  icon: {
21
26
  type: StringConstructor;
22
27
  required: true;
@@ -27,15 +32,21 @@ declare const _default: import("vue").DefineComponent<{
27
32
  };
28
33
  to: {
29
34
  type: StringConstructor;
30
- required: true;
31
35
  default: string;
32
36
  };
33
37
  sidebarOpen: {
34
38
  type: BooleanConstructor;
35
39
  default: boolean;
36
40
  };
37
- }>>, {
41
+ isAction: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ }>> & {
46
+ onOnClick?: ((...args: any[]) => any) | undefined;
47
+ }, {
38
48
  sidebarOpen: boolean;
39
49
  to: string;
50
+ isAction: boolean;
40
51
  }, {}>;
41
52
  export default _default;
@@ -42,7 +42,7 @@ export default defineComponent({
42
42
  },
43
43
  return_value: {
44
44
  type: Boolean,
45
- default: false
45
+ default: true
46
46
  }
47
47
  },
48
48
  emits: ["changeElement", "update:Selection"],
@@ -2,22 +2,33 @@
2
2
  <div>
3
3
  <arg-style />
4
4
  <!-- Simple select -->
5
- <arg-simple-label
6
- :disabled="disabled"
7
- :show_amount="show_amount"
8
- :amount_value="selected_items.length"
9
- @click="changeDisplay()"
10
- :class="isDisplay ? 'open' : ''"
11
- >
12
- <p :class="show_amount === true ? 'oip_crop big' : 'oip_crop small'">
13
- {{
14
- (nested && selected_nested.length > 0) ||
15
- (!nested && selected_items.length > 0)
16
- ? getAllSelect
17
- : emptyMsg
18
- }}
19
- </p>
20
- </arg-simple-label>
5
+ <div class="oip_select_display">
6
+ <p class="oip_filter_label">{{ multiple_label }}</p>
7
+ <arg-simple-label
8
+ :disabled="disabled"
9
+ :show_amount="show_amount"
10
+ :amount_value="selected_items.length"
11
+ @click="changeDisplay()"
12
+ :class="isDisplay ? 'open' : ''"
13
+ >
14
+ <p
15
+ :class="[
16
+ show_amount === true ? 'oip_crop big' : 'oip_crop small',
17
+ (nested && selected_nested.length > 0) ||
18
+ (!nested && selected_items.length > 0)
19
+ ? ''
20
+ : 'oip_empty_select',
21
+ ]"
22
+ >
23
+ {{
24
+ (nested && selected_nested.length > 0) ||
25
+ (!nested && selected_items.length > 0)
26
+ ? getAllSelect
27
+ : emptyMsg
28
+ }}
29
+ </p>
30
+ </arg-simple-label>
31
+ </div>
21
32
 
22
33
  <div
23
34
  :style="isDisplay === false ? 'display : none' : ''"
@@ -306,7 +317,8 @@ export default defineComponent({
306
317
  multiple_columns: { type: Boolean, default: false },
307
318
  options_disable: { type: Array, default: () => [] },
308
319
  show_amount: { type: Boolean, default: true },
309
- emptyMsg: { type: String, default: "No selection" }
320
+ emptyMsg: { type: String, default: "No selection" },
321
+ multiple_label: { type: String, required: true }
310
322
  },
311
323
  emits: ["changeElement", "update:Selection", "changeInputValue", "onClose"],
312
324
  setup(props, { emit }) {
@@ -47,6 +47,10 @@ declare const _default: import("vue").DefineComponent<{
47
47
  type: StringConstructor;
48
48
  default: string;
49
49
  };
50
+ multiple_label: {
51
+ type: StringConstructor;
52
+ required: true;
53
+ };
50
54
  }, {
51
55
  del_all: () => void;
52
56
  del_all_cat: (index: number) => void;
@@ -124,6 +128,10 @@ declare const _default: import("vue").DefineComponent<{
124
128
  type: StringConstructor;
125
129
  default: string;
126
130
  };
131
+ multiple_label: {
132
+ type: StringConstructor;
133
+ required: true;
134
+ };
127
135
  }>> & {
128
136
  onOnClose?: ((...args: any[]) => any) | undefined;
129
137
  onChangeElement?: ((...args: any[]) => any) | undefined;