simp-select 1.0.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/.babelrc +3 -0
- package/.browserslistrc +3 -0
- package/.eslintignore +4 -0
- package/.eslintrc +29 -0
- package/LICENSE +21 -0
- package/dist/const/simpleSelection.const.d.ts +6 -0
- package/dist/demo/index.html +98 -0
- package/dist/main.css +1 -0
- package/dist/simpleSelect.d.ts +40 -0
- package/dist/simpleSelect.js +1588 -0
- package/dist/simpleSelectItem.d.ts +49 -0
- package/dist/simpleSelectItemDOM.d.ts +57 -0
- package/dist/style.css +1 -0
- package/dist/types/item.types.d.ts +24 -0
- package/dist/types/simpleSelect.types.d.ts +44 -0
- package/dist/utils/simpleSelection.utils.d.ts +10 -0
- package/dist/utils/store.d.ts +7 -0
- package/package.json +58 -0
- package/src/const/simpleSelection.const.ts +42 -0
- package/src/demo/index.html +256 -0
- package/src/simpleSelect.ts +152 -0
- package/src/simpleSelectItem.ts +535 -0
- package/src/simpleSelectItemDOM.ts +608 -0
- package/src/style.css +413 -0
- package/src/types/item.types.ts +26 -0
- package/src/types/simpleSelect.types.ts +59 -0
- package/src/utils/simpleSelection.utils.ts +66 -0
- package/src/utils/store.ts +60 -0
- package/tsconfig.json +16 -0
- package/webpack.config.js +77 -0
package/.babelrc
ADDED
package/.browserslistrc
ADDED
package/.eslintignore
ADDED
package/.eslintrc
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"root": true,
|
3
|
+
"parser": "@typescript-eslint/parser",
|
4
|
+
"extends": [
|
5
|
+
"airbnb-base",
|
6
|
+
"airbnb-typescript/base",
|
7
|
+
"plugin:@typescript-eslint/eslint-recommended",
|
8
|
+
"plugin:@typescript-eslint/recommended"
|
9
|
+
],
|
10
|
+
"rules": {
|
11
|
+
"no-console": "off",
|
12
|
+
"no-param-reassign": "off",
|
13
|
+
"no-plusplus": "off",
|
14
|
+
"@typescript-eslint/no-this-alias": "off",
|
15
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
16
|
+
"import/no-cycle": "off",
|
17
|
+
"import/prefer-default-export": "off",
|
18
|
+
"class-methods-use-this": "off",
|
19
|
+
"max-len": ["error", { "code": 140 }],
|
20
|
+
"@typescript-eslint/no-unused-vars": "off",
|
21
|
+
"@typescript-eslint/naming-convention": "off"
|
22
|
+
},
|
23
|
+
"plugins": [
|
24
|
+
"@typescript-eslint"
|
25
|
+
],
|
26
|
+
"parserOptions": {
|
27
|
+
"project": "./tsconfig.json"
|
28
|
+
}
|
29
|
+
}
|
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Yurii Kopot <yura.brd@gmail.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { ISimpleSelectLocale, ISimpleSelectOptions } from '../types/simpleSelect.types';
|
2
|
+
export declare const simpleSelectLocale: ISimpleSelectLocale;
|
3
|
+
export declare const simpleSelectionOptions: ISimpleSelectOptions;
|
4
|
+
export declare const nameSelect = "SimSel";
|
5
|
+
export declare const nameMark = "simple-select-init";
|
6
|
+
export declare const initClass = "SimpleSel";
|
@@ -0,0 +1,98 @@
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Document</title><link rel="stylesheet" href="../style.css"/><script src="../simpleSelect.js"></script><link href="../style.css" rel="stylesheet"><link href="../main.css" rel="stylesheet"><script src="../simpleSelect.js"></script></head><style>#app {
|
2
|
+
/* temp*/
|
3
|
+
width: 250px;
|
4
|
+
margin: 0 auto;
|
5
|
+
}
|
6
|
+
|
7
|
+
#app {
|
8
|
+
margin-bottom: 30px;
|
9
|
+
border-bottom: 1px solid;
|
10
|
+
text-align: center;
|
11
|
+
padding-bottom: 10px;
|
12
|
+
}
|
13
|
+
|
14
|
+
.items {
|
15
|
+
display: flex;
|
16
|
+
flex-wrap: wrap;
|
17
|
+
justify-content: center;
|
18
|
+
gap: 10px;
|
19
|
+
margin: 20px auto;
|
20
|
+
max-width: 600px;
|
21
|
+
}
|
22
|
+
.item {
|
23
|
+
width: 250px;
|
24
|
+
}</style><body><div id="app"></div><div class="items"><div class="item"><select id="select_first" disabled="disabled" multiple="multiple"><option value="a1">a 1</option><option value="a2">a 2</option><option value="a3">a 3</option><option value="a4">a 4</option><option value="a5">a 5</option></select></div><div class="item"><select multiple="multiple" data-simple-placeholder="custom placeholder" data-simple-is-confirm="true" data-simple-count-shows-selected="3"><option value="a1" data-simple-html-before="<span>|before| </span>" data-simple-html-after="<span> |after|</div>">b 1</option><option value="a22" disabled="disabled">b 2 dis</option><option value="a3">b 3</option><option value="a4">b 4</option><option value="a5">b 5</option></select></div><div class="item"><select id="select_second" data-simple-is-confirm="false" data-simple-reset-all="false" data-simple-select-all="true" data-simple-item-html-before="<span>before</span>" multiple="multiple" data-simple-debounce-time="1000"><optgroup label="Группа 1"><option value="1.1">multiple Опция 1.1</option></optgroup><optgroup label="Группа 2"><option value="2.1">multiple Опция 2.1</option><option value="2.2">multiple Опция 2.2</option></optgroup><optgroup label="Группа 3" disabled="disabled"><option value="3.1">multiple Опция 3.1</option><option value="3.2">multiple Опция 3.2</option><option value="3.3">multiple Опция 3.3</option></optgroup></select></div><div class="item"><select data-simple-show-checkbox="true" class="color_red" data-simple-add-classes="class1" data-simple-select-search="false"><optgroup label="Группа 1"><option value="1">Опция 1.1</option></optgroup><optgroup label="Группа 2"><option value="1">Опция 2.1</option><option value="1">Опция 2.2</option></optgroup><optgroup label="Группа 3" disabled="disabled"><option value="1">Опция 3.1</option><option value="1">Опция 3.2</option><option value="1">Опция 3.3</option></optgroup></select></div><select data-simple-add-classes="class1 class2" data-simple-item-html-before="<div>before</div>" data-simple-item-html-after="<div>after</div>" data-simple-select-search-dropdown="true" data-simple-up="true"><option>Опция 5.1</option><option>Опция 5.2</option></select></div><script>const sel = new SimpleSelect('select', {
|
25
|
+
callbackOpen: (item) => {
|
26
|
+
console.log('open', item);
|
27
|
+
},
|
28
|
+
callbackClose: (item) => {
|
29
|
+
console.log('close', item);
|
30
|
+
},
|
31
|
+
callbackDestroy: (item) => {
|
32
|
+
console.log('callbackDestroy', item);
|
33
|
+
},
|
34
|
+
// detectNative: () => {
|
35
|
+
// return false;
|
36
|
+
// },
|
37
|
+
callbackChangeSelect: (e, that) => {
|
38
|
+
console.group();
|
39
|
+
console.log(e);
|
40
|
+
console.log(that);
|
41
|
+
console.groupEnd();
|
42
|
+
},
|
43
|
+
|
44
|
+
// isUp: true,
|
45
|
+
// sepChars: ',',
|
46
|
+
// // changeBodyLi: (liBody:HTMLDivElement, option: HTMLOptionElement) => {
|
47
|
+
// return liBody
|
48
|
+
// }
|
49
|
+
// debounceTime: 2000
|
50
|
+
})
|
51
|
+
// @ts-ignore
|
52
|
+
window['sel'] = sel;
|
53
|
+
|
54
|
+
setTimeout(() => {
|
55
|
+
console.log('first', sel.getSelectFirst());
|
56
|
+
|
57
|
+
const second = document.getElementById('select_second');
|
58
|
+
|
59
|
+
const id = second.getAttribute('data-simple-select-init');
|
60
|
+
|
61
|
+
console.log('by id', sel.getSelectById(id));
|
62
|
+
}, 1500)
|
63
|
+
|
64
|
+
const app = document.querySelector('#app')
|
65
|
+
const select = document.createElement('select');
|
66
|
+
select.innerHTML = '<option value="1">1</option><option value="2">2</option>'
|
67
|
+
app.innerHTML = `
|
68
|
+
<div>
|
69
|
+
<select class="addSelect">
|
70
|
+
<option selected>new option 0</option>
|
71
|
+
<option value='1'>new option</option>
|
72
|
+
<option value='2'>new option2</option>
|
73
|
+
<option value='3'>new option3</option>
|
74
|
+
<select>
|
75
|
+
</div>
|
76
|
+
`
|
77
|
+
app.append(select);
|
78
|
+
const sel3 = new SimpleSelect(select)
|
79
|
+
window['sel3'] = sel3;
|
80
|
+
|
81
|
+
setTimeout(() => {
|
82
|
+
const sel2 = new SimpleSelect('.addSelect', {
|
83
|
+
locale: {
|
84
|
+
noSearch: 'Не найдено: ',
|
85
|
+
searchText: 'Поиск',
|
86
|
+
title: 'Выбрать',
|
87
|
+
selected: 'Выбрано:',
|
88
|
+
all: 'все',
|
89
|
+
cansel: 'Отмена',
|
90
|
+
ok: 'OK',
|
91
|
+
resetAll: 'reset all',
|
92
|
+
selectAll: 'select all'
|
93
|
+
}
|
94
|
+
})
|
95
|
+
window['sel2'] = sel2;
|
96
|
+
}, 500)
|
97
|
+
|
98
|
+
// setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)</script></body></html>
|
package/dist/main.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
:root{--simpS_bg:#fff;--simpS_pad_hor:15px;--simpS_height_top:40px;--simpS_color:#27272a;--simpS_color_light:#eae9e9;--simpS_color_cheked:#d9d7d7;--simpS_color_yes:green;--simpS_color_no:red;--simpS_color_placeholder:#5d5c5c;--simpS_color_dis:#8b8b8b;--simpS_radius:4px;--simpS_f_size:16px;--simpS_f_shadow:0 0 3px 0 var(--simpS_color);--simpS_size_check:20px;--simpS_li_h:36px;--simpS_btn_h:34px;--simpS_btn_bg:#f9f9f9;--simpS_btn_bg_reverse:#eeecec}.SimpleSel{-webkit-box-sizing:border-box;box-sizing:border-box;color:#27272a;color:var(--simpS_color);font-size:16px;font-size:var(--simpS_f_size);position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SimpleSel--disabled{color:#8b8b8b;color:var(--simpS_color_dis);opacity:.8}.SimpleSel *,.SimpleSel :after,.SimpleSel :before,.SimpleSel__select_init{-webkit-box-sizing:border-box;box-sizing:border-box}.SimpleSel__select_init{height:100%;opacity:0;position:absolute;right:0;top:0;width:100%}.SimpleSel__select_init--native{z-index:5}.SimpleSel__bottom_control,.SimpleSel__control{-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-ms-flex-line-pack:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-content:center;align-items:center;-webkit-appearance:none;background-color:#f9f9f9;background-color:var(--simpS_btn_bg);border:none;border-radius:0;color:inherit;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font:inherit;height:34px;height:var(--simpS_btn_h);justify-content:center;line-height:normal;margin:0;outline:none;overflow:visible;padding:1px 10px;text-align:center;width:auto}.SimpleSel__bottom_control:hover,.SimpleSel__control:hover{background-color:#eeecec;background-color:var(--simpS_btn_bg_reverse)}.SimpleSel__list_item_icon,.SimpleSel__reset_all__icon,.SimpleSel__select_all__icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border:1px solid;border-radius:4px;border-radius:var(--simpS_radius);display:-webkit-box;display:-ms-flexbox;display:flex;height:20px;height:var(--simpS_size_check);justify-content:center;margin-right:7px;position:relative;width:20px;width:var(--simpS_size_check)}.SimpleSel__list_item_icon:before,.SimpleSel__select_all__icon:before{border:solid;border-width:0 2px 2px 0;content:"";display:block;height:11px;height:calc(var(--simpS_size_check)/2 + 1px);left:4px;top:1px;-webkit-transform:rotate(45deg) translate(-17%,-10%);transform:rotate(45deg) translate(-17%,-10%);-webkit-transition:all .25s;transition:all .25s;width:6.66667px;width:calc(var(--simpS_size_check)/3)}.SimpleSel__top{position:relative}.SimpleSel__top_body{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;background-color:#fff;background-color:var(--simpS_bg);border:2px solid;border-radius:4px;border-radius:var(--simpS_radius);color:currentColor;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;height:var(--simpS_height_top);justify-content:space-between;padding:5px 0 5px 15px;padding:5px 0 5px var(--simpS_pad_hor);position:relative}.SimpleSel--disabled .SimpleSel__top_body{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SimpleSel__top_body:focus-visible{-webkit-box-shadow:0 0 3px 0 #27272a;box-shadow:0 0 3px 0 #27272a;-webkit-box-shadow:var(--simpS_f_shadow);box-shadow:var(--simpS_f_shadow)}.SimpleSel__title{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.SimpleSel__icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;height:var(--simpS_height_top);justify-content:center;position:relative;width:40px;width:var(--simpS_height_top)}.SimpleSel__icon:after{border-bottom:2px solid;border-right:2px solid;content:"";display:inline;height:.5em;left:50%;position:absolute;top:calc(50% - 2px);-webkit-transform:rotate(45deg) translate(-50%,-50%);transform:rotate(45deg) translate(-50%,-50%);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:transform .25s,top .25s;transition:transform .25s,top .25s;width:.5em}.SimpleSel--open .SimpleSel__icon:after{top:calc(50% + 2px);-webkit-transform:rotate(225deg) translate(-50%,-50%);transform:rotate(225deg) translate(-50%,-50%)}.SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,.SimpleSel__list_item--not_value,.SimpleSel__title--placeholder{color:#5d5c5c;color:var(--simpS_color_placeholder)}.SimpleSel__body{background-color:#fff;background-color:var(--simpS_bg);border:1px solid;border-radius:4px;border-radius:var(--simpS_radius);max-height:0;opacity:0;overflow:hidden;overflow-y:auto;position:absolute;-webkit-transition:max-height .25s,opacity .1s;transition:max-height .25s,opacity .1s;width:100%;z-index:3}.SimpleSel:not(.SimpleSel--up) .SimpleSel--multi{margin-top:2px;top:100%}.SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body{bottom:100%;margin-bottom:2px}.SimpleSel--open .SimpleSel__body{max-height:230px;opacity:1}.SimpleSel__search{border-radius:4px;border-radius:var(--simpS_radius);padding:2px 15px;padding:2px var(--simpS_pad_hor);width:100%}.SimpleSel__search--top{display:none;height:100%;left:0;opacity:0;position:absolute;top:0}.SimpleSel--open .SimpleSel__search--top{display:block;opacity:1}.SimpleSel__search--dropdown{border:none;border-bottom:1px solid;border-radius:0;height:34px;height:var(--simpS_btn_h)}.SimpleSel__controls{border-bottom:1px solid;display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel__control{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__control+.SimpleSel__control{border-left:1px solid}.SimpleSel__select_all__icon{border-color:green;border-color:var(--simpS_color_yes);border-radius:50%;color:#d9d7d7;color:var(--simpS_color_cheked)}.SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon{color:#eae9e9;color:var(--simpS_color_light)}.SimpleSel[data-check-all-multi=yes] .SimpleSel__select_all__icon{color:green;color:var(--simpS_color_yes)}.SimpleSel__reset_all__icon{border-radius:50%;color:red;color:var(--simpS_color_no);position:relative}.SimpleSel__reset_all__icon:after,.SimpleSel__reset_all__icon:before{background-color:currentColor;content:" ";height:60%;left:8px;left:calc(var(--simpS_f_size)/2);position:absolute;width:2px}.SimpleSel__reset_all__icon:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.SimpleSel__reset_all__icon:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.SimpleSel__bottom_controls{border-top:1px solid;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:5px;position:sticky}.SimpleSel__bottom_control--hide{display:none}.SimpleSel__bottom_control{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__bottom_control--ok{text-transform:uppercase}.SimpleSel__bottom_control+.SimpleSel__bottom_control{border-left:1px solid}.SimpleSel__list{list-style-type:none;margin:0;padding:0}.SimpleSel__group_items:not(:first-child){margin-top:5px}.SimpleSel__group_title{background-color:#eae9e9;background-color:var(--simpS_color_light);display:block;font-size:1.02em;font-weight:700;margin-bottom:2px;padding:6px 10px}.SimpleSel__group{list-style-type:none;margin:0;padding:0}.SimpleSel__list_item{cursor:pointer}.SimpleSel__list_item:not(:last-child){border-bottom:1px solid #eae9e9;border-bottom:1px solid var(--simpS_color_light)}.SimpleSel__list_item--disabled{cursor:default;opacity:.5}.SimpleSel__list_item_body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:36px;min-height:var(--simpS_li_h);padding:5px 15px;padding:5px var(--simpS_pad_hor)}.SimpleSel__list_item_body:hover{background-color:#eae9e9;background-color:var(--simpS_color_light)}.SimpleSel--single .SimpleSel__list_item--checked{background-color:#d9d7d7;background-color:var(--simpS_color_cheked)}.SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before{height:0;opacity:0;width:0}.SimpleSel__close{display:none}.SimpleSel--body_open{overflow:hidden;position:relative}.SimpleSel--float .SimpleSel__body{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:none;-ms-flex-direction:column;flex-direction:column;left:50%;max-height:90%;max-width:90%;overflow:hidden;overflow-y:auto;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.SimpleSel--open{z-index:7}.SimpleSel--float .SimpleSel__bottom_control--hide,.SimpleSel--float.SimpleSel--open .SimpleSel__body{display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel--float .SimpleSel__list{-webkit-box-flex:1;-ms-flex:1;flex:1}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { ISimpleSelectOptions, ISimpleSelectProps } from './types/simpleSelect.types';
|
2
|
+
import { selectorType } from './types/item.types';
|
3
|
+
import { SimpleSelectItem } from './simpleSelectItem';
|
4
|
+
import './style.css';
|
5
|
+
export default class SimpleSelect {
|
6
|
+
callCount: number;
|
7
|
+
countInit: number;
|
8
|
+
$selects: SimpleSelectItem[];
|
9
|
+
options: ISimpleSelectOptions;
|
10
|
+
nameMarkTransform: string;
|
11
|
+
dataNameMark: string;
|
12
|
+
isNative: boolean;
|
13
|
+
constructor(selector: selectorType, options?: ISimpleSelectProps);
|
14
|
+
detectMobile(): void;
|
15
|
+
private init;
|
16
|
+
createMethods(select: SimpleSelectItem): {
|
17
|
+
getInstance: () => HTMLSelectElement;
|
18
|
+
reload(): void;
|
19
|
+
update(): void;
|
20
|
+
detach(): void;
|
21
|
+
};
|
22
|
+
setMethods(select: SimpleSelectItem): void;
|
23
|
+
setMethodsClear(select: SimpleSelectItem): void;
|
24
|
+
private build;
|
25
|
+
private detach;
|
26
|
+
rebuild(selectsItems: SimpleSelectItem): void;
|
27
|
+
getSelects(): SimpleSelectItem[];
|
28
|
+
getSelectFirst(): {
|
29
|
+
getInstance: () => HTMLSelectElement;
|
30
|
+
reload(): void;
|
31
|
+
update(): void;
|
32
|
+
detach(): void;
|
33
|
+
};
|
34
|
+
getSelectById(id: string): {
|
35
|
+
getInstance: () => HTMLSelectElement;
|
36
|
+
reload(): void;
|
37
|
+
update(): void;
|
38
|
+
detach(): void;
|
39
|
+
} | null;
|
40
|
+
}
|