@onereach/ui-components 4.9.1-beta.2894.0 → 4.9.1-beta.2896.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 (103) hide show
  1. package/dist/bundled/v2/{OrDateTimePickerTimeSelect-ad495c45.js → OrDateTimePickerTimeSelect-78f775d8.js} +2 -57
  2. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -8
  3. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +1 -12
  4. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -2
  5. package/dist/bundled/v2/components/OrDateTimePickerV3/props.d.ts +0 -1
  6. package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +0 -1
  7. package/dist/bundled/v2/components/OrDateTimePickerV3/styles.js +3 -1
  8. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +1 -8
  9. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +1 -12
  10. package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -2
  11. package/dist/bundled/v2/components/OrTimePickerV3/props.d.ts +0 -1
  12. package/dist/bundled/v2/components/OrTimePickerV3/props.js +0 -1
  13. package/dist/bundled/v2/components/OrTimePickerV3/styles.js +3 -1
  14. package/dist/bundled/v2/components/OrTreeV3/OrTree.js +259 -0
  15. package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +68 -0
  16. package/dist/bundled/v2/components/OrTreeV3/index.d.ts +1 -0
  17. package/dist/bundled/v2/components/OrTreeV3/index.js +17 -0
  18. package/dist/bundled/v2/components/OrTreeV3/types.d.ts +7 -0
  19. package/dist/bundled/v2/components/OrTreeV3/types.js +1 -0
  20. package/dist/bundled/v2/components/index.d.ts +1 -0
  21. package/dist/bundled/v2/components/index.js +2 -2
  22. package/dist/bundled/v2/index.js +3 -3
  23. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-3b4e7e13.js → OrDateTimePicker.vue_vue_type_script_lang-fec947db.js} +1 -7
  24. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-4f30647b.js → OrDateTimePickerTimeSelect-01a39297.js} +3 -51
  25. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-e2e9a061.js → OrTimePicker.vue_vue_type_script_lang-c737eaa8.js} +1 -7
  26. package/dist/bundled/v3/OrTree.vue_vue_type_script_lang-802de821.js +165 -0
  27. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -6
  28. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +1 -10
  29. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -3
  30. package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +0 -1
  31. package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +0 -1
  32. package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +3 -1
  33. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +4 -6
  34. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +1 -10
  35. package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -3
  36. package/dist/bundled/v3/components/OrTimePickerV3/props.d.ts +0 -1
  37. package/dist/bundled/v3/components/OrTimePickerV3/props.js +0 -1
  38. package/dist/bundled/v3/components/OrTimePickerV3/styles.js +3 -1
  39. package/dist/bundled/v3/components/OrTreeV3/OrTree.js +50 -0
  40. package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +54 -0
  41. package/dist/bundled/v3/components/OrTreeV3/index.d.ts +1 -0
  42. package/dist/bundled/v3/components/OrTreeV3/index.js +21 -0
  43. package/dist/bundled/v3/components/OrTreeV3/types.d.ts +7 -0
  44. package/dist/bundled/v3/components/OrTreeV3/types.js +1 -0
  45. package/dist/bundled/v3/components/index.d.ts +1 -0
  46. package/dist/bundled/v3/components/index.js +4 -4
  47. package/dist/bundled/v3/index.js +6 -5
  48. package/dist/esm/v2/{OrDateTimePicker-f1ae88ab.js → OrDateTimePicker-ac766f04.js} +4 -8
  49. package/dist/esm/v2/{OrDateTimePickerTimeSelect-3b3243c5.js → OrDateTimePickerTimeSelect-eecdd8ab.js} +3 -64
  50. package/dist/esm/v2/{OrTimePicker-59398cff.js → OrTimePicker-5fd08ad2.js} +4 -8
  51. package/dist/esm/v2/OrTree-04b5646d.js +248 -0
  52. package/dist/esm/v2/components/index.d.ts +1 -0
  53. package/dist/esm/v2/components/index.js +4 -3
  54. package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +1 -12
  55. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +2 -2
  56. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -16
  57. package/dist/esm/v2/components/or-date-time-picker-v3/props.d.ts +0 -1
  58. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +1 -12
  59. package/dist/esm/v2/components/or-time-picker-v3/index.js +2 -2
  60. package/dist/esm/v2/components/or-time-picker-v3/props.d.ts +0 -1
  61. package/dist/esm/v2/components/or-tree-v3/OrTree.vue.d.ts +68 -0
  62. package/dist/esm/v2/components/or-tree-v3/index.d.ts +1 -0
  63. package/dist/esm/v2/components/or-tree-v3/index.js +8 -0
  64. package/dist/esm/v2/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +79 -0
  65. package/dist/esm/v2/components/or-tree-v3/types.d.ts +7 -0
  66. package/dist/esm/v2/index.js +4 -3
  67. package/dist/esm/v3/{OrDateTimePicker-a95dbb5d.js → OrDateTimePicker-b15d4198.js} +5 -9
  68. package/dist/esm/v3/{OrDateTimePickerTimeSelect-68a943a2.js → OrDateTimePickerTimeSelect-14503fde.js} +4 -58
  69. package/dist/esm/v3/{OrTimePicker-c3f194aa.js → OrTimePicker-d66edf77.js} +5 -9
  70. package/dist/esm/v3/OrTree-26f82c23.js +190 -0
  71. package/dist/esm/v3/components/index.d.ts +1 -0
  72. package/dist/esm/v3/components/index.js +4 -3
  73. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +1 -10
  74. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +2 -2
  75. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -12
  76. package/dist/esm/v3/components/or-date-time-picker-v3/props.d.ts +0 -1
  77. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +1 -10
  78. package/dist/esm/v3/components/or-time-picker-v3/index.js +2 -2
  79. package/dist/esm/v3/components/or-time-picker-v3/props.d.ts +0 -1
  80. package/dist/esm/v3/components/or-tree-v3/OrTree.vue.d.ts +54 -0
  81. package/dist/esm/v3/components/or-tree-v3/index.d.ts +1 -0
  82. package/dist/esm/v3/components/or-tree-v3/index.js +8 -0
  83. package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +59 -0
  84. package/dist/esm/v3/components/or-tree-v3/types.d.ts +7 -0
  85. package/dist/esm/v3/index.js +4 -3
  86. package/package.json +1 -1
  87. package/src/components/index.ts +1 -0
  88. package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +1 -8
  89. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +1 -60
  90. package/src/components/or-date-time-picker-v3/props.ts +0 -1
  91. package/src/components/or-date-time-picker-v3/styles.ts +4 -1
  92. package/src/components/or-time-picker-v3/OrTimePicker.vue +1 -8
  93. package/src/components/or-time-picker-v3/props.ts +0 -1
  94. package/src/components/or-time-picker-v3/styles.ts +4 -1
  95. package/src/components/or-tree-v3/OrTree.vue +63 -0
  96. package/src/components/or-tree-v3/index.ts +1 -0
  97. package/src/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue +142 -0
  98. package/src/components/or-tree-v3/types.ts +7 -0
  99. package/dist/bundled/v2/props-4f1050af.js +0 -8
  100. package/dist/bundled/v3/props-4f1050af.js +0 -8
  101. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/props.d.ts +0 -5
  102. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/props.d.ts +0 -5
  103. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/props.ts +0 -5
