@tekkare/auriga 0.2.17 → 0.2.19

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.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.17"
7
+ "version": "0.2.19"
8
8
  }
@@ -766,20 +766,3 @@ export default defineComponent({
766
766
  align-self: stretch;
767
767
  }
768
768
  </style>
769
-
770
- <style>
771
- .close-icon {
772
- display: flex;
773
- align-items: center;
774
- justify-content: center;
775
- border-radius: 100%;
776
- background: var(--light);
777
- padding: 4px;
778
- cursor: pointer;
779
- margin-left: auto;
780
- }
781
-
782
- .close-icon:hover svg {
783
- color: var(--primary) !important;
784
- }
785
- </style>
@@ -203,7 +203,7 @@ export default defineComponent({
203
203
  () => props.element_table,
204
204
  (new_element_table) => {
205
205
  table_values.value = new_element_table;
206
- if (props.watch_default_change) {
206
+ if (props.watch_default_change && props.default_select !== null) {
207
207
  selected_item.value = new_element_table[props.default_select];
208
208
  selected_number.value = props.default_select;
209
209
  }
@@ -243,7 +243,7 @@ export default defineComponent({
243
243
  watch(
244
244
  () => props.default_select,
245
245
  (new_default_select) => {
246
- if (!props.values_disabled.includes(new_default_select)) {
246
+ if (new_default_select !== null && !props.values_disabled.includes(new_default_select)) {
247
247
  selected_item.value = table_values.value[new_default_select];
248
248
  selected_number.value = new_default_select;
249
249
  }
@@ -52,7 +52,7 @@ const drawSquircle=(ctx,geom,radii,smooth,lineWidth,color)=>{const defaultFill=c
52
52
  </script>
53
53
 
54
54
  <style>
55
- .oip_select_dropdown_block{background:var(--demi-fond);border:1.5px solid var(--light);border-radius:12px;box-shadow:var(--overlay-shadow);display:flex;flex-direction:column;margin-top:15px;max-height:500px;min-width:230px;padding:16px;position:absolute;z-index:12}.oip_select_block{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;cursor:pointer;display:flex;gap:4px;-webkit-mask-image:paint(squircle);mask-image:paint(squircle);padding:12px;position:relative;width:196px;--squircle-radius:8px;--squircle-smooth:1}.filter_box:hover,.filter_wrap:hover>.filter_box:not(.open),.oip_select_block:hover,.oip_select_dropdown_block:hover,.prmt_parent_switch:hover{border:1.5px solid var(--primary-primary-20,#d3e4ff)!important}.filter_box.open,.oip_select_dropdown_block.open,.oip_select_wrap.open>.oip_select_block,.prmt_parent_switch.open{border:1.5px solid var(--primary)!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filter_wrap.open,.oip_select_wrap.open,.switch_wrapper.open{filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.oip_select_block.open>svg{color:var(--primary)!important}.oip_select_block.disabled{background:var(--light)!important;cursor:not-allowed}.oip_select_label .prmt_tooltip{display:flex}.oip_select_label .prmt_tooltip span,.oip_select_label>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:98%}.oip_select_label{color:var(--darkest);font-size:14px;font-weight:700;line-height:16px;max-height:16px;width:90%}.oip_select_block svg{flex-shrink:0!important}.oip_select_label.disabled{color:var(--dark)}.oip_select_caret_down{float:right;margin-left:auto}.oip_select_complex_selection_loop_name{font-style:normal;line-height:160%;width:-moz-fit-content;width:fit-content}.oip_select_complex_selection_loop.del>svg{color:var(--system-alert)!important;flex-shrink:0}.oip_select_complex_selection_loop.add>svg{color:var(--primary)!important;flex-shrink:0}.oip_select_complex_selection_loop{align-self:stretch;cursor:pointer;display:flex;flex-grow:1;gap:8px;min-height:24px}.oip_select_complex_selection_container{margin:8px 0;max-height:350px;overflow-y:auto}.oip_select_complex_selection_loop_name{font-size:14px;font-weight:400;line-height:16px}.oip_search_container>svg{color:var(--medium)!important}.oip_search_name:focus-visible{outline:none}.oip_search_name::-moz-placeholder{color:var(--medium);font-size:12px;font-weight:400;line-height:20px}.oip_search_name::placeholder{color:var(--medium);font-size:12px;font-weight:400;line-height:20px}.oip_search_name{border:none;padding-left:8px;width:100%}.oip_search_container{align-items:center;align-self:stretch;background:var(--white);border:1px solid var(--light);border-radius:8px;display:flex;gap:8px;padding:8px 12px}.oip_select_dropdown_title{color:var(--darkest);font-size:14px;font-weight:500;margin-bottom:8px}.oip_select_dropdown_selection_container{display:flex;flex:1 1 auto;flex-direction:column;gap:0;margin-top:16px;min-height:10px;overflow-y:auto}.oip_select_dropdown_selection_container:only-child{margin-top:0}.oip_empty_dropdown{color:var(--dark);font-size:14px;font-style:italic;font-weight:400;line-height:16px;padding-top:16px;text-align:center}.oip_select_complex_selection_loop>svg.add{fill:var(--accent)!important;color:var(--white)!important}.arg-circle-amount{align-items:center;background:#e9f1ff;border-radius:50%;color:var(--primary);display:flex;flex-direction:column;flex-shrink:0;font-size:14px;font-style:normal;font-weight:600;gap:10px;height:20px;justify-content:center;padding:4px;position:absolute;right:34px;width:20px}.oip_empty_select{color:var(--dark);font-size:14px;font-style:italic;font-weight:400;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.oip_select_display{align-items:flex-start;display:flex;flex-direction:column;gap:4px}
55
+ .oip_select_dropdown_block{background:var(--demi-fond);border:1.5px solid var(--light);border-radius:12px;box-shadow:var(--overlay-shadow);display:flex;flex-direction:column;margin-top:15px;max-height:500px;min-width:230px;padding:16px;position:absolute;z-index:12}.oip_select_block{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;cursor:pointer;display:flex;gap:4px;-webkit-mask-image:paint(squircle);mask-image:paint(squircle);padding:12px;position:relative;width:196px;--squircle-radius:8px;--squircle-smooth:1}.filter_box:hover,.filter_wrap:hover>.filter_box:not(.open),.oip_select_block:hover,.oip_select_dropdown_block:hover,.prmt_parent_switch:hover{border:1.5px solid var(--primary-primary-20,#d3e4ff)!important}.filter_box.open,.oip_select_dropdown_block.open,.oip_select_wrap.open>.oip_select_block,.prmt_parent_switch.open{border:1.5px solid var(--primary)!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filter_wrap.open,.oip_select_wrap.open,.switch_wrapper.open{filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.oip_select_block.open>svg{color:var(--primary)!important}.oip_select_block.disabled{background:var(--light)!important;cursor:not-allowed}.oip_select_label .prmt_tooltip{display:flex}.oip_select_label .prmt_tooltip span,.oip_select_label>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:98%}.oip_select_label{color:var(--darkest);font-size:14px;font-weight:700;line-height:16px;max-height:16px;width:90%}.oip_select_block svg{flex-shrink:0!important}.oip_select_label.disabled{color:var(--dark)}.oip_select_caret_down{float:right;margin-left:auto}.oip_select_complex_selection_loop_name{font-style:normal;line-height:160%;width:-moz-fit-content;width:fit-content}.oip_select_complex_selection_loop.del>svg{color:var(--system-alert)!important;flex-shrink:0}.oip_select_complex_selection_loop.add>svg{color:var(--primary)!important;flex-shrink:0}.oip_select_complex_selection_loop{align-self:stretch;cursor:pointer;display:flex;flex-grow:1;gap:8px;min-height:24px}.oip_select_complex_selection_container{margin:8px 0;max-height:350px;overflow-y:auto}.oip_select_complex_selection_loop_name{font-size:14px;font-weight:400;line-height:16px}.oip_search_container>svg{color:var(--medium)!important}.oip_search_name:focus-visible{outline:none}.oip_search_name::-moz-placeholder{color:var(--medium);font-size:12px;font-weight:400;line-height:20px}.oip_search_name::placeholder{color:var(--medium);font-size:12px;font-weight:400;line-height:20px}.oip_search_name{border:none;padding-left:8px;width:100%}.oip_search_container{align-items:center;align-self:stretch;background:var(--white);border:1px solid var(--light);border-radius:8px;display:flex;gap:8px;padding:8px 12px}.oip_select_dropdown_title{color:var(--darkest);font-size:14px;font-weight:500;margin-bottom:8px}.oip_select_dropdown_selection_container{display:flex;flex:1 1 auto;flex-direction:column;gap:0;margin-top:16px;min-height:10px;overflow-y:auto}.oip_select_dropdown_selection_container:only-child{margin-top:0}.oip_empty_dropdown{color:var(--dark);font-size:14px;font-style:italic;font-weight:400;line-height:16px;padding-top:16px;text-align:center}.oip_select_complex_selection_loop>svg.add{fill:var(--accent)!important;color:var(--white)!important}.arg-circle-amount{align-items:center;background:#e9f1ff;border-radius:50%;color:var(--primary);display:flex;flex-direction:column;flex-shrink:0;font-size:14px;font-style:normal;font-weight:600;gap:10px;height:20px;justify-content:center;padding:4px;position:absolute;right:34px;width:20px}.oip_empty_select{color:var(--dark);font-size:14px;font-style:italic;font-weight:400;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.oip_select_display{align-items:flex-start;display:flex;flex-direction:column;gap:4px}.close-icon{align-items:center;background:var(--light);border-radius:100%;cursor:pointer;display:flex;justify-content:center;margin-left:auto;padding:4px}.close-icon:hover svg{color:var(--primary)!important}
56
56
  </style>
57
57
  <style scoped>
58
58
  .oip_select_complex_selection_loop > svg.add {
@@ -366,6 +366,17 @@ export default defineComponent({
366
366
  whiteLines: {
367
367
  type: Array,
368
368
  default: null
369
+ },
370
+ lang: {
371
+ type: String,
372
+ default: "en",
373
+ validator: (value) => {
374
+ return ["en", "fr"].includes(value);
375
+ }
376
+ },
377
+ customPlaceholder: {
378
+ type: String,
379
+ default: null
369
380
  }
370
381
  },
371
382
  emits: ["changeInputValue"],
@@ -657,17 +668,19 @@ export default defineComponent({
657
668
  return Math.ceil(resultCount.value / savePageSize.value);
658
669
  });
659
670
  const getPlaceHolder = computed(() => {
660
- if (props.searchColumns !== null) {
661
- let columnNames = `Search by ${props.heads[props.searchColumns[0]]}`;
671
+ if (props.customPlaceholder !== null) {
672
+ return props.customPlaceholder;
673
+ } else if (props.searchColumns !== null) {
674
+ let columnNames = `${props.lang === "fr" ? "Rechercher par" : "Search by"} ${props.heads[props.searchColumns[0]]}`;
662
675
  for (let i = 1; i < props.searchColumns.length; i++) {
663
676
  if (i === props.searchColumns.length - 1) {
664
- columnNames += ` or ${props.heads[props.searchColumns[i]]}...`;
677
+ columnNames += ` ${props.lang === "fr" ? "ou" : "or"} ${props.heads[props.searchColumns[i]]}...`;
665
678
  } else
666
679
  columnNames += `, ${props.heads[props.searchColumns[i]]}`;
667
680
  }
668
681
  return columnNames;
669
682
  } else
670
- return "Search all";
683
+ return props.lang === "fr" ? "Rechercher..." : "Search all...";
671
684
  });
672
685
  getColumnTypes();
673
686
  dataValues.value = fillTable.value;
@@ -164,6 +164,15 @@ declare const _default: import("vue").DefineComponent<{
164
164
  type: ArrayConstructor;
165
165
  default: null;
166
166
  };
167
+ lang: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ validator: (value: string) => boolean;
171
+ };
172
+ customPlaceholder: {
173
+ type: StringConstructor;
174
+ default: null;
175
+ };
167
176
  }, {
168
177
  sortCol: import("vue").Ref<any>;
169
178
  sortDir: import("vue").Ref<any>;
@@ -374,10 +383,20 @@ declare const _default: import("vue").DefineComponent<{
374
383
  type: ArrayConstructor;
375
384
  default: null;
376
385
  };
386
+ lang: {
387
+ type: StringConstructor;
388
+ default: string;
389
+ validator: (value: string) => boolean;
390
+ };
391
+ customPlaceholder: {
392
+ type: StringConstructor;
393
+ default: null;
394
+ };
377
395
  }>> & {
378
396
  onChangeInputValue?: ((...args: any[]) => any) | undefined;
379
397
  }, {
380
398
  sort: boolean;
399
+ lang: string;
381
400
  search: boolean;
382
401
  contents: Object[];
383
402
  pageSize: number;
@@ -397,5 +416,6 @@ declare const _default: import("vue").DefineComponent<{
397
416
  autoCrop: boolean;
398
417
  tableId: string;
399
418
  whiteLines: unknown[];
419
+ customPlaceholder: string;
400
420
  }, {}>;
401
421
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",