@ironsource/shared-ui 2.0.0-rc.6 → 2.0.0-rc.7
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/ButtonV4.vue_vue_type_style_index_0_scoped_3fd2281b_lang.css +1 -0
- package/Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_e8324d12_lang.css +1 -0
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_1320b13b_lang.css +1 -0
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_51006ea0_lang.css +1 -0
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_9d2f3413_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +1 -0
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css +1 -0
- package/Label.vue_vue_type_style_index_0_scoped_48e00c04_lang.css +1 -0
- package/Option.vue_vue_type_style_index_0_scoped_3d6ce2fc_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +1 -0
- package/RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css +1 -0
- package/RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css +1 -0
- package/SearchInput.vue_vue_type_style_index_0_scoped_b256f8ef_lang.css +1 -0
- package/Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css +1 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue2.js +3 -3
- package/components/button/common/ButtonSuper.vue.d.ts +6 -6
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v4/ButtonV4.vue.d.ts +11 -6
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +13 -10
- package/components/button/v4/index.d.ts +34 -15
- package/components/checkbox/common/Checkbox.common.d.ts +11 -0
- package/components/checkbox/common/Checkbox.common.js +32 -0
- package/components/checkbox/v3/Checkbox.vue.js +7 -0
- package/components/checkbox/v3/Checkbox.vue2.js +99 -0
- package/components/checkbox/{icons → v3/icons}/checked.vue.js +1 -1
- package/components/checkbox/{icons → v3/icons}/indeterminate.vue.js +1 -1
- package/components/checkbox/{icons → v3/icons}/unchecked.vue.js +1 -1
- package/components/checkbox/v4/CheckboxV4.vue.d.ts +53 -0
- package/components/checkbox/v4/CheckboxV4.vue.js +7 -0
- package/components/checkbox/v4/CheckboxV4.vue2.js +107 -0
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +38 -0
- package/components/checkbox/v4/icons/CheckedState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/CheckedState.vue.js +38 -0
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +40 -0
- package/components/checkbox/v4/icons/IndeterminateState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/IndeterminateState.vue.js +40 -0
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +31 -0
- package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/UncheckedState.vue.js +31 -0
- package/components/checkbox/v4/index.d.ts +152 -0
- package/components/checkbox/v4/index.js +6 -0
- package/components/dropdown/v3/Dropdown.vue.js +2 -2
- package/components/dropdown/v3/Dropdown.vue2.js +3 -3
- package/components/dropdown/v3/Label.vue.js +7 -0
- package/components/dropdown/{common → v3}/Label.vue2.js +2 -2
- package/components/dropdown/v3/Option.vue.js +7 -0
- package/components/dropdown/{common → v3}/Option.vue2.js +3 -3
- package/components/dropdown/{common → v3}/SearchInput.vue.js +2 -2
- package/components/dropdown/{common → v3}/SearchInput.vue2.js +2 -2
- package/components/dropdown/v3/index.d.ts +3 -3
- package/components/dropdown/v3/index.js +3 -3
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue2.js +4 -4
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/v3/FilterSearchInput.vue.d.ts +2 -0
- package/components/filtersPanel/v3/FilterSearchInput.vue.js +7 -0
- package/components/filtersPanel/{FilterSearchInput.vue2.js → v3/FilterSearchInput.vue2.js} +6 -6
- package/components/filtersPanel/v3/FiltersPanel.vue.js +7 -0
- package/components/filtersPanel/{FiltersPanel.vue2.js → v3/FiltersPanel.vue2.js} +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.d.ts +44 -0
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +7 -0
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +23 -0
- package/components/filtersPanel/v4/index.d.ts +101 -0
- package/components/filtersPanel/v4/index.js +6 -0
- package/components/filtersPanel/v4/storyConsts.d.ts +20 -0
- package/components/icon/icons/FiltersSearch.vue.d.ts +2 -0
- package/components/icon/v3/icons/index.d.ts +3 -0
- package/components/icon/v3/icons/index.js +3 -0
- package/components/icon/v3/index.d.ts +3 -0
- package/components/includeExclude/IncludeExclude.vue.js +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeOption.vue2.js +2 -2
- package/components/radioButton/common/radioGroup.common.d.ts +3 -0
- package/components/radioButton/common/radioGroup.common.js +26 -0
- package/components/radioButton/v3/RadioButton.vue.js +7 -0
- package/components/radioButton/v3/RadioButton.vue2.js +79 -0
- package/components/radioButton/v3/RadioGroup.vue.js +7 -0
- package/components/radioButton/v3/RadioGroup.vue2.js +29 -0
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +59 -0
- package/components/radioButton/v4/RadioButtonV4.vue.js +7 -0
- package/components/radioButton/v4/RadioButtonV4.vue2.js +67 -0
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +61 -0
- package/components/radioButton/v4/RadioGroupV4.vue.js +7 -0
- package/components/radioButton/v4/RadioGroupV4.vue2.js +29 -0
- package/components/radioButton/v4/index.d.ts +334 -0
- package/components/radioButton/v4/index.js +8 -0
- package/components/snackbar/common/notify.d.ts +3 -0
- package/components/snackbar/common/notify.js +82 -0
- package/components/snackbar/common/snackbar.common.d.ts +11 -0
- package/components/snackbar/common/snackbar.common.js +51 -0
- package/components/snackbar/v3/Snackbar.vue.js +7 -0
- package/components/snackbar/v3/Snackbar.vue2.js +129 -0
- package/components/snackbar/v3/index.d.ts +3 -0
- package/components/snackbar/v3/index.js +10 -0
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +186 -0
- package/components/snackbar/v4/SnackbarV4.vue.js +7 -0
- package/components/snackbar/v4/SnackbarV4.vue2.js +137 -0
- package/components/snackbar/v4/index.d.ts +4 -0
- package/components/snackbar/v4/index.js +11 -0
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +28 -29
- package/index.d.ts +1255 -34
- package/index.js +145 -152
- package/package.json +40 -15
- package/testids/index.d.ts +8 -0
- package/testids/index.js +14 -13
- package/ButtonV4.vue_vue_type_style_index_0_scoped_43578f8c_lang.css +0 -1
- package/Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_f080f37f_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_0114904e_lang.css +0 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_b25c5605_lang.css +0 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_9198bf4e_lang.css +0 -1
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_2996b384_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2c9debd6_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css +0 -1
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css +0 -1
- package/Label.vue_vue_type_style_index_0_scoped_5faaafce_lang.css +0 -1
- package/Option.vue_vue_type_style_index_0_scoped_2432f13f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b879fe79_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css +0 -1
- package/RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css +0 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_0b1ea2f6_lang.css +0 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_lang.css +0 -1
- package/components/checkbox/Checkbox.vue.js +0 -7
- package/components/checkbox/Checkbox.vue2.js +0 -97
- package/components/dropdown/common/Label.vue.js +0 -7
- package/components/dropdown/common/Option.vue.js +0 -7
- package/components/filtersPanel/FilterSearchInput.vue.js +0 -7
- package/components/filtersPanel/FiltersPanel.vue.js +0 -7
- package/components/radioButton/RadioButton.vue.js +0 -7
- package/components/radioButton/RadioButton.vue2.js +0 -82
- package/components/radioButton/RadioGroup.vue.js +0 -7
- package/components/radioButton/RadioGroup.vue2.js +0 -44
- package/components/snackbar/Snackbar.vue.js +0 -7
- package/components/snackbar/Snackbar.vue2.js +0 -150
- package/components/snackbar/index.d.ts +0 -3
- package/components/snackbar/index.js +0 -6
- package/components/snackbar/notify.js +0 -84
- /package/components/checkbox/{Checkbox.vue.d.ts → v3/Checkbox.vue.d.ts} +0 -0
- /package/components/checkbox/{icons → v3/icons}/checked.vue.d.ts +0 -0
- /package/components/checkbox/{icons → v3/icons}/indeterminate.vue.d.ts +0 -0
- /package/components/checkbox/{icons → v3/icons}/unchecked.vue.d.ts +0 -0
- /package/components/checkbox/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/checkbox/{index.js → v3/index.js} +0 -0
- /package/components/{filtersPanel/FilterSearchInput.vue.d.ts → checkbox/v4/icons/CheckedDisabledState.vue.d.ts} +0 -0
- /package/components/dropdown/{common → v3}/Label.vue.d.ts +0 -0
- /package/components/dropdown/{common → v3}/Option.vue.d.ts +0 -0
- /package/components/dropdown/{common → v3}/SearchInput.vue.d.ts +0 -0
- /package/components/filtersPanel/{Filter.d.ts → v3/Filter.d.ts} +0 -0
- /package/components/filtersPanel/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/filtersPanel/{index.js → v3/index.js} +0 -0
- /package/components/filtersPanel/{useHiddenFilter.d.ts → v3/useHiddenFilter.d.ts} +0 -0
- /package/components/filtersPanel/{useHiddenFilter.js → v3/useHiddenFilter.js} +0 -0
- /package/components/radioButton/{useRadio.d.ts → common/useRadio.d.ts} +0 -0
- /package/components/radioButton/{useRadio.js → common/useRadio.js} +0 -0
- /package/components/radioButton/{RadioButton.vue.d.ts → v3/RadioButton.vue.d.ts} +0 -0
- /package/components/radioButton/{RadioGroup.vue.d.ts → v3/RadioGroup.vue.d.ts} +0 -0
- /package/components/radioButton/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/radioButton/{index.js → v3/index.js} +0 -0
- /package/components/snackbar/{notify.d.ts → common/notify_old.d.ts} +0 -0
- /package/components/snackbar/{snackbar.types.d.ts → common/snackbar.types.d.ts} +0 -0
- /package/components/snackbar/{snackbar.types.js → common/snackbar.types.js} +0 -0
- /package/components/snackbar/{Snackbar.vue.d.ts → v3/Snackbar.vue.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-2432f13f]{color:#41454d}.item-container[data-v-2432f13f]{display:flex;align-items:center;cursor:pointer;border-radius:.5rem;min-height:32px;margin-bottom:2px;color:#53575b}.item-container--disabled[data-v-2432f13f]{cursor:initial;opacity:.7}.item-container[data-v-2432f13f]:focus{outline:none}.item-container[data-v-2432f13f]:hover:not(.item-container--disabled),.item-container--active[data-v-2432f13f],.item-container[data-v-2432f13f]:active{background-color:#f7f8f9}.item-container:not(.item-container--multi).item-container--selected[data-v-2432f13f]{color:#3083ff;background-color:#e2eeff}.item-container:not(.item-container--multi).item-container--selected .subtitle[data-v-2432f13f]{color:#68a5ff}.start-icon[data-v-2432f13f]{display:flex}.text-container[data-v-2432f13f]{display:flex;flex-direction:column;padding:.4375rem 0}.subtitle[data-v-2432f13f]{color:#7b838c;line-height:1rem}.clear-button[data-v-2432f13f]{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-2432f13f]:hover{color:#3083ff}.item[data-v-2432f13f]{width:100%;display:flex;flex-direction:column;justify-content:center;gap:.5rem;padding-left:.5rem}.item--with-icon[data-v-2432f13f],.item--multi[data-v-2432f13f]{display:flex;flex-direction:row;align-items:center;justify-content:start}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-b879fe79]{color:#41454d}.item-container[data-v-b879fe79]{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-b879fe79]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-b879fe79]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-b879fe79],.item-container[data-v-b879fe79]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-b879fe79]{background-color:var(--action-selected)}.start-icon[data-v-b879fe79]{display:flex}.text-container[data-v-b879fe79]{display:flex;flex-direction:column}.subtitle[data-v-b879fe79]{color:#7b838c;line-height:1rem}.clear-button[data-v-b879fe79]{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-b879fe79]:hover{color:#3083ff}.item[data-v-b879fe79]{width:100%;display:flex;flex-direction:column;justify-content:center;gap:.5rem}.item--with-icon[data-v-b879fe79],.item--multi[data-v-b879fe79]{display:flex;flex-direction:row;align-items:center;justify-content:start}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-f5d3359c]{color:#41454d}.radio-button[data-v-f5d3359c]{display:flex;align-items:flex-start}.radio-button--disabled[data-v-f5d3359c]{opacity:.7;cursor:default}.radio-button--disabled .label[data-v-f5d3359c]{cursor:default}.helper-text[data-v-f5d3359c]{margin-left:-1.5rem;margin-top:.25rem;color:#53575b}.helper-text--error[data-v-f5d3359c]{color:#da564f}.helper-text--text[data-v-f5d3359c]{color:#696a6b}.wrapper[data-v-f5d3359c]{display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;background-color:transparent;outline:0;border:0;margin:0;cursor:pointer;user-select:none;vertical-align:middle;appearance:none;text-decoration:none;padding:.125rem .5rem;border-radius:50%}.label[data-v-f5d3359c]{cursor:pointer;color:#53575b;flex-direction:column;display:inline-flex}.circle[data-v-f5d3359c]{border-radius:50%;width:16px;transition:all .2s ease-in-out 0s;height:16px}.circle[data-v-f5d3359c]:not(.circle--selected){box-shadow:#a9afb4 0 0 0 2px inset}.circle--selected[data-v-f5d3359c]{background-color:#3083ff}.circle[data-v-f5d3359c]:before{display:block;width:16px;height:16px;background-image:radial-gradient(rgb(255,255,255),rgb(255,255,255) 3px,transparent 28%);content:""}input[data-v-f5d3359c]{cursor:inherit;position:absolute;opacity:0;width:100%;height:100%;top:0;left:0;margin:0;padding:0;z-index:1}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.radio-group[data-v-50bc6963]{display:inline-flex;flex-direction:column;gap:.125rem}.radio-group--row[data-v-50bc6963]{flex-direction:row}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-0b1ea2f6]{color:#41454d}.container[data-v-0b1ea2f6]{position:relative;display:flex;width:100%;align-items:center;text-align:start;font-family:HelveticaNeue,sans-serif;font-style:normal;padding:.25rem .75rem;outline:none;background:#f1f3f4;border-radius:.5rem}.container--lg[data-v-0b1ea2f6]{padding:.5rem .75rem}.container--open[data-v-0b1ea2f6],.container[data-v-0b1ea2f6]:focus-visible{background:linear-gradient(0deg,#3083ff 0,#3083ff 2px,#f1f3f4 0)}.container[data-v-0b1ea2f6]:hover:not(.button--open):not(.button--disabled){color:#53575b}.container--disabled[data-v-0b1ea2f6]{cursor:default}.prefix[data-v-0b1ea2f6]{margin-right:.25rem;display:flex;align-items:center;gap:.5rem}.search-right-icon[data-v-0b1ea2f6]{display:flex;color:#7b838c;align-items:center;padding:0;background-image:none;min-width:auto;border:none;background-color:transparent}.input--open .input[data-v-0b1ea2f6]::placeholder{color:#8e959d}.search-right-icon[data-v-0b1ea2f6],.angle-down[data-v-0b1ea2f6]{color:#7b838c}.input[data-v-0b1ea2f6]{width:100%;font-family:HelveticaNeue,sans-serif;font-size:.8125rem;border:none;outline:none;color:#53575b;line-height:1.25rem;min-width:15rem;background-color:transparent}.input[data-v-0b1ea2f6]::placeholder{color:#8e959d;font-family:HelveticaNeue,sans-serif;font-size:.8125rem}.input[data-v-0b1ea2f6]:not(.input--disabled){cursor:pointer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-d14230ca]{color:#41454d}.container[data-v-d14230ca]{width:100%;display:flex;max-width:23.375rem}.texts[data-v-d14230ca]{width:100%;border-right:1px solid #dddfe1;padding:1.25rem 1rem;display:flex;justify-content:center;flex-direction:column}.message[data-v-d14230ca]{color:#53575b;display:flex;line-height:1.25rem}.start-icon-container[data-v-d14230ca]{border-radius:50%;width:1.5rem;height:1.5rem;margin-left:1rem;display:flex;align-items:center}.start-icon-container.success[data-v-d14230ca]{color:#3083ff;background:#e2eeff;padding:.25rem}.start-icon-container.error[data-v-d14230ca]{color:#ff6a63;margin-top:0;padding:.25rem;background:#ffefee}.title[data-v-d14230ca]{color:#41454d}.snackbar[data-v-d14230ca]{display:flex;width:23.375rem;align-items:center;border-radius:.5rem;box-sizing:border-box;position:fixed;background-color:#fff;box-shadow:0 8px 24px -6px #00000029,0 0 1px #0006;transition:opacity .25s,transform .25s,left .25s,right .25s,top .4s,bottom .25s;overflow-wrap:anywhere;overflow:hidden;z-index:9999}.snackbar.right[data-v-d14230ca]{right:1rem}.snackbar.left[data-v-d14230ca]{left:1rem}.snackbar-close-button[data-v-d14230ca]{cursor:pointer;color:#b7bbc0;margin:1.25rem 1rem}.snackbar-enter-from.right[data-v-d14230ca]{right:0;transform:translate(100%)}.snackbar-enter-from.left[data-v-d14230ca]{left:0;transform:translate(-100%)}.snackbar-leave-to[data-v-d14230ca]{opacity:0}.snackbar-leave-to.right[data-v-d14230ca]{right:0;transform:translate(100%)}.snackbar-leave-to.left[data-v-d14230ca]{left:0;transform:translate(-100%)}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./Checkbox.vue2.js";
|
|
2
|
-
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_lang.css"; //*');
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-518c02d0"]]);
|
|
5
|
-
export {
|
|
6
|
-
t as default
|
|
7
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import "../../Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_lang.css"; import { defineComponent as E, ref as p, computed as r, openBlock as c, createElementBlock as S, normalizeClass as g, unref as t, createElementVNode as m, mergeProps as N, createVNode as D, withCtx as I, createBlock as i, createCommentVNode as d, renderSlot as L, createTextVNode as P, toDisplayString as R, pushScopeId as T, popScopeId as w } from "vue";
|
|
2
|
-
import "../typography/Heading.vue.js";
|
|
3
|
-
import A from "../typography/Text.vue.js";
|
|
4
|
-
import H from "../icon/v3/Icon.vue.js";
|
|
5
|
-
import K from "./icons/unchecked.vue.js";
|
|
6
|
-
import M from "./icons/checked.vue.js";
|
|
7
|
-
import U from "./icons/indeterminate.vue.js";
|
|
8
|
-
import W from "../../composables/useIsFocusVisible.js";
|
|
9
|
-
import { useId as j } from "../../composables/useId.js";
|
|
10
|
-
import { CheckboxTestIdModifiers as a } from "../../testids/index.js";
|
|
11
|
-
const q = (e) => (T("data-v-518c02d0"), e = e(), w(), e), G = ["data-testid"], J = { class: "checkboxes" }, O = ["disabled", "checked", ".indeterminate", "data-testid"], Q = /* @__PURE__ */ q(() => /* @__PURE__ */ m("span", { class: "checkbox__inner" }, null, -1)), de = /* @__PURE__ */ E({
|
|
12
|
-
__name: "Checkbox",
|
|
13
|
-
props: {
|
|
14
|
-
isChecked: { type: Boolean },
|
|
15
|
-
isIndeterminate: { type: Boolean },
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
size: { default: "md" },
|
|
18
|
-
label: { default: "" },
|
|
19
|
-
testId: { default: "" }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:isChecked", "click"],
|
|
22
|
-
setup(e, { emit: f }) {
|
|
23
|
-
const o = e;
|
|
24
|
-
function x() {
|
|
25
|
-
console.log("side-effect");
|
|
26
|
-
}
|
|
27
|
-
x();
|
|
28
|
-
const C = p(null), h = `checkbox-${j().value}`, {
|
|
29
|
-
isFocusVisibleRef: k,
|
|
30
|
-
onFocus: $,
|
|
31
|
-
onBlur: B
|
|
32
|
-
} = W(), l = p(!1), v = (s) => {
|
|
33
|
-
$(s), k.value === !0 && (l.value = !0);
|
|
34
|
-
}, V = (s) => {
|
|
35
|
-
B(s), k.value === !1 && (l.value = !1);
|
|
36
|
-
}, n = r(() => !o.isChecked && o.isIndeterminate), u = r(() => o.isChecked), y = r(() => !u.value && !o.isIndeterminate), z = (s) => {
|
|
37
|
-
f("update:isChecked", s.target.checked);
|
|
38
|
-
};
|
|
39
|
-
return (s, b) => (c(), S("label", {
|
|
40
|
-
for: h,
|
|
41
|
-
class: g([[e.size, { "focus-visible": l.value, disabled: e.disabled }], "checkbox"]),
|
|
42
|
-
"data-testid": `${e.testId}-${t(a).WRAPPER}`
|
|
43
|
-
}, [
|
|
44
|
-
m("span", J, [
|
|
45
|
-
m("input", N(s.$attrs, {
|
|
46
|
-
id: h,
|
|
47
|
-
ref: C.value,
|
|
48
|
-
disabled: e.disabled,
|
|
49
|
-
checked: t(u),
|
|
50
|
-
class: "input",
|
|
51
|
-
".indeterminate": t(n),
|
|
52
|
-
type: "checkbox",
|
|
53
|
-
"data-testid": `${e.testId}-${t(a).FIELD}`,
|
|
54
|
-
onBlur: V,
|
|
55
|
-
onFocus: v,
|
|
56
|
-
onClick: b[0] || (b[0] = (F) => f("click", F)),
|
|
57
|
-
onInput: z
|
|
58
|
-
}), null, 16, O),
|
|
59
|
-
Q,
|
|
60
|
-
D(t(H), { "font-size": e.size }, {
|
|
61
|
-
default: I(() => [
|
|
62
|
-
t(u) ? (c(), i(M, {
|
|
63
|
-
key: 0,
|
|
64
|
-
class: "checkbox-icon checked",
|
|
65
|
-
"data-testid": `${e.testId}-${t(a).CHECKED}`
|
|
66
|
-
}, null, 8, ["data-testid"])) : d("", !0),
|
|
67
|
-
t(n) ? (c(), i(U, {
|
|
68
|
-
key: 1,
|
|
69
|
-
class: "checkbox-icon indeterminate"
|
|
70
|
-
})) : d("", !0),
|
|
71
|
-
t(y) && !t(n) ? (c(), i(K, {
|
|
72
|
-
key: 2,
|
|
73
|
-
class: "checkbox-icon unchecked"
|
|
74
|
-
})) : d("", !0)
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["font-size"])
|
|
78
|
-
]),
|
|
79
|
-
e.label || s.$slots.default ? (c(), i(t(A), {
|
|
80
|
-
key: 0,
|
|
81
|
-
size: e.size,
|
|
82
|
-
class: "checkbox-text",
|
|
83
|
-
"data-testid": `${e.testId}-${t(a).LABEL}`
|
|
84
|
-
}, {
|
|
85
|
-
default: I(() => [
|
|
86
|
-
L(s.$slots, "default", {}, () => [
|
|
87
|
-
P(R(e.label), 1)
|
|
88
|
-
], !0)
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
}, 8, ["size", "data-testid"])) : d("", !0)
|
|
92
|
-
], 10, G));
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
export {
|
|
96
|
-
de as default
|
|
97
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "./Label.vue2.js";
|
|
2
|
-
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../Label.vue_vue_type_style_index_0_scoped_5faaafce_lang.css"; //*');
|
|
4
|
-
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-5faaafce"]]);
|
|
5
|
-
export {
|
|
6
|
-
t as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./Option.vue2.js";
|
|
2
|
-
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../Option.vue_vue_type_style_index_0_scoped_2432f13f_lang.css"; //*');
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2432f13f"]]);
|
|
5
|
-
export {
|
|
6
|
-
s as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "./FilterSearchInput.vue2.js";
|
|
2
|
-
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../FilterSearchInput.vue_vue_type_style_index_0_scoped_9198bf4e_lang.css"; //*');
|
|
4
|
-
const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9198bf4e"]]);
|
|
5
|
-
export {
|
|
6
|
-
r as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "./FiltersPanel.vue2.js";
|
|
2
|
-
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../FiltersPanel.vue_vue_type_style_index_0_scoped_2996b384_lang.css"; //*');
|
|
4
|
-
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2996b384"]]);
|
|
5
|
-
export {
|
|
6
|
-
p as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./RadioButton.vue2.js";
|
|
2
|
-
/* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css"; //*');
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f5d3359c"]]);
|
|
5
|
-
export {
|
|
6
|
-
c as default
|
|
7
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import "../../RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css"; import { defineComponent as V, openBlock as o, createElementBlock as k, normalizeClass as x, unref as t, createElementVNode as d, withDirectives as B, isRef as E, vModelRadio as I, renderSlot as y, createVNode as C, withCtx as i, createTextVNode as s, toDisplayString as n, createBlock as b, createCommentVNode as T } from "vue";
|
|
2
|
-
import u from "../typography/Text.vue.js";
|
|
3
|
-
import { useRadio as N } from "./useRadio.js";
|
|
4
|
-
import { RadioTestIdModifiers as f } from "../../testids/index.js";
|
|
5
|
-
const w = { class: "wrapper" }, z = ["value", "name", "disabled", "data-testid"], D = ["data-testid"], S = /* @__PURE__ */ V({
|
|
6
|
-
__name: "RadioButton",
|
|
7
|
-
props: {
|
|
8
|
-
label: { default: "" },
|
|
9
|
-
name: { default: "" },
|
|
10
|
-
helperText: { default: "" },
|
|
11
|
-
errorText: { default: "" },
|
|
12
|
-
modelValue: { default: void 0 },
|
|
13
|
-
testId: { default: "" }
|
|
14
|
-
},
|
|
15
|
-
emits: ["update:modelValue", "change"],
|
|
16
|
-
setup(e, { emit: v }) {
|
|
17
|
-
const R = e, { radioRef: $, focus: m, disabled: c, modelValue: l, radioGroup: h } = N(
|
|
18
|
-
R,
|
|
19
|
-
v
|
|
20
|
-
);
|
|
21
|
-
return (p, a) => (o(), k("label", {
|
|
22
|
-
class: x(["radio-button", { "radio-button--disabled": t(c) }])
|
|
23
|
-
}, [
|
|
24
|
-
d("span", w, [
|
|
25
|
-
B(d("input", {
|
|
26
|
-
ref_key: "radioRef",
|
|
27
|
-
ref: $,
|
|
28
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) => E(l) ? l.value = r : null),
|
|
29
|
-
value: e.label,
|
|
30
|
-
name: e.name || t(h)?.name,
|
|
31
|
-
type: "radio",
|
|
32
|
-
disabled: t(c),
|
|
33
|
-
"data-testid": `${e.testId}-${t(f).FIELD}`,
|
|
34
|
-
onFocus: a[1] || (a[1] = (r) => m.value = !0),
|
|
35
|
-
onBlur: a[2] || (a[2] = (r) => m.value = !1)
|
|
36
|
-
}, null, 40, z), [
|
|
37
|
-
[I, t(l)]
|
|
38
|
-
]),
|
|
39
|
-
d("span", {
|
|
40
|
-
class: x([{ "circle--selected": t(l) === e.label }, "circle"])
|
|
41
|
-
}, null, 2)
|
|
42
|
-
]),
|
|
43
|
-
d("span", {
|
|
44
|
-
class: "label",
|
|
45
|
-
"data-testid": `${e.testId}-${t(f).LABEL}`
|
|
46
|
-
}, [
|
|
47
|
-
y(p.$slots, "default", {}, () => [
|
|
48
|
-
C(u, { "is-truncated": "" }, {
|
|
49
|
-
default: i(() => [
|
|
50
|
-
s(n(e.label), 1)
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
})
|
|
54
|
-
], !0),
|
|
55
|
-
!e.errorText && e.helperText ? (o(), b(u, {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "helper-text--text helper-text",
|
|
58
|
-
size: "caption"
|
|
59
|
-
}, {
|
|
60
|
-
default: i(() => [
|
|
61
|
-
s(n(e.helperText), 1)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
})) : T("", !0),
|
|
65
|
-
e.errorText ? (o(), b(u, {
|
|
66
|
-
key: 1,
|
|
67
|
-
size: "caption",
|
|
68
|
-
class: "helper-text--error helper-text",
|
|
69
|
-
"data-testid": `${e.testId}-${t(f).ERROR_TEXT}`
|
|
70
|
-
}, {
|
|
71
|
-
default: i(() => [
|
|
72
|
-
s(n(e.errorText), 1)
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}, 8, ["data-testid"])) : T("", !0)
|
|
76
|
-
], 8, D)
|
|
77
|
-
], 2));
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
export {
|
|
81
|
-
S as default
|
|
82
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./RadioGroup.vue2.js";
|
|
2
|
-
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css"; //*');
|
|
4
|
-
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-50bc6963"]]);
|
|
5
|
-
export {
|
|
6
|
-
t as default
|
|
7
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import "../../RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css"; import { defineComponent as u, ref as c, onMounted as f, computed as m, provide as p, reactive as y, toRefs as g, openBlock as h, createElementBlock as v, normalizeClass as I, unref as R, renderSlot as k, nextTick as G } from "vue";
|
|
2
|
-
import { useId as B } from "../../composables/useId.js";
|
|
3
|
-
import { radioGroupKey as _ } from "./useRadio.js";
|
|
4
|
-
import { RadioTestIdModifiers as b } from "../../testids/index.js";
|
|
5
|
-
const w = ["data-testid"], C = /* @__PURE__ */ u({
|
|
6
|
-
__name: "RadioGroup",
|
|
7
|
-
props: {
|
|
8
|
-
name: { default: "" },
|
|
9
|
-
disabled: { type: Boolean, default: !1 },
|
|
10
|
-
modelValue: null,
|
|
11
|
-
row: { type: Boolean, default: !1 },
|
|
12
|
-
testId: { default: "" }
|
|
13
|
-
},
|
|
14
|
-
emits: ["update:modelValue", "change"],
|
|
15
|
-
setup(o, { emit: r }) {
|
|
16
|
-
const a = o, n = B(), d = c(), s = (e) => {
|
|
17
|
-
r("update:modelValue", e), G(() => r("change", e));
|
|
18
|
-
};
|
|
19
|
-
f(() => {
|
|
20
|
-
const e = d.value?.querySelectorAll("[type=radio]"), t = e[0];
|
|
21
|
-
!Array.from(e).some((i) => i.checked) && t && (t.tabIndex = 0);
|
|
22
|
-
});
|
|
23
|
-
const l = m(() => a.name || n.value);
|
|
24
|
-
return p(
|
|
25
|
-
_,
|
|
26
|
-
y({
|
|
27
|
-
...g(a),
|
|
28
|
-
changeEvent: s,
|
|
29
|
-
name: l
|
|
30
|
-
})
|
|
31
|
-
), (e, t) => (h(), v("div", {
|
|
32
|
-
ref_key: "radioGroupRef",
|
|
33
|
-
ref: d,
|
|
34
|
-
class: I([{ "radio-group--row": o.row }, "radio-group"]),
|
|
35
|
-
role: "radiogroup",
|
|
36
|
-
"data-testid": `${o.testId}-${R(b).GROUP}`
|
|
37
|
-
}, [
|
|
38
|
-
k(e.$slots, "default", {}, void 0, !0)
|
|
39
|
-
], 10, w));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
C as default
|
|
44
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./Snackbar.vue2.js";
|
|
2
|
-
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_lang.css"; //*');
|
|
4
|
-
const e = /* @__PURE__ */ _(o, [["__scopeId", "data-v-d14230ca"]]);
|
|
5
|
-
export {
|
|
6
|
-
e as default
|
|
7
|
-
};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import "../../Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_lang.css"; import { defineComponent as H, ref as N, computed as l, onMounted as V, openBlock as s, createBlock as r, Transition as $, withCtx as a, withDirectives as z, createElementVNode as c, normalizeClass as T, unref as n, normalizeStyle as B, createElementBlock as M, createVNode as f, resolveDynamicComponent as U, createCommentVNode as y, renderSlot as W, createTextVNode as A, toDisplayString as F, vShow as w, withModifiers as K } from "vue";
|
|
2
|
-
import { useEventListener as P, useTimeoutFn as j } from "@vueuse/core";
|
|
3
|
-
import x from "../icon/v3/Icon.vue.js";
|
|
4
|
-
import L from "../icon/v3/icons/Close.vue.js";
|
|
5
|
-
import q from "../icon/v3/icons/Check.vue.js";
|
|
6
|
-
import "../button/v3/Button.vue.js";
|
|
7
|
-
import G from "../button/v3/IconButton.vue.js";
|
|
8
|
-
import "../button/v3/ScrollButton.vue.js";
|
|
9
|
-
import S from "../typography/Text.vue.js";
|
|
10
|
-
const J = ["id"], O = { class: "container" }, Q = { class: "texts" }, R = ["innerHTML"], ie = /* @__PURE__ */ H({
|
|
11
|
-
__name: "Snackbar",
|
|
12
|
-
props: {
|
|
13
|
-
customClass: null,
|
|
14
|
-
dangerouslyUseHTMLString: { type: Boolean },
|
|
15
|
-
duration: { default: 3e3 },
|
|
16
|
-
icon: null,
|
|
17
|
-
id: null,
|
|
18
|
-
message: null,
|
|
19
|
-
offset: null,
|
|
20
|
-
onClick: null,
|
|
21
|
-
onClose: null,
|
|
22
|
-
type: { default: null },
|
|
23
|
-
position: { default: "top-right" },
|
|
24
|
-
showClose: { type: Boolean, default: !0 },
|
|
25
|
-
title: { default: "" },
|
|
26
|
-
zIndex: { default: 0 }
|
|
27
|
-
},
|
|
28
|
-
emits: ["destroy"],
|
|
29
|
-
setup(e) {
|
|
30
|
-
const t = e, v = {
|
|
31
|
-
success: q,
|
|
32
|
-
error: L
|
|
33
|
-
}, i = N(!1);
|
|
34
|
-
let C;
|
|
35
|
-
const k = l(() => {
|
|
36
|
-
const o = t.type;
|
|
37
|
-
return o && v[t.type] ? o : "";
|
|
38
|
-
}), p = l(() => v[t.type] || t.icon || ""), b = l(
|
|
39
|
-
() => t.position.endsWith("right") ? "right" : "left"
|
|
40
|
-
), I = l(
|
|
41
|
-
() => t.position.startsWith("top") ? "top" : "bottom"
|
|
42
|
-
), D = l(() => ({
|
|
43
|
-
[I.value]: `${t.offset}px`,
|
|
44
|
-
zIndex: t.zIndex
|
|
45
|
-
}));
|
|
46
|
-
function d() {
|
|
47
|
-
t.duration > 0 && ({ stop: C } = j(() => {
|
|
48
|
-
i.value && m();
|
|
49
|
-
}, t.duration));
|
|
50
|
-
}
|
|
51
|
-
function g() {
|
|
52
|
-
C?.();
|
|
53
|
-
}
|
|
54
|
-
function m() {
|
|
55
|
-
i.value = !1;
|
|
56
|
-
}
|
|
57
|
-
function E({ code: o }) {
|
|
58
|
-
o === "Delete" || o === "Backspace" ? g() : o === "Escape" ? i.value && m() : d();
|
|
59
|
-
}
|
|
60
|
-
return V(() => {
|
|
61
|
-
d(), i.value = !0;
|
|
62
|
-
}), P(document, "keydown", E), (o, u) => (s(), r($, {
|
|
63
|
-
name: "snackbar",
|
|
64
|
-
onBeforeLeave: e.onClose,
|
|
65
|
-
onAfterLeave: u[1] || (u[1] = (h) => o.$emit("destroy"))
|
|
66
|
-
}, {
|
|
67
|
-
default: a(() => [
|
|
68
|
-
z(c("div", {
|
|
69
|
-
id: e.id,
|
|
70
|
-
class: T(["snackbar", [e.customClass, n(b)]]),
|
|
71
|
-
style: B(n(D)),
|
|
72
|
-
role: "alert",
|
|
73
|
-
onMouseenter: g,
|
|
74
|
-
onMouseleave: d,
|
|
75
|
-
onClick: u[0] || (u[0] = //@ts-ignore
|
|
76
|
-
(...h) => e.onClick && e.onClick(...h))
|
|
77
|
-
}, [
|
|
78
|
-
n(p) ? (s(), M("div", {
|
|
79
|
-
key: 0,
|
|
80
|
-
class: T(["start-icon-container", [n(k)]])
|
|
81
|
-
}, [
|
|
82
|
-
f(n(x), {
|
|
83
|
-
"font-size": n(k) ? "sm" : "lg"
|
|
84
|
-
}, {
|
|
85
|
-
default: a(() => [
|
|
86
|
-
(s(), r(U(n(p))))
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 8, ["font-size"])
|
|
90
|
-
], 2)) : y("", !0),
|
|
91
|
-
c("div", O, [
|
|
92
|
-
c("div", Q, [
|
|
93
|
-
e.title ? (s(), r(S, {
|
|
94
|
-
key: 0,
|
|
95
|
-
size: "md",
|
|
96
|
-
strong: "",
|
|
97
|
-
class: "title"
|
|
98
|
-
})) : y("", !0),
|
|
99
|
-
z(c("div", {
|
|
100
|
-
class: "message",
|
|
101
|
-
style: B(e.title ? void 0 : { margin: 0 })
|
|
102
|
-
}, [
|
|
103
|
-
W(o.$slots, "default", {}, () => [
|
|
104
|
-
e.dangerouslyUseHTMLString ? (s(), M("div", {
|
|
105
|
-
key: 1,
|
|
106
|
-
innerHTML: e.message
|
|
107
|
-
}, null, 8, R)) : (s(), r(S, {
|
|
108
|
-
key: 0,
|
|
109
|
-
size: "sm"
|
|
110
|
-
}, {
|
|
111
|
-
default: a(() => [
|
|
112
|
-
A(F(e.message), 1)
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}))
|
|
116
|
-
], !0)
|
|
117
|
-
], 4), [
|
|
118
|
-
[w, e.message]
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
e.showClose ? (s(), r(n(G), {
|
|
122
|
-
key: 0,
|
|
123
|
-
theme: "third",
|
|
124
|
-
size: "sm",
|
|
125
|
-
class: "snackbar-close-button",
|
|
126
|
-
variant: "colorized",
|
|
127
|
-
onClick: K(m, ["stop"])
|
|
128
|
-
}, {
|
|
129
|
-
default: a(() => [
|
|
130
|
-
f(n(x), null, {
|
|
131
|
-
default: a(() => [
|
|
132
|
-
f(L)
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
})
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["onClick"])) : y("", !0)
|
|
139
|
-
])
|
|
140
|
-
], 46, J), [
|
|
141
|
-
[w, i.value]
|
|
142
|
-
])
|
|
143
|
-
]),
|
|
144
|
-
_: 3
|
|
145
|
-
}, 8, ["onBeforeLeave"]));
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
export {
|
|
149
|
-
ie as default
|
|
150
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { isVNode as x, createVNode as y, render as v } from "vue";
|
|
2
|
-
import b from "./Snackbar.vue.js";
|
|
3
|
-
import { snackbarTypes as I } from "./snackbar.types.js";
|
|
4
|
-
const p = {
|
|
5
|
-
"top-left": [],
|
|
6
|
-
"top-right": [],
|
|
7
|
-
"bottom-left": [],
|
|
8
|
-
"bottom-right": []
|
|
9
|
-
}, g = 16;
|
|
10
|
-
let C = 1;
|
|
11
|
-
const N = 2e3, a = function(e = {}, t = null) {
|
|
12
|
-
(typeof e == "string" || x(e)) && (e = { message: e });
|
|
13
|
-
const o = e.position || "top-right";
|
|
14
|
-
let n = e.zIndex || N, s = p[o].reduce(
|
|
15
|
-
(m, { vm: h }) => m + (h.el?.offsetHeight || 0) + g,
|
|
16
|
-
e.offset || 0
|
|
17
|
-
);
|
|
18
|
-
s += g;
|
|
19
|
-
const i = () => n++, d = `notification_${C++}`, u = e.onClose, l = {
|
|
20
|
-
...e,
|
|
21
|
-
zIndex: i(),
|
|
22
|
-
offset: s,
|
|
23
|
-
id: d,
|
|
24
|
-
onClose: () => {
|
|
25
|
-
A(d, o, u);
|
|
26
|
-
}
|
|
27
|
-
}, c = document.body, f = document.createElement("div"), r = y(
|
|
28
|
-
b,
|
|
29
|
-
l,
|
|
30
|
-
x(l.message) ? {
|
|
31
|
-
default: () => l.message
|
|
32
|
-
} : null
|
|
33
|
-
);
|
|
34
|
-
return r.appContext = t ?? a._context, r.props.onDestroy = () => {
|
|
35
|
-
v(null, f);
|
|
36
|
-
}, v(r, f), p[o].push({ vm: r }), c.appendChild(f?.firstElementChild), {
|
|
37
|
-
// instead of calling the onClose function directly, setting this value so that we can have the full lifecycle
|
|
38
|
-
// for out component, so that all closing steps will not be skipped.
|
|
39
|
-
close: () => {
|
|
40
|
-
const m = r.component?.proxy;
|
|
41
|
-
m && (m.visible = !1);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
function A(e, t, o) {
|
|
46
|
-
const n = p[t], s = n.findIndex(
|
|
47
|
-
({ vm: c }) => c.component?.props.id === e
|
|
48
|
-
);
|
|
49
|
-
if (s === -1)
|
|
50
|
-
return;
|
|
51
|
-
const { vm: i } = n[s];
|
|
52
|
-
if (!i)
|
|
53
|
-
return;
|
|
54
|
-
o?.(i);
|
|
55
|
-
const d = i.el?.offsetHeight, u = t.split("-")[0];
|
|
56
|
-
n.splice(s, 1);
|
|
57
|
-
const l = n.length;
|
|
58
|
-
for (let c = s; c < l; c++) {
|
|
59
|
-
const { el: f, component: r } = n[c].vm;
|
|
60
|
-
r.props.offset = Number.parseInt(f.style[u], 10) - d - g;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
I.forEach((e) => {
|
|
64
|
-
a[e] = (t = {}) => ((typeof t == "string" || x(t)) && (t = {
|
|
65
|
-
message: t
|
|
66
|
-
}), a({
|
|
67
|
-
...t,
|
|
68
|
-
type: e
|
|
69
|
-
}));
|
|
70
|
-
});
|
|
71
|
-
function E() {
|
|
72
|
-
for (const e of Object.values(p))
|
|
73
|
-
e.forEach(({ vm: t }) => {
|
|
74
|
-
const o = t.component?.proxy;
|
|
75
|
-
o && (o.visible = !1);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
a.closeAll = E;
|
|
79
|
-
a._context = null;
|
|
80
|
-
export {
|
|
81
|
-
A as close,
|
|
82
|
-
E as closeAll,
|
|
83
|
-
a as default
|
|
84
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|