@@ -1,7 +1,6 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { useTimePlaceholder } from './components/OrDateTimePickerV3/hooks/useTimePlaceholder.js';
3
3
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
4
- import { D as DateTimePickerTimeSelectTimeFormat } from './props-4f1050af.js';
5
4
  import __vue_component__$2 from './components/OrButtonV3/OrButton.js';
6
5
 
7
6
  const DateTimePickerTimeControl = [
@@ -158,10 +157,6 @@ var script = defineComponent({
158
157
  type: Date,
159
158
  required: true
160
159
  },
161
- timeFormat: {
162
- type: String,
163
- default: DateTimePickerTimeSelectTimeFormat.Auto
164
- },
165
160
  hoursFilter: {
166
161
  type: Function,
167
162
  default: undefined
@@ -190,33 +185,12 @@ var script = defineComponent({
190
185
  context.emit('update:modelValue', value);
191
186
  }
192
187
  });
193
- const proxyTimeFormat = computed(() => {
194
- if (props.timeFormat === DateTimePickerTimeSelectTimeFormat.Auto) {
195
- const timeSample = new Date(1970, 0);
196
- if (timeSample.toLocaleTimeString(navigator.language).includes('12')) {
197
- return DateTimePickerTimeSelectTimeFormat.H12;
198
- }
199
- return DateTimePickerTimeSelectTimeFormat.H23;
200
- }
201
- return props.timeFormat;
202
- });
203
- const hoursRange = ref('am');
204
188
  const hoursOptions = computed(() => {
205
189
  return Array.from({
206
190
  length: 24
207
191
  }, (_value, index) => {
208
192
  const value = index;
209
193
  return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), value, proxyModelValue.value.getUTCMinutes()));
210
- }).filter(value => {
211
- if (proxyTimeFormat.value === DateTimePickerTimeSelectTimeFormat.H23) {
212
- return true;
213
- }
214
- switch (hoursRange.value) {
215
- case 'am':
216
- return value.getUTCHours() < 12;
217
- case 'pm':
218
- return value.getUTCHours() >= 12;
219
- }
220
194
  });
221
195
  });
