@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
@@ -0,0 +1,123 @@
1
+ <template>
2
+ <div>
3
+ <h1 class="prmt_simple_chart_title"><slot name="title" /></h1>
4
+ <div class="prmt_simple_chart__bar_group">
5
+ <div
6
+ class="prmt_simple_chart__bar"
7
+ v-for="(val, index) in series"
8
+ :key="index"
9
+ :style="{
10
+ width: (100 * val) / seriesTotal + '%',
11
+ background: colors[index],
12
+ }"
13
+ ></div>
14
+ </div>
15
+ <div class="prmt_simple_chart__categories_group">
16
+ <div
17
+ class="prmt_simple_chart__category oip_row space-between v-center"
18
+ v-for="(category, index) in categories"
19
+ :key="index"
20
+ >
21
+ <div class="oip_row gap-4 v-center">
22
+ <div
23
+ class="prmt_simple_chart__category_color"
24
+ :style="{ background: colors[index] }"
25
+ ></div>
26
+ <h2 class="prmt_simple_chart__category_name">{{ category }}</h2>
27
+ </div>
28
+ <div class="oip_row gap-4 v-center">
29
+ <h2 class="prmt_simple_chart__category_value">
30
+ {{
31
+ new Intl.NumberFormat("fr-FR")
32
+ .format(series[index])
33
+ .replace(",", ".")
34
+ }}
35
+ </h2>
36
+ <h3 class="prmt_simple_chart__category_percentage">
37
+ ({{ ((100 * series[index]) / seriesTotal).toFixed(1) }}%)
38
+ </h3>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </template>
44
+ <script>
45
+ import {
46
+ computed,
47
+ defineComponent
48
+ } from "vue";
49
+ export default defineComponent({
50
+ name: "argSimpleChart",
51
+ props: {
52
+ series: {
53
+ type: Array,
54
+ required: true
55
+ },
56
+ categories: {
57
+ type: Array,
58
+ required: true
59
+ },
60
+ colors: {
61
+ type: Array,
62
+ default: () => ["#a17def", "#fda929", "#3ad9d8", "#f55a8d"]
63
+ }
64
+ },
65
+ setup(props) {
66
+ const seriesTotal = computed(() => {
67
+ return props.series.reduce((a, b) => a + b, 0);
68
+ });
69
+ return {
70
+ seriesTotal
71
+ };
72
+ }
73
+ });
74
+ </script>
75
+ <style scoped>
76
+ .prmt_simple_chart_title {
77
+ font-style: normal;
78
+ font-weight: 400;
79
+ font-size: 12px;
80
+ line-height: 14px;
81
+ color: var(--cool-grey);
82
+ margin-bottom: 4px;
83
+ }
84
+ .prmt_simple_chart__bar_group {
85
+ display: flex;
86
+ gap: 4px;
87
+ }
88
+ .prmt_simple_chart__bar {
89
+ height: 10px;
90
+ border-radius: 20px;
91
+ }
92
+ .prmt_simple_chart__categories_group {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 13px;
96
+ margin-top: 13px;
97
+ }
98
+ .prmt_simple_chart__category_name {
99
+ font-style: normal;
100
+ font-weight: 400;
101
+ font-size: 12px;
102
+ line-height: 14px;
103
+ color: var(--independence);
104
+ }
105
+ .prmt_simple_chart__category_value {
106
+ font-style: normal;
107
+ font-weight: 500;
108
+ font-size: 14px;
109
+ text-align: right;
110
+ color: var(--independence);
111
+ }
112
+ .prmt_simple_chart__category_percentage {
113
+ font-style: normal;
114
+ font-weight: 400;
115
+ font-size: 12px;
116
+ color: var(--independence);
117
+ }
118
+ .prmt_simple_chart__category_color {
119
+ width: 6px;
120
+ height: 6px;
121
+ border-radius: 50%;
122
+ }
123
+ </style>
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ series: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ categories: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ colors: {
11
+ type: ArrayConstructor;
12
+ default: () => string[];
13
+ };
14
+ }, {
15
+ seriesTotal: import("vue").ComputedRef<unknown>;
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ series: {
18
+ type: ArrayConstructor;
19
+ required: true;
20
+ };
21
+ categories: {
22
+ type: ArrayConstructor;
23
+ required: true;
24
+ };
25
+ colors: {
26
+ type: ArrayConstructor;
27
+ default: () => string[];
28
+ };
29
+ }>>, {
30
+ colors: unknown[];
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1,94 @@
1
+ <template>
2
+ <div>
3
+ <input
4
+ class="oip_simple_input"
5
+ :placeholder="placeholderValue"
6
+ :type="inputType"
7
+ :value="inputValue"
8
+ @input="changeInput"
9
+ @keydown.enter="submitInput"
10
+ />
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ import {
16
+ onMounted,
17
+ ref,
18
+ watch,
19
+ defineComponent
20
+ } from "vue";
21
+ export default defineComponent({
22
+ name: "argSimpleInput",
23
+ props: {
24
+ placeholderValue: {
25
+ type: String,
26
+ default: "Enter a value"
27
+ },
28
+ inputType: {
29
+ type: String,
30
+ default: "text"
31
+ },
32
+ defaultValue: {
33
+ type: [String, Number],
34
+ default: ""
35
+ }
36
+ },
37
+ emits: ["update:Value", "changeValue", "submitInput"],
38
+ setup(props, { emit }) {
39
+ const inputValue = ref("");
40
+ onMounted(() => {
41
+ inputValue.value = props.defaultValue;
42
+ });
43
+ watch(
44
+ () => props.defaultValue,
45
+ (new_default_value) => {
46
+ inputValue.value = new_default_value;
47
+ }
48
+ );
49
+ function changeInput(event) {
50
+ inputValue.value = event.target.value;
51
+ emit("update:Value", inputValue.value);
52
+ emit("changeValue", inputValue.value);
53
+ }
54
+ function submitInput() {
55
+ emit("submitInput");
56
+ }
57
+ return {
58
+ inputValue,
59
+ changeInput,
60
+ submitInput
61
+ };
62
+ }
63
+ });
64
+ </script>
65
+
66
+ <style scoped>
67
+ .oip_simple_input {
68
+ border-radius: 8px;
69
+ border: 1.5px solid var(--dividers);
70
+ padding: 12px;
71
+ margin: 5px 0px;
72
+ }
73
+ .oip_simple_input::placeholder {
74
+ color: var(--wild-blue-yonder);
75
+ }
76
+ .oip_simple_input,
77
+ .oip_simple_input:focus-visible {
78
+ outline: none !important;
79
+ }
80
+ .oip_simple_input input:hover {
81
+ border: 1.5px solid rgba(33, 118, 255, 0.2) !important;
82
+ }
83
+ .oip_simple_input input:focus-within {
84
+ border: 1.5px solid var(--primary) !important;
85
+ box-shadow: 0 0 0 4px rgba(33, 118, 255, 0.1) !important;
86
+ }
87
+ input[type="number"]::-webkit-inner-spin-button {
88
+ -webkit-appearance: none;
89
+ }
90
+ input[type="number"] {
91
+ -moz-appearance: textfield;
92
+ appearance: textfield;
93
+ }
94
+ </style>
@@ -0,0 +1,40 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ placeholderValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ inputType: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ defaultValue: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: string;
13
+ };
14
+ }, {
15
+ inputValue: import("vue").Ref<string | number>;
16
+ changeInput: (event: any) => void;
17
+ submitInput: () => void;
18
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Value" | "changeValue" | "submitInput")[], "update:Value" | "changeValue" | "submitInput", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ placeholderValue: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ inputType: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ defaultValue: {
28
+ type: (StringConstructor | NumberConstructor)[];
29
+ default: string;
30
+ };
31
+ }>> & {
32
+ "onUpdate:Value"?: ((...args: any[]) => any) | undefined;
33
+ onChangeValue?: ((...args: any[]) => any) | undefined;
34
+ onSubmitInput?: ((...args: any[]) => any) | undefined;
35
+ }, {
36
+ defaultValue: string | number;
37
+ placeholderValue: string;
38
+ inputType: string;
39
+ }, {}>;
40
+ export default _default;
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
 
