@onereach/ui-components 2.70.2-beta.2198.0 → 2.70.2-beta.2199.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.
- package/dist/bundled/v2/{OrCardCollection-0141a358.js → OrCardCollection-1bb83cfb.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-251ecafc.js} +32 -17
- package/dist/bundled/v2/{OrConfirm-23c3ce56.js → OrConfirm-4cae7867.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-87589946.js → OrInlineInput-2133e469.js} +38 -22
- package/dist/bundled/v2/{OrInlineTextarea-21b0e6fc.js → OrInlineTextarea-d61ca596.js} +34 -18
- package/dist/bundled/v2/{OrInput-82ccfe00.js → OrInput-770f1bed.js} +38 -30
- package/dist/bundled/v2/{OrPagination-379c10b8.js → OrPagination-468d0964.js} +1 -1
- package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-ae89bc9b.js} +30 -15
- package/dist/bundled/v2/{OrSearch-53470b0e.js → OrSearch-2e5f9e24.js} +1 -1
- package/dist/bundled/v2/{OrSelect-c49e1bcf.js → OrSelect-039c0711.js} +2 -2
- package/dist/bundled/v2/OrSidebar-c95ef614.js +230 -0
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-20640a05.js} +30 -15
- package/dist/bundled/v2/{OrTabs-42f7c52c.js → OrTabs-85aefcba.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-0ff8063b.js} +39 -20
- package/dist/bundled/v2/components/index.js +16 -14
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-radio-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -1
- package/dist/bundled/v2/hooks/index.d.ts +3 -0
- package/dist/bundled/v2/hooks/index.js +2 -0
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +8 -0
- package/dist/bundled/v2/hooks/useIdAttribute.d.ts +2 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/bundled/v2/index.js +17 -15
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +22 -0
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +17 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-2d78a51a.js → OrCardCollection.vue_vue_type_script_lang-a0f29a55.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-8b36e06c.js → OrCheckbox.vue_vue_type_script_lang-2024ec32.js} +22 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-05b21989.js → OrConfirm.vue_vue_type_script_lang-7d9d3810.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-67218502.js → OrInlineInput.vue_vue_type_script_lang-40f0073f.js} +27 -11
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js → OrInlineTextarea.vue_vue_type_script_lang-2817edd5.js} +27 -11
- package/dist/bundled/v3/{OrInput-a4f220ed.js → OrInput-e325a104.js} +12 -12
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-607d79d4.js → OrInput.vue_vue_type_script_lang-fd850b82.js} +26 -15
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c96d7cd7.js → OrPagination.vue_vue_type_script_lang-0d9daaa7.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2e666a56.js → OrRadio.vue_vue_type_script_lang-29e8b856.js} +22 -7
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-06f318ca.js → OrSearch.vue_vue_type_script_lang-480f4b1c.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-58e5a52b.js → OrSelect.vue_vue_type_script_lang-7aa8956a.js} +17 -15
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-04829f64.js → OrSwitch.vue_vue_type_script_lang-02b4913a.js} +22 -7
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-01188224.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-2fdac7b2.js} +31 -12
- package/dist/bundled/v3/components/index.js +17 -15
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-radio-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +1 -15
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-switch-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -1
- package/dist/bundled/v3/hooks/index.d.ts +3 -0
- package/dist/bundled/v3/hooks/index.js +2 -0
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +8 -0
- package/dist/bundled/v3/hooks/useIdAttribute.d.ts +2 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/bundled/v3/index.js +85 -93
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +21 -0
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +16 -0
- package/dist/esm/v2/{OrCardCollection-3c38fc85.js → OrCardCollection-784318ac.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-7317fe1a.js} +32 -17
- package/dist/esm/v2/{OrConfirm-e2ab9b4c.js → OrConfirm-3d064f6c.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-10205811.js → OrInlineInput-7c4f1f92.js} +38 -22
- package/dist/esm/v2/{OrInlineTextarea-7658611e.js → OrInlineTextarea-3381e2a9.js} +34 -18
- package/dist/esm/v2/{OrInput-ada3a970.js → OrInput-e10cc643.js} +38 -30
- package/dist/esm/v2/{OrPagination-c0dbec6a.js → OrPagination-291bd1b9.js} +1 -1
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-b0a560d2.js} +30 -15
- package/dist/esm/v2/{OrSearch-0f08f2f5.js → OrSearch-1490c00b.js} +1 -1
- package/dist/esm/v2/{OrSelect-1d705445.js → OrSelect-1fbeed4f.js} +2 -2
- package/dist/esm/v2/OrSidebar-fabc7bc9.js +228 -0
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-133052ca.js} +30 -15
- package/dist/esm/v2/{OrTabs-71bd3fd2.js → OrTabs-e5b81f4b.js} +1 -1
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-a7c846da.js} +39 -20
- package/dist/esm/v2/components/index.js +16 -14
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -3
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -2
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/esm/v2/components/or-input-v3/index.js +3 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -1
- package/dist/esm/v2/components/or-search-v3/index.js +4 -2
- package/dist/esm/v2/components/or-select-v3/index.js +5 -3
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -1
- package/dist/esm/v2/hooks/index.d.ts +3 -0
- package/dist/esm/v2/hooks/index.js +2 -0
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +8 -0
- package/dist/esm/v2/hooks/useIdAttribute.d.ts +2 -0
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/esm/v2/index.js +16 -14
- package/dist/esm/v2/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v2/useValidationAttributes-d1abbe34.js +16 -0
- package/dist/esm/v3/{OrCardCollection-dbb3e839.js → OrCardCollection-110b3a0b.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-7144da06.js} +36 -19
- package/dist/esm/v3/{OrConfirm-1bcd39b1.js → OrConfirm-1a38ed1b.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-507fc99c.js → OrInlineInput-a6b19dbe.js} +37 -20
- package/dist/esm/v3/{OrInlineTextarea-53a9e027.js → OrInlineTextarea-9eb60363.js} +37 -20
- package/dist/esm/v3/{OrInput-9c0426b9.js → OrInput-e07ec00c.js} +37 -26
- package/dist/esm/v3/{OrPagination-a703307d.js → OrPagination-5e01a0a5.js} +1 -1
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-39d1905d.js} +34 -17
- package/dist/esm/v3/{OrSearch-9885d178.js → OrSearch-a60f67f0.js} +1 -1
- package/dist/esm/v3/{OrSelect-dfa4885f.js → OrSelect-2c70e384.js} +2 -2
- package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-3e9a699d.js} +34 -18
- package/dist/esm/v3/{OrTabs-d0ee6cef.js → OrTabs-91618aab.js} +1 -1
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-fd6b9f31.js} +42 -22
- package/dist/esm/v3/components/index.js +16 -14
- package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -3
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/esm/v3/components/or-input-v3/index.js +3 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -1
- package/dist/esm/v3/components/or-search-v3/index.js +4 -2
- package/dist/esm/v3/components/or-select-v3/index.js +5 -3
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -12
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/esm/v3/components/or-textarea-v3/index.js +3 -1
- package/dist/esm/v3/hooks/index.d.ts +3 -0
- package/dist/esm/v3/hooks/index.js +2 -0
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +8 -0
- package/dist/esm/v3/hooks/useIdAttribute.d.ts +2 -0
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/esm/v3/index.js +16 -14
- package/dist/esm/v3/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +16 -0
- package/package.json +1 -1
- package/src/components/or-checkbox-v3/OrCheckbox.vue +28 -10
- package/src/components/or-inline-input-v3/OrInlineInput.vue +32 -13
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +32 -13
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -4
- package/src/components/or-input-v3/OrInput.vue +31 -19
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-radio-v3/OrRadio.vue +27 -9
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +6 -219
- package/src/components/or-sidebar-v3/OrSidebar.vue +22 -121
- package/src/components/or-sidebar-v3/styles.ts +9 -153
- package/src/components/or-switch-v3/OrSwitch.vue +27 -9
- package/src/components/or-tabs-v3/OrTabs.vue +1 -1
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +4 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +36 -14
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useControlAttributes.ts +19 -0
- package/src/hooks/useIdAttribute.ts +9 -0
- package/src/hooks/useValidationAttributes.ts +25 -0
- package/dist/bundled/v2/OrSidebar-2a7d62a8.js +0 -455
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-b4fa1550.js +0 -347
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/dist/esm/v2/OrSidebar-1e02702f.js +0 -452
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/dist/esm/v3/OrSidebar-749bbcba.js +0 -387
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.vue +0 -64
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { defineComponent, ref, computed, watch } from 'vue';
|
|
4
|
+
|
|
5
|
+
var OrSidebarPlacement;
|
|
6
|
+
(function (OrSidebarPlacement) {
|
|
7
|
+
OrSidebarPlacement["left"] = "left";
|
|
8
|
+
OrSidebarPlacement["right"] = "right";
|
|
9
|
+
})(OrSidebarPlacement || (OrSidebarPlacement = {}));
|
|
10
|
+
|
|
11
|
+
const SidebarRoot = [
|
|
12
|
+
// Position
|
|
13
|
+
'relative',
|
|
14
|
+
// Layout
|
|
15
|
+
'flex', 'flex-col', 'shrink-0',
|
|
16
|
+
// Box
|
|
17
|
+
'min-h-0', 'p-0'];
|
|
18
|
+
const SidebarRootSides = {
|
|
19
|
+
[OrSidebarPlacement.left]: [
|
|
20
|
+
// Borders
|
|
21
|
+
'border-r-[1px]', 'border-r-solid', 'border-r-secondary dark:border-r-secondary-dark'],
|
|
22
|
+
[OrSidebarPlacement.right]: [
|
|
23
|
+
// Borders
|
|
24
|
+
'border-l-[1px]', 'border-l-solid', 'border-l-secondary dark:border-l-secondary-dark']
|
|
25
|
+
};
|
|
26
|
+
const SidebarResize = [
|
|
27
|
+
// Position
|
|
28
|
+
'absolute', 'inset-y-none', 'z-[1]',
|
|
29
|
+
// Box
|
|
30
|
+
'w-[12px]', 'h-[100%]',
|
|
31
|
+
// Cursor
|
|
32
|
+
'cursor-ew-resize'];
|
|
33
|
+
const SidebarResizeSides = {
|
|
34
|
+
[OrSidebarPlacement.left]: [
|
|
35
|
+
// Position
|
|
36
|
+
'-right-[1px]',
|
|
37
|
+
// Borders
|
|
38
|
+
'hover:border-r-2', 'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
39
|
+
// Transition
|
|
40
|
+
'transition-[border-right]'],
|
|
41
|
+
[OrSidebarPlacement.right]: [
|
|
42
|
+
// Position
|
|
43
|
+
'-left-[1px]',
|
|
44
|
+
// Borders
|
|
45
|
+
'hover:border-l-2', 'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
46
|
+
// Transition
|
|
47
|
+
'transition-[border-left]']
|
|
48
|
+
};
|
|
49
|
+
const SidebarResizingSides = {
|
|
50
|
+
[OrSidebarPlacement.left]: [
|
|
51
|
+
// Borders
|
|
52
|
+
'border-r-2', 'border-r-primary dark:border-r-primary-dark'],
|
|
53
|
+
[OrSidebarPlacement.right]: [
|
|
54
|
+
// Borders
|
|
55
|
+
'border-l-2', 'border-l-primary dark:border-l-primary-dark']
|
|
56
|
+
};
|
|
57
|
+
const SidebarMain = [
|
|
58
|
+
// Layout
|
|
59
|
+
'flex', 'flex-col', 'grow',
|
|
60
|
+
// Box
|
|
61
|
+
'min-h-0'];
|
|
62
|
+
const SidebarHeader = [
|
|
63
|
+
// Sizing
|
|
64
|
+
'p-md'];
|
|
65
|
+
const SidebarContent = [
|
|
66
|
+
// Layout
|
|
67
|
+
'grow', 'overflow-auto',
|
|
68
|
+
// Sizing
|
|
69
|
+
'p-md'];
|
|
70
|
+
const SidebarFooter = [
|
|
71
|
+
// Sizing
|
|
72
|
+
'p-md',
|
|
73
|
+
// Borders
|
|
74
|
+
'border-t-[1px]', 'border-t-solid', 'border-t-secondary dark:border-t-secondary-dark'];
|
|
75
|
+
|
|
76
|
+
var script = defineComponent({
|
|
77
|
+
name: 'OrSidebar',
|
|
78
|
+
props: {
|
|
79
|
+
width: {
|
|
80
|
+
type: Number,
|
|
81
|
+
required: false,
|
|
82
|
+
default: 0,
|
|
83
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
84
|
+
},
|
|
85
|
+
minimumWidth: {
|
|
86
|
+
type: Number,
|
|
87
|
+
required: false,
|
|
88
|
+
default: 350,
|
|
89
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* User may put the component on the right or the left side of a container.
|
|
93
|
+
* This property mirrors the resizing behavior (drag direction) and styling (horizontal border) of the sidebar.
|
|
94
|
+
*
|
|
95
|
+
* Note: the property doesn't reposition the component in the parent container.
|
|
96
|
+
* @values left, right
|
|
97
|
+
*/
|
|
98
|
+
side: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: OrSidebarPlacement.right,
|
|
101
|
+
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
emits: ['change:width'],
|
|
105
|
+
setup(props, {
|
|
106
|
+
emit
|
|
107
|
+
}) {
|
|
108
|
+
// Refs
|
|
109
|
+
const root = ref();
|
|
110
|
+
const resizeBar = ref(null);
|
|
111
|
+
const parentContainer = computed(() => {
|
|
112
|
+
var _a;
|
|
113
|
+
return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
114
|
+
});
|
|
115
|
+
// State
|
|
116
|
+
const startPositionX = ref(0);
|
|
117
|
+
const isResizing = ref(false);
|
|
118
|
+
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
119
|
+
// Styles
|
|
120
|
+
const sidebarStyle = computed(() => ({
|
|
121
|
+
width: localWidth.value + 'px'
|
|
122
|
+
}));
|
|
123
|
+
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot, ...SidebarRootSides[props.side]]);
|
|
124
|
+
const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
|
|
125
|
+
const mainStyles = computed(() => [...SidebarMain]);
|
|
126
|
+
const headerStyles = computed(() => [...SidebarHeader]);
|
|
127
|
+
const contentStyles = computed(() => [...SidebarContent]);
|
|
128
|
+
const footerStyles = computed(() => [...SidebarFooter]);
|
|
129
|
+
// Effects
|
|
130
|
+
useDraggable(resizeBar, {
|
|
131
|
+
preventDefault: true,
|
|
132
|
+
onStart: (position, event) => {
|
|
133
|
+
document.body.style.cursor = 'ew-resize';
|
|
134
|
+
document.body.style.userSelect = 'none';
|
|
135
|
+
startPositionX.value = event.x;
|
|
136
|
+
isResizing.value = true;
|
|
137
|
+
},
|
|
138
|
+
onMove: position => {
|
|
139
|
+
const delta = (position.x - startPositionX.value) * (props.side === OrSidebarPlacement.left ? -1 : 1);
|
|
140
|
+
const newWidth = localWidth.value - delta;
|
|
141
|
+
localWidth.value = newWidth > maximumWidth.value ? maximumWidth.value : newWidth < props.minimumWidth ? props.minimumWidth : newWidth;
|
|
142
|
+
startPositionX.value = position.x;
|
|
143
|
+
},
|
|
144
|
+
onEnd: () => {
|
|
145
|
+
document.body.style.cursor = '';
|
|
146
|
+
document.body.style.userSelect = '';
|
|
147
|
+
isResizing.value = false;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const {
|
|
151
|
+
width: maximumWidth
|
|
152
|
+
} = useElementBounding(parentContainer);
|
|
153
|
+
watch(() => props.width, newValue => {
|
|
154
|
+
if (newValue !== localWidth.value) {
|
|
155
|
+
localWidth.value = newValue > maximumWidth.value ? maximumWidth.value : newValue < props.minimumWidth ? props.minimumWidth : newValue;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
watch(() => props.minimumWidth, newMinimum => {
|
|
159
|
+
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
160
|
+
});
|
|
161
|
+
watch(maximumWidth, newMaximum => {
|
|
162
|
+
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
163
|
+
});
|
|
164
|
+
watch(localWidth, val => emit('change:width', val));
|
|
165
|
+
return {
|
|
166
|
+
root,
|
|
167
|
+
resizeBar,
|
|
168
|
+
isResizing,
|
|
169
|
+
localWidth,
|
|
170
|
+
sidebarStyle,
|
|
171
|
+
rootStyles,
|
|
172
|
+
resizeStyles,
|
|
173
|
+
mainStyles,
|
|
174
|
+
headerStyles,
|
|
175
|
+
contentStyles,
|
|
176
|
+
footerStyles
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export { OrSidebarPlacement as O, script as s };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive } from 'vue';
|
|
2
2
|
import './OrLabel-c6873e79.js';
|
|
3
3
|
import './OrLoader-c4bbef2f.js';
|
|
4
4
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
5
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
5
6
|
import { s as script$1, L as LabelVariant } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
6
7
|
import { s as script$2 } from './OrLoader.vue_vue_type_script_lang-5405040c.js';
|
|
7
8
|
|
|
@@ -97,19 +98,21 @@ var script = defineComponent({
|
|
|
97
98
|
}
|
|
98
99
|
},
|
|
99
100
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
100
|
-
expose: ['root'],
|
|
101
|
+
expose: ['root', 'focus', 'blur'],
|
|
101
102
|
setup(props, context) {
|
|
102
|
-
var _a;
|
|
103
|
-
const currentInstance = getCurrentInstance();
|
|
104
103
|
// Refs
|
|
105
104
|
const root = ref();
|
|
105
|
+
const control = ref();
|
|
106
106
|
// Styles
|
|
107
107
|
const classAttribute = useClassAttribute();
|
|
108
108
|
const rootStyles = computed(() => ['or-switch', ...SwitchRoot, classAttribute.value]);
|
|
109
109
|
const controlStyles = computed(() => [...SwitchControl, ...SwitchControlHandle]);
|
|
110
110
|
const loaderStyles = computed(() => [...SwitchLoader, ...SwitchLoaderHandle]);
|
|
111
111
|
// State
|
|
112
|
-
const
|
|
112
|
+
const controlAttributes = reactive({
|
|
113
|
+
id: useIdAttribute(),
|
|
114
|
+
...useControlAttributes()
|
|
115
|
+
});
|
|
113
116
|
const proxyModelValue = computed({
|
|
114
117
|
get: () => {
|
|
115
118
|
var _a;
|
|
@@ -121,13 +124,25 @@ var script = defineComponent({
|
|
|
121
124
|
context.emit('update:modelValue', value);
|
|
122
125
|
}
|
|
123
126
|
});
|
|
127
|
+
// Methods
|
|
128
|
+
function focus() {
|
|
129
|
+
var _a;
|
|
130
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
131
|
+
}
|
|
132
|
+
function blur() {
|
|
133
|
+
var _a;
|
|
134
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
135
|
+
}
|
|
124
136
|
return {
|
|
125
137
|
root,
|
|
138
|
+
control,
|
|
126
139
|
rootStyles,
|
|
127
140
|
controlStyles,
|
|
128
141
|
loaderStyles,
|
|
129
|
-
|
|
130
|
-
proxyModelValue
|
|
142
|
+
controlAttributes,
|
|
143
|
+
proxyModelValue,
|
|
144
|
+
focus,
|
|
145
|
+
blur
|
|
131
146
|
};
|
|
132
147
|
}
|
|
133
148
|
});
|
|
@@ -114,7 +114,7 @@ var script = defineComponent({
|
|
|
114
114
|
const activeTab = computed(() => props.items.find(({
|
|
115
115
|
value
|
|
116
116
|
}) => value === proxyModelValue.value));
|
|
117
|
-
//
|
|
117
|
+
// Methods
|
|
118
118
|
function rearrangeTabs(items, activeTab, rootElement) {
|
|
119
119
|
const {
|
|
120
120
|
children
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import './OrInputBox-eb54d73d.js';
|
|
4
4
|
import './OrLabel-c6873e79.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
7
|
+
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
6
8
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
7
9
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
8
10
|
import { s as script$3, a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
@@ -63,24 +65,31 @@ var script = defineComponent({
|
|
|
63
65
|
type: Boolean,
|
|
64
66
|
default: false
|
|
65
67
|
},
|
|
68
|
+
readonly: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
66
72
|
disabled: {
|
|
67
73
|
type: Boolean,
|
|
68
74
|
default: false
|
|
69
75
|
}
|
|
70
76
|
},
|
|
71
77
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
72
|
-
expose: ['root'],
|
|
78
|
+
expose: ['root', 'focus', 'blur'],
|
|
73
79
|
setup(props, context) {
|
|
74
|
-
var _a;
|
|
75
|
-
const currentInstance = getCurrentInstance();
|
|
76
80
|
// Refs
|
|
77
81
|
const root = ref();
|
|
82
|
+
const control = ref();
|
|
78
83
|
// Styles
|
|
79
84
|
const classAttribute = useClassAttribute();
|
|
80
85
|
const rootStyles = computed(() => ['or-textarea', ...TextareaRoot, classAttribute.value]);
|
|
81
86
|
const controlStyles = computed(() => [...TextareaControl]);
|
|
82
87
|
// State
|
|
83
|
-
const
|
|
88
|
+
const controlAttributes = reactive({
|
|
89
|
+
id: useIdAttribute(),
|
|
90
|
+
...useControlAttributes(),
|
|
91
|
+
...useValidationAttributes()
|
|
92
|
+
});
|
|
84
93
|
const proxyModelValue = computed({
|
|
85
94
|
get: () => {
|
|
86
95
|
var _a;
|
|
@@ -92,23 +101,33 @@ var script = defineComponent({
|
|
|
92
101
|
context.emit('update:modelValue', value);
|
|
93
102
|
}
|
|
94
103
|
});
|
|
95
|
-
const invalid = computed(() => !!props.error);
|
|
96
|
-
const readonly = computed(() => context.attrs.readonly);
|
|
97
104
|
const currentLength = computed(() => {
|
|
98
105
|
var _a, _b;
|
|
99
106
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
100
107
|
});
|
|
101
|
-
const maxLength = computed(() =>
|
|
108
|
+
const maxLength = computed(() => controlAttributes.maxlength);
|
|
109
|
+
const invalid = computed(() => !!props.error);
|
|
110
|
+
// Methods
|
|
111
|
+
function focus() {
|
|
112
|
+
var _a;
|
|
113
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
114
|
+
}
|
|
115
|
+
function blur() {
|
|
116
|
+
var _a;
|
|
117
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
118
|
+
}
|
|
102
119
|
return {
|
|
103
120
|
root,
|
|
121
|
+
control,
|
|
104
122
|
rootStyles,
|
|
105
123
|
controlStyles,
|
|
106
|
-
|
|
124
|
+
controlAttributes,
|
|
107
125
|
proxyModelValue,
|
|
108
|
-
invalid,
|
|
109
|
-
readonly,
|
|
110
126
|
currentLength,
|
|
111
|
-
maxLength
|
|
127
|
+
maxLength,
|
|
128
|
+
invalid,
|
|
129
|
+
focus,
|
|
130
|
+
blur
|
|
112
131
|
};
|
|
113
132
|
}
|
|
114
133
|
});
|
|
@@ -8,18 +8,18 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
8
8
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-8c44986c.js';
|
|
9
9
|
export { s as OrCard } from '../OrCard.vue_vue_type_script_lang-90ba001b.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
|
|
11
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-
|
|
11
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-a0f29a55.js';
|
|
12
12
|
export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-165de137.js';
|
|
13
13
|
export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-ad286afc.js';
|
|
14
14
|
export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-d8a66818.js';
|
|
15
|
-
export { s as OrCheckboxV3 } from '../OrCheckbox.vue_vue_type_script_lang-
|
|
15
|
+
export { s as OrCheckboxV3 } from '../OrCheckbox.vue_vue_type_script_lang-2024ec32.js';
|
|
16
16
|
export { s as OrChip } from '../OrChip-5d502431.js';
|
|
17
17
|
export { s as OrChips } from '../OrChips.vue_vue_type_script_lang-69917e34.js';
|
|
18
18
|
export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script_lang-c55de81d.js';
|
|
19
19
|
export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
|
|
20
20
|
export { s 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.vue_vue_type_script_lang-4141378d.js';
|
|
21
21
|
export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
|
|
22
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-
|
|
22
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-7d9d3810.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
|
|
24
24
|
export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
|
|
25
25
|
export { s as OrErrorTagV3 } from '../OrErrorTag.vue_vue_type_script_lang-4828c387.js';
|
|
@@ -34,11 +34,11 @@ export { s as OrIcon, O as OrIconColors, a as OrIconType } from '../OrIcon.vue_v
|
|
|
34
34
|
export { I as IconButtonColor, s as OrIconButtonV3 } from '../OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
35
35
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from '../OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
36
36
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from '../OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
|
|
37
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput.vue_vue_type_script_lang-
|
|
37
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput.vue_vue_type_script_lang-40f0073f.js';
|
|
38
38
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit.vue_vue_type_script_lang-da6887aa.js';
|
|
39
|
-
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea.vue_vue_type_script_lang-
|
|
39
|
+
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea.vue_vue_type_script_lang-2817edd5.js';
|
|
40
40
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
41
|
-
export { I as InputType, s as OrInputV3 } from '../OrInput.vue_vue_type_script_lang-
|
|
41
|
+
export { I as InputType, s as OrInputV3 } from '../OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
42
42
|
export { a as OrNumberInput, b as OrPassword, s as OrTextarea } from '../OrPassword.vue_vue_type_script_lang-13bc5b00.js';
|
|
43
43
|
export { s as OrInput } from '../OrInput-7d4b571a.js';
|
|
44
44
|
export { s as OrSearch } from '../OrSearch.vue_vue_type_script_lang-16fbccc0.js';
|
|
@@ -59,36 +59,36 @@ export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotificati
|
|
|
59
59
|
export { s as OrOverflowMenu } from '../OrOverflowMenu.vue_vue_type_script_lang-0397533d.js';
|
|
60
60
|
export { s as OrOverlay } from '../OrOverlay.vue_vue_type_script_lang-b9bf5e50.js';
|
|
61
61
|
export { s as OrOverlayV3 } from '../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
62
|
-
export { s as OrPaginationV3 } from '../OrPagination.vue_vue_type_script_lang-
|
|
62
|
+
export { s as OrPaginationV3 } from '../OrPagination.vue_vue_type_script_lang-0d9daaa7.js';
|
|
63
63
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '../OrProgress.vue_vue_type_script_lang-3f9ec654.js';
|
|
64
64
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress.vue_vue_type_script_lang-a73c0acf.js';
|
|
65
65
|
export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
|
|
66
66
|
export { s as OrRadioGroup } from '../OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js';
|
|
67
|
-
export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-
|
|
68
|
-
export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-
|
|
67
|
+
export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-29e8b856.js';
|
|
68
|
+
export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-480f4b1c.js';
|
|
69
69
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-579406f5.js';
|
|
70
70
|
export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
|
|
71
|
-
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-
|
|
71
|
+
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-7aa8956a.js';
|
|
72
72
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
|
|
73
|
-
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-
|
|
73
|
+
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
|
|
74
74
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js';
|
|
75
75
|
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText.vue_vue_type_script_lang-577a1dc9.js';
|
|
76
76
|
export { s as OrSlider } from '../OrSlider.vue_vue_type_script_lang-d47ff040.js';
|
|
77
77
|
export { s as OrSortHeaderV3 } from '../OrSortHeader.vue_vue_type_script_lang-75115125.js';
|
|
78
78
|
export { s as OrStepper } from '../OrStepper.vue_vue_type_script_lang-7de7c1ad.js';
|
|
79
79
|
export { s as OrSwitch } from '../OrSwitch.vue_vue_type_script_lang-f55d33f4.js';
|
|
80
|
-
export { s as OrSwitchV3 } from '../OrSwitch.vue_vue_type_script_lang-
|
|
80
|
+
export { s as OrSwitchV3 } from '../OrSwitch.vue_vue_type_script_lang-02b4913a.js';
|
|
81
81
|
export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-de7c7063.js';
|
|
82
82
|
export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js';
|
|
83
83
|
export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-134ad9d1.js';
|
|
84
84
|
export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-40e2a6e9.js';
|
|
85
|
-
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-
|
|
85
|
+
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-01188224.js';
|
|
86
86
|
export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-8c526c11.js';
|
|
87
87
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag.vue_vue_type_script_lang-e45c345b.js';
|
|
88
88
|
export { s as OrTeleport } from '../OrTeleportVue3-012351e1.js';
|
|
89
89
|
export { s as OrTeleportV3 } from '../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
|
|
90
90
|
export { s as OrTextV3 } from '../OrText.vue_vue_type_script_lang-d9525d49.js';
|
|
91
|
-
export { s as OrTextareaV3 } from '../OrTextarea.vue_vue_type_script_lang-
|
|
91
|
+
export { s as OrTextareaV3 } from '../OrTextarea.vue_vue_type_script_lang-2fdac7b2.js';
|
|
92
92
|
export { s as OrTextbox, T as TextboxTypes } from '../OrTextbox.vue_vue_type_script_lang-b5c4a93a.js';
|
|
93
93
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-d5b3c109.js';
|
|
94
94
|
export { s as OrToast, a as OrToastContainer } from '../OrToastContainer.vue_vue_type_script_lang-4bb702ce.js';
|
|
@@ -113,6 +113,7 @@ import '../OrButton-2b27c1fd.js';
|
|
|
113
113
|
import '../OrMenu-f26e8e55.js';
|
|
114
114
|
import '../OrMenuItem-4feaba6c.js';
|
|
115
115
|
import '../OrLabel-c6873e79.js';
|
|
116
|
+
import '../useIdAttribute-b2e42f31.js';
|
|
116
117
|
import '../OrLabel-e412c532.js';
|
|
117
118
|
import '../OrError-b43ebad8.js';
|
|
118
119
|
import '../OrModal-868160ef.js';
|
|
@@ -122,11 +123,12 @@ import '../dom-d21d0a92.js';
|
|
|
122
123
|
import '../OrFloating-b6672a37.js';
|
|
123
124
|
import '../index-01519e46.js';
|
|
124
125
|
import '../OrButton-ec723bb7.js';
|
|
125
|
-
import '../OrInput-
|
|
126
|
+
import '../OrInput-e325a104.js';
|
|
126
127
|
import '../OrCollapse-63e83681.js';
|
|
127
128
|
import '../floating-ui.dom.esm-83eba816.js';
|
|
128
129
|
import '../OrHint-9592499e.js';
|
|
129
130
|
import '../OrInlineInputBox-9d68ded1.js';
|
|
131
|
+
import '../useValidationAttributes-5428d8fa.js';
|
|
130
132
|
import '../OrInputBox-eb54d73d.js';
|
|
131
133
|
import '../useToggle-09b6cb90.js';
|
|
132
134
|
import '../v4-cf8987a3.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-
|
|
1
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-a0f29a55.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '../../OrIconButton-cd62526d.js';
|
|
4
4
|
import '../../OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
@@ -23,9 +23,9 @@ import '../../OrMenu-f26e8e55.js';
|
|
|
23
23
|
import '../../OrMenu.vue_vue_type_script_lang-2446a69a.js';
|
|
24
24
|
import '../../OrMenuItem-4feaba6c.js';
|
|
25
25
|
import '../../OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
26
|
-
import '../../OrSearch.vue_vue_type_script_lang-
|
|
27
|
-
import '../../OrInput-
|
|
28
|
-
import '../../OrInput.vue_vue_type_script_lang-
|
|
26
|
+
import '../../OrSearch.vue_vue_type_script_lang-480f4b1c.js';
|
|
27
|
+
import '../../OrInput-e325a104.js';
|
|
28
|
+
import '../../OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
29
29
|
import '../../OrHint-9592499e.js';
|
|
30
30
|
import '../../OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
31
31
|
import '../../OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
@@ -33,4 +33,6 @@ import '../../OrInputBox-eb54d73d.js';
|
|
|
33
33
|
import '../../OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
34
34
|
import '../../OrLabel-c6873e79.js';
|
|
35
35
|
import '../../OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
36
|
+
import '../../useIdAttribute-b2e42f31.js';
|
|
37
|
+
import '../../useValidationAttributes-5428d8fa.js';
|
|
36
38
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -2,10 +2,18 @@ import { PropType } from 'vue-demi';
|
|
|
2
2
|
import { LabelVariant } from '../or-label-v3';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
5
6
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
7
|
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
-
|
|
8
|
+
controlAttributes: {
|
|
9
|
+
readonly: boolean | undefined;
|
|
10
|
+
disabled: boolean | undefined;
|
|
11
|
+
'force-state': string | undefined;
|
|
12
|
+
id: string | undefined;
|
|
13
|
+
};
|
|
8
14
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<boolean | string[]>;
|
|
15
|
+
focus: () => void;
|
|
16
|
+
blur: () => void;
|
|
9
17
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
10
18
|
modelValue: {
|
|
11
19
|
type: PropType<boolean | string[]>;
|
|
@@ -85,10 +93,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
85
93
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
86
94
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
87
95
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
96
|
+
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
88
97
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
89
98
|
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
90
|
-
|
|
99
|
+
controlAttributes: {
|
|
100
|
+
readonly: boolean | undefined;
|
|
101
|
+
disabled: boolean | undefined;
|
|
102
|
+
'force-state': string | undefined;
|
|
103
|
+
id: string | undefined;
|
|
104
|
+
};
|
|
91
105
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<boolean | string[]>;
|
|
106
|
+
focus: () => void;
|
|
107
|
+
blur: () => void;
|
|
92
108
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
93
109
|
modelValue: boolean | string[];
|
|
94
110
|
value: boolean | string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { s as OrCheckboxV3 } from '../../OrCheckbox.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrCheckboxV3 } from '../../OrCheckbox.vue_vue_type_script_lang-2024ec32.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '../../OrLabel-c6873e79.js';
|
|
4
4
|
import '../../OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
5
5
|
import '../../useClassAttribute-00888f78.js';
|
|
6
|
+
import '../../useIdAttribute-b2e42f31.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm.vue_vue_type_script_lang-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm.vue_vue_type_script_lang-7d9d3810.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../index-01519e46.js';
|
|
@@ -11,8 +11,8 @@ import '../../OrButton-2b27c1fd.js';
|
|
|
11
11
|
import '../../OrButton.vue_vue_type_script_lang-8c44986c.js';
|
|
12
12
|
import '../../OrLoader-c4bbef2f.js';
|
|
13
13
|
import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
|
|
14
|
-
import '../../OrInput-
|
|
15
|
-
import '../../OrInput.vue_vue_type_script_lang-
|
|
14
|
+
import '../../OrInput-e325a104.js';
|
|
15
|
+
import '../../OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
16
16
|
import '../../OrHint-9592499e.js';
|
|
17
17
|
import '../../OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
18
18
|
import '../../OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
@@ -29,4 +29,6 @@ import '../../OrInputBox-eb54d73d.js';
|
|
|
29
29
|
import '../../OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
30
30
|
import '../../OrLabel-c6873e79.js';
|
|
31
31
|
import '../../OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
32
|
+
import '../../useIdAttribute-b2e42f31.js';
|
|
33
|
+
import '../../useValidationAttributes-5428d8fa.js';
|
|
32
34
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -2,18 +2,33 @@ import { PropType } from 'vue-demi';
|
|
|
2
2
|
import { InlineInputSize, InlineInputType } from './props';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
5
6
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
7
|
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
8
|
actionStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
-
|
|
9
|
+
controlAttributes: {
|
|
10
|
+
required: boolean | undefined;
|
|
11
|
+
minlength: number | undefined;
|
|
12
|
+
maxlength: number | undefined;
|
|
13
|
+
pattern: string | undefined;
|
|
14
|
+
min: number | undefined;
|
|
15
|
+
max: number | undefined;
|
|
16
|
+
step: number | undefined;
|
|
17
|
+
readonly: boolean | undefined;
|
|
18
|
+
disabled: boolean | undefined;
|
|
19
|
+
'force-state': string | undefined;
|
|
20
|
+
id: string | undefined;
|
|
21
|
+
};
|
|
9
22
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number>;
|
|
10
23
|
draftModelValue: import("@vue/composition-api").Ref<string | number>;
|
|
11
|
-
activated: import("@vue/composition-api").Ref<boolean>;
|
|
12
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
13
24
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
14
25
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
26
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
27
|
+
activated: import("@vue/composition-api").Ref<boolean>;
|
|
15
28
|
onFocus: (event: Event) => void;
|
|
16
29
|
onBlur: (event: Event) => void;
|
|
30
|
+
focus: () => void;
|
|
31
|
+
blur: () => void;
|
|
17
32
|
apply: () => void;
|
|
18
33
|
reset: () => void;
|
|
19
34
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -95,18 +110,33 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
95
110
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
96
111
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
97
112
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
113
|
+
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
98
114
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
99
115
|
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
100
116
|
actionStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
101
|
-
|
|
117
|
+
controlAttributes: {
|
|
118
|
+
required: boolean | undefined;
|
|
119
|
+
minlength: number | undefined;
|
|
120
|
+
maxlength: number | undefined;
|
|
121
|
+
pattern: string | undefined;
|
|
122
|
+
min: number | undefined;
|
|
123
|
+
max: number | undefined;
|
|
124
|
+
step: number | undefined;
|
|
125
|
+
readonly: boolean | undefined;
|
|
126
|
+
disabled: boolean | undefined;
|
|
127
|
+
'force-state': string | undefined;
|
|
128
|
+
id: string | undefined;
|
|
129
|
+
};
|
|
102
130
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number>;
|
|
103
131
|
draftModelValue: import("@vue/composition-api").Ref<string | number>;
|
|
104
|
-
activated: import("@vue/composition-api").Ref<boolean>;
|
|
105
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
106
132
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
107
133
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
134
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
135
|
+
activated: import("@vue/composition-api").Ref<boolean>;
|
|
108
136
|
onFocus: (event: Event) => void;
|
|
109
137
|
onBlur: (event: Event) => void;
|
|
138
|
+
focus: () => void;
|
|
139
|
+
blur: () => void;
|
|
110
140
|
apply: () => void;
|
|
111
141
|
reset: () => void;
|
|
112
142
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from '../../OrInlineInput.vue_vue_type_script_lang-
|
|
1
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from '../../OrInlineInput.vue_vue_type_script_lang-40f0073f.js';
|
|
2
2
|
export { I as InlineInputSize } from '../../OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '../../OrHint-9592499e.js';
|
|
@@ -20,3 +20,5 @@ import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
|
|
|
20
20
|
import '../../useElevation-c8d5d3ba.js';
|
|
21
21
|
import '../../useResponsive-9d397e2a.js';
|
|
22
22
|
import '../../OrInlineInputBox-9d68ded1.js';
|
|
23
|
+
import '../../useIdAttribute-b2e42f31.js';
|
|
24
|
+
import '../../useValidationAttributes-5428d8fa.js';
|