222
196
  const minutesOptions = computed(() => {
@@ -231,9 +205,8 @@ var script = defineComponent({
231
205
  function formatHours(value) {
232
206
  return value.toLocaleString(navigator.language, {
233
207
  hour: 'numeric',
234
- hourCycle: props.timeFormat !== DateTimePickerTimeSelectTimeFormat.Auto ? props.timeFormat : undefined,
235
208
  timeZone: 'UTC'
236
- }).replace(/\s(am|pm)/i, '');
209
+ });
237
210
  }
238
211
  function formatMinutes(value) {
239
212
  return String(value.getUTCMinutes()).padStart(2, '0');
@@ -244,8 +217,6 @@ var script = defineComponent({
244
217
  buttonGroupStyles,
245
218
  buttonGroupItemStyles,
246
219
  proxyModelValue,
247
- proxyTimeFormat,
248
- hoursRange,
249
220
  hoursOptions,
250
221
  minutesOptions,
251
222
  formatHours,
@@ -301,33 +272,7 @@ var __vue_render__ = function () {
301
272
  }
302
273
  }
303
274
  }, [_vm._v("\n " + _vm._s(_vm.formatMinutes(value)) + "\n ")]);
304
- }), 1), _vm._v(" "), _vm.proxyTimeFormat === 'h12' ? [_c('div', {
305
- class: _vm.buttonGroupStyles
306
- }, [_c('OrButton', {
307
- class: _vm.buttonGroupItemStyles,
308
- attrs: {
309
- "variant": _vm.hoursRange === 'am' ? 'contained' : 'text',
310
- "color": _vm.hoursRange === 'am' ? 'primary' : 'inherit'
311
- },
312
- on: {
313
- "click": function ($event) {
314
- $event.stopPropagation();
315
- _vm.hoursRange = 'am';
316
- }
317
- }
318
- }, [_vm._v("\n AM\n ")]), _vm._v(" "), _c('OrButton', {
319
- class: _vm.buttonGroupItemStyles,
320
- attrs: {
321
- "variant": _vm.hoursRange === 'pm' ? 'contained' : 'text',
322
- "color": _vm.hoursRange === 'pm' ? 'primary' : 'inherit'
323
- },
324
- on: {
325
- "click": function ($event) {
326
- $event.stopPropagation();
327
- _vm.hoursRange = 'pm';
328
- }
329
- }
330
- }, [_vm._v("\n PM\n ")])], 1)] : _vm._e()], 2);
275
+ }), 1)]);
331
276
  };
332
277
  var __vue_staticRenderFns__ = [];
333
278
 
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { useCurrentDate } from './hooks/useCurrentDate.js';
3
3
  import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-2c1b5116.js';
4
4
  import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-6f78e8e7.js';
5
- import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-ad495c45.js';
5
+ import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-78f775d8.js';
6
6
  import { DateTimePicker, DateTimePickerDatePopover, DateTimePickerTimePopover } from './styles.js';
7
7
  import __vue_component__$1 from '../OrErrorV3/OrError.js';
