@onereach/ui-components 2.74.8-beta.2338.0 → 2.74.8-beta.2339.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 (31) hide show
  1. package/dist/bundled/v2/{OrDateTimePicker-24a56fd2.js → OrDateTimePicker-18587a06.js} +4 -2
  2. package/dist/bundled/v2/{OrText-15bf85c4.js → OrText-a665b991.js} +3 -36
  3. package/dist/bundled/v2/components/index.js +2 -2
  4. package/dist/bundled/v2/components/or-date-time-picker/index.js +1 -1
  5. package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +2 -27
  6. package/dist/bundled/v2/components/or-text-v3/index.js +1 -1
  7. package/dist/bundled/v2/index.js +3 -3
  8. package/dist/bundled/v3/OrText.vue_vue_type_script_lang-271fb345.js +60 -0
  9. package/dist/bundled/v3/components/index.js +1 -1
  10. package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +2 -27
  11. package/dist/bundled/v3/components/or-text-v3/index.js +1 -1
  12. package/dist/bundled/v3/index.js +6 -4
  13. package/dist/esm/v2/{OrDateTimePicker-e1ea0a9a.js → OrDateTimePicker-d8cb0e8d.js} +4 -2
  14. package/dist/esm/v2/{OrText-91d662a0.js → OrText-b12d0682.js} +3 -36
  15. package/dist/esm/v2/components/index.js +2 -2
  16. package/dist/esm/v2/components/or-date-time-picker/index.js +1 -1
  17. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -27
  18. package/dist/esm/v2/components/or-text-v3/index.js +1 -1
  19. package/dist/esm/v2/index.js +2 -2
  20. package/dist/esm/v3/{OrDateTimePicker-63f22d1b.js → OrDateTimePicker-c4af17e3.js} +3 -1
  21. package/dist/esm/v3/{OrText-a3b00048.js → OrText-6b4f7cd1.js} +3 -36
  22. package/dist/esm/v3/components/index.js +2 -2
  23. package/dist/esm/v3/components/or-date-time-picker/index.js +1 -1
  24. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +2 -27
  25. package/dist/esm/v3/components/or-text-v3/index.js +1 -1
  26. package/dist/esm/v3/index.js +2 -2
  27. package/package.json +1 -1
  28. package/src/components/or-date-time-picker/OrDateTimePicker.vue +11 -0
  29. package/src/components/or-text-v3/OrText.stories3.ts +5 -83
  30. package/src/components/or-text-v3/OrText.vue +3 -37
  31. package/dist/bundled/v3/OrText.vue_vue_type_script_lang-e93438ea.js +0 -93
@@ -485,7 +485,7 @@ var script = defineComponent({
485
485
  }
486
486
  });
487
487
 
