selective-ui 1.0.2
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/selective-ui.css +569 -0
- package/dist/selective-ui.css.map +1 -0
- package/dist/selective-ui.esm.js +6101 -0
- package/dist/selective-ui.esm.js.map +1 -0
- package/dist/selective-ui.esm.min.js +1 -0
- package/dist/selective-ui.esm.min.js.br +0 -0
- package/dist/selective-ui.min.css +1 -0
- package/dist/selective-ui.min.css.br +0 -0
- package/dist/selective-ui.min.js +2 -0
- package/dist/selective-ui.min.js.br +0 -0
- package/dist/selective-ui.umd.js +6115 -0
- package/dist/selective-ui.umd.js.map +1 -0
- package/package.json +68 -0
- package/src/css/components/accessorybox.css +64 -0
- package/src/css/components/directive.css +20 -0
- package/src/css/components/empty-state.css +26 -0
- package/src/css/components/loading-state.css +26 -0
- package/src/css/components/optgroup.css +62 -0
- package/src/css/components/option-handle.css +34 -0
- package/src/css/components/option.css +130 -0
- package/src/css/components/placeholder.css +15 -0
- package/src/css/components/popup.css +39 -0
- package/src/css/components/searchbox.css +29 -0
- package/src/css/components/selectbox.css +54 -0
- package/src/css/index.css +75 -0
- package/src/js/adapter/mixed-adapter.js +435 -0
- package/src/js/components/accessorybox.js +125 -0
- package/src/js/components/directive.js +38 -0
- package/src/js/components/empty-state.js +68 -0
- package/src/js/components/loading-state.js +60 -0
- package/src/js/components/option-handle.js +114 -0
- package/src/js/components/placeholder.js +57 -0
- package/src/js/components/popup.js +471 -0
- package/src/js/components/searchbox.js +168 -0
- package/src/js/components/selectbox.js +693 -0
- package/src/js/core/base/adapter.js +163 -0
- package/src/js/core/base/model.js +59 -0
- package/src/js/core/base/recyclerview.js +83 -0
- package/src/js/core/base/view.js +62 -0
- package/src/js/core/model-manager.js +286 -0
- package/src/js/core/search-controller.js +522 -0
- package/src/js/index.js +137 -0
- package/src/js/models/group-model.js +143 -0
- package/src/js/models/option-model.js +237 -0
- package/src/js/services/dataset-observer.js +73 -0
- package/src/js/services/ea-observer.js +88 -0
- package/src/js/services/effector.js +404 -0
- package/src/js/services/refresher.js +40 -0
- package/src/js/services/resize-observer.js +152 -0
- package/src/js/services/select-observer.js +61 -0
- package/src/js/types/adapter.type.js +33 -0
- package/src/js/types/effector.type.js +24 -0
- package/src/js/types/ievents.type.js +11 -0
- package/src/js/types/libs.type.js +28 -0
- package/src/js/types/model.type.js +11 -0
- package/src/js/types/recyclerview.type.js +12 -0
- package/src/js/types/resize-observer.type.js +19 -0
- package/src/js/types/view.group.type.js +13 -0
- package/src/js/types/view.option.type.js +15 -0
- package/src/js/types/view.type.js +11 -0
- package/src/js/utils/guard.js +47 -0
- package/src/js/utils/ievents.js +83 -0
- package/src/js/utils/istorage.js +61 -0
- package/src/js/utils/libs.js +619 -0
- package/src/js/utils/selective.js +386 -0
- package/src/js/views/group-view.js +103 -0
- package/src/js/views/option-view.js +153 -0
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "selective-ui",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "An overlay for the HTML select element.",
|
|
5
|
+
"author": "Huỳnh Công Xuân Mai",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"main": "dist/selective-ui.umd.js",
|
|
9
|
+
"module": "dist/selective-ui.esm.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/selective-ui.esm.js",
|
|
13
|
+
"require": "./dist/selective-ui.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "rimraf dist",
|
|
22
|
+
"build": "npm run clean && rollup -c",
|
|
23
|
+
"watch": "rollup -c --watch",
|
|
24
|
+
"dev": "rollup -c -w",
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"test:watch": "jest --watch",
|
|
27
|
+
"test:coverage": "jest --coverage",
|
|
28
|
+
"test:unit": "jest tests/unit",
|
|
29
|
+
"test:integration": "jest tests/integration",
|
|
30
|
+
"test:verbose": "jest --verbose",
|
|
31
|
+
"test:ci": "jest --ci --coverage --maxWorkers=2",
|
|
32
|
+
"lint": "eslint src/",
|
|
33
|
+
"lint:fix": "eslint src/ --fix",
|
|
34
|
+
"prepublishOnly": "npm run build"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/core": "^7.28.5",
|
|
38
|
+
"@babel/preset-env": "^7.28.5",
|
|
39
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
41
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
42
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
43
|
+
"@testing-library/dom": "^10.4.1",
|
|
44
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
45
|
+
"autoprefixer": "^10.4.21",
|
|
46
|
+
"babel-jest": "^29.7.0",
|
|
47
|
+
"cssnano": "^6.1.2",
|
|
48
|
+
"jest": "^29.7.0",
|
|
49
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
50
|
+
"postcss": "^8.4.45",
|
|
51
|
+
"rimraf": "^6.0.1",
|
|
52
|
+
"rollup": "^4.50.0",
|
|
53
|
+
"rollup-plugin-brotli": "^3.1.0",
|
|
54
|
+
"rollup-plugin-postcss": "^4.0.2"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"select",
|
|
58
|
+
"dropdown",
|
|
59
|
+
"ui",
|
|
60
|
+
"component",
|
|
61
|
+
"custom-select",
|
|
62
|
+
"searchable-select"
|
|
63
|
+
],
|
|
64
|
+
"browserslist": [
|
|
65
|
+
">0.25%",
|
|
66
|
+
"not dead"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.selective-ui-accessorybox {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
|
|
6
|
+
gap: 2px;
|
|
7
|
+
padding: var(--seui-accessory-padding);
|
|
8
|
+
max-width: var(--seui-accessory-max-width);
|
|
9
|
+
max-height: var(--seui-accessory-max-height);
|
|
10
|
+
overflow-y: scroll;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.accessory-item {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
border-color: var(--seui-accessory-item-border-color);
|
|
19
|
+
border-style: var(--seui-accessory-item-border-style);
|
|
20
|
+
border-width: var(--seui-accessory-item-border-width);
|
|
21
|
+
border-radius: var(--seui-accessory-item-border-radius);
|
|
22
|
+
|
|
23
|
+
background: var(--seui-accessory-item-background);
|
|
24
|
+
font-size: var(--seui-accessory-item-font-size);
|
|
25
|
+
padding: var(--seui-accessory-item-padding);
|
|
26
|
+
gap: var(--seui-accessory-item-gap);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.accessory-item > .accessory-item-button {
|
|
30
|
+
position: relative;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
color: var(--seui-accessory-item-button-color);
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
|
|
35
|
+
border-color: var(--seui-accessory-item-button-border-color);
|
|
36
|
+
border-style: var(--seui-accessory-item-button-border-style);
|
|
37
|
+
border-width: var(--seui-accessory-item-button-border-width);
|
|
38
|
+
border-radius: var(--seui-accessory-item-button-border-radius);
|
|
39
|
+
|
|
40
|
+
width: var(--seui-accessory-item-button-width);
|
|
41
|
+
min-width: var(--seui-accessory-item-button-width);
|
|
42
|
+
height: var(--seui-accessory-item-button-height);
|
|
43
|
+
min-height: var(--seui-accessory-item-button-height);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.accessory-item > .accessory-item-button::after {
|
|
47
|
+
background: url('data:image/svg+xml,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><g><title>Layer 1</title><g transform="rotate(45 8 8)" stroke="null" id="svg_28"><rect stroke="%23000" rx="1" id="svg_20" height="1.41129" width="7.76211" y="7.29435" x="4.11895" stroke-width="0" fill="%234c4c4c"/><rect stroke="%23000" transform="matrix(0 0.705646 -0.705646 0 12.0262 3.97378)" rx="1" id="svg_27" height="2" width="11" y="4.70572" x="0.20572" stroke-width="0" fill="%234c4c4c"/></g></g></svg>');
|
|
48
|
+
display: block;
|
|
49
|
+
content: "";
|
|
50
|
+
position: absolute;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
background-position: center center;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.accessory-item > .accessory-item-content {
|
|
58
|
+
color: var(--seui-accessory-item-content-color);
|
|
59
|
+
font-size: var(--seui-accessory-item-content-font-size);
|
|
60
|
+
padding: var(--seui-accessory-item-content-padding);
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.selective-ui-directive {
|
|
2
|
+
content: " ";
|
|
3
|
+
position: absolute;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
transition: all linear 200ms;
|
|
7
|
+
border-top: 4px solid var(--seui-directive-color);
|
|
8
|
+
border-right: 4px solid transparent;
|
|
9
|
+
border-left: 4px solid transparent;
|
|
10
|
+
width: 0;
|
|
11
|
+
height: 0;
|
|
12
|
+
right: 10px;
|
|
13
|
+
top: 50%;
|
|
14
|
+
transform: translateY(-50%) rotate(0deg);
|
|
15
|
+
z-index: 1;
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
18
|
+
.selective-ui-directive.drop-down {
|
|
19
|
+
transform: translateY(-50%) rotate(180deg);
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.selective-ui-empty-state {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
padding: var(--seui-empty-state-padding, 20px);
|
|
6
|
+
text-align: center;
|
|
7
|
+
font-family: var(--seui-view-text-style);
|
|
8
|
+
font-size: var(--seui-view-text-size);
|
|
9
|
+
color: var(--seui-empty-state-color, #999);
|
|
10
|
+
background-color: var(--seui-empty-state-background, transparent);
|
|
11
|
+
border-radius: var(--seui-option-border-radius);
|
|
12
|
+
min-height: 60px;
|
|
13
|
+
|
|
14
|
+
position: sticky;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.selective-ui-empty-state.small {
|
|
19
|
+
text-align: left;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
min-height: 30px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.selective-ui-empty-state.hide {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.selective-ui-loading-state {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
padding: var(--seui-empty-state-padding, 20px);
|
|
6
|
+
text-align: center;
|
|
7
|
+
font-family: var(--seui-view-text-style);
|
|
8
|
+
font-size: var(--seui-view-text-size);
|
|
9
|
+
color: var(--seui-empty-state-color, #999);
|
|
10
|
+
background-color: var(--seui-empty-state-background, transparent);
|
|
11
|
+
border-radius: var(--seui-option-border-radius);
|
|
12
|
+
min-height: 60px;
|
|
13
|
+
|
|
14
|
+
position: sticky;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.selective-ui-loading-state.small {
|
|
19
|
+
text-align: left;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
min-height: 30px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.selective-ui-loading-state.hide {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.selective-ui-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 2px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.selective-ui-group.hide {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.selective-ui-group-header {
|
|
12
|
+
font-family: var(--seui-view-text-style);
|
|
13
|
+
font-size: var(--seui-view-text-size);
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
color: var(--seui-view-text-color);
|
|
16
|
+
padding: 8px 12px;
|
|
17
|
+
background-color: var(--seui-view-optgroup-background-color);
|
|
18
|
+
border-radius: var(--seui-option-border-radius);
|
|
19
|
+
/* position: sticky; */
|
|
20
|
+
/* top: 0; */
|
|
21
|
+
z-index: 1;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
user-select: none;
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.selective-ui-group-header::before {
|
|
31
|
+
content: "";
|
|
32
|
+
display: inline-block;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
border-top: 5px solid transparent;
|
|
36
|
+
border-bottom: 5px solid transparent;
|
|
37
|
+
border-left: 7px solid currentColor;
|
|
38
|
+
transition: transform 200ms ease;
|
|
39
|
+
transform: rotate(90deg);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.selective-ui-group.collapsed .selective-ui-group-header::before {
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.selective-ui-group-items {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: 2px;
|
|
50
|
+
padding-left: 16px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.selective-ui-group.collapsed .selective-ui-group-items {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Option trong group có indent nhẹ hơn */
|
|
58
|
+
.selective-ui-group-items .selective-ui-option-view {
|
|
59
|
+
padding-left: 12px;
|
|
60
|
+
border-left: 2px solid #e0e0e0;
|
|
61
|
+
margin-left: 4px;
|
|
62
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.selective-ui-option-handle {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
|
|
7
|
+
font-size: var(--seui-option-crtl-text-size);
|
|
8
|
+
font-family: var(--seui-view-text-style);
|
|
9
|
+
width: unset;
|
|
10
|
+
position: sticky;
|
|
11
|
+
top: 0px;
|
|
12
|
+
padding: var(--seui-option-padding);
|
|
13
|
+
z-index: 2;
|
|
14
|
+
background-color: var(--seui-option-crtl-background-color);
|
|
15
|
+
border: 1px solid var(--seui-option-crtl-border-color);
|
|
16
|
+
border-radius: var(--seui-option-border-radius);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.selective-ui-option-handle.hide {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.selective-ui-option-handle-item {
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
color: var(--seui-option-crtl-text-color);
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.selective-ui-option-handle-item:hover {
|
|
33
|
+
color: var(--seui-option-crtl-text-color-hover);
|
|
34
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
.selective-ui-option-view {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: auto;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: center !important;
|
|
6
|
+
position: relative;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
line-height: normal;
|
|
9
|
+
padding: 5px;
|
|
10
|
+
gap: 7px;
|
|
11
|
+
transition: all 180ms;
|
|
12
|
+
|
|
13
|
+
background-color: var(--seui-transparent-color);
|
|
14
|
+
border: solid 1px var(--seui-transparent-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.selective-ui-option-view.checked {
|
|
18
|
+
background-color: var(--seui-chkbox-checked-background-color);
|
|
19
|
+
border-color: var(--seui-chkbox-checked-border-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.selective-ui-option-view > input {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.selective-ui-option-view > label {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
display: flex;
|
|
30
|
+
gap: 7px;
|
|
31
|
+
font-family: var(--seui-view-text-style);
|
|
32
|
+
font-size: var(--seui-view-text-size);
|
|
33
|
+
color: var(--seui-view-text-color);
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.selective-ui-option-view.multiple > label::before {
|
|
38
|
+
content: "";
|
|
39
|
+
display: block;
|
|
40
|
+
width: 17px;
|
|
41
|
+
min-width: 17px;
|
|
42
|
+
height: 17px;
|
|
43
|
+
min-height: 17px;
|
|
44
|
+
background: var(--seui-chkbox-background-color);
|
|
45
|
+
border: 1px solid var(--seui-chkbox-border-color);
|
|
46
|
+
border-radius: 0.2em;
|
|
47
|
+
-webkit-transition: all 200ms, background 200ms ease-in-out;
|
|
48
|
+
transition: all 200ms, background 200ms ease-in-out;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.selective-ui-option-view.multiple.checked > label::before {
|
|
52
|
+
color: var(--seui-view-background-color);
|
|
53
|
+
background: var(--seui-chkbox-checked-color) url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNyAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjE2ODQ3IDEyLjM4MDhDNy43Nzc3OCAxMi43NzIyIDcuMTQzNTMgMTIuNzcyMiA2Ljc1Mjg0IDEyLjM4MDhMMi43NDQ5OCA4LjM2NDlDMi4zNTU0IDcuOTc0NTQgMi4zNTU0IDcuMzQyNDcgMi43NDQ5OCA2Ljk1MjFMMy4xNjQ1MiA2LjUzMTczQzMuNTU1MiA2LjE0MDI3IDQuMTg5NDYgNi4xNDAyNyA0LjU4MDE0IDYuNTMxNzNMNi43NTI4NCA4LjcwODc4QzcuMTQzNTIgOS4xMDAyNCA3Ljc3Nzc4IDkuMTAwMjQgOC4xNjg0NiA4LjcwODc4TDEyLjI0OTggNC42MTkyM0MxMi42NDA1IDQuMjI3NzcgMTMuMjc0OCA0LjIyNzc3IDEzLjY2NTUgNC42MTkyM0wxNC4wODUgNS4wMzk2QzE0LjQ3NDYgNS40Mjk5NyAxNC40NzQ2IDYuMDYyMDQgMTQuMDg1IDYuNDUyNEw4LjE2ODQ3IDEyLjM4MDhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K) 50% 40% no-repeat;
|
|
54
|
+
border: 1px solid var(--seui-chkbox-checked-color);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.selective-ui-option-view > label > div {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
|
|
61
|
+
display: flex;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.selective-ui-option-view > label.align-horizontal-left > div {
|
|
68
|
+
justify-content: flex-start;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.selective-ui-option-view > label.align-horizontal-center > div {
|
|
72
|
+
justify-content: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.selective-ui-option-view > label.align-horizontal-right > div {
|
|
76
|
+
justify-content: flex-end;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.selective-ui-option-view > label.align-vertical-left > div {
|
|
80
|
+
align-items: flex-start;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.selective-ui-option-view > label.align-vertical-center > div {
|
|
84
|
+
align-items: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.selective-ui-option-view > label.align-vertical-right > div {
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.selective-ui-option-view.hide {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.selective-ui-option-view.highlight {
|
|
96
|
+
background-color: var(--seui-chkbox-hover-background-color);
|
|
97
|
+
border-color: var(--seui-chkbox-hover-border-color);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.selective-ui-option-view.highlight.checked {
|
|
101
|
+
background-color: var(--seui-chkbox-checked-hover-background-color);
|
|
102
|
+
border-color: var(--seui-chkbox-checked-hover-border-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.selective-ui-option-view.has-image {
|
|
106
|
+
gap: 10px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.selective-ui-option-view.has-image.image-top {
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
align-items: center;
|
|
112
|
+
text-align: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.selective-ui-option-view.has-image.image-right {
|
|
116
|
+
flex-direction: row-reverse;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.selective-ui-option-view.has-image.image-bottom {
|
|
120
|
+
flex-direction: column-reverse;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.selective-ui-option-view .option-image {
|
|
124
|
+
object-fit: cover;
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.selective-ui-option-view.multiple.has-image > label::before {
|
|
129
|
+
order: -1;
|
|
130
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.selective-ui-placeholder {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
margin-left: 10px;
|
|
6
|
+
max-width: calc(100% - 30px);
|
|
7
|
+
height: calc(100% - 10px);
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
font-family: var(--seui-view-text-style);
|
|
12
|
+
font-size: var(--seui-view-text-size) !important;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
color: var(--seui-view-text-color);
|
|
15
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.selective-ui-popup, .selective-ui-popup * {
|
|
2
|
+
-webkit-box-sizing: border-box;
|
|
3
|
+
-moz-box-sizing: border-box;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
|
|
6
|
+
line-height: normal;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.selective-ui-popup {
|
|
10
|
+
display: none;
|
|
11
|
+
position: fixed;
|
|
12
|
+
z-index: 9999;
|
|
13
|
+
overflow: none;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
|
|
16
|
+
height: 0px;
|
|
17
|
+
padding: 2px;
|
|
18
|
+
gap: 2px;
|
|
19
|
+
|
|
20
|
+
background-color: var(--seui-popup-background-color);
|
|
21
|
+
border-color: var(--seui-popup-border-color);
|
|
22
|
+
border-style: var(--seui-popup-border-style);
|
|
23
|
+
border-width: var(--seui-popup-border-width);
|
|
24
|
+
border-radius: var(--seui-popup-border-radius);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.selective-ui-options-container {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
width: 100%;
|
|
31
|
+
gap: 2px;
|
|
32
|
+
|
|
33
|
+
-webkit-overflow-scrolling: touch;
|
|
34
|
+
touch-action: pan-y;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.selective-ui-options-container.hide {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.selective-ui-searchbox {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
position: absolute;
|
|
6
|
+
|
|
7
|
+
background-color: var(--seui-view-background-color);
|
|
8
|
+
border-radius: 5px;
|
|
9
|
+
z-index: 2;
|
|
10
|
+
width: calc(100% - 30px);
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.selective-ui-searchbox-input {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: calc(100% - 10px);
|
|
17
|
+
border: 0;
|
|
18
|
+
outline: none !important;
|
|
19
|
+
background: var(--seui-transparent-color);
|
|
20
|
+
color: var(--seui-view-text-color);
|
|
21
|
+
padding: 0 !important;
|
|
22
|
+
margin-left: 10px;
|
|
23
|
+
text-indent: 0px;
|
|
24
|
+
font-family: var(--seui-view-text-style);
|
|
25
|
+
font-size: var(--seui-view-text-size) !important;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.selective-ui-MAIN {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
max-width: min-content;
|
|
4
|
+
}
|
|
5
|
+
.selective-ui-MAIN, .selective-ui-MAIN * {
|
|
6
|
+
-webkit-box-sizing: border-box;
|
|
7
|
+
-moz-box-sizing: border-box;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
|
|
10
|
+
-ms-touch-action: manipulation;
|
|
11
|
+
touch-action: manipulation;
|
|
12
|
+
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
|
|
16
|
+
line-height: normal;
|
|
17
|
+
}
|
|
18
|
+
.selective-ui-MAIN > select.init {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
.selective-ui-MAIN > .selective-ui-view {
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
align-items: center;
|
|
29
|
+
|
|
30
|
+
background-color: var(--seui-view-background-color);
|
|
31
|
+
border: var(--seui-view-border-style) var(--seui-view-border-size) var(--seui-view-border-color);
|
|
32
|
+
border-radius: var(--seui-view-border-radius);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.selective-ui-MAIN.invisible {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.selective-ui-MAIN.disabled {
|
|
40
|
+
--seui-view-background-color: var(--seui-view-ro-background-color);
|
|
41
|
+
--seui-view-border-color: var(--seui-view-ro-border-color);
|
|
42
|
+
--seui-view-text-color: var(--seui-view-ro-text-color);
|
|
43
|
+
--seui-directive-color: var(--seui-directive-ro-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.selective-ui-MAIN .hide {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@supports (-webkit-touch-callout: none) {
|
|
51
|
+
:root {
|
|
52
|
+
--seui-view-text-size: var(--seui-view-mobile-text-size);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--seui-transparent-color: #00000000;
|
|
3
|
+
|
|
4
|
+
--seui-view-text-color: #121212;
|
|
5
|
+
--seui-view-ro-text-color: #a3a3a3;
|
|
6
|
+
--seui-view-text-style: Arial, Helvetica, sans-serif;
|
|
7
|
+
--seui-view-text-size: 13px;
|
|
8
|
+
--seui-view-mobile-text-size: 16px;
|
|
9
|
+
--seui-view-background-color: #ffffff;
|
|
10
|
+
--seui-view-ro-background-color: #00000029;
|
|
11
|
+
--seui-view-optgroup-background-color: #a3c6e9;
|
|
12
|
+
--seui-view-border-color: #a3a3a3;
|
|
13
|
+
--seui-view-ro-border-color: #bdbdbd;
|
|
14
|
+
--seui-view-border-size: 1px;
|
|
15
|
+
--seui-view-border-style: solid;
|
|
16
|
+
--seui-view-border-radius: 5px;
|
|
17
|
+
|
|
18
|
+
--seui-directive-color: #000000;
|
|
19
|
+
--seui-directive-ro-color: #a3a3a3;
|
|
20
|
+
|
|
21
|
+
--seui-option-crtl-text-color: #307ecc;
|
|
22
|
+
--seui-option-crtl-text-color-hover: #ff0000;
|
|
23
|
+
--seui-option-crtl-background-color: #f3f3f3;
|
|
24
|
+
--seui-option-crtl-border-color: #cccccc;
|
|
25
|
+
--seui-option-crtl-text-size: 13px;
|
|
26
|
+
|
|
27
|
+
--seui-option-padding: 5px;
|
|
28
|
+
--seui-option-border-radius: 5px;
|
|
29
|
+
|
|
30
|
+
--seui-accessory-max-width: 100%;
|
|
31
|
+
--seui-accessory-max-height: 50px;
|
|
32
|
+
--seui-accessory-padding: 2px 0;
|
|
33
|
+
--seui-accessory-item-border-color: #a3a3a3;
|
|
34
|
+
--seui-accessory-item-border-style: solid;
|
|
35
|
+
--seui-accessory-item-border-width: 1px;
|
|
36
|
+
--seui-accessory-item-border-radius: 3px;
|
|
37
|
+
--seui-accessory-item-background: #f7f7f9;
|
|
38
|
+
--seui-accessory-item-font-size: 11px;
|
|
39
|
+
--seui-accessory-item-padding: 2px;
|
|
40
|
+
--seui-accessory-item-gap: 3px;
|
|
41
|
+
--seui-accessory-item-button-color: #757575;
|
|
42
|
+
--seui-accessory-item-button-width: 16px;
|
|
43
|
+
--seui-accessory-item-button-height: 16px;
|
|
44
|
+
--seui-accessory-item-button-border-color: #a3a3a3;
|
|
45
|
+
--seui-accessory-item-button-border-style: solid;
|
|
46
|
+
--seui-accessory-item-button-border-width: 1px;
|
|
47
|
+
--seui-accessory-item-button-border-radius: 2px;
|
|
48
|
+
--seui-accessory-item-content-color: #307ecc;
|
|
49
|
+
--seui-accessory-item-content-font-size: 11px;
|
|
50
|
+
--seui-accessory-item-content-padding: 0 4px 0 2px;
|
|
51
|
+
|
|
52
|
+
--seui-popup-background-color: #fbfbfb;
|
|
53
|
+
--seui-popup-border-color: #a3a3a3;
|
|
54
|
+
--seui-popup-border-style: solid;
|
|
55
|
+
--seui-popup-border-width: 1px;
|
|
56
|
+
--seui-popup-border-radius: 6px;
|
|
57
|
+
|
|
58
|
+
--seui-chkbox-background-color: #ffffff;
|
|
59
|
+
--seui-chkbox-border-color: #8f9194;
|
|
60
|
+
|
|
61
|
+
--seui-chkbox-hover-background-color: #dbdbdb;
|
|
62
|
+
--seui-chkbox-hover-border-color: #b7b7b7;
|
|
63
|
+
|
|
64
|
+
--seui-chkbox-checked-background-color: #9dcff8;
|
|
65
|
+
--seui-chkbox-checked-border-color: #9dcff8;
|
|
66
|
+
|
|
67
|
+
--seui-chkbox-checked-hover-background-color: #9dcff8;
|
|
68
|
+
--seui-chkbox-checked-hover-border-color: #007eff;
|
|
69
|
+
|
|
70
|
+
--seui-chkbox-checked-color: #0075FF;
|
|
71
|
+
|
|
72
|
+
--seui-empty-state-color: #999999;
|
|
73
|
+
--seui-empty-state-background: #f9f9f9;
|
|
74
|
+
--seui-empty-state-padding: 10px 5px;
|
|
75
|
+
}
|