8
8
  import __vue_component__$2 from '../OrHintV3/OrHint.js';
@@ -11,7 +11,6 @@ import __vue_component__$4 from '../OrIconButtonV3/OrIconButton.js';
11
11
  import __vue_component__$5 from '../OrInputBoxV3/OrInputBox.js';
12
12
  import __vue_component__$6 from '../OrLabelV3/OrLabel.js';
13
13
  import __vue_component__$7 from '../OrPopoverV3/OrPopover.js';
14
- import { D as DateTimePickerTimeSelectTimeFormat } from '../../props-4f1050af.js';
15
14
  import { DropdownClose } from '../../directives/dropdown-close.js';
16
15
  import { DropdownOpen } from '../../directives/dropdown-open.js';
17
16
  import { InputBoxSize } from '../OrInputBoxV3/props.js';
@@ -88,10 +87,6 @@ var script = defineComponent({
88
87
  type: Date,
89
88
  default: undefined
90
89
  },
91
- timeFormat: {
92
- type: String,
93
- default: DateTimePickerTimeSelectTimeFormat.Auto
94
- },
95
90
  yearFilter: {
96
91
  type: Function,
97
92
  default: undefined
@@ -240,7 +235,6 @@ var script = defineComponent({
240
235
  var _a;
241
236
  return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString(navigator.language, {
242
237
  timeStyle: 'short',
243
- hourCycle: props.timeFormat !== DateTimePickerTimeSelectTimeFormat.Auto ? props.timeFormat : undefined,
244
238
  timeZone: 'UTC'
245
239
  })) !== null && _a !== void 0 ? _a : '--';
246
240
  }
@@ -473,7 +467,6 @@ var __vue_render__ = function () {
473
467
  }, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerTimeSelect', {
474
468
  attrs: {
475
469
  "initial-value": _vm.initialModelValue,
476
- "time-format": _vm.timeFormat,
477
470
  "hours-filter": _vm.hoursFilter,
478
471
  "minutes-filter": _vm.minutesFilter
479
472
  },
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { DateTimePickerSize, DateTimePickerTimeFormat } from './props';
2
+ import { DateTimePickerSize } from './props';
3
3
  import { FilterFunction } from './types';
4
4
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
@@ -40,10 +40,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
40
40
  type: DateConstructor;
41
41
  default: undefined;
42
42
  };
43
- timeFormat: {
44
- type: PropType<"auto" | "h12" | "h23">;
45
- default: DateTimePickerTimeFormat;
46
- };
47
43
  yearFilter: {
48
44
  type: PropType<FilterFunction>;
49
45
  default: undefined;
@@ -101,10 +97,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
101
97
  type: DateConstructor;
102
98
  default: undefined;
103
99
  };
104
- timeFormat: {
105
- type: PropType<"auto" | "h12" | "h23">;
106
- default: DateTimePickerTimeFormat;
107
- };
108
100
  yearFilter: {
109
101
  type: PropType<FilterFunction>;
110
102
  default: undefined;
@@ -159,7 +151,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
159
151
  };
160
152
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
161
153
  modelValue: Date;
162
- timeFormat: "auto" | "h12" | "h23";
163
154
  yearFilter: FilterFunction;
164
155
  monthFilter: FilterFunction;
165
156
  dateFilter: FilterFunction;
@@ -211,7 +202,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
211
202
  formatTimeAlt: (value?: Date) => string;
212
203
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
213
204
  modelValue: Date;
214
- timeFormat: "auto" | "h12" | "h23";
215
205
  yearFilter: FilterFunction;
216
206
  monthFilter: FilterFunction;
217
207
  dateFilter: FilterFunction;
@@ -229,7 +219,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
229
219
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
230
220
  }, {
231
221
  modelValue: Date;
232
- timeFormat: "auto" | "h12" | "h23";
233
222
  yearFilter: FilterFunction;
234
223
  monthFilter: FilterFunction;
235
224
  dateFilter: FilterFunction;
@@ -1,6 +1,5 @@
1
1
  export { default as OrDateTimePickerV3 } from './OrDateTimePicker.js';
2
2
  export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
3
- export { D as DateTimePickerTimeFormat } from '../../props-4f1050af.js';
4
3
  import 'vue-demi';
5
4
  import './hooks/useCurrentDate.js';
6
5
  import '../../OrDateTimePickerMonthSelect-2c1b5116.js';
@@ -45,7 +44,7 @@ import '../../OrDateTimePickerPopoverHeader-6f78e8e7.js';
45
44
  import '../OrLabelV3/OrLabel.js';
46
45
  import '../OrLabelV3/props.js';
47
46
  import '../OrLabelV3/styles.js';
48
- import '../../OrDateTimePickerTimeSelect-ad495c45.js';
47
+ import '../../OrDateTimePickerTimeSelect-78f775d8.js';
49
48
  import './hooks/useTimePlaceholder.js';
50
49
  import './styles.js';
51
50
  import '../OrErrorV3/OrError.js';
@@ -1,2 +1 @@
1
1
  export { InputBoxSize as DateTimePickerSize } from '../or-input-box-v3';
2
- export { DateTimePickerTimeSelectTimeFormat as DateTimePickerTimeFormat } from './partials/or-date-time-picker-time-select/props';
@@ -1,2 +1 @@
1
- export { D as DateTimePickerTimeFormat } from '../../props-4f1050af.js';
2
1
  export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
@@ -6,6 +6,8 @@ const DateTimePicker = [
6
6
  const DateTimePickerDatePopover = [
7
7
  // Box
8
8
  'w-[298px]'];
9
- const DateTimePickerTimePopover = [];
9
+ const DateTimePickerTimePopover = [
10
+ // Box
11
+ 'w-[224px]'];
10
12
 
11
13
  export { DateTimePicker, DateTimePickerDatePopover, DateTimePickerTimePopover };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
3
3
  import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-6f78e8e7.js';
4
- import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-ad495c45.js';
4
+ import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-78f775d8.js';
5
5
  import { TimePicker, TimePickerPopover } from './styles.js';
6
6
  import __vue_component__$1 from '../OrErrorV3/OrError.js';
7
7
  import __vue_component__$2 from '../OrHintV3/OrHint.js';
@@ -10,7 +10,6 @@ import __vue_component__$4 from '../OrIconButtonV3/OrIconButton.js';
10
10
  import __vue_component__$5 from '../OrInputBoxV3/OrInputBox.js';
11
11
  import __vue_component__$6 from '../OrLabelV3/OrLabel.js';
12
12
  import __vue_component__$7 from '../OrPopoverV3/OrPopover.js';
13
- import { D as DateTimePickerTimeSelectTimeFormat } from '../../props-4f1050af.js';
14
13
  import { DropdownClose } from '../../directives/dropdown-close.js';
15
14
  import { DropdownOpen } from '../../directives/dropdown-open.js';
16
15
  import { InputBoxSize } from '../OrInputBoxV3/props.js';
@@ -79,10 +78,6 @@ var script = defineComponent({
79
78
  type: Date,
80
79
  default: undefined
81
80
  },
82
- timeFormat: {
83
- type: String,
84
- default: DateTimePickerTimeSelectTimeFormat.Auto
85
- },
86
81
  hoursFilter: {
87
82
  type: Function,
88
83
  default: undefined
@@ -186,7 +181,6 @@ var script = defineComponent({
186
181
  var _a;
187
182
  return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString(navigator.language, {
188
183
  timeStyle: 'short',
189
- hourCycle: props.timeFormat !== DateTimePickerTimeSelectTimeFormat.Auto ? props.timeFormat : undefined,
190
184
  timeZone: 'UTC'
191
185
  })) !== null && _a !== void 0 ? _a : '--';
192
186
  }
@@ -324,7 +318,6 @@ var __vue_render__ = function () {
324
318
  }
325
319
  }, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerTimeSelect', {
326
320
  attrs: {
327
- "time-format": _vm.timeFormat,
328
321
  "initial-value": _vm.initialModelValue,
329
322
  "hours-filter": _vm.hoursFilter,
330
323
  "minutes-filter": _vm.minutesFilter
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue-demi';
2
2
  import { FilterFunction } from '../or-date-time-picker-v3/types';
3
- import { TimePickerSize, TimePickerTimeFormat } from './props';
3
+ import { TimePickerSize } from './props';
4
4
  declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
6
  inputBox: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
@@ -30,10 +30,6 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
30
30
  type: DateConstructor;
31
31
  default: undefined;
32
32
  };
33
- timeFormat: {
34
- type: PropType<"auto" | "h12" | "h23">;
35
- default: TimePickerTimeFormat;
36
- };
37
33
  hoursFilter: {
38
34
  type: PropType<FilterFunction>;
39
35
  default: undefined;
@@ -79,10 +75,6 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
79
75
  type: DateConstructor;
80
76
  default: undefined;
81
77
  };
82
- timeFormat: {
83
- type: PropType<"auto" | "h12" | "h23">;
84
- default: TimePickerTimeFormat;
85
- };
86
78
  hoursFilter: {
87
79
  type: PropType<FilterFunction>;
88
80
  default: undefined;
@@ -125,7 +117,6 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
125
117
  };
126
118
  }>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
127
119
  modelValue: Date;
128
- timeFormat: "auto" | "h12" | "h23";
129
120
  hoursFilter: FilterFunction;
130
121
  minutesFilter: FilterFunction;
131
122
  size: TimePickerSize;
@@ -164,7 +155,6 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
164
155
  formatTimeAlt: (value?: Date) => string;
165
156
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
166
157
  modelValue: Date;
167
- timeFormat: "auto" | "h12" | "h23";
168
158
  hoursFilter: FilterFunction;
169
159
  minutesFilter: FilterFunction;
170
160
  size: TimePickerSize;
@@ -179,7 +169,6 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
179
169
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
180
170
  }, {
181
171
  modelValue: Date;
182
- timeFormat: "auto" | "h12" | "h23";
183
172
  hoursFilter: FilterFunction;
184
173
  minutesFilter: FilterFunction;
185
174
  size: TimePickerSize;
@@ -1,5 +1,4 @@
1
1
  export { default as OrTimePickerV3 } from './OrTimePicker.js';
2
- export { D as TimePickerTimeFormat } from '../../props-4f1050af.js';
3
2
  export { InputBoxSize as TimePickerSize } from '../OrInputBoxV3/props.js';
4
3
  import 'vue-demi';
5
4
  import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
@@ -16,7 +15,7 @@ import '../../index-c92e2839.js';
16
15
  import '../../index-ec92055d.js';
17
16
  import '../OrLoaderV3/props.js';
18
17
  import '../OrLoaderV3/styles.js';
19
- import '../../OrDateTimePickerTimeSelect-ad495c45.js';
18
+ import '../../OrDateTimePickerTimeSelect-78f775d8.js';
20
19
  import '../OrDateTimePickerV3/hooks/useTimePlaceholder.js';
21
20
  import './styles.js';
22
21
  import '../OrErrorV3/OrError.js';
@@ -1,2 +1 @@
1
- export { DateTimePickerTimeSelectTimeFormat as TimePickerTimeFormat } from '../or-date-time-picker-v3/partials/or-date-time-picker-time-select/props';
2
1
  export { InputBoxSize as TimePickerSize } from '../or-input-box-v3';
@@ -1,2 +1 @@
1
- export { D as TimePickerTimeFormat } from '../../props-4f1050af.js';
2
1
  export { InputBoxSize as TimePickerSize } from '../OrInputBoxV3/props.js';
@@ -3,6 +3,8 @@ const TimePicker = [
3
3
  'layout-column',
4
4
  // Spacing
5
5
  'gap-xs'];
6
- const TimePickerPopover = [];
6
+ const TimePickerPopover = [
7
+ // Box
8
+ 'w-[224px]'];
7
9
 
8
10
  export { TimePicker, TimePickerPopover };
@@ -0,0 +1,259 @@
1
+ import { defineComponent, ref, computed, watch, onMounted, unref } from 'vue-demi';
2
+ import __vue_component__$2 from '../OrButtonV3/OrButton.js';
3
+ import __vue_component__$3 from '../OrIconV3/OrIcon.js';
4
+ import { u as useToggle } from '../../index-ec92055d.js';
5
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
6
+ import __vue_component__$4 from '../OrLabelV3/OrLabel.js';
7
+ import '../OrButtonV3/props.js';
8
+ import '../OrButtonV3/styles.js';
9
+ import '../OrLoaderV3/OrLoader.js';
10
+ import '../../index-c92e2839.js';
11
+ import '../OrLoaderV3/props.js';
12
+ import '../OrLoaderV3/styles.js';
13
+ import '../OrIconV3/props.js';
14
+ import '../OrIconV3/styles.js';
15
+ import '../OrLabelV3/props.js';
16
+ import '../OrLabelV3/styles.js';
17
+
18
+ var script$1 = defineComponent({
19
+ name: 'OrTreeNode',
20
+ components: {
21
+ OrButton: __vue_component__$2,
22
+ OrIcon: __vue_component__$3
23
+ },
24
+ props: {
25
+ node: {
26
+ type: Object,
27
+ required: true
28
+ },
29
+ collapsible: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ expanded: {
34
+ type: Boolean,
35
+ default: true
36
+ },
37
+ depth: {
38
+ type: Number,
39
+ default: 1
40
+ },
41
+ draggable: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ },
46
+ setup(props) {
47
+ const root = ref(null);
48
+ const nodeRoot = ref(null);
49
+ const hover = ref(false);
50
+ const hasChildren = computed(() => !!props.node.children && props.node.children.length > 0);
51
+ const [isOpen, setIsOpen] = useToggle(props.expanded);
52
+ watch(() => props.expanded, value => {
53
+ if (value !== undefined) {
54
+ setIsOpen(value);
55
+ }
56
+ }, {
57
+ immediate: true
58
+ });
59
+ const applyPadding = value => {
60
+ const rootElement = unref(nodeRoot);
61
+ const padding = value * 20 - (props.collapsible ? 16 : 0);
62
+ Object.assign(rootElement.style, {
63
+ paddingLeft: `${padding}px`
64
+ });
65
+ };
66
+ watch(() => props.depth, value => {
67
+ applyPadding(value);
68
+ });
69
+ onMounted(() => {
70
+ applyPadding(props.depth);
71
+ });
72
+ const nodeStyles = computed(() => ['layout-row', ...[hover.value ? ['bg-primary-opacity-0-08', 'dark:bg-primary-opacity-0-08-dark'] : []]]);
73
+ return {
74
+ root,
75
+ hasChildren,
76
+ isOpen,
77
+ setIsOpen,
78
+ nodeRoot,
79
+ hover,
80
+ nodeStyles
81
+ };
82
+ }
83
+ });
84
+
85
+ /* script */
86
+ const __vue_script__$1 = script$1;
87
+
88
+ /* template */
89
+ var __vue_render__$1 = function () {
90
+ var _vm = this;
91
+ var _h = _vm.$createElement;
92
+ var _c = _vm._self._c || _h;
93
+ return _c('div', {
94
+ ref: "root",
95
+ staticClass: "or-tree-node-v3"
96
+ }, [_c('div', {
97
+ ref: "nodeRoot",
98
+ class: _vm.nodeStyles,
99
+ attrs: {
100
+ "draggable": _vm.draggable ? true : undefined
101
+ },
102
+ on: {
103
+ "mouseover": function ($event) {
104
+ _vm.hover = true;
105
+ },
106
+ "mouseleave": function ($event) {
107
+ _vm.hover = false;
108
+ },
109
+ "dragenter": function ($event) {
110
+ _vm.hover = true;
111
+ },
112
+ "dragleave": function ($event) {
113
+ _vm.hover = false;
114
+ }
115
+ }
116
+ }, [_vm.hasChildren && _vm.collapsible ? [_c('OrButton', {
117
+ attrs: {
118
+ "variant": "link"
119
+ },
120
+ on: {
121
+ "click": function () {
122
+ return _vm.setIsOpen(!_vm.isOpen);
123
+ }
124
+ }
125
+ }, [_c('OrIcon', {
126
+ class: [_vm.isOpen ? 'rotate-90' : 'rotate-0'],
127
+ attrs: {
128
+ "icon": "arrow_right",
129
+ "size": "l"
130
+ }
131
+ })], 1)] : _vm._e(), _vm._v(" "), _vm._t("node", null, null, {
132
+ node: _vm.node,
133
+ hasChildren: _vm.hasChildren,
134
+ isOpen: _vm.isOpen
135
+ })], 2), _vm._v(" "), _vm.hasChildren && _vm.isOpen ? _vm._l(_vm.node.children, function (child) {
136
+ return _c('OrTreeNode', {
137
+ key: child.key,
138
+ attrs: {
139
+ "node": child,
140
+ "collapsible": _vm.collapsible || child.collapsible,
141
+ "depth": _vm.depth + 1,
142
+ "draggable": _vm.draggable
143
+ },
144
+ scopedSlots: _vm._u([{
145
+ key: "node",
146
+ fn: function (props) {
147
+ return [_vm._t("node", null, null, props)];
148
+ }
149
+ }], null, true)
150
+ });
151
+ }) : _vm._e()], 2);
152
+ };
153
+ var __vue_staticRenderFns__$1 = [];
154
+
155
+ /* style */
156
+ const __vue_inject_styles__$1 = undefined;
157
+ /* scoped */
158
+ const __vue_scope_id__$1 = undefined;
159
+ /* module identifier */
160
+ const __vue_module_identifier__$1 = undefined;
161
+ /* functional template */
162
+ const __vue_is_functional_template__$1 = false;
163
+ /* style inject */
164
+
165
+ /* style inject SSR */
166
+
167
+ /* style inject shadow dom */
168
+
169
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
170
+ render: __vue_render__$1,
171
+ staticRenderFns: __vue_staticRenderFns__$1
172
+ }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
173
+ var OrTreeNode = __vue_component__$1;
174
+
175
+ var script = defineComponent({
176
+ name: 'OrTree',
177
+ components: {
178
+ OrLabel: __vue_component__$4,
179
+ OrTreeNode
180
+ },
181
+ props: {
182
+ label: {
183
+ type: String,
184
+ default: ''
185
+ },
186
+ error: {
187
+ type: String,
188
+ default: ''
189
+ },
190
+ nodes: {
191
+ type: Array,
192
+ default: () => []
193
+ },
194
+ collapsible: {
195
+ type: Boolean,
196
+ default: false
197
+ },
198
+ draggable: {
199
+ type: Boolean,
200
+ default: false
201
+ }
202
+ },
203
+ setup() {
204
+ const root = ref(null);
205
+ return {
206
+ root
207
+ };
208
+ }
209
+ });
210
+
211
+ /* script */
212
+ const __vue_script__ = script;
213
+
214
+ /* template */
215
+ var __vue_render__ = function () {
216
+ var _vm = this;
217
+ var _h = _vm.$createElement;
218
+ var _c = _vm._self._c || _h;
219
+ return _c('div', {
220
+ ref: "root"
221
+ }, [_vm.label ? _c('or-label', [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]) : _vm._e(), _vm._v(" "), _vm._l(_vm.nodes, function (item) {
222
+ return _c('OrTreeNode', {
223
+ key: item.key,
224
+ attrs: {
225
+ "node": item,
226
+ "collapsible": _vm.collapsible || item.collapsible,
227
+ "draggable": _vm.draggable
228
+ },
229
+ scopedSlots: _vm._u([{
230
+ key: "node",
231
+ fn: function (props) {
232
+ return [_vm._t("node", null, null, props)];
233
+ }
234
+ }], null, true)
235
+ });
236
+ })], 2);
237
+ };
238
+ var __vue_staticRenderFns__ = [];
239
+
240
+ /* style */
241
+ const __vue_inject_styles__ = undefined;
242
+ /* scoped */
243
+ const __vue_scope_id__ = undefined;
244
+ /* module identifier */
245
+ const __vue_module_identifier__ = undefined;
246
+ /* functional template */
247
+ const __vue_is_functional_template__ = false;
248
+ /* style inject */
249
+
250
+ /* style inject SSR */
251
+
252
+ /* style inject shadow dom */
253
+
254
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
255
+ render: __vue_render__,
256
+ staticRenderFns: __vue_staticRenderFns__
257
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
258
+
259
+ export { __vue_component__ as default };