488
- var css_248z = "@keyframes spinAround-data-v-2cd46aea{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2cd46aea{from{opacity:1}to{opacity:0}}.or-date-time-picker[data-v-2cd46aea]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.or-date-time-picker.is-fullwidth[data-v-2cd46aea]{width:100%!important}.or-date-time-picker.is-date-type[data-v-2cd46aea]{width:7.125rem}.or-date-time-picker.is-time-type[data-v-2cd46aea]{width:7.125rem}.or-date-time-picker.is-date-time-type[data-v-2cd46aea]{width:11.25rem}.or-date-time-picker .or-label[data-v-2cd46aea]{margin-bottom:var(--s-1)}.or-date-time-picker-info[data-v-2cd46aea]{display:flex;align-items:flex-start;justify-content:space-between;padding-top:var(--s-2)}.or-date-time-picker-input-wrapper[data-v-2cd46aea]{position:relative;width:100%;height:2.25rem;border:1px solid var(--c-neutral-2);border-radius:var(--s-2);background-color:var(--c-neutral-1);padding:.625rem;font-size:var(--fs-1);line-height:1rem;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:border-color,background-color}.or-date-time-picker-input-wrapper[data-v-2cd46aea]:not(.is-readonly):hover{background-color:var(--c-neutral-0);cursor:pointer}.or-date-time-picker-input-wrapper.is-disabled[data-v-2cd46aea],.or-date-time-picker-input-wrapper[data-v-2cd46aea]:disabled{cursor:not-allowed;background-color:var(--c-neutral-2);border-color:var(--c-neutral-2)}.or-date-time-picker-input-wrapper.has-error[data-v-2cd46aea]{border-color:var(--c-error)}@media (hover:hover) and (pointer:fine){.or-date-time-picker-input-wrapper.has-error[data-v-2cd46aea]:not(.or-date-time-picker-input-wrapper.has-error.is-loading):not(.or-date-time-picker-input-wrapper.has-error.is-disabled):not(.or-date-time-picker-input-wrapper.has-error.is-readonly):not(.or-date-time-picker-input-wrapper.has-error:disabled):not(.or-date-time-picker-input-wrapper.has-error.is-focused):not(.or-date-time-picker-input-wrapper.has-error:active):hover{border-color:var(--c-error-darken-3)}}@media all and (-ms-high-contrast:none), (-ms-high-contrast:active){.or-date-time-picker-input-wrapper.has-error[data-v-2cd46aea]:not(.or-date-time-picker-input-wrapper.has-error.is-loading):not(.or-date-time-picker-input-wrapper.has-error.is-disabled):not(.or-date-time-picker-input-wrapper.has-error.is-readonly):not(.or-date-time-picker-input-wrapper.has-error:disabled):not(.or-date-time-picker-input-wrapper.has-error.is-focused):not(.or-date-time-picker-input-wrapper.has-error:active):hover{border-color:var(--c-error-darken-3)}}.or-date-time-picker-input-wrapper.has-error[data-v-2cd46aea]:not(:disabled):not(.is-readonly):not(.is-loading):focus{border-color:var(--c-error-darken-5)}.or-date-time-picker-input-wrapper.has-error.is-disabled[data-v-2cd46aea],.or-date-time-picker-input-wrapper.has-error[data-v-2cd46aea]:disabled{cursor:not-allowed;border-color:var(--c-error-lighten-20)}.or-date-time-picker-input-wrapper .placeholder[data-v-2cd46aea],.or-date-time-picker-input-wrapper .value[data-v-2cd46aea]{width:100%;display:flex;flex-direction:row;justify-content:space-between;white-space:nowrap;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:opacity}.or-date-time-picker-input-wrapper .placeholder[data-v-2cd46aea]{color:var(--c-neutral-4);-webkit-user-select:none;-moz-user-select:none;user-select:none}.content[data-v-2cd46aea]{border:1px solid var(--c-neutral-2);border-radius:var(--s-2);display:flex;flex-direction:column;background-color:var(--c-neutral-0);text-align:center}.content .picker-header[data-v-2cd46aea]{padding:var(--s-4) var(--s-3);display:flex;flex-direction:row;justify-content:space-between;gap:var(--s-3);font-weight:700;font-size:var(--fs-1);text-align:center;color:var(--c-neutral-6)}.content .picker-header-centered[data-v-2cd46aea]{margin:auto}.content .calendar[data-v-2cd46aea]{padding:0 var(--s-3) var(--s-3);font-size:var(--fs-0);line-height:.875rem}.content .calendar-week-days[data-v-2cd46aea]{color:var(--c-neutral-4);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--s-1)}.content .calendar-week-days>*[data-v-2cd46aea]{width:var(--s-6)}.content .calendar-days[data-v-2cd46aea]{display:flex;flex-direction:column;gap:var(--s-2)}.content .calendar-days-row[data-v-2cd46aea]{display:flex;flex-direction:row;justify-content:space-around;gap:var(--s-2)}.content .time-footer[data-v-2cd46aea]{width:100%;line-height:var(--s-6);text-align:center;display:inline-flex;flex-direction:row;justify-content:space-between;border-top:1px solid var(--c-neutral-2)}.content .time-footer-input[data-v-2cd46aea]{text-align:center;border:none;font-size:var(--fs-0)}.content .time-footer-input[data-v-2cd46aea].focus-visible{outline:0;background-color:var(--c-neutral-2)}.content .time-footer-input[data-v-2cd46aea]:focus-visible{outline:0;background-color:var(--c-neutral-2)}.content .time-table[data-v-2cd46aea]{display:flex;flex-direction:row;gap:var(--s-4)}.content .time-table-column[data-v-2cd46aea]{display:flex;flex-direction:column}.content .time-table-column-time[data-v-2cd46aea]{padding:0 var(--s-3) var(--s-3);display:flex;flex-direction:column;gap:var(--s-2)}.content .time-table-column-time-row[data-v-2cd46aea]{display:flex;flex-direction:row;justify-content:space-around;gap:var(--s-2)}";
488
+ var css_248z = "@keyframes spinAround-data-v-d9091eea{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-d9091eea{from{opacity:1}to{opacity:0}}.or-date-time-picker[data-v-d9091eea]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.or-date-time-picker.is-fullwidth[data-v-d9091eea]{width:100%!important}.or-date-time-picker.is-date-type[data-v-d9091eea]{width:7.125rem}.or-date-time-picker.is-time-type[data-v-d9091eea]{width:7.125rem}.or-date-time-picker.is-date-time-type[data-v-d9091eea]{width:11.25rem}.or-date-time-picker .or-label[data-v-d9091eea]{margin-bottom:var(--s-1)}.or-date-time-picker-info[data-v-d9091eea]{display:flex;align-items:flex-start;justify-content:space-between;padding-top:var(--s-2)}.or-date-time-picker-input-wrapper[data-v-d9091eea]{position:relative;width:100%;height:2.25rem;border:1px solid var(--c-neutral-2);border-radius:var(--s-2);background-color:var(--c-neutral-1);padding:.625rem;font-size:var(--fs-1);line-height:1rem;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:border-color,background-color}.or-date-time-picker-input-wrapper[data-v-d9091eea]:not(.is-readonly):hover{background-color:var(--c-neutral-0);cursor:pointer}.or-date-time-picker-input-wrapper.is-disabled[data-v-d9091eea],.or-date-time-picker-input-wrapper[data-v-d9091eea]:disabled{cursor:not-allowed;background-color:var(--c-neutral-2);border-color:var(--c-neutral-2)}.or-date-time-picker-input-wrapper.has-error[data-v-d9091eea]{border-color:var(--c-error)}@media (hover:hover) and (pointer:fine){.or-date-time-picker-input-wrapper.has-error[data-v-d9091eea]:not(.or-date-time-picker-input-wrapper.has-error.is-loading):not(.or-date-time-picker-input-wrapper.has-error.is-disabled):not(.or-date-time-picker-input-wrapper.has-error.is-readonly):not(.or-date-time-picker-input-wrapper.has-error:disabled):not(.or-date-time-picker-input-wrapper.has-error.is-focused):not(.or-date-time-picker-input-wrapper.has-error:active):hover{border-color:var(--c-error-darken-3)}}@media all and (-ms-high-contrast:none), (-ms-high-contrast:active){.or-date-time-picker-input-wrapper.has-error[data-v-d9091eea]:not(.or-date-time-picker-input-wrapper.has-error.is-loading):not(.or-date-time-picker-input-wrapper.has-error.is-disabled):not(.or-date-time-picker-input-wrapper.has-error.is-readonly):not(.or-date-time-picker-input-wrapper.has-error:disabled):not(.or-date-time-picker-input-wrapper.has-error.is-focused):not(.or-date-time-picker-input-wrapper.has-error:active):hover{border-color:var(--c-error-darken-3)}}.or-date-time-picker-input-wrapper.has-error[data-v-d9091eea]:not(:disabled):not(.is-readonly):not(.is-loading):focus{border-color:var(--c-error-darken-5)}.or-date-time-picker-input-wrapper.has-error.is-disabled[data-v-d9091eea],.or-date-time-picker-input-wrapper.has-error[data-v-d9091eea]:disabled{cursor:not-allowed;border-color:var(--c-error-lighten-20)}.or-date-time-picker-input-wrapper .placeholder[data-v-d9091eea],.or-date-time-picker-input-wrapper .value[data-v-d9091eea]{width:100%;display:flex;flex-direction:row;justify-content:space-between;white-space:nowrap;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:opacity}.or-date-time-picker-input-wrapper .placeholder[data-v-d9091eea]{color:var(--c-neutral-4);-webkit-user-select:none;-moz-user-select:none;user-select:none}.content[data-v-d9091eea]{border:1px solid var(--c-neutral-2);border-radius:var(--s-2);display:flex;flex-direction:column;background-color:var(--c-neutral-0);text-align:center}.content .picker-header[data-v-d9091eea]{padding:var(--s-4) var(--s-3);display:flex;flex-direction:row;justify-content:space-between;gap:var(--s-3);font-weight:700;font-size:var(--fs-1);text-align:center;color:var(--c-neutral-6)}.content .picker-header-centered[data-v-d9091eea]{margin:auto}.content .calendar[data-v-d9091eea]{padding:0 var(--s-3) var(--s-3);font-size:var(--fs-0);line-height:.875rem}.content .calendar-week-days[data-v-d9091eea]{color:var(--c-neutral-4);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--s-1)}.content .calendar-week-days>*[data-v-d9091eea]{width:var(--s-6)}.content .calendar-days[data-v-d9091eea]{display:flex;flex-direction:column;gap:var(--s-2)}.content .calendar-days-row[data-v-d9091eea]{display:flex;flex-direction:row;justify-content:space-around;gap:var(--s-2)}.content .time-footer[data-v-d9091eea]{width:100%;line-height:var(--s-6);text-align:center;display:inline-flex;flex-direction:row;justify-content:space-between;border-top:1px solid var(--c-neutral-2)}.content .time-footer input[data-v-d9091eea]::-webkit-inner-spin-button,.content .time-footer input[data-v-d9091eea]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.content .time-footer input[type=number][data-v-d9091eea]{-moz-appearance:textfield}.content .time-footer-input[data-v-d9091eea]{text-align:center;border:none;font-size:var(--fs-0)}.content .time-footer-input[data-v-d9091eea].focus-visible{outline:0;background-color:var(--c-neutral-2)}.content .time-footer-input[data-v-d9091eea]:focus-visible{outline:0;background-color:var(--c-neutral-2)}.content .time-table[data-v-d9091eea]{display:flex;flex-direction:row;gap:var(--s-4)}.content .time-table-column[data-v-d9091eea]{display:flex;flex-direction:column}.content .time-table-column-time[data-v-d9091eea]{padding:0 var(--s-3) var(--s-3);display:flex;flex-direction:column;gap:var(--s-2)}.content .time-table-column-time-row[data-v-d9091eea]{display:flex;flex-direction:row;justify-content:space-around;gap:var(--s-2)}";
489
489
  styleInject(css_248z);
