@ironsource/shared-ui 2.1.7-rc.9 → 2.1.7-test.10
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/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/README.md +1 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
- package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +94 -71
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
- package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
- package/components/dropdown/v4/index.d.ts +451 -82
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +129 -89
- package/components/sortableList/index.d.ts +88 -2
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +6 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +131 -122
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
- package/components/table/v4/index.d.ts +92 -75
- package/components/table-cells/common/Editable.common.js +37 -26
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +1694 -674
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-706b324e]{position:sticky}.table-container[data-v-706b324e]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-706b324e]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-706b324e]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-706b324e]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-706b324e]{width:13.75rem}.table-header.isStickyHeader[data-v-706b324e]{z-index:calc(var(--6e46e9f4) + 3);top:0}.table-head-container[data-v-706b324e]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-706b324e]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-706b324e]{display:inline-table}.table-header-actions[data-v-706b324e]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-706b324e]{position:relative}.table-row.loading[data-v-706b324e]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-706b324e]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-706b324e]{border-bottom:none}.expanded-row[data-v-706b324e]{grid-column:var(--bd8b5530);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-706b324e]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-706b324e]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-706b324e],table th[data-v-706b324e]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-706b324e]:first-of-type,table th[data-v-706b324e]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-706b324e]:last-of-type,table th[data-v-706b324e]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-706b324e],table th.expand-toggle-cell[data-v-706b324e]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-706b324e]{border-bottom:none;z-index:calc(var(--6e46e9f4) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-706b324e]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--03c6ae61)}table>thead>tr>th[data-v-706b324e]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-706b324e]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-706b324e]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-706b324e]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-706b324e]{cursor:pointer}table>thead.sticky[data-v-706b324e]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-706b324e]{z-index:calc(var(--6e46e9f4) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-706b324e]{display:block}table>tbody>*>tr[data-v-706b324e]{background-color:var(--background-default);min-height:var(--1c8cc6ae);height:auto;display:grid;align-items:center;grid-template-columns:var(--03c6ae61)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-706b324e]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-706b324e],table>tbody>*>tr.activeMenu>td[data-v-706b324e]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-706b324e]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--1c8cc6ae);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-706b324e]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-706b324e]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-706b324e]{justify-content:flex-end;text-align:right}.section-container[data-v-706b324e]{left:0}.sections[data-v-706b324e]{display:flex}.section[data-v-706b324e]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-706b324e]{width:100%}.empty-state[data-v-706b324e]{min-height:250px}.floating-row[data-v-706b324e]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--6e46e9f4) + 1)}.floating-row *[data-v-706b324e-s]{pointer-events:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.default-dropdown-wrapper[data-v-98819e5a]{position:relative}.dropdown-trigger[data-v-98819e5a]{width:100%;padding:.3125rem .4375rem;display:flex;column-gap:.5rem;max-width:100%;box-sizing:border-box;border-radius:var(--border-radius-md);border:1px solid var(--action-outlined-border);background:var(--default-main);cursor:pointer;user-select:none;position:relative}.dropdown-trigger[data-v-98819e5a]:hover{border:1px solid var(--action-active);background:var(--action-hover)}.dropdown-trigger.small[data-v-98819e5a]{padding:.1875rem .4375rem}.dropdown-trigger.large[data-v-98819e5a]{padding:.5625rem .4375rem}.dropdown-trigger.disabled[data-v-98819e5a]{border:1px solid var(--action-outlined-border, #bbb);background:var(--action-disabled-background, #f1f1f1);cursor:not-allowed}.dropdown-trigger.disabled .displayed-value[data-v-98819e5a],.dropdown-trigger.disabled .caret-down[data-v-98819e5a]{color:var(--text-disabled)}.dropdown-trigger.open[data-v-98819e5a]{padding:.25rem .375rem;border:2px solid var(--primary-main)}.dropdown-trigger.open.small[data-v-98819e5a]{padding:.125rem .375rem}.dropdown-trigger.open.large[data-v-98819e5a]{padding:.5rem .375rem}.dropdown-trigger.state-error[data-v-98819e5a],.dropdown-trigger.state-success[data-v-98819e5a],.dropdown-trigger.state-warning[data-v-98819e5a]{padding:4px 6px}.dropdown-trigger.state-error.small[data-v-98819e5a],.dropdown-trigger.state-success.small[data-v-98819e5a],.dropdown-trigger.state-warning.small[data-v-98819e5a]{padding:.1875rem .4375rem}.dropdown-trigger.state-error.large[data-v-98819e5a],.dropdown-trigger.state-success.large[data-v-98819e5a],.dropdown-trigger.state-warning.large[data-v-98819e5a]{padding:.5625rem .4375rem}.dropdown-trigger.state-error[data-v-98819e5a]{border:2px solid var(--error-main)}.dropdown-trigger.state-success[data-v-98819e5a]{border:2px solid var(--success-main)}.dropdown-trigger.state-warning[data-v-98819e5a]{border:2px solid var(--warning-dark)}.dropdown-trigger .caret-down[data-v-98819e5a]{color:var(--action-active)}.content[data-v-98819e5a]{width:calc(100% - 28px);display:flex;gap:.25rem;align-items:center;color:var(--text-primary)}.content .displayed-value[data-v-98819e5a]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content .image[data-v-98819e5a]{width:20px;height:20px;flex:none}.content .image img[data-v-98819e5a]{border-radius:4px;width:100%;height:100%}.content .start-icon[data-v-98819e5a]{display:flex;color:var(--action-active)}.content .status-dot[data-v-98819e5a]{padding-right:.25rem}.content .status-dot>div[data-v-98819e5a]{position:relative;top:-1px}.dropdown-field-label[data-v-98819e5a]{color:var(--text-primary)}.dropdown-field-help-text[data-v-98819e5a]{margin-top:4px;position:absolute}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-00ccab6b],.v-leave-active[data-v-00ccab6b]{transition:opacity .25s ease}ol[data-v-00ccab6b],ul[data-v-00ccab6b],menu[data-v-00ccab6b]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-00ccab6b],.dropdown.full-width .button__container[data-v-00ccab6b]{width:100%}.dropdown-list-wrapper[data-v-00ccab6b]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-00ccab6b]{padding:.5rem}.list-container--multi[data-v-00ccab6b]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-00ccab6b]{padding-bottom:.25rem}.inline-search .list-container[data-v-00ccab6b]{padding-top:0}.no-result-container[data-v-00ccab6b]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-00ccab6b]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-00ccab6b]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-00ccab6b]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.image-slot[data-v-00ccab6b]{margin-right:.5rem}.actions-wrapper[data-v-00ccab6b]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-00ccab6b]{margin-left:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.editable[data-v-e0c047b4]{position:relative;left:calc(var(--spacing-100) * -1);display:flex;align-items:center}.editable-wrapper[data-v-e0c047b4]{display:flex;flex:1 1 auto}.editable-wrapper[data-v-e0c047b4]:hover{cursor:text;background:var(--default-main)}.editable-content[data-v-e0c047b4]{padding:0 var(--spacing-100);height:28px;display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:var(--border-radius-md)}.caret-icon[data-v-e0c047b4]{display:none;color:var(--action-active)}.table-row:hover .editable-wrapper[data-v-e0c047b4]{cursor:text;width:100%}.table-row:hover .editable-content[data-v-e0c047b4]{outline:1px solid var(--action-outlined-border);outline-offset:-1px}.table-row:hover .caret-icon[data-v-e0c047b4]{display:flex}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.icon[data-v-dc433d48]{user-select:none;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content}.icon .icon-wrapper[data-v-dc433d48]{width:var(--3d423be4);height:var(--513646c9);color:var(--ad86ac0c)}.icon .icon-wrapper[data-v-dc433d48] svg{width:100%;height:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.multi-table-container[data-v-82ba0e12]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-82ba0e12]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-82ba0e12]{position:sticky;top:0;z-index:calc(var(--5d3fa26e) + 3)}.multi-table-container[data-v-82ba0e12] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-82ba0e12] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-82ba0e12] thead.sticky{top:62px}.multi-table-container .empty-state[data-v-82ba0e12]{min-height:250px}.multi-table-container .table-header-right[data-v-82ba0e12]{align-items:center;display:flex;height:100%}.multi-table-container .table-header-right .table-header-actions[data-v-82ba0e12]{align-items:center;display:flex;margin-left:var(--spacing-100)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-77509f61]{color:#41454d}.item-container[data-v-77509f61]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-77509f61]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-77509f61]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-77509f61],.item-container[data-v-77509f61]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-77509f61]{background-color:var(--action-selected)}.subtitle[data-v-77509f61]{color:#7b838c;line-height:1rem}.clear-button[data-v-77509f61]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-77509f61]:hover{color:#3083ff}.item[data-v-77509f61]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-77509f61],.item--multi[data-v-77509f61]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-77509f61]{width:20px;height:20px;flex:none}.item .image img[data-v-77509f61]{width:20px;height:20px;border-radius:4px}.item .start-icon[data-v-77509f61],.item .end-icon[data-v-77509f61]{display:flex;color:var(--action-active)}.item .option-text[data-v-77509f61]{line-height:1.1875rem}.text-container[data-v-77509f61]{width:100%;text-overflow:ellipsis;overflow:hidden}.tooltip-option[data-v-77509f61]{display:block}.tooltip-option[data-v-77509f61] .container{width:100%}.app-trigger--icon[data-v-77509f61]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-77509f61]{transform:rotate(0)}.option-content-horizontal[data-v-77509f61]{display:flex;justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-77509f61]{display:flex;flex-direction:column}.option-text .main-text[data-v-77509f61]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .caption-text[data-v-77509f61]{color:var(--text-secondary)}
|
package/README.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.list-search[data-v-e9cd63b8]{margin-bottom:var(--spacing-100)}.sortable-list[data-v-e9cd63b8],.locked-list[data-v-e9cd63b8]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--spacing-75);color:var(--text-primary)}.locked-list[data-v-e9cd63b8]{margin-top:var(--spacing-75)}.force-grabbing-cursor *[data-v-e9cd63b8]{cursor:move!important;cursor:-webkit-grabbing!important;cursor:-moz-grabbing!important;cursor:grabbing!important}.empty-state-title[data-v-e9cd63b8]{color:var(--text-disabled);padding:0 8px;width:100%}.loader-bars[data-v-e9cd63b8]{display:flex;flex-direction:column;gap:6px}.loader-bars .loader-bar[data-v-e9cd63b8]{height:40px;width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tabs-list[data-v-f9433b11]{position:relative;padding:0;margin:0}.tabs-list--page[data-v-f9433b11]{border-bottom:1px solid var(--common-divider);box-sizing:border-box}.tabs-list--page .tab-item[data-v-f9433b11]{padding:0;margin-right:var(--spacing-200);min-height:calc(var(--spacing-600) - 1px)}.tabs-list--page .tabs-border-line[data-v-f9433b11]{margin-top:-1px}.tabs-border-line[data-v-f9433b11]{left:var(--167b065e);width:var(--8cfadb62);border-bottom:2px solid var(--primary-main);transition:left .2s ease-in-out,width .2s;position:absolute;margin-top:-2px}.tab-item[data-v-f9433b11]{display:inline-flex;flex-direction:row;justify-content:center;align-items:center;color:var(--action-active);gap:var(--spacing-100);vertical-align:middle;padding:0 var(--spacing-300);min-height:var(--spacing-600)}.tab-item[data-v-f9433b11]:hover{cursor:pointer;color:var(--text-primary)}.tab-item--active[data-v-f9433b11]{color:var(--text-primary)}.tab-item--disabled[data-v-f9433b11]{color:var(--action-disabled);cursor:not-allowed;pointer-events:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-4d9bf5b2],.font-chart-2[data-v-4d9bf5b2],.font-chart-1[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-4d9bf5b2],.font-table-label[data-v-4d9bf5b2],.font-button[data-v-4d9bf5b2],.font-heading-6[data-v-4d9bf5b2],.font-heading-5[data-v-4d9bf5b2],.font-heading-4[data-v-4d9bf5b2],.font-heading-3[data-v-4d9bf5b2],.font-heading-2[data-v-4d9bf5b2],.font-heading-1[data-v-4d9bf5b2],.font-title[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-4d9bf5b2],.font-input-label[data-v-4d9bf5b2],.font-overline[data-v-4d9bf5b2],.font-subtitle-2[data-v-4d9bf5b2],.font-subtitle-1[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-4d9bf5b2],.font-body-2[data-v-4d9bf5b2],.input-container .input[data-v-4d9bf5b2],.font-body-1[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-4d9bf5b2]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-4d9bf5b2]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-4d9bf5b2]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-4d9bf5b2]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-4d9bf5b2]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-4d9bf5b2]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-4d9bf5b2]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.input-container .input[data-v-4d9bf5b2],.font-body-1[data-v-4d9bf5b2]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-4d9bf5b2]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-4d9bf5b2]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-4d9bf5b2]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-4d9bf5b2]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-4d9bf5b2]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-4d9bf5b2]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-4d9bf5b2],.font-tab-label2[data-v-4d9bf5b2]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-4d9bf5b2]{font-size:.75rem;line-height:1rem}h1[data-v-4d9bf5b2],h2[data-v-4d9bf5b2],h3[data-v-4d9bf5b2],h4[data-v-4d9bf5b2],h5[data-v-4d9bf5b2],h6[data-v-4d9bf5b2]{margin:0}.disabled .input[data-v-4d9bf5b2]::placeholder{color:var(--text-disabled)}.disabled .input-container[data-v-4d9bf5b2]{cursor:no-drop;background-color:var(--action-disabled-background)}.disabled .input-container[data-v-4d9bf5b2]:hover{outline:1px solid var(--action-outlined-border);background-color:var(--action-disabled-background)}.input-size-small[data-v-4d9bf5b2]{height:28px}.input-size-medium[data-v-4d9bf5b2]{height:32px}.input-size-large[data-v-4d9bf5b2]{height:40px}.input-with-label-container[data-v-4d9bf5b2]{display:flex;flex-direction:column}.input-container[data-v-4d9bf5b2]{flex-grow:2;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);background:var(--default-main);outline:1px solid var(--action-outlined-border);outline-offset:-1px;padding:0 var(--spacing-100);position:relative;gap:var(--spacing-50)}.input-container[data-v-4d9bf5b2]:hover{outline:1px solid var(--action-active);background-color:var(--action-hover)}.input-container .input[data-v-4d9bf5b2]{padding:0;width:100%;border:none;background:transparent;color:var(--text-primary);line-height:normal}.input-container .input[data-v-4d9bf5b2]:focus{outline:none}.input-container .input[data-v-4d9bf5b2]:disabled{color:var(--text-disabled);cursor:no-drop}.input-container .input.view-only[data-v-4d9bf5b2]{color:var(--text-disabled)}.input-container .input[type=number][data-v-4d9bf5b2]::-webkit-inner-spin-button{opacity:.7;transform:scale(1.1)}.input-container .hide-arrows.input[type=number][data-v-4d9bf5b2]::-webkit-inner-spin-button,.input-container .hide-arrows.input[type=number][data-v-4d9bf5b2]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.input-container .input[type=password][data-v-4d9bf5b2]{letter-spacing:4px}.input-container[data-v-4d9bf5b2] ::placeholder{color:var(--text-secondary);letter-spacing:normal}.input-container .label-inside[data-v-4d9bf5b2]::placeholder{color:var(--text-primary)}.input-container .icon-container[data-v-4d9bf5b2]{display:flex;align-items:center;color:var(--text-secondary)}.input-container .icon-before[data-v-4d9bf5b2]{padding-right:var(--spacing-50)}.input-container .icon-after[data-v-4d9bf5b2]{padding-left:var(--spacing-50)}.prefix-text[data-v-4d9bf5b2]{color:var(--text-secondary, #646464);margin-right:var(--spacing-50)}.suffix-text[data-v-4d9bf5b2]{color:var(--text-secondary, #646464)}.focused[data-v-4d9bf5b2],.focused[data-v-4d9bf5b2]:hover{outline:2px solid var(--primary-main);background-color:var(--action-hover)}.error-icon.error-icon[data-v-4d9bf5b2],.error-icon.error-icon[data-v-4d9bf5b2]:hover{color:var(--error-main)}.label-direction-left[data-v-4d9bf5b2]{flex-direction:row;align-items:center;justify-content:space-between}.apply-button[data-v-4d9bf5b2]{cursor:pointer;color:var(--default-contrast-text);width:var(--spacing-250);height:var(--spacing-250)}.inline-error[data-v-4d9bf5b2]{cursor:pointer;color:var(--error-main);display:flex;justify-content:center;align-items:center}.footer[data-v-4d9bf5b2]{display:flex;justify-content:flex-end;margin-top:var(--spacing-50)}.footer.footer-absolute[data-v-4d9bf5b2]{position:absolute;bottom:calc(0px - var(--spacing-300))}.password-visibility-toggle[data-v-4d9bf5b2]{cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary)}.variant-success .input-container[data-v-4d9bf5b2],.variant-success .input-container[data-v-4d9bf5b2]:hover{outline:2px solid var(--success-dark)}.variant-error .input-container[data-v-4d9bf5b2],.variant-error .input-container[data-v-4d9bf5b2]:hover{outline:2px solid var(--error-main)}.variant-warning .input-container[data-v-4d9bf5b2],.variant-warning .input-container[data-v-4d9bf5b2]:hover{outline:2px solid var(--warning-dark)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.theme--wrapper-container[data-v-66bd448a]{width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.child-options[data-v-dbd80d49]{padding-left:1rem}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "./ThemeWrapper.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ThemeWrapper.
|
|
3
|
+
// import "../../ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css"; //*');
|
|
4
4
|
// import "../../ThemeWrapper.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
5
|
+
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-66bd448a"]]);
|
|
6
6
|
export {
|
|
7
7
|
t as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ThemeWrapper.
|
|
1
|
+
import "../../ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css"; import "../../ThemeWrapper.vue_vue_type_style_index_1_lang.css"; import { defineComponent as a, computed as m, openBlock as l, createElementBlock as p, normalizeClass as c, unref as u, renderSlot as h } from "vue";
|
|
2
2
|
import { useThemeStore as i } from "./ThemeStrore.js";
|
|
3
3
|
const v = /* @__PURE__ */ a({
|
|
4
4
|
__name: "ThemeWrapper",
|
|
@@ -6,12 +6,12 @@ const v = /* @__PURE__ */ a({
|
|
|
6
6
|
version: { default: "v4" }
|
|
7
7
|
},
|
|
8
8
|
setup(o) {
|
|
9
|
-
const
|
|
9
|
+
const r = o, s = m(() => {
|
|
10
10
|
const e = [], { theme: t } = i(), n = t.value === "light" ? "light-theme" : "dark-theme";
|
|
11
|
-
return e.push(n), e.push(
|
|
11
|
+
return e.push(n), e.push(r.version), e.join("-");
|
|
12
12
|
});
|
|
13
|
-
return (e, t) => (
|
|
14
|
-
class:
|
|
13
|
+
return (e, t) => (l(), p("div", {
|
|
14
|
+
class: c(["theme--wrapper-container", u(s)])
|
|
15
15
|
}, [
|
|
16
16
|
h(e.$slots, "default", {}, void 0, !0)
|
|
17
17
|
], 2));
|
|
@@ -38,8 +38,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
38
|
name: string;
|
|
39
39
|
type: 'small' | 'normal';
|
|
40
40
|
image: string;
|
|
41
|
-
testId: string;
|
|
42
41
|
platform: 'android' | 'ios';
|
|
42
|
+
testId: string;
|
|
43
43
|
appKey: string;
|
|
44
44
|
showAbIcon: boolean;
|
|
45
45
|
}>;
|
|
@@ -14,13 +14,13 @@ declare const AppHeaderTypes: () => import("vue").DefineComponent<{
|
|
|
14
14
|
required: true;
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
type: import("vue").PropType<
|
|
17
|
+
platform: {
|
|
18
|
+
type: import("vue").PropType<"android" | "ios">;
|
|
19
19
|
required: true;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
type: import("vue").PropType<
|
|
22
|
+
testId: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
24
|
required: true;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
@@ -50,13 +50,13 @@ declare const AppHeaderTypes: () => import("vue").DefineComponent<{
|
|
|
50
50
|
required: true;
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
type: import("vue").PropType<
|
|
53
|
+
platform: {
|
|
54
|
+
type: import("vue").PropType<"android" | "ios">;
|
|
55
55
|
required: true;
|
|
56
56
|
default: string;
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
type: import("vue").PropType<
|
|
58
|
+
testId: {
|
|
59
|
+
type: import("vue").PropType<string>;
|
|
60
60
|
required: true;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
@@ -75,8 +75,8 @@ declare const AppHeaderTypes: () => import("vue").DefineComponent<{
|
|
|
75
75
|
name: string;
|
|
76
76
|
type: "small" | "normal";
|
|
77
77
|
image: string;
|
|
78
|
-
testId: string;
|
|
79
78
|
platform: "android" | "ios";
|
|
79
|
+
testId: string;
|
|
80
80
|
appKey: string;
|
|
81
81
|
showAbIcon: boolean;
|
|
82
82
|
}>[];
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import { useToggle as
|
|
2
|
-
import { ref as n, computed as r, watch as
|
|
1
|
+
import { useToggle as Ie } from "../../../composables/useToggle.js";
|
|
2
|
+
import { inject as xe, ref as n, computed as r, watch as P, useSlots as De, toRaw as A, nextTick as C, provide as Ce, onMounted as Ne } from "vue";
|
|
3
3
|
import { isObjectInArray as W } from "../../../utils/array.js";
|
|
4
|
-
import { objectsEqual as
|
|
5
|
-
import { useClamp as
|
|
6
|
-
import { Mode as
|
|
7
|
-
import { pxToRem as
|
|
8
|
-
import { useEditableContext as
|
|
9
|
-
const
|
|
10
|
-
const Z = (e, t) => l.multi ? W(e, t) :
|
|
4
|
+
import { objectsEqual as Re } from "../../../utils/object.js";
|
|
5
|
+
import { useClamp as Ee, useVirtualList as Me, onClickOutside as Y } from "@vueuse/core";
|
|
6
|
+
import { Mode as T, Type as V, DropdownContext as Ve } from "./DropdownContext.js";
|
|
7
|
+
import { pxToRem as _e } from "../../../utils/style.js";
|
|
8
|
+
import { useEditableContext as ke } from "../../table-cells/common/EditableContext.js";
|
|
9
|
+
const je = (l, b, O) => {
|
|
10
|
+
const Z = xe("isTreeDropdown", !1), F = (e, t) => l.multi ? W(e, t) : A(e) === t;
|
|
11
11
|
let _;
|
|
12
12
|
((e) => {
|
|
13
13
|
e[e.None = 0] = "None", e[e.Next = 1] = "Next", e[e.Previous = -1] = "Previous", e[e.NextPage = 10] = "NextPage", e[e.PrevPage = -10] = "PrevPage";
|
|
14
14
|
})(_ || (_ = {}));
|
|
15
15
|
const a = n(
|
|
16
16
|
l.selected
|
|
17
|
-
), N =
|
|
17
|
+
), N = ke(), u = r({
|
|
18
18
|
get() {
|
|
19
19
|
return N?.value?.value ?? a.value;
|
|
20
20
|
},
|
|
21
21
|
set(e) {
|
|
22
|
-
N.onChange?.(e), N.onClose?.(),
|
|
22
|
+
N.onChange?.(e), N.onClose?.(), b("update:selected", e);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
|
|
25
|
+
P(
|
|
26
26
|
() => l.selected,
|
|
27
27
|
() => {
|
|
28
28
|
a.value = l.selected, v.value = l.selected;
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
const
|
|
31
|
+
const p = De(), w = n(null), g = n(null), k = n(null), R = n(null), H = n(null), I = n(null), ee = n(), B = n(null), L = n(null), U = n(null), le = 8, te = r(() => I.value ? I.value.getBoundingClientRect().height + le + l.distance : 0), c = n([]), x = n(-1), m = n(""), v = n(l.selected || []), q = () => I.value?.focus(), [d, ae, ue] = Ie({
|
|
32
32
|
disabled: l.disabled,
|
|
33
33
|
initialValue: l.defaultOpen
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
P(
|
|
36
36
|
() => l.disabled,
|
|
37
37
|
(e) => {
|
|
38
|
-
e !== void 0 &&
|
|
38
|
+
e !== void 0 && ue(e);
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
const G = (e) => {
|
|
42
|
-
|
|
43
|
-
},
|
|
42
|
+
ne.value = ae(e);
|
|
43
|
+
}, ne = r({
|
|
44
44
|
get() {
|
|
45
45
|
return l.isOpen;
|
|
46
46
|
},
|
|
47
47
|
set(e) {
|
|
48
|
-
|
|
48
|
+
b("update:isOpen", e);
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), ie = r(() => s.value.length - 1), o = Ee(0, 0, ie), K = r(() => u.value ? l.displayValue(u.value) : ""), re = (e) => {
|
|
51
51
|
if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
|
|
52
52
|
return l.placeholder;
|
|
53
53
|
const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
54
54
|
return e.value.length == 1 && l.displayValue ? l.displayValue(e.value[0]) : t;
|
|
55
|
-
},
|
|
55
|
+
}, oe = r(() => {
|
|
56
56
|
if (!l.multi)
|
|
57
57
|
return u.value ? l.displayValue(u.value) : l.placeholder;
|
|
58
58
|
if (Array.isArray(a.value))
|
|
59
|
-
return
|
|
59
|
+
return re(a);
|
|
60
60
|
}), $ = r(() => {
|
|
61
61
|
if (Array.isArray(a.value))
|
|
62
62
|
return a.value.length === s.value.length;
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
const e =
|
|
63
|
+
}), se = r(() => !l.multi || !Array.isArray(a.value) ? !1 : a.value.length > 0 && a.value.length < s.value.length), E = (e) => {
|
|
64
|
+
m.value = e;
|
|
65
|
+
}, ce = r(() => {
|
|
66
|
+
const e = A(v.value), t = {
|
|
67
67
|
selected: [],
|
|
68
68
|
notSelected: []
|
|
69
69
|
};
|
|
70
|
-
return
|
|
70
|
+
return A(l.options).forEach((y) => {
|
|
71
71
|
const f = e.includes(y) ? "selected" : "notSelected";
|
|
72
72
|
t[f].push(y);
|
|
73
73
|
}), [].concat(t.selected, t.notSelected);
|
|
74
74
|
}), s = r(() => {
|
|
75
|
-
const e = Array.isArray(v.value) && l.multi &&
|
|
76
|
-
return l.onSearch ? e.filter((t) => l.onSearch(t,
|
|
77
|
-
}),
|
|
78
|
-
() =>
|
|
75
|
+
const e = Array.isArray(v.value) && l.multi && O.VERSION === 4 && !Z ? ce.value : l.options;
|
|
76
|
+
return l.onSearch ? e.filter((t) => l.onSearch(t, m.value)) : e;
|
|
77
|
+
}), ve = r(() => c.value[0]?.hasSubtitle), j = r(() => i.mode === T.Multi), X = r(
|
|
78
|
+
() => ve.value ? O.MULTILINE_LIST_HEIGHT : O.LIST_HEIGHT
|
|
79
79
|
), {
|
|
80
80
|
list: z,
|
|
81
81
|
containerProps: J,
|
|
82
|
-
wrapperProps:
|
|
82
|
+
wrapperProps: de,
|
|
83
83
|
scrollTo: D
|
|
84
|
-
} =
|
|
85
|
-
itemHeight:
|
|
84
|
+
} = Me(s, {
|
|
85
|
+
itemHeight: X.value,
|
|
86
86
|
overscan: l.disableVirtualScroll ? 1 / 0 : 2
|
|
87
87
|
});
|
|
88
|
-
|
|
88
|
+
P(
|
|
89
89
|
() => l.isOpen,
|
|
90
90
|
(e) => {
|
|
91
91
|
G(e);
|
|
92
92
|
}
|
|
93
|
-
),
|
|
93
|
+
), P([x], async () => {
|
|
94
94
|
await C();
|
|
95
|
-
}),
|
|
95
|
+
}), P(
|
|
96
96
|
[d, o, x],
|
|
97
97
|
async ([e], [t]) => {
|
|
98
98
|
d.value && (await C(), x.value !== -1 && e !== t && setTimeout(() => {
|
|
99
|
-
l.multi &&
|
|
99
|
+
l.multi && O.VERSION === 4 || D(x.value);
|
|
100
100
|
}), o.value && setTimeout(() => {
|
|
101
101
|
D(o.value);
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
|
-
), m
|
|
105
|
-
D(0);
|
|
104
|
+
), P(m, () => {
|
|
105
|
+
b("onsearch", m.value), D(0);
|
|
106
106
|
});
|
|
107
107
|
const h = (e, t = !1) => {
|
|
108
108
|
l.disabled || (G(e), C(() => {
|
|
109
|
-
d.value &&
|
|
109
|
+
d.value && b("opened"), d.value || b("closed"), w.value && t && w.value.focus();
|
|
110
110
|
}));
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
P(d, (e) => {
|
|
113
113
|
if (e) {
|
|
114
|
-
|
|
114
|
+
j.value && Array.isArray(u.value) && (v.value = A(u.value).slice());
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
q();
|
|
118
118
|
});
|
|
119
|
-
const
|
|
119
|
+
const fe = () => {
|
|
120
120
|
if ($.value) {
|
|
121
121
|
a.value = [];
|
|
122
122
|
return;
|
|
@@ -126,16 +126,16 @@ const Ke = (l, A, b) => {
|
|
|
126
126
|
a.value = [];
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
a.value = s.value,
|
|
129
|
+
a.value = s.value, b("selectAll");
|
|
130
130
|
}
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
a.value = [], e && (u.value = [], v.value = []),
|
|
131
|
+
}, ge = () => {
|
|
132
|
+
fe(), O.VERSION !== 4 && (u.value = a.value);
|
|
133
|
+
}, he = (e = !0) => {
|
|
134
|
+
a.value = [], e && (u.value = [], v.value = []), b("clear");
|
|
135
135
|
}, M = (e, t) => {
|
|
136
|
-
if (e =
|
|
136
|
+
if (e = A(e), c.value[t]?.disabled)
|
|
137
137
|
return;
|
|
138
|
-
if (x.value = t, i.mode !==
|
|
138
|
+
if (x.value = t, i.mode !== T.Multi) {
|
|
139
139
|
l.keepOpen || h(!1), i.goToOption(
|
|
140
140
|
0
|
|
141
141
|
/* None */
|
|
@@ -145,17 +145,17 @@ const Ke = (l, A, b) => {
|
|
|
145
145
|
if (!Array.isArray(a.value))
|
|
146
146
|
return;
|
|
147
147
|
g.value?.focus();
|
|
148
|
-
const S =
|
|
148
|
+
const S = A(a.value);
|
|
149
149
|
if (W(S, e)) {
|
|
150
150
|
a.value = S.filter(
|
|
151
|
-
(f) => !
|
|
151
|
+
(f) => !Re(f, e)
|
|
152
152
|
);
|
|
153
153
|
return;
|
|
154
154
|
} else {
|
|
155
155
|
a.value = [...S, e];
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
},
|
|
158
|
+
}, ye = (e) => c.value[e]?.disabled, i = {
|
|
159
159
|
activeIndex: o,
|
|
160
160
|
options: c,
|
|
161
161
|
selectedOption: u,
|
|
@@ -163,9 +163,9 @@ const Ke = (l, A, b) => {
|
|
|
163
163
|
activeOption: R,
|
|
164
164
|
listRef: w,
|
|
165
165
|
clearable: l.clearable,
|
|
166
|
-
type:
|
|
167
|
-
mode: l.multi ?
|
|
168
|
-
query:
|
|
166
|
+
type: p.input ? V.Search : V.Dropdown,
|
|
167
|
+
mode: l.multi ? T.Multi : T.Single,
|
|
168
|
+
query: m,
|
|
169
169
|
selectedValue: K,
|
|
170
170
|
toggle: h,
|
|
171
171
|
disabled: l.disabled,
|
|
@@ -175,7 +175,7 @@ const Ke = (l, A, b) => {
|
|
|
175
175
|
placeholder: l.placeholder,
|
|
176
176
|
select: M,
|
|
177
177
|
clearSelection: () => {
|
|
178
|
-
E(""), u.value = i.mode ===
|
|
178
|
+
E(""), u.value = i.mode === T.Single ? null : [], v.value = i.mode === T.Single ? null : [], g.value && (g.value.value = "");
|
|
179
179
|
},
|
|
180
180
|
search: E,
|
|
181
181
|
goToOption: async (e) => {
|
|
@@ -190,7 +190,7 @@ const Ke = (l, A, b) => {
|
|
|
190
190
|
R.value = s.value[t], o.value = t;
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!
|
|
193
|
+
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!ye(o.value)) {
|
|
194
194
|
R.value = s.value[t], o.value = t;
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
@@ -206,7 +206,7 @@ const Ke = (l, A, b) => {
|
|
|
206
206
|
c.value = c.value.filter((t) => t.id !== e);
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
-
|
|
209
|
+
Ce(Ve, i), Y(
|
|
210
210
|
w,
|
|
211
211
|
() => {
|
|
212
212
|
d.value && Q();
|
|
@@ -222,19 +222,19 @@ const Ke = (l, A, b) => {
|
|
|
222
222
|
]
|
|
223
223
|
}
|
|
224
224
|
);
|
|
225
|
-
const
|
|
225
|
+
const Se = () => {
|
|
226
226
|
g.value && (g.value.value = i.query.value = "");
|
|
227
227
|
};
|
|
228
|
-
|
|
228
|
+
Ne(async () => {
|
|
229
229
|
l.autoFocus && (await C(), setTimeout(() => {
|
|
230
230
|
k.value.focus();
|
|
231
231
|
})), i.goToOption(0);
|
|
232
232
|
});
|
|
233
|
-
const
|
|
234
|
-
u.value = a.value, Array.isArray(u.value) && (v.value =
|
|
233
|
+
const be = () => {
|
|
234
|
+
u.value = a.value, Array.isArray(u.value) && (v.value = A(u.value).slice()), b("apply", u.value), h(!1), Se();
|
|
235
235
|
}, Q = () => {
|
|
236
|
-
|
|
237
|
-
},
|
|
236
|
+
j.value && Array.isArray(v.value) && (u.value = A(v.value).slice()), m.value = "", h(!1);
|
|
237
|
+
}, Oe = (e) => {
|
|
238
238
|
if (!l.disableKeyboardEvents)
|
|
239
239
|
switch (e.key) {
|
|
240
240
|
case "Space":
|
|
@@ -243,7 +243,7 @@ const Ke = (l, A, b) => {
|
|
|
243
243
|
case "ArrowDown":
|
|
244
244
|
h(!0), e.preventDefault();
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, Ae = (e) => {
|
|
247
247
|
if (!l.disableKeyboardEvents)
|
|
248
248
|
switch (e.key) {
|
|
249
249
|
case "ArrowUp": {
|
|
@@ -283,45 +283,45 @@ const Ke = (l, A, b) => {
|
|
|
283
283
|
h(!0);
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
|
-
M(s.value[o.value], o.value), i.mode ===
|
|
286
|
+
M(s.value[o.value], o.value), i.mode === T.Single && !l.keepOpen && h(!1), e.preventDefault();
|
|
287
287
|
break;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
},
|
|
291
|
-
const e = z.value.reduce((
|
|
292
|
-
const
|
|
293
|
-
return
|
|
294
|
-
}, 0), t = l.multi && l.showSelectAll ? 1 : 0, y = e >
|
|
295
|
-
let f = y ?
|
|
296
|
-
return l.noResultsText && f === 0 && (f = f + 1),
|
|
297
|
-
f *
|
|
290
|
+
}, me = r(() => {
|
|
291
|
+
const e = z.value.reduce((Pe, Te) => {
|
|
292
|
+
const we = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Te.data) : 1;
|
|
293
|
+
return Pe + we;
|
|
294
|
+
}, 0), t = l.multi && l.showSelectAll ? 1 : 0, y = e > O.MAX_NUMBER_OF_OPTIONS, S = e + t;
|
|
295
|
+
let f = y ? O.MAX_NUMBER_OF_OPTIONS + 0.1 : S;
|
|
296
|
+
return l.noResultsText && f === 0 && (f = f + 1), _e(
|
|
297
|
+
f * X.value + O.PADDING_PX
|
|
298
298
|
);
|
|
299
299
|
});
|
|
300
300
|
return {
|
|
301
|
-
onKeydown:
|
|
302
|
-
location:
|
|
301
|
+
onKeydown: Ae,
|
|
302
|
+
location: te,
|
|
303
303
|
open: d,
|
|
304
304
|
toggleMenu: h,
|
|
305
|
-
onButtonKeydown:
|
|
306
|
-
displayedValue:
|
|
305
|
+
onButtonKeydown: Oe,
|
|
306
|
+
displayedValue: oe,
|
|
307
307
|
labelRef: H,
|
|
308
|
-
query:
|
|
308
|
+
query: m,
|
|
309
309
|
containerProps: J,
|
|
310
|
-
calculateTableHeight:
|
|
311
|
-
wrapperProps:
|
|
310
|
+
calculateTableHeight: me,
|
|
311
|
+
wrapperProps: de,
|
|
312
312
|
filteredOptions: s,
|
|
313
313
|
allSelected: $,
|
|
314
|
-
isIndeterminate:
|
|
315
|
-
onSelectAll:
|
|
314
|
+
isIndeterminate: se,
|
|
315
|
+
onSelectAll: ge,
|
|
316
316
|
virtualOptions: z,
|
|
317
|
-
isSelected:
|
|
317
|
+
isSelected: F,
|
|
318
318
|
selectedOption: u,
|
|
319
319
|
selectedOptionPrevious: v,
|
|
320
320
|
selectedValue: K,
|
|
321
321
|
onSelect: M,
|
|
322
322
|
activeIndex: o,
|
|
323
323
|
onCancel: Q,
|
|
324
|
-
onApply:
|
|
324
|
+
onApply: be,
|
|
325
325
|
scrollTo: D,
|
|
326
326
|
onClickOutside: Y,
|
|
327
327
|
listRef: w,
|
|
@@ -329,11 +329,11 @@ const Ke = (l, A, b) => {
|
|
|
329
329
|
apply: B,
|
|
330
330
|
cancel: L,
|
|
331
331
|
el: k,
|
|
332
|
-
triggerRef:
|
|
332
|
+
triggerRef: ee,
|
|
333
333
|
clearAll: U,
|
|
334
|
-
onClearAllSelections:
|
|
334
|
+
onClearAllSelections: he
|
|
335
335
|
};
|
|
336
336
|
};
|
|
337
337
|
export {
|
|
338
|
-
|
|
338
|
+
je as dropdownCommon
|
|
339
339
|
};
|
|
@@ -132,6 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
132
132
|
}>, {
|
|
133
133
|
image?(_: {}): any;
|
|
134
134
|
"icon-start"?(_: {}): any;
|
|
135
|
+
"end-icon"?(_: {}): any;
|
|
135
136
|
}>;
|
|
136
137
|
export default _default;
|
|
137
138
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DefaultDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DefaultDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-98819e5a"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|