54
54
  .oip_select_block {
55
55
  cursor: pointer;
56
- width: 228px;
56
+ width: 222px;
57
57
  padding: 12px;
58
58
  display: flex;
59
59
  align-items: center;
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <div>
3
+ <apexchart
4
+ :options="chartOptions"
5
+ :series="series"
6
+ :height="height"
7
+ :width="width"
8
+ :key="chartKey"
9
+ ></apexchart>
10
+ </div>
11
+ </template>
12
+ <script>
13
+ import {
14
+ onMounted,
15
+ ref,
16
+ watch,
17
+ defineComponent,
18
+ defineAsyncComponent
19
+ } from "vue";
20
+ const ApexCharts = defineAsyncComponent(() => import("vue3-apexcharts"));
21
+ export default defineComponent({
22
+ name: "argChart",
23
+ components: { apexchart: ApexCharts },
24
+ props: {
25
+ series: {
26
+ type: Array,
27
+ required: true
28
+ },
29
+ height: {
30
+ type: String,
31
+ default: "75"
32
+ },
33
+ width: {
34
+ type: String,
35
+ default: "200"
36
+ },
37
+ color: {
38
+ type: Array,
39
+ default: ["#22C55E"]
40
+ },
41
+ minValue: {
42
+ type: Number,
43
+ default: null
44
+ }
45
+ },
46
+ setup(props) {
47
+ const chartKey = ref(1);
48
+ const chartOptions = ref({
49
+ colors: props.color,
50
+ chart: {
51
+ type: "area",
52
+ toolbar: {
53
+ show: false
54
+ },
55
+ animations: { enabled: false }
56
+ },
57
+ dataLabels: {
58
+ enabled: false
59
+ },
60
+ stroke: {
61
+ curve: "smooth"
62
+ },
63
+ grid: {
64
+ show: false,
65
+ xaxis: {
66
+ lines: {
67
+ show: false
68
+ }
69
+ },
70
+ yaxis: {
71
+ lines: {
72
+ show: false
73
+ }
74
+ }
75
+ },
76
+ fill: {
77
+ colors: props.color,
78
+ type: "gradient",
79
+ gradient: {
80
+ shadeIntensity: 1,
81
+ opacityFrom: 0.5,
82
+ opacityTo: 0.5,
83
+ stops: [0, 100]
84
+ }
85
+ },
86
+ stroke: {
87
+ width: 1
88
+ },
89
+ xaxis: {
90
+ floating: true,
91
+ axisTicks: {
92
+ show: false
93
+ },
94
+ axisBorder: {
95
+ show: false
96
+ },
97
+ labels: {
98
+ show: false
99
+ }
100
+ },
101
+ yaxis: {
102
+ min: 0,
103
+ floating: true,
104
+ axisTicks: {
105
+ show: false
106
+ },
107
+ axisBorder: {
108
+ show: false
109
+ },
110
+ labels: {
111
+ show: false
112
+ }
113
+ },
114
+ plotOptions: {
115
+ area: {
116
+ fillTo: "origin"
117
+ }
118
+ }
119
+ });
120
+ watch(
121
+ () => props.series,
122
+ (new_series) => {
123
+ chartKey.value += 1;
124
+ }
125
+ );
126
+ onMounted(() => {
127
+ if (props.minValue !== null) {
128
+ chartOptions.value.yaxis.min = props.minValue;
129
+ } else
130
+ chartOptions.value.yaxis.min = Math.min(...props.series[0].data) - 30;
131
+ });
132
+ return {
133
+ chartOptions,
134
+ chartKey
135
+ };
136
+ }
137
+ });
138
+ </script>
@@ -0,0 +1,122 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ series: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ height: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ width: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ color: {
15
+ type: ArrayConstructor;
16
+ default: string[];
17
+ };
18
+ minValue: {
19
+ type: NumberConstructor;
20
+ default: null;
21
+ };
22
+ }, {
23
+ chartOptions: import("vue").Ref<{
24
+ colors: unknown[];
25
+ chart: {
26
+ type: string;
27
+ toolbar: {
28
+ show: boolean;
29
+ };
30
+ animations: {
31
+ enabled: boolean;
32
+ };
33
+ };
34
+ dataLabels: {
35
+ enabled: boolean;
36
+ };
37
+ stroke: {
38
+ width: number;
39
+ };
40
+ grid: {
41
+ show: boolean;
42
+ xaxis: {
43
+ lines: {
44
+ show: boolean;
45
+ };
46
+ };
47
+ yaxis: {
48
+ lines: {
49
+ show: boolean;
50
+ };
51
+ };
52
+ };
53
+ fill: {
54
+ colors: unknown[];
55
+ type: string;
56
+ gradient: {
57
+ shadeIntensity: number;
58
+ opacityFrom: number;
59
+ opacityTo: number;
60
+ stops: number[];
61
+ };
62
+ };
63
+ xaxis: {
64
+ floating: boolean;
65
+ axisTicks: {
66
+ show: boolean;
67
+ };
68
+ axisBorder: {
69
+ show: boolean;
70
+ };
71
+ labels: {
72
+ show: boolean;
73
+ };
74
+ };
75
+ yaxis: {
76
+ min: number;
77
+ floating: boolean;
78
+ axisTicks: {
79
+ show: boolean;
80
+ };
81
+ axisBorder: {
82
+ show: boolean;
83
+ };
84
+ labels: {
85
+ show: boolean;
86
+ };
87
+ };
88
+ plotOptions: {
89
+ area: {
90
+ fillTo: string;
91
+ };
92
+ };
93
+ }>;
94
+ chartKey: import("vue").Ref<number>;
95
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
96
+ series: {
97
+ type: ArrayConstructor;
98
+ required: true;
99
+ };
100
+ height: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ width: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ color: {
109
+ type: ArrayConstructor;
110
+ default: string[];
111
+ };
112
+ minValue: {
113
+ type: NumberConstructor;
114
+ default: null;
115
+ };
116
+ }>>, {
117
+ width: string;
118
+ height: string;
119
+ color: unknown[];
120
+ minValue: number;
121
+ }, {}>;
122
+ export default _default;