490
490
 
491
491
  /* script */
@@ -651,6 +651,7 @@ var __vue_render__ = function () {
651
651
  }],
652
652
  staticClass: "time-footer-input",
653
653
  attrs: {
654
+ "type": "number",
654
655
  "placeholder": "00"
655
656
  },
656
657
  domProps: {
@@ -673,6 +674,7 @@ var __vue_render__ = function () {
673
674
  }],
674
675
  staticClass: "time-footer-input",
675
676
  attrs: {
677
+ "type": "number",
676
678
  "placeholder": "00"
677
679
  },
678
680
  domProps: {
@@ -745,7 +747,7 @@ var __vue_staticRenderFns__ = [];
745
747
  /* style */
746
748
  const __vue_inject_styles__ = undefined;
747
749
  /* scoped */
748
- const __vue_scope_id__ = "data-v-2cd46aea";
750
+ const __vue_scope_id__ = "data-v-d9091eea";
749
751
  /* module identifier */
750
752
  const __vue_module_identifier__ = undefined;
751
753
  /* functional template */
@@ -18,31 +18,16 @@ const RestText = [
18
18
  // Layout
19
19
  'shrink'];
20
20
 
21
- /**
22
- * Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
23
- * Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
24
- * that have same beginning and differ in the ending part.
25
- */
26
21
  var script = defineComponent({
27
22
  name: 'OrText',
28
23
  props: {
29
- /**
30
- * Text to crop.
31
- */
32
24
  text: {
33
25
  type: String,
34
26
  required: true
35
27
  },
36
- /**
37
- * The index counted from the end of the string where ellipsis will be placed.
38
- * Defines how many ending characters will remain visible.
39
- * By default, ellipsis is placed in the end of the line.
40
- *
41
- * Note: Negative values behave same as corresponding positives still counting from the end of the line.
42
- */
43
28
  sliceIndex: {
44
29
  type: Number,
45
- default: 0
30
+ default: undefined
46
31
  }
47
32
  },
48
33
  expose: ['root'],
@@ -53,33 +38,15 @@ var script = defineComponent({
53
38
  const rootStyles = computed(() => ['or-text', ...TextRoot]);
54
39
  const mainTextStyles = computed(() => [...MainText]);
55
40
  const restTextStyles = computed(() => [...RestText]);
56
- /**
57
- * Preserves whitespace at the last position as <code>&nbsp;</code>
58
- * @param str A string to escape
59
- */
60
- const escapeLast = str => str && str.slice(0, -1) + '\xa0';
61
- /**
62
- * Preserves whitespace at the first position as <code>&nbsp;</code>
63
- * @param str A string to escape
64
- */
65
- const escapeFirst = str => str && '\xa0' + str.slice(1);
66
41
  // State
67
42
  const mainText = computed(() => {
68
43
  if (props.sliceIndex) {
69
- let mainPart = props.text.slice(0, -Math.abs(props.sliceIndex));
70
- if (mainPart[mainPart.length - 1] === ' ') {
71
- mainPart = escapeLast(mainPart);
72
- }
73
- return mainPart;
44
+ return props.text.slice(0, Math.abs(props.sliceIndex) * -1);
74
45
  }
75
46
  return props.text;
76
47
  });
77
48
  const restText = computed(() => {
78
- let restPart = props.text.slice(mainText.value.length);
79
- if (restPart[0] === ' ') {
80
- restPart = escapeFirst(restPart);
81
- }
82
- return restPart;
49
+ return props.text.slice(mainText.value.length);
83
50
  });
84
51
  return {
85
52
  root,
@@ -20,7 +20,7 @@ export { O as OrCollapse } from '../OrCollapse-ec5dda58.js';
20
20
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-f654471a.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-62ddc635.js';
22
22
  export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-2cdb78b3.js';
23
- export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-24a56fd2.js';
23
+ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-18587a06.js';
24
24
  export { O as OrError } from '../OrError-29f0ce95.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-4675604d.js';
26
26
  export { O as OrErrorV3 } from '../OrError-52f668a4.js';
@@ -89,7 +89,7 @@ export { _ as OrTag } from '../OrTag-e0b41e02.js';
89
89
  export { O as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-59ab76c5.js';
90
90
  export { O as OrTeleport } from '../OrTeleport.vue2-90147f16.js';
91
91
  export { O as OrTeleportV3 } from '../OrTeleport.vue2-e9ba3054.js';
92
- export { _ as OrTextV3 } from '../OrText-15bf85c4.js';
92
+ export { _ as OrTextV3 } from '../OrText-a665b991.js';
93
93
  export { _ as OrTextarea } from '../OrTextarea-3fb6d95f.js';
94
94
  export { _ as OrTextareaV3 } from '../OrTextarea-5fdf63d0.js';
95
95
  export { _ as OrTextbox, T as TextboxTypes } from '../OrTextbox-614aa7fc.js';
@@ -1,4 +1,4 @@
1
- export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../../OrDateTimePicker-24a56fd2.js';
1
+ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../../OrDateTimePicker-18587a06.js';
2
2
  import 'lodash';
3
3
  import '../../index-fa6eb4ca.js';
4
4
  import 'vue';
@@ -6,42 +6,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
6
6
  mainText: import("@vue/composition-api").ComputedRef<string>;
7
7
  restText: import("@vue/composition-api").ComputedRef<string>;
8
8
  }> & import("@vue/composition-api").Data, {}, {}, {
9
- /**
10
- * Text to crop.
11
- */
12
9
  text: {
13
10
  type: StringConstructor;
14
11
  required: true;
15
12
  };
16
- /**
17
- * The index counted from the end of the string where ellipsis will be placed.
18
- * Defines how many ending characters will remain visible.
19
- * By default, ellipsis is placed in the end of the line.
20
- *
21
- * Note: Negative values behave same as corresponding positives still counting from the end of the line.
22
- */
23
13
  sliceIndex: {
24
14
  type: NumberConstructor;
25
- default: number;
15
+ default: undefined;
26
16
  };
27
17
  }, import("@vue/composition-api").ExtractPropTypes<{
28
- /**
29
- * Text to crop.
30
- */
31
18
  text: {
32
19
  type: StringConstructor;
33
20
  required: true;
34
21
  };
35
- /**
36
- * The index counted from the end of the string where ellipsis will be placed.
37
- * Defines how many ending characters will remain visible.
38
- * By default, ellipsis is placed in the end of the line.
39
- *
40
- * Note: Negative values behave same as corresponding positives still counting from the end of the line.
41
- */
42
22
  sliceIndex: {
43
23
  type: NumberConstructor;
44
- default: number;
24
+ default: undefined;
45
25
  };
46
26
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
47
27
  text: string;
@@ -59,9 +39,4 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
59
39
  } & {}, {
60
40
  sliceIndex: number;
61
41
  }, true>);
62
- /**
63
- * Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
64
- * Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
65
- * that have same beginning and differ in the ending part.
66
- */
67
42
  export default _default;
@@ -1,4 +1,4 @@
1
- export { _ as OrTextV3 } from '../../OrText-15bf85c4.js';
1
+ export { _ as OrTextV3 } from '../../OrText-a665b991.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';