selective-ui 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/selective-ui.css +2 -1
- package/dist/selective-ui.css.map +1 -1
- package/dist/selective-ui.esm.js +43 -6
- package/dist/selective-ui.esm.js.map +1 -1
- package/dist/selective-ui.esm.min.js +2 -2
- package/dist/selective-ui.esm.min.js.br +0 -0
- package/dist/selective-ui.min.css +1 -1
- package/dist/selective-ui.min.css.br +0 -0
- package/dist/selective-ui.min.js +2 -2
- package/dist/selective-ui.min.js.br +0 -0
- package/dist/selective-ui.umd.js +44 -7
- package/dist/selective-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/css/views/option-view.css +2 -1
- package/src/ts/components/accessorybox.ts +39 -4
- package/src/ts/components/selectbox.ts +9 -5
- package/src/ts/core/base/virtual-recyclerview.ts +1 -1
package/dist/selective-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.css","selectbox.css","placeholder.css","directive.css","empty-state.css","loading-state.css","group-view.css","popup.css","searchbox.css","option-handle.css","option-view.css","accessorybox.css"],"names":[],"mappings":"AAAA;IACI,mCAAmC;;IAEnC,+BAA+B;IAC/B,kCAAkC;IAClC,oDAAoD;IACpD,2BAA2B;IAC3B,kCAAkC;IAClC,qCAAqC;IACrC,0CAA0C;IAC1C,8CAA8C;IAC9C,iCAAiC;IACjC,oCAAoC;IACpC,4BAA4B;IAC5B,+BAA+B;IAC/B,8BAA8B;;IAE9B,+BAA+B;IAC/B,kCAAkC;;IAElC,sCAAsC;IACtC,4CAA4C;IAC5C,4CAA4C;IAC5C,wCAAwC;IACxC,kCAAkC;;IAElC,0BAA0B;IAC1B,gCAAgC;;IAEhC,gCAAgC;IAChC,iCAAiC;IACjC,+BAA+B;IAC/B,2CAA2C;IAC3C,yCAAyC;IACzC,uCAAuC;IACvC,wCAAwC;IACxC,yCAAyC;IACzC,qCAAqC;IACrC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IAEvB,gBAAgB;IAChB,qDAAqD;IACrD,qDAAqD;IACrD,qDAAqD;IACrD,uDAAuD;;IAEvD,iDAAiD;IACjD,+CAA+C;IAC/C,2CAA2C;IAC3C,mCAAmC;AACvC;;AAEA;IACI,kBAAkB;IAClB,eAAe;IACf,8CAA8C;IAC9C,iBAAiB;;IAEjB,4DAA4D;IAC5D,4DAA4D;IAC5D,4DAA4D;IAC5D,8DAA8D;;IAE9D,8CAA8C;IAC9C,kDAAkD;IAClD,gDAAgD;IAChD,oDAAoD;AACxD;;AAEA;IACI,8fAA8f;IAC9f,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,4BAA4B;IAC5B,kCAAkC;IAClC,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,+CAA+C;IAC/C,uDAAuD;IACvD,mDAAmD;IACnD,gBAAgB;IAChB,uBAAuB;IACvB,mBAAmB;AACvB","file":"selective-ui.css","sourcesContent":[":root {\n --seui-transparent-color: #00000000;\n\n --seui-view-text-color: #121212;\n --seui-view-ro-text-color: #a3a3a3;\n --seui-view-text-style: Arial, Helvetica, sans-serif;\n --seui-view-text-size: 13px;\n --seui-view-mobile-text-size: 16px;\n --seui-view-background-color: #ffffff;\n --seui-view-ro-background-color: #00000029;\n --seui-view-optgroup-background-color: #a3c6e9;\n --seui-view-border-color: #a3a3a3;\n --seui-view-ro-border-color: #bdbdbd;\n --seui-view-border-size: 1px;\n --seui-view-border-style: solid;\n --seui-view-border-radius: 5px;\n\n --seui-directive-color: #000000;\n --seui-directive-ro-color: #a3a3a3;\n\n --seui-option-crtl-text-color: #307ecc;\n --seui-option-crtl-text-color-hover: #ff0000;\n --seui-option-crtl-background-color: #f3f3f3;\n --seui-option-crtl-border-color: #cccccc;\n --seui-option-crtl-text-size: 13px;\n\n --seui-option-padding: 5px;\n --seui-option-border-radius: 5px;\n\n --seui-accessory-max-width: 100%;\n --seui-accessory-max-height: 50px;\n --seui-accessory-padding: 2px 0;\n --seui-accessory-item-border-color: #a3a3a3;\n --seui-accessory-item-border-style: solid;\n --seui-accessory-item-border-width: 1px;\n --seui-accessory-item-border-radius: 3px;\n --seui-accessory-item-background: #f7f7f9;\n --seui-accessory-item-font-size: 11px;\n --seui-accessory-item-padding: 2px;\n --seui-accessory-item-gap: 3px;\n --seui-accessory-item-button-color: #757575;\n --seui-accessory-item-button-width: 16px;\n --seui-accessory-item-button-height: 16px;\n --seui-accessory-item-button-border-color: #a3a3a3;\n --seui-accessory-item-button-border-style: solid;\n --seui-accessory-item-button-border-width: 1px;\n --seui-accessory-item-button-border-radius: 2px;\n --seui-accessory-item-content-color: #307ecc;\n --seui-accessory-item-content-font-size: 11px;\n --seui-accessory-item-content-padding: 0 4px 0 2px;\n\n --seui-popup-background-color: #fbfbfb;\n --seui-popup-border-color: #a3a3a3;\n --seui-popup-border-style: solid;\n --seui-popup-border-width: 1px;\n --seui-popup-border-radius: 6px;\n\n --seui-chkbox-background-color: #ffffff;\n --seui-chkbox-border-color: #8f9194;\n\n --seui-chkbox-hover-background-color: #dbdbdb;\n --seui-chkbox-hover-border-color: #b7b7b7;\n\n --seui-chkbox-checked-background-color: #9dcff8;\n --seui-chkbox-checked-border-color: #9dcff8;\n\n --seui-chkbox-checked-hover-background-color: #9dcff8;\n --seui-chkbox-checked-hover-border-color: #007eff;\n\n --seui-chkbox-checked-color: #0075FF;\n\n --seui-empty-state-color: #999999;\n --seui-empty-state-background: #f9f9f9;\n --seui-empty-state-padding: 10px 5px;\n}",".seui-MAIN {\n display: inline-block;\n max-width: min-content;\n}\n.seui-MAIN, .seui-MAIN * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n\n margin: 0;\n padding: 0;\n\n line-height: normal;\n}\n.seui-MAIN > select.init {\n display: none;\n}\n.seui-MAIN > .seui-view {\n position: relative;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n\n background-color: var(--seui-view-background-color);\n border: var(--seui-view-border-style) var(--seui-view-border-size) var(--seui-view-border-color);\n border-radius: var(--seui-view-border-radius);\n}\n\n.seui-MAIN.invisible {\n display: none;\n}\n\n.seui-MAIN.disabled {\n --seui-view-background-color: var(--seui-view-ro-background-color);\n --seui-view-border-color: var(--seui-view-ro-border-color);\n --seui-view-text-color: var(--seui-view-ro-text-color);\n --seui-directive-color: var(--seui-directive-ro-color);\n}\n\n.seui-MAIN .hide {\n display: none;\n}\n\n@supports (-webkit-touch-callout: none) {\n :root {\n --seui-view-text-size: var(--seui-view-mobile-text-size);\n }\n}",".seui-placeholder {\n align-items: center;\n \n margin-left: 10px;\n max-width: calc(100% - 40px);\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n overflow: hidden;\n\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size) !important;\n color: var(--seui-view-text-color);\n}",".seui-directive {\n content: \" \";\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n transition: all linear 200ms;\n border-top: 4px solid var(--seui-directive-color);\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n width: 0;\n height: 0;\n right: 10px;\n top: 50%;\n transform: translateY(-50%) rotate(0deg);\n z-index: 1;\n pointer-events: none;\n}\n.seui-directive.drop-down {\n transform: translateY(-50%) rotate(180deg);\n}",".seui-empty-state {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--seui-empty-state-padding, 20px);\n text-align: center;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n color: var(--seui-empty-state-color, #999);\n background-color: var(--seui-empty-state-background, transparent);\n border-radius: var(--seui-option-border-radius);\n min-height: 60px;\n\n position: sticky;\n bottom: 0;\n}\n\n.seui-empty-state.small {\n text-align: left;\n justify-content: flex-start;\n min-height: 30px;\n}\n\n.seui-empty-state.hide {\n display: none;\n}",".seui-loading-state {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--seui-empty-state-padding, 20px);\n text-align: center;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n color: var(--seui-empty-state-color, #999);\n background-color: var(--seui-empty-state-background, transparent);\n border-radius: var(--seui-option-border-radius);\n min-height: 60px;\n\n position: sticky;\n bottom: 0;\n}\n\n.seui-loading-state.small {\n text-align: left;\n justify-content: flex-start;\n min-height: 30px;\n}\n\n.seui-loading-state.hide {\n display: none;\n}",".seui-group {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.seui-group.hide {\n display: none;\n}\n\n.seui-group-header {\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n font-weight: 600;\n color: var(--seui-view-text-color);\n padding: 8px 12px;\n background-color: var(--seui-view-optgroup-background-color);\n border-radius: var(--seui-option-border-radius);\n /* position: sticky; */\n /* top: 0; */\n z-index: 1;\n cursor: pointer;\n user-select: none;\n \n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.seui-group-header::before {\n content: \"\";\n display: inline-block;\n width: 0;\n height: 0;\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n border-left: 7px solid currentColor;\n transition: transform 200ms ease;\n transform: rotate(90deg);\n}\n\n.seui-group.collapsed .seui-group-header::before {\n transform: rotate(0deg);\n}\n\n.seui-group-items {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding-left: 16px;\n}\n\n.seui-group.collapsed .seui-group-items {\n display: none;\n}\n\n/* Option trong group có indent nhẹ hơn */\n.seui-group-items .seui-option-view {\n padding-left: 12px;\n border-left: 2px solid #e0e0e0;\n margin-left: 4px;\n}",".seui-popup, .seui-popup * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n\n line-height: normal;\n}\n\n.seui-popup {\n display: none;\n position: fixed;\n z-index: 9999;\n overflow: hidden;\n flex-direction: column;\n \n height: 0px;\n padding: 2px;\n gap: 2px;\n\n background-color: var(--seui-popup-background-color);\n border-color: var(--seui-popup-border-color);\n border-style: var(--seui-popup-border-style);\n border-width: var(--seui-popup-border-width);\n border-radius: var(--seui-popup-border-radius);\n\n transition: none;\n}\n\n.seui-options-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n\n -webkit-overflow-scrolling: touch;\n touch-action: pan-y;\n}\n\n.seui-options-container.hide {\n display: none;\n}\n\n.seui-options-container .seui-virtual-items {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 2px;\n}",".seui-searchbox {\n display: flex;\n flex-direction: row;\n align-items: center;\n position: absolute;\n \n background-color: var(--seui-view-background-color);\n border-radius: 5px;\n z-index: 2;\n width: calc(100% - 30px);\n height: 100%;\n}\n\n.seui-searchbox-input {\n width: 100%;\n height: calc(100% - 10px);\n border: 0;\n outline: none !important;\n background: var(--seui-transparent-color);\n color: var(--seui-view-text-color);\n padding: 0 !important;\n margin-left: 10px;\n text-indent: 0px;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size) !important;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}",".seui-option-handle {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n \n font-size: var(--seui-option-crtl-text-size);\n font-family: var(--seui-view-text-style);\n width: unset;\n position: sticky;\n top: 0px;\n padding: var(--seui-option-padding);\n z-index: 2;\n background-color: var(--seui-option-crtl-background-color);\n border: 1px solid var(--seui-option-crtl-border-color);\n border-radius: var(--seui-option-border-radius);\n}\n\n.seui-option-handle.hide {\n display: none;\n}\n\n.seui-option-handle-item {\n text-decoration: none;\n cursor: pointer;\n color: var(--seui-option-crtl-text-color);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.seui-option-handle-item:hover {\n color: var(--seui-option-crtl-text-color-hover);\n}",".seui-option-view {\n display: flex;\n width: auto;\n flex-direction: row;\n align-items: center !important;\n position: relative;\n border-radius: 4px;\n line-height: normal;\n padding: 5px;\n gap: 7px;\n transition: all 180ms;\n\n background-color: var(--seui-transparent-color);\n border: solid 1px var(--seui-transparent-color);\n}\n\n.seui-option-view.checked {\n background-color: var(--seui-chkbox-checked-background-color);\n border-color: var(--seui-chkbox-checked-border-color);\n}\n\n.seui-option-view > input {\n display: none;\n}\n\n.seui-option-view > label {\n width: 100%;\n height: 100%;\n display: flex;\n gap: 7px;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n color: var(--seui-view-text-color);\n align-items: center;\n}\n\n.seui-option-view.multiple > label::before {\n content: \"\";\n display: block;\n width: 17px;\n min-width: 17px;\n height: 17px;\n min-height: 17px;\n background: var(--seui-chkbox-background-color);\n border: 1px solid var(--seui-chkbox-border-color);\n border-radius: 0.2em;\n -webkit-transition: all 200ms, background 200ms ease-in-out;\n transition: all 200ms, background 200ms ease-in-out;\n}\n\n.seui-option-view.multiple.checked > label::before {\n color: var(--seui-view-background-color);\n background: var(--seui-chkbox-checked-color) url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNyAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjE2ODQ3IDEyLjM4MDhDNy43Nzc3OCAxMi43NzIyIDcuMTQzNTMgMTIuNzcyMiA2Ljc1Mjg0IDEyLjM4MDhMMi43NDQ5OCA4LjM2NDlDMi4zNTU0IDcuOTc0NTQgMi4zNTU0IDcuMzQyNDcgMi43NDQ5OCA2Ljk1MjFMMy4xNjQ1MiA2LjUzMTczQzMuNTU1MiA2LjE0MDI3IDQuMTg5NDYgNi4xNDAyNyA0LjU4MDE0IDYuNTMxNzNMNi43NTI4NCA4LjcwODc4QzcuMTQzNTIgOS4xMDAyNCA3Ljc3Nzc4IDkuMTAwMjQgOC4xNjg0NiA4LjcwODc4TDEyLjI0OTggNC42MTkyM0MxMi42NDA1IDQuMjI3NzcgMTMuMjc0OCA0LjIyNzc3IDEzLjY2NTUgNC42MTkyM0wxNC4wODUgNS4wMzk2QzE0LjQ3NDYgNS40Mjk5NyAxNC40NzQ2IDYuMDYyMDQgMTQuMDg1IDYuNDUyNEw4LjE2ODQ3IDEyLjM4MDhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K) 50% 40% no-repeat;\n border: 1px solid var(--seui-chkbox-checked-color);\n}\n\n.seui-option-view > label > div {\n width: 100%;\n /* height: 100%; */\n\n /* display: flex; */\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.seui-option-view > label.align-horizontal-left > div {\n justify-content: flex-start;\n}\n\n.seui-option-view > label.align-horizontal-center > div {\n justify-content: center;\n}\n\n.seui-option-view > label.align-horizontal-right > div {\n justify-content: flex-end;\n}\n\n.seui-option-view > label.align-vertical-left > div {\n align-items: flex-start;\n}\n\n.seui-option-view > label.align-vertical-center > div {\n align-items: center;\n}\n\n.seui-option-view > label.align-vertical-right > div {\n align-items: flex-end;\n}\n\n.seui-option-view.hide {\n display: none;\n}\n\n.seui-option-view.highlight {\n background-color: var(--seui-chkbox-hover-background-color);\n border-color: var(--seui-chkbox-hover-border-color);\n}\n\n.seui-option-view.highlight.checked {\n background-color: var(--seui-chkbox-checked-hover-background-color);\n border-color: var(--seui-chkbox-checked-hover-border-color);\n}\n\n.seui-option-view.has-image {\n gap: 10px;\n}\n\n.seui-option-view.has-image.image-top {\n flex-direction: column;\n align-items: center;\n text-align: center;\n}\n\n.seui-option-view.has-image.image-right {\n flex-direction: row-reverse;\n}\n\n.seui-option-view.has-image.image-bottom {\n flex-direction: column-reverse;\n}\n\n.seui-option-view .option-image {\n object-fit: cover;\n flex-shrink: 0;\n}\n\n.seui-option-view.multiple.has-image > label::before {\n order: -1;\n display: none;\n}",".seui-accessorybox {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n gap: 2px;\n padding: var(--seui-accessory-padding);\n max-width: var(--seui-accessory-max-width);\n max-height: var(--seui-accessory-max-height);\n overflow-y: scroll;\n}\n\n.accessory-item {\n display: flex;\n align-items: center;\n\n overflow: hidden;\n border-color: var(--seui-accessory-item-border-color);\n border-style: var(--seui-accessory-item-border-style);\n border-width: var(--seui-accessory-item-border-width);\n border-radius: var(--seui-accessory-item-border-radius);\n\n background: var(--seui-accessory-item-background);\n font-size: var(--seui-accessory-item-font-size);\n padding: var(--seui-accessory-item-padding);\n gap: var(--seui-accessory-item-gap);\n}\n\n.accessory-item > .accessory-item-button {\n position: relative;\n cursor: pointer;\n color: var(--seui-accessory-item-button-color);\n font-weight: bold;\n\n border-color: var(--seui-accessory-item-button-border-color);\n border-style: var(--seui-accessory-item-button-border-style);\n border-width: var(--seui-accessory-item-button-border-width);\n border-radius: var(--seui-accessory-item-button-border-radius);\n\n width: var(--seui-accessory-item-button-width);\n min-width: var(--seui-accessory-item-button-width);\n height: var(--seui-accessory-item-button-height);\n min-height: var(--seui-accessory-item-button-height);\n}\n\n.accessory-item > .accessory-item-button::after {\n 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>');\n display: block;\n content: \"\";\n position: absolute;\n background-repeat: no-repeat;\n background-position: center center;\n width: 100%;\n height: 100%;\n}\n\n.accessory-item > .accessory-item-content {\n color: var(--seui-accessory-item-content-color);\n font-size: var(--seui-accessory-item-content-font-size);\n padding: var(--seui-accessory-item-content-padding);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}"]}
|
|
1
|
+
{"version":3,"sources":["index.css","selectbox.css","placeholder.css","directive.css","empty-state.css","loading-state.css","group-view.css","popup.css","searchbox.css","option-handle.css","option-view.css","accessorybox.css"],"names":[],"mappings":"AAAA;IACI,mCAAmC;;IAEnC,+BAA+B;IAC/B,kCAAkC;IAClC,oDAAoD;IACpD,2BAA2B;IAC3B,kCAAkC;IAClC,qCAAqC;IACrC,0CAA0C;IAC1C,8CAA8C;IAC9C,iCAAiC;IACjC,oCAAoC;IACpC,4BAA4B;IAC5B,+BAA+B;IAC/B,8BAA8B;;IAE9B,+BAA+B;IAC/B,kCAAkC;;IAElC,sCAAsC;IACtC,4CAA4C;IAC5C,4CAA4C;IAC5C,wCAAwC;IACxC,kCAAkC;;IAElC,0BAA0B;IAC1B,gCAAgC;;IAEhC,gCAAgC;IAChC,iCAAiC;IACjC,+BAA+B;IAC/B,2CAA2C;IAC3C,yCAAyC;IACzC,uCAAuC;IACvC,wCAAwC;IACxC,yCAAyC;IACzC,qCAAqC;IACrC,kCAAkC;IAClC,8BAA8B;IAC9B,2CAA2C;IAC3C,wCAAwC;IACxC,yCAAyC;IACzC,kDAAkD;IAClD,gDAAgD;IAChD,8CAA8C;IAC9C,+CAA+C;IAC/C,4CAA4C;IAC5C,6CAA6C;IAC7C,kDAAkD;;IAElD,sCAAsC;IACtC,kCAAkC;IAClC,gCAAgC;IAChC,8BAA8B;IAC9B,+BAA+B;;IAE/B,uCAAuC;IACvC,mCAAmC;;IAEnC,6CAA6C;IAC7C,yCAAyC;;IAEzC,+CAA+C;IAC/C,2CAA2C;;IAE3C,qDAAqD;IACrD,iDAAiD;;IAEjD,oCAAoC;;IAEpC,iCAAiC;IACjC,sCAAsC;IACtC,oCAAoC;AACxC;AC1EA;IACI,qBAAqB;IACrB,8BAAsB;IAAtB,sBAAsB;AAC1B;AACA;IAGI,sBAAsB;IAGtB,0BAA0B;;IAE1B,SAAS;IACT,UAAU;;IAEV,mBAAmB;AACvB;AACA;IACI,aAAa;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;;AAEA;IACI,2BAA2B;AAC/B;;AAEA;IACI,uBAAuB;AAC3B;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,uBAAuB;AAC3B;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,qBAAqB;AACzB;;AAEA;IACI,aAAa;AACjB;;AAEA;IACI,2DAA2D;IAC3D,mDAAmD;AACvD;;AAEA;IACI,mEAAmE;IACnE,2DAA2D;AAC/D;;AAEA;IACI,SAAS;AACb;;AAEA;IACI,sBAAsB;IACtB,mBAAmB;IACnB,kBAAkB;AACtB;;AAEA;IACI,2BAA2B;AAC/B;;AAEA;IACI,8BAA8B;AAClC;;AAEA;IACI,iBAAiB;IACjB,cAAc;AAClB;;AAEA;IACI,SAAS;IACT,aAAa;AACjB;ACnIA;IACI,aAAa;IACb,mBAAmB;IACnB,eAAe;;IAEf,QAAQ;IACR,sCAAsC;IACtC,0CAA0C;IAC1C,4CAA4C;IAC5C,kBAAkB;AACtB;;AAEA;IACI,aAAa;QACT,mBAAmB;;IAEvB,gBAAgB;IAChB,qDAAqD;IACrD,qDAAqD;IACrD,qDAAqD;IACrD,uDAAuD;;IAEvD,iDAAiD;IACjD,+CAA+C;IAC/C,2CAA2C;IAC3C,mCAAmC;AACvC;;AAEA;IACI,kBAAkB;IAClB,eAAe;IACf,8CAA8C;IAC9C,iBAAiB;;IAEjB,4DAA4D;IAC5D,4DAA4D;IAC5D,4DAA4D;IAC5D,8DAA8D;;IAE9D,8CAA8C;IAC9C,kDAAkD;IAClD,gDAAgD;IAChD,oDAAoD;AACxD;;AAEA;IACI,8fAA8f;IAC9f,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,4BAA4B;IAC5B,kCAAkC;IAClC,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,+CAA+C;IAC/C,uDAAuD;IACvD,mDAAmD;IACnD,gBAAgB;IAChB,uBAAuB;IACvB,mBAAmB;AACvB","file":"selective-ui.css","sourcesContent":[":root {\n --seui-transparent-color: #00000000;\n\n --seui-view-text-color: #121212;\n --seui-view-ro-text-color: #a3a3a3;\n --seui-view-text-style: Arial, Helvetica, sans-serif;\n --seui-view-text-size: 13px;\n --seui-view-mobile-text-size: 16px;\n --seui-view-background-color: #ffffff;\n --seui-view-ro-background-color: #00000029;\n --seui-view-optgroup-background-color: #a3c6e9;\n --seui-view-border-color: #a3a3a3;\n --seui-view-ro-border-color: #bdbdbd;\n --seui-view-border-size: 1px;\n --seui-view-border-style: solid;\n --seui-view-border-radius: 5px;\n\n --seui-directive-color: #000000;\n --seui-directive-ro-color: #a3a3a3;\n\n --seui-option-crtl-text-color: #307ecc;\n --seui-option-crtl-text-color-hover: #ff0000;\n --seui-option-crtl-background-color: #f3f3f3;\n --seui-option-crtl-border-color: #cccccc;\n --seui-option-crtl-text-size: 13px;\n\n --seui-option-padding: 5px;\n --seui-option-border-radius: 5px;\n\n --seui-accessory-max-width: 100%;\n --seui-accessory-max-height: 50px;\n --seui-accessory-padding: 2px 0;\n --seui-accessory-item-border-color: #a3a3a3;\n --seui-accessory-item-border-style: solid;\n --seui-accessory-item-border-width: 1px;\n --seui-accessory-item-border-radius: 3px;\n --seui-accessory-item-background: #f7f7f9;\n --seui-accessory-item-font-size: 11px;\n --seui-accessory-item-padding: 2px;\n --seui-accessory-item-gap: 3px;\n --seui-accessory-item-button-color: #757575;\n --seui-accessory-item-button-width: 16px;\n --seui-accessory-item-button-height: 16px;\n --seui-accessory-item-button-border-color: #a3a3a3;\n --seui-accessory-item-button-border-style: solid;\n --seui-accessory-item-button-border-width: 1px;\n --seui-accessory-item-button-border-radius: 2px;\n --seui-accessory-item-content-color: #307ecc;\n --seui-accessory-item-content-font-size: 11px;\n --seui-accessory-item-content-padding: 0 4px 0 2px;\n\n --seui-popup-background-color: #fbfbfb;\n --seui-popup-border-color: #a3a3a3;\n --seui-popup-border-style: solid;\n --seui-popup-border-width: 1px;\n --seui-popup-border-radius: 6px;\n\n --seui-chkbox-background-color: #ffffff;\n --seui-chkbox-border-color: #8f9194;\n\n --seui-chkbox-hover-background-color: #dbdbdb;\n --seui-chkbox-hover-border-color: #b7b7b7;\n\n --seui-chkbox-checked-background-color: #9dcff8;\n --seui-chkbox-checked-border-color: #9dcff8;\n\n --seui-chkbox-checked-hover-background-color: #9dcff8;\n --seui-chkbox-checked-hover-border-color: #007eff;\n\n --seui-chkbox-checked-color: #0075FF;\n\n --seui-empty-state-color: #999999;\n --seui-empty-state-background: #f9f9f9;\n --seui-empty-state-padding: 10px 5px;\n}",".seui-MAIN {\n display: inline-block;\n max-width: min-content;\n}\n.seui-MAIN, .seui-MAIN * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n\n margin: 0;\n padding: 0;\n\n line-height: normal;\n}\n.seui-MAIN > select.init {\n display: none;\n}\n.seui-MAIN > .seui-view {\n position: relative;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n\n background-color: var(--seui-view-background-color);\n border: var(--seui-view-border-style) var(--seui-view-border-size) var(--seui-view-border-color);\n border-radius: var(--seui-view-border-radius);\n}\n\n.seui-MAIN.invisible {\n display: none;\n}\n\n.seui-MAIN.disabled {\n --seui-view-background-color: var(--seui-view-ro-background-color);\n --seui-view-border-color: var(--seui-view-ro-border-color);\n --seui-view-text-color: var(--seui-view-ro-text-color);\n --seui-directive-color: var(--seui-directive-ro-color);\n}\n\n.seui-MAIN .hide {\n display: none;\n}\n\n@supports (-webkit-touch-callout: none) {\n :root {\n --seui-view-text-size: var(--seui-view-mobile-text-size);\n }\n}",".seui-placeholder {\n align-items: center;\n \n margin-left: 10px;\n max-width: calc(100% - 40px);\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n overflow: hidden;\n\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size) !important;\n color: var(--seui-view-text-color);\n}",".seui-directive {\n content: \" \";\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n transition: all linear 200ms;\n border-top: 4px solid var(--seui-directive-color);\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n width: 0;\n height: 0;\n right: 10px;\n top: 50%;\n transform: translateY(-50%) rotate(0deg);\n z-index: 1;\n pointer-events: none;\n}\n.seui-directive.drop-down {\n transform: translateY(-50%) rotate(180deg);\n}",".seui-empty-state {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--seui-empty-state-padding, 20px);\n text-align: center;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n color: var(--seui-empty-state-color, #999);\n background-color: var(--seui-empty-state-background, transparent);\n border-radius: var(--seui-option-border-radius);\n min-height: 60px;\n\n position: sticky;\n bottom: 0;\n}\n\n.seui-empty-state.small {\n text-align: left;\n justify-content: flex-start;\n min-height: 30px;\n}\n\n.seui-empty-state.hide {\n display: none;\n}",".seui-loading-state {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--seui-empty-state-padding, 20px);\n text-align: center;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n color: var(--seui-empty-state-color, #999);\n background-color: var(--seui-empty-state-background, transparent);\n border-radius: var(--seui-option-border-radius);\n min-height: 60px;\n\n position: sticky;\n bottom: 0;\n}\n\n.seui-loading-state.small {\n text-align: left;\n justify-content: flex-start;\n min-height: 30px;\n}\n\n.seui-loading-state.hide {\n display: none;\n}",".seui-group {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.seui-group.hide {\n display: none;\n}\n\n.seui-group-header {\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n font-weight: 600;\n color: var(--seui-view-text-color);\n padding: 8px 12px;\n background-color: var(--seui-view-optgroup-background-color);\n border-radius: var(--seui-option-border-radius);\n /* position: sticky; */\n /* top: 0; */\n z-index: 1;\n cursor: pointer;\n user-select: none;\n \n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.seui-group-header::before {\n content: \"\";\n display: inline-block;\n width: 0;\n height: 0;\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n border-left: 7px solid currentColor;\n transition: transform 200ms ease;\n transform: rotate(90deg);\n}\n\n.seui-group.collapsed .seui-group-header::before {\n transform: rotate(0deg);\n}\n\n.seui-group-items {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding-left: 16px;\n}\n\n.seui-group.collapsed .seui-group-items {\n display: none;\n}\n\n/* Option trong group có indent nhẹ hơn */\n.seui-group-items .seui-option-view {\n padding-left: 12px;\n border-left: 2px solid #e0e0e0;\n margin-left: 4px;\n}",".seui-popup, .seui-popup * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n\n line-height: normal;\n}\n\n.seui-popup {\n display: none;\n position: fixed;\n z-index: 9999;\n overflow: hidden;\n flex-direction: column;\n \n height: 0px;\n padding: 2px;\n gap: 2px;\n\n background-color: var(--seui-popup-background-color);\n border-color: var(--seui-popup-border-color);\n border-style: var(--seui-popup-border-style);\n border-width: var(--seui-popup-border-width);\n border-radius: var(--seui-popup-border-radius);\n\n transition: none;\n}\n\n.seui-options-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n\n -webkit-overflow-scrolling: touch;\n touch-action: pan-y;\n}\n\n.seui-options-container.hide {\n display: none;\n}\n\n.seui-options-container .seui-virtual-items {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 2px;\n}",".seui-searchbox {\n display: flex;\n flex-direction: row;\n align-items: center;\n position: absolute;\n \n background-color: var(--seui-view-background-color);\n border-radius: 5px;\n z-index: 2;\n width: calc(100% - 30px);\n height: 100%;\n}\n\n.seui-searchbox-input {\n width: 100%;\n height: calc(100% - 10px);\n border: 0;\n outline: none !important;\n background: var(--seui-transparent-color);\n color: var(--seui-view-text-color);\n padding: 0 !important;\n margin-left: 10px;\n text-indent: 0px;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size) !important;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}",".seui-option-handle {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n \n font-size: var(--seui-option-crtl-text-size);\n font-family: var(--seui-view-text-style);\n width: unset;\n position: sticky;\n top: 0px;\n padding: var(--seui-option-padding);\n z-index: 2;\n background-color: var(--seui-option-crtl-background-color);\n border: 1px solid var(--seui-option-crtl-border-color);\n border-radius: var(--seui-option-border-radius);\n}\n\n.seui-option-handle.hide {\n display: none;\n}\n\n.seui-option-handle-item {\n text-decoration: none;\n cursor: pointer;\n color: var(--seui-option-crtl-text-color);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.seui-option-handle-item:hover {\n color: var(--seui-option-crtl-text-color-hover);\n}",".seui-option-view {\n display: flex;\n width: auto;\n flex-direction: row;\n align-items: center !important;\n position: relative;\n border-radius: 4px;\n line-height: normal;\n padding: 5px;\n gap: 7px;\n transition: all 180ms;\n\n background-color: var(--seui-transparent-color);\n border: solid 1px var(--seui-transparent-color);\n}\n\n.seui-option-view.checked {\n background-color: var(--seui-chkbox-checked-background-color);\n border-color: var(--seui-chkbox-checked-border-color);\n}\n\n.seui-option-view > input {\n display: none;\n}\n\n.seui-option-view > label {\n width: 100%;\n height: 100%;\n display: flex;\n gap: 7px;\n font-family: var(--seui-view-text-style);\n font-size: var(--seui-view-text-size);\n color: var(--seui-view-text-color);\n align-items: center;\n}\n\n.seui-option-view.multiple > label::before {\n content: \"\";\n display: block;\n width: 17px;\n min-width: 17px;\n height: 17px;\n min-height: 17px;\n background: var(--seui-chkbox-background-color);\n border: 1px solid var(--seui-chkbox-border-color);\n border-radius: 0.2em;\n -webkit-transition: all 200ms, background 200ms ease-in-out;\n transition: all 200ms, background 200ms ease-in-out;\n}\n\n.seui-option-view.multiple.checked > label::before {\n color: var(--seui-view-background-color);\n background: var(--seui-chkbox-checked-color) url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNyAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjE2ODQ3IDEyLjM4MDhDNy43Nzc3OCAxMi43NzIyIDcuMTQzNTMgMTIuNzcyMiA2Ljc1Mjg0IDEyLjM4MDhMMi43NDQ5OCA4LjM2NDlDMi4zNTU0IDcuOTc0NTQgMi4zNTU0IDcuMzQyNDcgMi43NDQ5OCA2Ljk1MjFMMy4xNjQ1MiA2LjUzMTczQzMuNTU1MiA2LjE0MDI3IDQuMTg5NDYgNi4xNDAyNyA0LjU4MDE0IDYuNTMxNzNMNi43NTI4NCA4LjcwODc4QzcuMTQzNTIgOS4xMDAyNCA3Ljc3Nzc4IDkuMTAwMjQgOC4xNjg0NiA4LjcwODc4TDEyLjI0OTggNC42MTkyM0MxMi42NDA1IDQuMjI3NzcgMTMuMjc0OCA0LjIyNzc3IDEzLjY2NTUgNC42MTkyM0wxNC4wODUgNS4wMzk2QzE0LjQ3NDYgNS40Mjk5NyAxNC40NzQ2IDYuMDYyMDQgMTQuMDg1IDYuNDUyNEw4LjE2ODQ3IDEyLjM4MDhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K) 50% 40% no-repeat;\n border: 1px solid var(--seui-chkbox-checked-color);\n}\n\n.seui-option-view > label > div,\n.seui-option-view > label > div div {\n width: 100%;\n /* height: 100%; */\n\n /* display: flex; */\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.seui-option-view > label.align-horizontal-left > div {\n justify-content: flex-start;\n}\n\n.seui-option-view > label.align-horizontal-center > div {\n justify-content: center;\n}\n\n.seui-option-view > label.align-horizontal-right > div {\n justify-content: flex-end;\n}\n\n.seui-option-view > label.align-vertical-left > div {\n align-items: flex-start;\n}\n\n.seui-option-view > label.align-vertical-center > div {\n align-items: center;\n}\n\n.seui-option-view > label.align-vertical-right > div {\n align-items: flex-end;\n}\n\n.seui-option-view.hide {\n display: none;\n}\n\n.seui-option-view.highlight {\n background-color: var(--seui-chkbox-hover-background-color);\n border-color: var(--seui-chkbox-hover-border-color);\n}\n\n.seui-option-view.highlight.checked {\n background-color: var(--seui-chkbox-checked-hover-background-color);\n border-color: var(--seui-chkbox-checked-hover-border-color);\n}\n\n.seui-option-view.has-image {\n gap: 10px;\n}\n\n.seui-option-view.has-image.image-top {\n flex-direction: column;\n align-items: center;\n text-align: center;\n}\n\n.seui-option-view.has-image.image-right {\n flex-direction: row-reverse;\n}\n\n.seui-option-view.has-image.image-bottom {\n flex-direction: column-reverse;\n}\n\n.seui-option-view .option-image {\n object-fit: cover;\n flex-shrink: 0;\n}\n\n.seui-option-view.multiple.has-image > label::before {\n order: -1;\n display: none;\n}",".seui-accessorybox {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n gap: 2px;\n padding: var(--seui-accessory-padding);\n max-width: var(--seui-accessory-max-width);\n max-height: var(--seui-accessory-max-height);\n overflow-y: scroll;\n}\n\n.accessory-item {\n display: flex;\n align-items: center;\n\n overflow: hidden;\n border-color: var(--seui-accessory-item-border-color);\n border-style: var(--seui-accessory-item-border-style);\n border-width: var(--seui-accessory-item-border-width);\n border-radius: var(--seui-accessory-item-border-radius);\n\n background: var(--seui-accessory-item-background);\n font-size: var(--seui-accessory-item-font-size);\n padding: var(--seui-accessory-item-padding);\n gap: var(--seui-accessory-item-gap);\n}\n\n.accessory-item > .accessory-item-button {\n position: relative;\n cursor: pointer;\n color: var(--seui-accessory-item-button-color);\n font-weight: bold;\n\n border-color: var(--seui-accessory-item-button-border-color);\n border-style: var(--seui-accessory-item-button-border-style);\n border-width: var(--seui-accessory-item-button-border-width);\n border-radius: var(--seui-accessory-item-button-border-radius);\n\n width: var(--seui-accessory-item-button-width);\n min-width: var(--seui-accessory-item-button-width);\n height: var(--seui-accessory-item-button-height);\n min-height: var(--seui-accessory-item-button-height);\n}\n\n.accessory-item > .accessory-item-button::after {\n 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>');\n display: block;\n content: \"\";\n position: absolute;\n background-repeat: no-repeat;\n background-position: center center;\n width: 100%;\n height: 100%;\n}\n\n.accessory-item > .accessory-item-content {\n color: var(--seui-accessory-item-content-color);\n font-size: var(--seui-accessory-item-content-font-size);\n padding: var(--seui-accessory-item-content-padding);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}"]}
|
package/dist/selective-ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Selective UI v1.4.
|
|
1
|
+
/*! Selective UI v1.4.4 | MIT License */
|
|
2
2
|
/**
|
|
3
3
|
* @class
|
|
4
4
|
*/
|
|
@@ -4745,6 +4745,35 @@ class AccessoryBox extends Lifecycle {
|
|
|
4745
4745
|
* This is a cached snapshot used for show/hide decisions and re-rendering.
|
|
4746
4746
|
*/
|
|
4747
4747
|
this.modelDatas = [];
|
|
4748
|
+
/**
|
|
4749
|
+
* Internal SelectBox action bridge used by the accessory box to communicate
|
|
4750
|
+
* with the parent SelectBox instance.
|
|
4751
|
+
*
|
|
4752
|
+
* This reference is intentionally lightweight and acts as a direct integration
|
|
4753
|
+
* point between chip interactions and the main Select component behavior.
|
|
4754
|
+
*
|
|
4755
|
+
* Current responsibilities:
|
|
4756
|
+
* - Read runtime interaction state:
|
|
4757
|
+
* - `readonly`
|
|
4758
|
+
* - `disabled`
|
|
4759
|
+
* - Trigger synchronized change propagation through:
|
|
4760
|
+
* - `change(null, true)`
|
|
4761
|
+
*
|
|
4762
|
+
* Usage flow:
|
|
4763
|
+
* - When a chip remove button is clicked:
|
|
4764
|
+
* 1) AccessoryBox checks `readonly` / `disabled`
|
|
4765
|
+
* 2) Updates `modelData.selectedNonTrigger = false`
|
|
4766
|
+
* 3) Delegates the final change pipeline back to the SelectBox instance
|
|
4767
|
+
* through `internalInstance.change(...)`
|
|
4768
|
+
*
|
|
4769
|
+
* Notes:
|
|
4770
|
+
* - This property is optional because the AccessoryBox can exist before the
|
|
4771
|
+
* parent SelectBox finishes wiring dependencies.
|
|
4772
|
+
* - The instance is not owned by AccessoryBox and therefore is not destroyed
|
|
4773
|
+
* during {@link destroy}.
|
|
4774
|
+
* - Intended for internal framework communication only.
|
|
4775
|
+
*/
|
|
4776
|
+
this.internalInstance = null;
|
|
4748
4777
|
if (options)
|
|
4749
4778
|
this.initialize(options);
|
|
4750
4779
|
}
|
|
@@ -4885,6 +4914,7 @@ class AccessoryBox extends Lifecycle {
|
|
|
4885
4914
|
if (!this.node || !this.options)
|
|
4886
4915
|
return;
|
|
4887
4916
|
this.node.replaceChildren();
|
|
4917
|
+
const superThis = this;
|
|
4888
4918
|
if (modelDatas.length > 0 && this.options.multiple) {
|
|
4889
4919
|
modelDatas.forEach((modelData) => {
|
|
4890
4920
|
Libs.mountNode({
|
|
@@ -4900,8 +4930,12 @@ class AccessoryBox extends Lifecycle {
|
|
|
4900
4930
|
title: `${this.options.textAccessoryDeselect}${modelData.textContent}`,
|
|
4901
4931
|
onclick: async (evt) => {
|
|
4902
4932
|
evt.preventDefault();
|
|
4903
|
-
|
|
4904
|
-
|
|
4933
|
+
const instance = superThis.internalInstance;
|
|
4934
|
+
if (instance.readonly || instance.disabled) {
|
|
4935
|
+
return;
|
|
4936
|
+
}
|
|
4937
|
+
modelData.selectedNonTrigger = false;
|
|
4938
|
+
instance?.change(null, true);
|
|
4905
4939
|
},
|
|
4906
4940
|
},
|
|
4907
4941
|
},
|
|
@@ -8081,7 +8115,7 @@ class VirtualRecyclerView extends RecyclerView {
|
|
|
8081
8115
|
- (viewportH - itemH) / 3;
|
|
8082
8116
|
const maxScroll = Math.max(0, this.scrollEl.scrollHeight - this.scrollEl.clientHeight);
|
|
8083
8117
|
const clamped = Math.min(Math.max(0, centeredTarget), maxScroll);
|
|
8084
|
-
this.scrollEl.scrollTo({ top: clamped, behavior });
|
|
8118
|
+
this.scrollEl.scrollTo?.({ top: clamped, behavior });
|
|
8085
8119
|
}
|
|
8086
8120
|
/**
|
|
8087
8121
|
* Disposes runtime resources without destroying the instance.
|
|
@@ -8927,6 +8961,7 @@ class SelectBox extends Lifecycle {
|
|
|
8927
8961
|
return;
|
|
8928
8962
|
this.options.readonly = value;
|
|
8929
8963
|
this.node.classList.toggle("readonly", value);
|
|
8964
|
+
this.node.dataset["readonly"] = String(!!value);
|
|
8930
8965
|
}
|
|
8931
8966
|
/**
|
|
8932
8967
|
* Visibility state mirror.
|
|
@@ -9124,8 +9159,10 @@ class SelectBox extends Lifecycle {
|
|
|
9124
9159
|
Refresher.resizeBox(select, container.tags.ViewPanel);
|
|
9125
9160
|
Refresher.resizeBox(select, this.node, true);
|
|
9126
9161
|
select.classList.add("init");
|
|
9127
|
-
// initial mask
|
|
9128
9162
|
const action = this.getAction();
|
|
9163
|
+
container.accessorybox.internalInstance = action;
|
|
9164
|
+
this.oldValue = action.value;
|
|
9165
|
+
// initial mask
|
|
9129
9166
|
action?.change?.(null, false);
|
|
9130
9167
|
if (this.options.preload) {
|
|
9131
9168
|
action?.load?.();
|
|
@@ -10739,7 +10776,7 @@ const SECLASS = new Selective();
|
|
|
10739
10776
|
*
|
|
10740
10777
|
* Declared as `const` literal type to enable strict typing and easy tree-shaking.
|
|
10741
10778
|
*/
|
|
10742
|
-
const version = "1.4.
|
|
10779
|
+
const version = "1.4.4";
|
|
10743
10780
|
/**
|
|
10744
10781
|
* Library name identifier.
|
|
10745
10782
|
*
|