@anglr/select 12.0.0 → 13.0.0-beta.20250127113535
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/changelog.md +16 -0
- package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -0
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +73 -0
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
- package/{es2020 → es2022}/material/src/directives/dialogPopup/dialogPopup.directive.js +9 -9
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
- package/{es2015 → es2022}/material/src/modules/dialogPopup.module.js +13 -13
- package/{es2015 → es2022}/material/src/modules/dialogPopup.module.js.map +1 -1
- package/{es2015 → es2022}/material/src/modules/virtualEditPopup.module.js +6 -6
- package/{es2015 → es2022}/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/{es2020 → es2022}/material/src/plugins/popup/dialog/dialogPopup.component.js +23 -22
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +89 -0
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
- package/{es2015 → es2022}/src/components/option/optgroup.component.js +4 -3
- package/es2022/src/components/option/optgroup.component.js.map +1 -0
- package/{es2020 → es2022}/src/components/option/option.component.js +4 -3
- package/es2022/src/components/option/option.component.js.map +1 -0
- package/{es2020 → es2022}/src/components/select/select.component.js +60 -59
- package/es2022/src/components/select/select.component.js.map +1 -0
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
- package/{es2015 → es2022}/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -1
- package/{es2015 → es2022}/src/directives/ngSelectEdit/ngSelectEdit.directive.js +28 -28
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
- package/{es2015 → es2022}/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +9 -9
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
- package/es2022/src/index.ssr.js.map +1 -0
- package/es2022/src/misc/extensions/setReadonly.js.map +1 -0
- package/{es2020 → es2022}/src/misc/ngSelectControlValueAccessor.directive.js +4 -4
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
- package/{es2020 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.js +12 -12
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
- package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.js +3 -3
- package/{es2020 → es2022}/src/misc/pluginBus/pluginBus.js.map +1 -1
- package/{es2020 → es2022}/src/modules/ngSelect.module.js +39 -39
- package/{es2015 → es2022}/src/modules/ngSelect.module.js.map +1 -1
- package/es2022/src/modules/ngSelectDynamic.module.js +20 -0
- package/{es2015 → es2022}/src/modules/ngSelectDynamic.module.js.map +1 -1
- package/{es2020 → es2022}/src/modules/ngSelectEdit.module.js +16 -16
- package/es2022/src/modules/ngSelectEdit.module.js.map +1 -0
- package/{es2020 → es2022}/src/pipes/ngSelectHasValue.pipe.js +3 -3
- package/{es2015 → es2022}/src/pipes/ngSelectHasValue.pipe.js.map +1 -1
- package/{es2015 → es2022}/src/pipes/ngSelectValue.pipe.js +3 -3
- package/es2022/src/pipes/ngSelectValue.pipe.js.map +1 -0
- package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +24 -23
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +24 -23
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.component.js +24 -24
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.component.js +31 -30
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/liveSearch/no/noLiveSearch.component.js +12 -11
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js +88 -0
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/normalState/normalStateAbstract.component.js +15 -15
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
- package/es2022/src/plugins/popup/basic/basicPopup.component.js +62 -0
- package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
- package/es2022/src/plugins/popup/edit/editPopup.component.js +85 -0
- package/es2022/src/plugins/popup/edit/editPopup.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/popup/popupAbstract.component.js +33 -32
- package/es2022/src/plugins/popup/popupAbstract.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/positioner/default/defaultPositioner.component.js +24 -23
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +1 -0
- package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.component.js +17 -16
- package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.component.js +18 -16
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +18 -16
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/valueHandler/valueHandlerBase.js +36 -36
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
- package/extensions/package.json +3 -4
- package/material/package.json +3 -4
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +1 -1
- package/material/src/modules/dialogPopup.module.d.ts +4 -4
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/package.json +62 -74
- package/src/components/option/optgroup.component.d.ts +1 -1
- package/src/components/option/optgroup.component.d.ts.map +1 -1
- package/src/components/option/option.component.d.ts +1 -1
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/select/select.component.d.ts +1 -1
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.interface.d.ts +2 -2
- package/src/components/select/select.interface.d.ts.map +1 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +1 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +1 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +1 -1
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +1 -1
- package/src/modules/ngSelect.module.d.ts +16 -16
- package/src/modules/ngSelectEdit.module.d.ts +8 -8
- package/src/pipes/ngSelectHasValue.pipe.d.ts +1 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +1 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +1 -1
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +1 -1
- package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts +3 -3
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +1 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
- package/version.bak +1 -1
- package/elements/package.json +0 -9
- package/elements/src/components/ngSelectElements.component.d.ts +0 -67
- package/elements/src/components/ngSelectElements.component.d.ts.map +0 -1
- package/elements/src/components/ngSelectElements.component.html +0 -16
- package/elements/src/components/ngSelectElements.interface.d.ts +0 -47
- package/elements/src/components/ngSelectElements.interface.d.ts.map +0 -1
- package/elements/src/index.d.ts +0 -4
- package/elements/src/index.d.ts.map +0 -1
- package/elements/src/modules/ngSelectElements.module.d.ts +0 -21
- package/elements/src/modules/ngSelectElements.module.d.ts.map +0 -1
- package/es2015/elements/src/components/ngSelectElements.component.js +0 -181
- package/es2015/elements/src/components/ngSelectElements.component.js.map +0 -1
- package/es2015/elements/src/components/ngSelectElements.interface.js +0 -2
- package/es2015/elements/src/components/ngSelectElements.interface.js.map +0 -1
- package/es2015/elements/src/index.js +0 -4
- package/es2015/elements/src/index.js.map +0 -1
- package/es2015/elements/src/modules/ngSelectElements.module.js +0 -50
- package/es2015/elements/src/modules/ngSelectElements.module.js.map +0 -1
- package/es2015/extensions/src/extensions/reinitializeOptions.js.map +0 -1
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -74
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +0 -1
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -75
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js.map +0 -1
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -143
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js.map +0 -1
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -92
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +0 -1
- package/es2015/src/components/option/optgroup.component.js.map +0 -1
- package/es2015/src/components/option/option.component.js +0 -38
- package/es2015/src/components/option/option.component.js.map +0 -1
- package/es2015/src/components/select/select.component.js +0 -599
- package/es2015/src/components/select/select.component.js.map +0 -1
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2015/src/index.ssr.js.map +0 -1
- package/es2015/src/misc/extensions/setReadonly.js.map +0 -1
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +0 -163
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js.map +0 -1
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -123
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +0 -1
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -111
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +0 -1
- package/es2015/src/misc/pluginBus/pluginBus.js.map +0 -1
- package/es2015/src/modules/ngSelect.module.js +0 -90
- package/es2015/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2015/src/modules/ngSelectEdit.module.js +0 -51
- package/es2015/src/modules/ngSelectEdit.module.js.map +0 -1
- package/es2015/src/pipes/ngSelectHasValue.pipe.js +0 -23
- package/es2015/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -196
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -169
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -318
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -64
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js +0 -89
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js +0 -93
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2015/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2015/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2015/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2015/src/plugins/popup/popupAbstract.component.js +0 -203
- package/es2015/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2015/src/plugins/positioner/default/defaultPositioner.component.js +0 -158
- package/es2015/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -157
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -182
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js +0 -150
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- package/es2020/elements/src/components/ngSelectElements.component.js +0 -181
- package/es2020/elements/src/components/ngSelectElements.component.js.map +0 -1
- package/es2020/elements/src/components/ngSelectElements.interface.js +0 -2
- package/es2020/elements/src/components/ngSelectElements.interface.js.map +0 -1
- package/es2020/elements/src/index.js +0 -4
- package/es2020/elements/src/index.js.map +0 -1
- package/es2020/elements/src/modules/ngSelectElements.module.js +0 -50
- package/es2020/elements/src/modules/ngSelectElements.module.js.map +0 -1
- package/es2020/extensions/src/extensions/getValue.js +0 -2
- package/es2020/extensions/src/extensions/getValue.js.map +0 -1
- package/es2020/extensions/src/extensions/onFocus.js +0 -2
- package/es2020/extensions/src/extensions/onFocus.js.map +0 -1
- package/es2020/extensions/src/extensions/patchOptions.js +0 -12
- package/es2020/extensions/src/extensions/patchOptions.js.map +0 -1
- package/es2020/extensions/src/extensions/reinitializeOptions.js +0 -15
- package/es2020/extensions/src/extensions/reinitializeOptions.js.map +0 -1
- package/es2020/extensions/src/extensions/setReadonly.js +0 -2
- package/es2020/extensions/src/extensions/setReadonly.js.map +0 -1
- package/es2020/extensions/src/extensions/setValue.js +0 -2
- package/es2020/extensions/src/extensions/setValue.js.map +0 -1
- package/es2020/extensions/src/extensions/valueChange.js +0 -2
- package/es2020/extensions/src/extensions/valueChange.js.map +0 -1
- package/es2020/extensions/src/index.js +0 -8
- package/es2020/extensions/src/index.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -73
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -2
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/index.js +0 -2
- package/es2020/material/src/components/basicDialogPopup/index.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/types.js +0 -2
- package/es2020/material/src/components/basicDialogPopup/types.js.map +0 -1
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js.map +0 -1
- package/es2020/material/src/directives/types.js +0 -2
- package/es2020/material/src/directives/types.js.map +0 -1
- package/es2020/material/src/index.js +0 -8
- package/es2020/material/src/index.js.map +0 -1
- package/es2020/material/src/modules/dialogPopup.module.js +0 -41
- package/es2020/material/src/modules/dialogPopup.module.js.map +0 -1
- package/es2020/material/src/modules/virtualEditPopup.module.js +0 -31
- package/es2020/material/src/modules/virtualEditPopup.module.js.map +0 -1
- package/es2020/material/src/plugins/popup/components.js +0 -3
- package/es2020/material/src/plugins/popup/components.js.map +0 -1
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js.map +0 -1
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -2
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +0 -1
- package/es2020/material/src/plugins/popup/index.js +0 -3
- package/es2020/material/src/plugins/popup/index.js.map +0 -1
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -89
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +0 -1
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -2
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +0 -1
- package/es2020/src/components/option/index.js +0 -3
- package/es2020/src/components/option/index.js.map +0 -1
- package/es2020/src/components/option/optgroup.component.js +0 -53
- package/es2020/src/components/option/optgroup.component.js.map +0 -1
- package/es2020/src/components/option/optgroup.interface.js +0 -2
- package/es2020/src/components/option/optgroup.interface.js.map +0 -1
- package/es2020/src/components/option/option.component.js.map +0 -1
- package/es2020/src/components/option/option.interface.js +0 -2
- package/es2020/src/components/option/option.interface.js.map +0 -1
- package/es2020/src/components/select/index.js +0 -2
- package/es2020/src/components/select/index.js.map +0 -1
- package/es2020/src/components/select/select.component.js.map +0 -1
- package/es2020/src/components/select/select.interface.js +0 -2
- package/es2020/src/components/select/select.interface.js.map +0 -1
- package/es2020/src/components/select/types.js +0 -6
- package/es2020/src/components/select/types.js.map +0 -1
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2020/src/index.js +0 -42
- package/es2020/src/index.js.map +0 -1
- package/es2020/src/index.ssr.js +0 -10
- package/es2020/src/index.ssr.js.map +0 -1
- package/es2020/src/misc/extensions/getValue.js +0 -12
- package/es2020/src/misc/extensions/getValue.js.map +0 -1
- package/es2020/src/misc/extensions/index.js +0 -6
- package/es2020/src/misc/extensions/index.js.map +0 -1
- package/es2020/src/misc/extensions/onFocus.js +0 -10
- package/es2020/src/misc/extensions/onFocus.js.map +0 -1
- package/es2020/src/misc/extensions/setReadonly.js +0 -18
- package/es2020/src/misc/extensions/setReadonly.js.map +0 -1
- package/es2020/src/misc/extensions/setValue.js +0 -13
- package/es2020/src/misc/extensions/setValue.js.map +0 -1
- package/es2020/src/misc/extensions/valueChange.js +0 -12
- package/es2020/src/misc/extensions/valueChange.js.map +0 -1
- package/es2020/src/misc/index.js +0 -6
- package/es2020/src/misc/index.js.map +0 -1
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2020/src/misc/ngSelectOptions.interface.js +0 -2
- package/es2020/src/misc/ngSelectOptions.interface.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -83
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -2
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -2
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/types.js +0 -4
- package/es2020/src/misc/optionsGatherer/types.js.map +0 -1
- package/es2020/src/misc/plugin.interface.js +0 -2
- package/es2020/src/misc/plugin.interface.js.map +0 -1
- package/es2020/src/misc/pluginBus/pluginBus.interface.js +0 -2
- package/es2020/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
- package/es2020/src/misc/pluginBus/pluginBus.js +0 -44
- package/es2020/src/misc/templateGatherer.interface.js +0 -2
- package/es2020/src/misc/templateGatherer.interface.js.map +0 -1
- package/es2020/src/misc/types.js +0 -34
- package/es2020/src/misc/types.js.map +0 -1
- package/es2020/src/modules/ngSelect.module.js.map +0 -1
- package/es2020/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2020/src/modules/ngSelectDynamic.module.js.map +0 -1
- package/es2020/src/modules/ngSelectEdit.module.js.map +0 -1
- package/es2020/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
- package/es2020/src/pipes/ngSelectValue.pipe.js +0 -31
- package/es2020/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -145
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/components.js +0 -3
- package/es2020/src/plugins/keyboardHandler/components.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/index.js +0 -4
- package/es2020/src/plugins/keyboardHandler/index.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -2
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/types.js +0 -10
- package/es2020/src/plugins/keyboardHandler/types.js.map +0 -1
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/components.js +0 -4
- package/es2020/src/plugins/liveSearch/components.js.map +0 -1
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/index.js +0 -5
- package/es2020/src/plugins/liveSearch/index.js.map +0 -1
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/types.js +0 -10
- package/es2020/src/plugins/liveSearch/types.js.map +0 -1
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
- package/es2020/src/plugins/normalState/components.js +0 -4
- package/es2020/src/plugins/normalState/components.js.map +0 -1
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js +0 -88
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
- package/es2020/src/plugins/normalState/index.js +0 -4
- package/es2020/src/plugins/normalState/index.js.map +0 -1
- package/es2020/src/plugins/normalState/normalState.interface.js +0 -2
- package/es2020/src/plugins/normalState/normalState.interface.js.map +0 -1
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2020/src/plugins/normalState/types.js +0 -10
- package/es2020/src/plugins/normalState/types.js.map +0 -1
- package/es2020/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js +0 -2
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
- package/es2020/src/plugins/popup/component.js +0 -4
- package/es2020/src/plugins/popup/component.js.map +0 -1
- package/es2020/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2020/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2020/src/plugins/popup/edit/editPopup.interface.js +0 -2
- package/es2020/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
- package/es2020/src/plugins/popup/index.js +0 -4
- package/es2020/src/plugins/popup/index.js.map +0 -1
- package/es2020/src/plugins/popup/popup.interface.js +0 -2
- package/es2020/src/plugins/popup/popup.interface.js.map +0 -1
- package/es2020/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2020/src/plugins/popup/types.js +0 -10
- package/es2020/src/plugins/popup/types.js.map +0 -1
- package/es2020/src/plugins/positioner/components.js +0 -3
- package/es2020/src/plugins/positioner/components.js.map +0 -1
- package/es2020/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/index.js +0 -4
- package/es2020/src/plugins/positioner/index.js.map +0 -1
- package/es2020/src/plugins/positioner/no/noPositioner.component.js +0 -77
- package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/positioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/positioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/types.js +0 -10
- package/es2020/src/plugins/positioner/types.js.map +0 -1
- package/es2020/src/plugins/readonlyState/index.js +0 -2
- package/es2020/src/plugins/readonlyState/index.js.map +0 -1
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js +0 -2
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
- package/es2020/src/plugins/readonlyState/types.js +0 -10
- package/es2020/src/plugins/readonlyState/types.js.map +0 -1
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
- package/es2020/src/plugins/valueHandler/components.js +0 -3
- package/es2020/src/plugins/valueHandler/components.js.map +0 -1
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
- package/es2020/src/plugins/valueHandler/index.js +0 -5
- package/es2020/src/plugins/valueHandler/index.js.map +0 -1
- package/es2020/src/plugins/valueHandler/types.js +0 -10
- package/es2020/src/plugins/valueHandler/types.js.map +0 -1
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js +0 -2
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- /package/{es2015 → es2022}/extensions/src/extensions/getValue.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/getValue.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/onFocus.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/onFocus.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/patchOptions.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/patchOptions.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/reinitializeOptions.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setReadonly.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setReadonly.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setValue.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setValue.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/valueChange.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/valueChange.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/index.js +0 -0
- /package/{es2015 → es2022}/extensions/src/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/index.js +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/types.js +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/types.js.map +0 -0
- /package/{es2015 → es2022}/material/src/directives/types.js +0 -0
- /package/{es2015 → es2022}/material/src/directives/types.js.map +0 -0
- /package/{es2015 → es2022}/material/src/index.js +0 -0
- /package/{es2015 → es2022}/material/src/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/components.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/components.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/index.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/option/index.js +0 -0
- /package/{es2015 → es2022}/src/components/option/index.js.map +0 -0
- /package/{es2015 → es2022}/src/components/option/optgroup.interface.js +0 -0
- /package/{es2015 → es2022}/src/components/option/optgroup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/option/option.interface.js +0 -0
- /package/{es2015 → es2022}/src/components/option/option.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/select/index.js +0 -0
- /package/{es2015 → es2022}/src/components/select/index.js.map +0 -0
- /package/{es2015 → es2022}/src/components/select/select.interface.js +0 -0
- /package/{es2015 → es2022}/src/components/select/select.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/select/types.js +0 -0
- /package/{es2015 → es2022}/src/components/select/types.js.map +0 -0
- /package/{es2015 → es2022}/src/index.js +0 -0
- /package/{es2015 → es2022}/src/index.js.map +0 -0
- /package/{es2015 → es2022}/src/index.ssr.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/getValue.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/getValue.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/index.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/index.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/onFocus.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/onFocus.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/setReadonly.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/setValue.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/setValue.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/valueChange.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/valueChange.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/index.js +0 -0
- /package/{es2015 → es2022}/src/misc/index.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/ngSelectOptions.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/ngSelectOptions.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +0 -0
- /package/{es2020 → es2022}/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/optionsGatherer.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/types.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/types.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/plugin.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/plugin.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/templateGatherer.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/templateGatherer.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/types.js +0 -0
- /package/{es2015 → es2022}/src/misc/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/liveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/liveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/basic/basicNormalState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/edit/editNormalState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/normalState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/normalState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/basic/basicPopup.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/basic/basicPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/component.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/component.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/edit/editPopup.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/edit/editPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/popup.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/popup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/default/defaultPositioner.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/positioner.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/positioner.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/readonlyState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/readonlyState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/valueHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/valueHandler.interface.js.map +0 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Version 13.0.0 (2025-01-27)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- all pipes and directives are now `standalone`
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
- minimal supported version of `NodeJs` is `18`
|
|
12
|
+
- minimal supported version of `@angular` is `19.1.0`
|
|
13
|
+
- minimal supported version of `@jscrpt/common` is `7.0.0`
|
|
14
|
+
- minimal supported version of `@anglr/common` is `22.0.0`
|
|
15
|
+
- minimal supported version of `rxjs` is `7.5.7`
|
|
16
|
+
- minimal supported version of `tslib` is `2.8.1`
|
|
17
|
+
- removed *unused* submodule `@anglr/select/elements`, no replacement
|
|
18
|
+
|
|
3
19
|
## Version 12.0.0 (2023-01-09)
|
|
4
20
|
|
|
5
21
|
### Features
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reinitializeOptions.js","sourceRoot":"","sources":["../../../../extensions/src/extensions/reinitializeOptions.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAe,OAAiC;IAE/E,OAAO,QAAQ,CAAC,EAAE;QAEd,IAAG,OAAO,EACV,CAAC;YACG,QAAQ,CAAC,aAAa,GAAG,OAAO,CAAC;QACrC,CAAC;QAED,QAAQ,CAAC,WAAW,EAAE,CAAC;QACvB,QAAQ,CAAC,iBAAiB,EAAE,CAAC;QAC7B,QAAQ,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {NgSelectAction, NgSelectOptions} from '@anglr/select';\n\n/**\n * Method reinitialize options for NgSelect\n * @param options - Options to be used for reinitialization\n */\nexport function reinitializeOptions<TValue = any>(options?: NgSelectOptions<TValue>): NgSelectAction<TValue>\n{\n return ngSelect =>\n {\n if(options)\n {\n ngSelect.selectOptions = options;\n }\n\n ngSelect.initOptions();\n ngSelect.invalidateVisuals();\n ngSelect.initialize();\n };\n}"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { extend } from '@jscrpt/common/extend';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/material/dialog";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
/**
|
|
8
|
+
* Default options for popup
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
const defaultOptions = {
|
|
12
|
+
cssClasses: {
|
|
13
|
+
optionChecked: 'fa fa-check',
|
|
14
|
+
optionItemDiv: 'option-item',
|
|
15
|
+
optionItemTextDiv: 'option-item-text'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Basic dialog popup
|
|
20
|
+
*/
|
|
21
|
+
export class BasicDialogPopupComponent {
|
|
22
|
+
//######################### constructor #########################
|
|
23
|
+
constructor(dialog, _changeDetector, data) {
|
|
24
|
+
this.dialog = dialog;
|
|
25
|
+
this._changeDetector = _changeDetector;
|
|
26
|
+
this.data = data;
|
|
27
|
+
this.options = extend(true, {}, defaultOptions, data.options);
|
|
28
|
+
}
|
|
29
|
+
//######################### public methods - implementation of OnInit #########################
|
|
30
|
+
/**
|
|
31
|
+
* Initialize component
|
|
32
|
+
*/
|
|
33
|
+
ngOnInit() {
|
|
34
|
+
if (this._optionsGatherer && this._optionsGatherer != this.data.pluginBus.selectOptions.optionsGatherer) {
|
|
35
|
+
this._optionsChangeSubscription.unsubscribe();
|
|
36
|
+
this._optionsChangeSubscription = null;
|
|
37
|
+
this._optionsGatherer = null;
|
|
38
|
+
}
|
|
39
|
+
if (!this._optionsGatherer) {
|
|
40
|
+
this._optionsGatherer = this.data.pluginBus.selectOptions.optionsGatherer;
|
|
41
|
+
this.selectOptions = this._optionsGatherer.availableOptions;
|
|
42
|
+
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => {
|
|
43
|
+
this.selectOptions = this._optionsGatherer.availableOptions;
|
|
44
|
+
this._changeDetector.detectChanges();
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//######################### public methods - implementation of OnDestroy #########################
|
|
49
|
+
/**
|
|
50
|
+
* Called when component is destroyed
|
|
51
|
+
*/
|
|
52
|
+
ngOnDestroy() {
|
|
53
|
+
this._optionsChangeSubscription?.unsubscribe();
|
|
54
|
+
this._optionsChangeSubscription = null;
|
|
55
|
+
}
|
|
56
|
+
//######################### public methods #########################
|
|
57
|
+
/**
|
|
58
|
+
* Explicitly runs invalidation of content (change detection)
|
|
59
|
+
*/
|
|
60
|
+
invalidateVisuals() {
|
|
61
|
+
this._changeDetector.detectChanges();
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BasicDialogPopupComponent, deps: [{ token: i1.MatDialogRef }, { token: i0.ChangeDetectorRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: BasicDialogPopupComponent, isStandalone: false, selector: "ng-select-basic-dialog-popup", ngImport: i0, template: " \r\n<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n (click)=\"data?.pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"data?.pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && data?.pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n</div>", styles: [".option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BasicDialogPopupComponent, decorators: [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{ selector: 'ng-select-basic-dialog-popup', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: " \r\n<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n (click)=\"data?.pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"data?.pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && data?.pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n</div>", styles: [".option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"] }]
|
|
69
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
70
|
+
type: Inject,
|
|
71
|
+
args: [MAT_DIALOG_DATA]
|
|
72
|
+
}] }] });
|
|
73
|
+
//# sourceMappingURL=basicDialogPopup.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicDialogPopup.component.js","sourceRoot":"","sources":["../../../../../material/src/components/basicDialogPopup/basicDialogPopup.component.ts","../../../../../material/src/components/basicDialogPopup/basicDialogPopup.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAqB,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;;;;AAM7C;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,UAAU,EACV;QACI,aAAa,EAAE,aAAa;QAC5B,aAAa,EAAE,aAAa;QAC5B,iBAAiB,EAAE,kBAAkB;KACxC;CACJ,CAAC;AAEF;;GAEG;AASH,MAAM,OAAO,yBAAyB;IA0BlC,iEAAiE;IACjE,YAAmB,MAAuD,EACpD,eAAkC,EACZ,IAA2F;QAFpH,WAAM,GAAN,MAAM,CAAiD;QACpD,oBAAe,GAAf,eAAe,CAAmB;QACZ,SAAI,GAAJ,IAAI,CAAuF;QAEnI,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAG,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,EACtG,CAAC;YACG,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE,CAAC;YAC9C,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC;YAEvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACjC,CAAC;QAED,IAAG,CAAC,IAAI,CAAC,gBAAgB,EACzB,CAAC;YACG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC;YAC1E,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;YAE5D,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,EAAE;gBAE1F,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;gBAC5D,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;YACzC,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,0BAA0B,EAAE,WAAW,EAAE,CAAC;QAC/C,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC;IAC3C,CAAC;IAED,oEAAoE;IAEpE;;OAEG;IACI,iBAAiB;QAEpB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;8GAjFQ,yBAAyB,+EA6Bd,eAAe;kGA7B1B,yBAAyB,yFClCtC,6tBAYM;;2FDsBO,yBAAyB;kBARrC,SAAS;+BAEI,8BAA8B,cAG5B,KAAK,mBACA,uBAAuB,CAAC,MAAM;;0BA+BlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, OnDestroy, OnInit, ChangeDetectorRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {OptionsGatherer, ɵNgSelectOption} from '@anglr/select';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {DialogPopupComponentData, DialogPopupContentComponent} from '../../plugins/popup/dialog/dialogPopup.interface';\nimport {BasicDialogPopupOptions, CssClassesBasicDialogPopup} from './basicDialogPopup.interface';\n\n/**\n * Default options for popup\n * @internal\n */\nconst defaultOptions: BasicDialogPopupOptions =\n{\n cssClasses:\n {\n optionChecked: 'fa fa-check',\n optionItemDiv: 'option-item',\n optionItemTextDiv: 'option-item-text'\n }\n};\n\n/**\n * Basic dialog popup\n */\n@Component(\n{\n selector: 'ng-select-basic-dialog-popup',\n templateUrl: 'basicDialogPopup.component.html',\n styleUrl: 'basicDialogPopup.component.css',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicDialogPopupComponent<TValue = any> implements DialogPopupContentComponent<BasicDialogPopupOptions, TValue, CssClassesBasicDialogPopup>, OnInit, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subscription for available options change\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Instance of options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer<TValue>;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Options for NgSelect plugin\n */\n public options: BasicDialogPopupOptions;\n\n /**\n * Array of provided options for select\n */\n public selectOptions: ɵNgSelectOption<TValue>[];\n\n //######################### constructor #########################\n constructor(public dialog: MatDialogRef<BasicDialogPopupComponent<TValue>>,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(MAT_DIALOG_DATA) public data: DialogPopupComponentData<BasicDialogPopupOptions, TValue, CssClassesBasicDialogPopup>)\n {\n this.options = extend(true, {}, defaultOptions, data.options);\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit()\n {\n if(this._optionsGatherer && this._optionsGatherer != this.data.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.data.pluginBus.selectOptions.optionsGatherer;\n this.selectOptions = this._optionsGatherer.availableOptions;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() =>\n {\n this.selectOptions = this._optionsGatherer.availableOptions;\n this._changeDetector.detectChanges();\n });\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n }\n\n //######################### public methods #########################\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n}"," \r\n<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n (click)=\"data?.pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"data?.pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && data?.pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n</div>"]}
|
|
@@ -47,15 +47,15 @@ export class DialogPopupDirective {
|
|
|
47
47
|
}));
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DialogPopupDirective, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
51
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: DialogPopupDirective, isStandalone: true, selector: "ng-select[dialogPopup]", inputs: { popupType: ["dialogPopup", "popupType"], dialogPopupOptions: "dialogPopupOptions" }, providers: [
|
|
52
|
+
{
|
|
53
|
+
provide: POPUP_TYPE,
|
|
54
|
+
useValue: DialogPopupComponent
|
|
55
|
+
}
|
|
56
|
+
], usesOnChanges: true, ngImport: i0 }); }
|
|
50
57
|
}
|
|
51
|
-
|
|
52
|
-
DialogPopupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DialogPopupDirective, selector: "ng-select[dialogPopup]", inputs: { popupType: ["dialogPopup", "popupType"], dialogPopupOptions: "dialogPopupOptions" }, providers: [
|
|
53
|
-
{
|
|
54
|
-
provide: POPUP_TYPE,
|
|
55
|
-
useValue: DialogPopupComponent
|
|
56
|
-
}
|
|
57
|
-
], usesOnChanges: true, ngImport: i0 });
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogPopupDirective, decorators: [{
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DialogPopupDirective, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: 'ng-select[dialogPopup]',
|
|
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
}]
|
|
69
|
-
}], ctorParameters:
|
|
69
|
+
}], ctorParameters: () => [{ type: i1.NgSelectComponent }], propDecorators: { popupType: [{
|
|
70
70
|
type: Input,
|
|
71
71
|
args: ['dialogPopup']
|
|
72
72
|
}], dialogPopupOptions: [{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogPopup.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/dialogPopup/dialogPopup.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAiB,KAAK,EAA2B,MAAM,eAAe,CAAC;AAExF,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAsB,MAAM,eAAe,CAAC;AACjF,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;;;AAGpE;;GAEG;AAaH,MAAM,OAAO,oBAAoB;IAgB7B,iEAAiE;IACjE,YAAsB,OAA0B;QAA1B,YAAO,GAAP,OAAO,CAAmB;QAfhD,gFAAgF;QAEhF;;WAEG;QAEI,cAAS,GAA+C,IAAI,CAAC;QAEpE;;WAEG;QAEI,uBAAkB,GAAwB,IAAI,CAAC;IAKtD,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW,CAAC,OAAsB;QAErC,MAAM,OAAO,GAAuB,EAAE,CAAC;QACvC,IAAI,OAAO,GAAG,KAAK,CAAC;QAEpB,IAAG,MAAM,CAAuB,WAAW,CAAC,IAAI,OAAO,IAAI,IAAI,CAAC,SAAS,EACzE,CAAC;YACG,OAAO,GAAG,IAAI,CAAC;YAEf,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC;QAC7C,CAAC;QAED,IAAG,MAAM,CAAuB,oBAAoB,CAAC,IAAI,OAAO,EAChE,CAAC;YACG,OAAO,GAAG,IAAI,CAAC;YAEf,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC;QACpD,CAAC;QAED,IAAG,OAAO,EACV,CAAC;YACG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CACjC;gBACI,OAAO,EACP;oBACI,KAAK,EACL;wBACI,OAAO,EAAE,OAAO;qBACnB;iBACJ;aACJ,CAAC,CAAC,CAAC;QACR,CAAC;IACL,CAAC;8GA1DQ,oBAAoB;kGAApB,oBAAoB,oKAR7B;YAEI;gBACI,OAAO,EAAE,UAAU;gBACnB,QAAQ,EAAE,oBAAoB;aACjC;SACJ;;2FAEQ,oBAAoB;kBAZhC,SAAS;mBACV;oBACI,QAAQ,EAAE,wBAAwB;oBAClC,SAAS,EACT;wBAEI;4BACI,OAAO,EAAE,UAAU;4BACnB,QAAQ,EAAE,oBAAoB;yBACjC;qBACJ;iBACJ;sFASU,SAAS;sBADf,KAAK;uBAAC,aAAa;gBAOb,kBAAkB;sBADxB,KAAK","sourcesContent":["import {Directive, ValueProvider, Input, SimpleChanges, OnChanges} from '@angular/core';\nimport {ComponentType} from '@angular/cdk/portal';\nimport {POPUP_TYPE, NgSelectComponent, VisualPluginOptions} from '@anglr/select';\nimport {patchOptions} from '@anglr/select/extensions';\nimport {nameof} from '@jscrpt/common';\n\nimport {DialogPopupComponent} from '../../plugins/popup/components';\nimport {DialogPopupContentComponent, DialogPopupOptions} from '../../plugins/popup';\n\n/**\n * Directive that changes ng select popup to DialogPopup\n */\n@Directive(\n{\n selector: 'ng-select[dialogPopup]',\n providers:\n [\n <ValueProvider>\n {\n provide: POPUP_TYPE,\n useValue: DialogPopupComponent\n }\n ]\n})\nexport class DialogPopupDirective implements OnChanges\n{\n //######################### public properties - inputs #########################\n\n /**\n * Popup type that will be used\n */\n @Input('dialogPopup')\n public popupType: ComponentType<DialogPopupContentComponent> = null;\n\n /**\n * Dialog popup options\n */\n @Input()\n public dialogPopupOptions: VisualPluginOptions = null;\n\n //######################### constructor #########################\n constructor(protected _select: NgSelectComponent)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n const options: DialogPopupOptions = {};\n let changed = false;\n\n if(nameof<DialogPopupDirective>('popupType') in changes && this.popupType)\n {\n changed = true;\n\n options.dialogComponent = this.popupType;\n }\n\n if(nameof<DialogPopupDirective>('dialogPopupOptions') in changes)\n {\n changed = true;\n\n options.dialogOptions = this.dialogPopupOptions;\n }\n\n if(changed)\n {\n this._select.execute(patchOptions(\n {\n plugins:\n {\n popup:\n {\n options: options\n }\n }\n }));\n }\n }\n}"]}
|
|
@@ -9,32 +9,32 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* Module allows using of angular material dialog for select popup
|
|
10
10
|
*/
|
|
11
11
|
export class NgSelectDialogPopupModule {
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NgSelectDialogPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
13
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: NgSelectDialogPopupModule, declarations: [DialogPopupComponent,
|
|
14
|
+
BasicDialogPopupComponent], imports: [CommonModule,
|
|
15
|
+
MatDialogModule,
|
|
16
|
+
DialogPopupDirective], exports: [DialogPopupComponent,
|
|
17
|
+
DialogPopupDirective,
|
|
18
|
+
BasicDialogPopupComponent] }); }
|
|
19
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NgSelectDialogPopupModule, imports: [CommonModule,
|
|
20
|
+
MatDialogModule] }); }
|
|
12
21
|
}
|
|
13
|
-
|
|
14
|
-
NgSelectDialogPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, declarations: [DialogPopupComponent,
|
|
15
|
-
BasicDialogPopupComponent,
|
|
16
|
-
DialogPopupDirective], imports: [CommonModule,
|
|
17
|
-
MatDialogModule], exports: [DialogPopupComponent,
|
|
18
|
-
BasicDialogPopupComponent,
|
|
19
|
-
DialogPopupDirective] });
|
|
20
|
-
NgSelectDialogPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, imports: [CommonModule,
|
|
21
|
-
MatDialogModule] });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, decorators: [{
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NgSelectDialogPopupModule, decorators: [{
|
|
23
23
|
type: NgModule,
|
|
24
24
|
args: [{
|
|
25
25
|
imports: [
|
|
26
26
|
CommonModule,
|
|
27
|
-
MatDialogModule
|
|
27
|
+
MatDialogModule,
|
|
28
|
+
DialogPopupDirective,
|
|
28
29
|
],
|
|
29
30
|
declarations: [
|
|
30
31
|
DialogPopupComponent,
|
|
31
32
|
BasicDialogPopupComponent,
|
|
32
|
-
DialogPopupDirective
|
|
33
33
|
],
|
|
34
34
|
exports: [
|
|
35
35
|
DialogPopupComponent,
|
|
36
|
+
DialogPopupDirective,
|
|
36
37
|
BasicDialogPopupComponent,
|
|
37
|
-
DialogPopupDirective
|
|
38
38
|
]
|
|
39
39
|
}]
|
|
40
40
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/dialogPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;;AAEzD;;GAEG;AAqBH,MAAM,OAAO,yBAAyB
|
|
1
|
+
{"version":3,"file":"dialogPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/dialogPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;;AAEzD;;GAEG;AAqBH,MAAM,OAAO,yBAAyB;8GAAzB,yBAAyB;+GAAzB,yBAAyB,iBAV9B,oBAAoB;YACpB,yBAAyB,aAPzB,YAAY;YACZ,eAAe;YACf,oBAAoB,aASpB,oBAAoB;YACpB,oBAAoB;YACpB,yBAAyB;+GAGpB,yBAAyB,YAhB9B,YAAY;YACZ,eAAe;;2FAeV,yBAAyB;kBApBrC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,eAAe;wBACf,oBAAoB;qBACvB;oBACD,YAAY,EACZ;wBACI,oBAAoB;wBACpB,yBAAyB;qBAC5B;oBACD,OAAO,EACP;wBACI,oBAAoB;wBACpB,oBAAoB;wBACpB,yBAAyB;qBAC5B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {MatDialogModule} from '@angular/material/dialog';\n\nimport {BasicDialogPopupComponent} from '../components/basicDialogPopup/types';\nimport {DialogPopupComponent} from '../plugins/popup/dialog/dialogPopup.component';\nimport {DialogPopupDirective} from '../directives/types';\n\n/**\n * Module allows using of angular material dialog for select popup\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n MatDialogModule,\n DialogPopupDirective,\n ],\n declarations:\n [\n DialogPopupComponent,\n BasicDialogPopupComponent,\n ],\n exports:\n [\n DialogPopupComponent,\n DialogPopupDirective,\n BasicDialogPopupComponent,\n ]\n})\nexport class NgSelectDialogPopupModule\n{\n}"]}
|
|
@@ -7,13 +7,13 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Module for VirtualEditPopup components, can also by used for non edit version
|
|
8
8
|
*/
|
|
9
9
|
export class VirtualEditPopupModule {
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: VirtualEditPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: VirtualEditPopupModule, declarations: [VirtualEditPopupComponent], imports: [CommonModule,
|
|
12
|
+
ScrollingModule], exports: [VirtualEditPopupComponent] }); }
|
|
13
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: VirtualEditPopupModule, imports: [CommonModule,
|
|
14
|
+
ScrollingModule] }); }
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
VirtualEditPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, declarations: [VirtualEditPopupComponent], imports: [CommonModule,
|
|
13
|
-
ScrollingModule], exports: [VirtualEditPopupComponent] });
|
|
14
|
-
VirtualEditPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, imports: [CommonModule,
|
|
15
|
-
ScrollingModule] });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, decorators: [{
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: VirtualEditPopupModule, decorators: [{
|
|
17
17
|
type: NgModule,
|
|
18
18
|
args: [{
|
|
19
19
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualEditPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/virtualEditPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,yDAAyD,CAAC;;AAElG;;GAEG;AAiBH,MAAM,OAAO,sBAAsB
|
|
1
|
+
{"version":3,"file":"virtualEditPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/virtualEditPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,yDAAyD,CAAC;;AAElG;;GAEG;AAiBH,MAAM,OAAO,sBAAsB;8GAAtB,sBAAsB;+GAAtB,sBAAsB,iBAP3B,yBAAyB,aALzB,YAAY;YACZ,eAAe,aAQf,yBAAyB;+GAGpB,sBAAsB,YAZ3B,YAAY;YACZ,eAAe;;2FAWV,sBAAsB;kBAhBlC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,yBAAyB;qBAC5B;oBACD,OAAO,EACP;wBACI,yBAAyB;qBAC5B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ScrollingModule} from '@angular/cdk/scrolling';\n\nimport {VirtualEditPopupComponent} from '../plugins/popup/virtualEdit/virtualEditPopup.component';\n\n/**\n * Module for VirtualEditPopup components, can also by used for non edit version\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n ScrollingModule\n ],\n declarations:\n [\n VirtualEditPopupComponent\n ],\n exports:\n [\n VirtualEditPopupComponent\n ]\n})\nexport class VirtualEditPopupModule\n{\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Inject, Optional, resolveForwardRef } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { NG_SELECT_PLUGIN_INSTANCES, PluginBus, POPUP_OPTIONS } from '@anglr/select';
|
|
4
|
-
import { extend } from '@jscrpt/common';
|
|
4
|
+
import { extend } from '@jscrpt/common/extend';
|
|
5
5
|
import { BasicDialogPopupComponent } from '../../../components/basicDialogPopup/basicDialogPopup.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@anglr/select";
|
|
@@ -22,6 +22,22 @@ const defaultOptions = {
|
|
|
22
22
|
* Component used for rendering basic popup with options
|
|
23
23
|
*/
|
|
24
24
|
export class DialogPopupComponent {
|
|
25
|
+
//######################### public properties - implementation of BasicPopup #########################
|
|
26
|
+
/**
|
|
27
|
+
* Options for NgSelect plugin
|
|
28
|
+
*/
|
|
29
|
+
get options() {
|
|
30
|
+
return this._options;
|
|
31
|
+
}
|
|
32
|
+
set options(options) {
|
|
33
|
+
this._options = extend(true, this._options, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Html element that represents popup itself
|
|
37
|
+
*/
|
|
38
|
+
get popupElement() {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
25
41
|
//######################### constructor #########################
|
|
26
42
|
constructor(ngSelectPlugins, pluginBus, pluginElement, _dialog, _changeDetector, options) {
|
|
27
43
|
this.ngSelectPlugins = ngSelectPlugins;
|
|
@@ -54,22 +70,6 @@ export class DialogPopupComponent {
|
|
|
54
70
|
};
|
|
55
71
|
this._options = extend(true, {}, defaultOptions, options);
|
|
56
72
|
}
|
|
57
|
-
//######################### public properties - implementation of BasicPopup #########################
|
|
58
|
-
/**
|
|
59
|
-
* Options for NgSelect plugin
|
|
60
|
-
*/
|
|
61
|
-
get options() {
|
|
62
|
-
return this._options;
|
|
63
|
-
}
|
|
64
|
-
set options(options) {
|
|
65
|
-
this._options = extend(true, this._options, options);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Html element that represents popup itself
|
|
69
|
-
*/
|
|
70
|
-
get popupElement() {
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
73
|
//######################### public methods - implementation of OnDestroy #########################
|
|
74
74
|
/**
|
|
75
75
|
* Called when component is destroyed
|
|
@@ -114,17 +114,18 @@ export class DialogPopupComponent {
|
|
|
114
114
|
toggleDialog() {
|
|
115
115
|
this._handleDialog(true);
|
|
116
116
|
}
|
|
117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DialogPopupComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i2.MatDialog }, { token: i0.ChangeDetectorRef }, { token: POPUP_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
118
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: DialogPopupComponent, isStandalone: false, selector: "div.ng-select-dialog-popup", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
117
119
|
}
|
|
118
|
-
|
|
119
|
-
DialogPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DialogPopupComponent, selector: "div.ng-select-dialog-popup", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogPopupComponent, decorators: [{
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DialogPopupComponent, decorators: [{
|
|
121
121
|
type: Component,
|
|
122
122
|
args: [{
|
|
123
123
|
selector: 'div.ng-select-dialog-popup',
|
|
124
124
|
template: '',
|
|
125
|
+
standalone: false,
|
|
125
126
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
126
127
|
}]
|
|
127
|
-
}], ctorParameters:
|
|
128
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
128
129
|
type: Inject,
|
|
129
130
|
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
130
131
|
}, {
|
|
@@ -136,5 +137,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
136
137
|
args: [POPUP_OPTIONS]
|
|
137
138
|
}, {
|
|
138
139
|
type: Optional
|
|
139
|
-
}] }]
|
|
140
|
+
}] }] });
|
|
140
141
|
//# sourceMappingURL=dialogPopup.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogPopup.component.js","sourceRoot":"","sources":["../../../../../../material/src/plugins/popup/dialog/dialogPopup.component.ts"],"names":[],"mappings":"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","sourcesContent":["import {ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Inject, OnDestroy, Optional, resolveForwardRef} from '@angular/core';\nimport {MatDialog, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\nimport {NgSelectPlugin, NgSelectPluginInstances, NG_SELECT_PLUGIN_INSTANCES, PluginBus, POPUP_OPTIONS, ɵNgSelectOption} from '@anglr/select';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {BasicDialogPopupComponent} from '../../../components/basicDialogPopup/basicDialogPopup.component';\nimport {DialogPopup, DialogPopupContentComponent, DialogPopupOptions, DialogPopupComponentData} from './dialogPopup.interface';\n\n/**\n * Default options for popup\n * @internal\n */\nconst defaultOptions: DialogPopupOptions =\n{\n dialogComponent: forwardRef(() => BasicDialogPopupComponent),\n dialogOptions: {},\n cssClasses:\n {\n dialogDiv: 'popup-div'\n },\n visible: false\n};\n\n/**\n * Component used for rendering basic popup with options\n */\n@Component(\n{\n selector: 'div.ng-select-dialog-popup',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DialogPopupComponent<TComponent extends DialogPopupContentComponent<TDialogOptions, TValue, TCssClasses> = any, TValue = any, TDialogOptions = any, TCssClasses = any> implements DialogPopup, NgSelectPlugin<DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>, TValue>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>;\n\n /**\n * Subscription for toggle popup event\n */\n protected _popupToggleSubscription: Subscription;\n\n /**\n * Subscription for popup visibility change request\n */\n protected _visibilityRequestSubscription: Subscription;\n\n /**\n * Component that is used for handling metadata selection itself\n */\n protected _dialogComponent?: ComponentType<TComponent>;\n\n /**\n * Popup dialog reference\n */\n protected _dialogRef?: MatDialogRef<TComponent>;\n\n //######################### public properties - implementation of BasicPopup #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>\n {\n return this._options;\n }\n public set options(options: DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Occurs when visibility of popup has changed\n */\n public visibilityChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Html element that represents popup itself\n */\n public get popupElement(): HTMLElement\n {\n return null;\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of select options available\n * @internal\n */\n public selectOptions: ɵNgSelectOption[];\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus<TValue>,\n public pluginElement: ElementRef,\n protected _dialog: MatDialog,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(POPUP_OPTIONS) @Optional() options?: DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._popupToggleSubscription?.unsubscribe();\n this._popupToggleSubscription = null;\n\n this._visibilityRequestSubscription?.unsubscribe();\n this._visibilityRequestSubscription = null;\n }\n\n //######################### public methods - implementation of BasicPopup #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._dialogComponent = resolveForwardRef(this.options.dialogComponent);\n\n if(!this._popupToggleSubscription)\n {\n this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.toggleDialog());\n }\n\n if(!this._visibilityRequestSubscription)\n {\n this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleDialog);\n }\n\n if (this.options.visible)\n {\n this._handleDialog(true);\n }\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n this._dialogRef?.componentInstance?.invalidateVisuals();\n }\n\n /**\n * Toggles dialog visibility\n */\n protected toggleDialog()\n {\n this._handleDialog(true);\n }\n\n /**\n * Handles dialog visibility change\n */\n protected _handleDialog = (visible: boolean) =>\n {\n if (visible)\n {\n this._dialogRef = this._dialog.open<TComponent, DialogPopupComponentData<TDialogOptions, TValue, TCssClasses>>(this._dialogComponent,\n {\n panelClass: this.options?.cssClasses?.dialogDiv,\n data:\n {\n ngSelectPlugins: this.ngSelectPlugins,\n options: this.options.dialogOptions,\n pluginBus: this.pluginBus\n }\n });\n }\n else\n {\n this._dialogRef?.close();\n this._dialogRef = null;\n }\n };\n}\n"]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
|
|
2
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
3
|
+
import { EditPopupComponent } from '@anglr/select';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/cdk/scrolling";
|
|
7
|
+
//TODO - resize and scroll
|
|
8
|
+
//TODO - too few items and height
|
|
9
|
+
//TODO - dynamic width update and collision with viewport
|
|
10
|
+
/**
|
|
11
|
+
* Component used for rendering virtual edit popup with options
|
|
12
|
+
*/
|
|
13
|
+
export class VirtualEditPopupComponent extends EditPopupComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
//######################### protected properties #########################
|
|
17
|
+
/**
|
|
18
|
+
* Currently stored max width of displayed popup
|
|
19
|
+
*/
|
|
20
|
+
this._maxWidth = 0;
|
|
21
|
+
}
|
|
22
|
+
//######################### protected properties #########################
|
|
23
|
+
/**
|
|
24
|
+
* Gets currently available options
|
|
25
|
+
*/
|
|
26
|
+
get availableOptions() {
|
|
27
|
+
return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
|
|
28
|
+
}
|
|
29
|
+
//######################### public properties #########################
|
|
30
|
+
invalidateVisuals() {
|
|
31
|
+
super.invalidateVisuals();
|
|
32
|
+
this._scrollToOption();
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Toggles popup visibility
|
|
36
|
+
*/
|
|
37
|
+
togglePopup() {
|
|
38
|
+
super.togglePopup();
|
|
39
|
+
if (this.viewPort) {
|
|
40
|
+
this.viewPort.elementScrolled().subscribe(() => {
|
|
41
|
+
const viewportElement = this.viewPort?.getElementRef().nativeElement;
|
|
42
|
+
if (viewportElement) {
|
|
43
|
+
const width = viewportElement.children.item(0).clientWidth;
|
|
44
|
+
if (width > this._maxWidth) {
|
|
45
|
+
this._maxWidth = width;
|
|
46
|
+
viewportElement.style.width = `${viewportElement.children.item(0).clientWidth}px`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
const viewportElement = this.viewPort?.getElementRef().nativeElement;
|
|
52
|
+
viewportElement.style.width = `${viewportElement.children.item(0).clientWidth}px`;
|
|
53
|
+
}, 0);
|
|
54
|
+
this.viewPort.getElementRef().nativeElement.style.height = this.popupElement.style.maxHeight;
|
|
55
|
+
this.viewPort.checkViewportSize();
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this._maxWidth = 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
_scrollToOption() {
|
|
62
|
+
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
63
|
+
const index = activeOption ? this.availableOptions.indexOf(activeOption) : 0;
|
|
64
|
+
this.viewPort?.scrollToIndex(index);
|
|
65
|
+
// if (index === 0)
|
|
66
|
+
// {
|
|
67
|
+
// // scrollTop = 0;
|
|
68
|
+
// }
|
|
69
|
+
// else
|
|
70
|
+
// {
|
|
71
|
+
// // scrollTop = this._getOptionScrollPosition(this.viewPort.elementRef.nativeElement?.scrollTop);
|
|
72
|
+
// }
|
|
73
|
+
// console.log(scrollTop);
|
|
74
|
+
// if (this.popupElement)
|
|
75
|
+
// {
|
|
76
|
+
// this.viewPort.elementRef.nativeElement.scrollTop = scrollTop;
|
|
77
|
+
// }
|
|
78
|
+
}
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: VirtualEditPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
80
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: VirtualEditPopupComponent, isStandalone: false, selector: "div.ng-select-virtual-edit-popup", viewQueries: [{ propertyName: "viewPort", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <cdk-virtual-scroll-viewport itemSize=\"28\" class=\"thin-scrollbar\">\r\n <div *cdkVirtualFor=\"let option of selectOptions\"\r\n #popupOptions\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n </cdk-virtual-scroll-viewport>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: hidden;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\ncdk-virtual-scroll-viewport\r\n{\r\n height: 290px;\r\n transition: width 200ms;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: VirtualEditPopupComponent, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{ selector: 'div.ng-select-virtual-edit-popup', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <cdk-virtual-scroll-viewport itemSize=\"28\" class=\"thin-scrollbar\">\r\n <div *cdkVirtualFor=\"let option of selectOptions\"\r\n #popupOptions\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n </cdk-virtual-scroll-viewport>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: hidden;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\ncdk-virtual-scroll-viewport\r\n{\r\n height: 290px;\r\n transition: width 200ms;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"] }]
|
|
85
|
+
}], propDecorators: { viewPort: [{
|
|
86
|
+
type: ViewChild,
|
|
87
|
+
args: [CdkVirtualScrollViewport]
|
|
88
|
+
}] } });
|
|
89
|
+
//# sourceMappingURL=virtualEditPopup.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualEditPopup.component.js","sourceRoot":"","sources":["../../../../../../material/src/plugins/popup/virtualEdit/virtualEditPopup.component.ts","../../../../../../material/src/plugins/popup/virtualEdit/virtualEditPopup.component.html"],"names":[],"mappings":"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","sourcesContent":["import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core';\nimport {CdkVirtualScrollViewport} from '@angular/cdk/scrolling';\nimport {EditPopupComponent, NgSelectPlugin, ɵNgSelectOption} from '@anglr/select';\n\nimport {VirtualEditPopup, VirtualEditPopupOptions} from './virtualEditPopup.interface';\n\n//TODO - resize and scroll\n//TODO - too few items and height\n//TODO - dynamic width update and collision with viewport\n\n/**\n * Component used for rendering virtual edit popup with options\n */\n@Component(\n{\n selector: 'div.ng-select-virtual-edit-popup',\n templateUrl: 'virtualEditPopup.component.html',\n styleUrl: 'virtualEditPopup.component.scss',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class VirtualEditPopupComponent extends EditPopupComponent implements VirtualEditPopup, NgSelectPlugin<VirtualEditPopupOptions>\n{\n //######################### protected properties #########################\n\n /**\n * Currently stored max width of displayed popup\n */\n protected _maxWidth: number = 0;\n\n //######################### public properties - children #########################\n\n // /**\n // *\n // */\n // @ViewChildren('popupOptions')\n // public popupOptions: QueryList<ElementRef>;\n\n /**\n * View port that is used for virtual scrolling\n */\n @ViewChild(CdkVirtualScrollViewport)\n public viewPort: CdkVirtualScrollViewport;\n\n //######################### protected properties #########################\n\n /**\n * Gets currently available options\n */\n protected get availableOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.availableOptions;\n }\n\n //######################### public properties #########################\n\n public override invalidateVisuals()\n {\n super.invalidateVisuals();\n\n this._scrollToOption();\n }\n\n /**\n * Toggles popup visibility\n */\n protected override togglePopup(): void\n {\n super.togglePopup();\n\n if(this.viewPort)\n {\n this.viewPort.elementScrolled().subscribe(() =>\n {\n const viewportElement = this.viewPort?.getElementRef().nativeElement;\n\n if(viewportElement)\n {\n const width = viewportElement.children.item(0).clientWidth;\n\n if(width > this._maxWidth)\n {\n this._maxWidth = width;\n viewportElement.style.width = `${viewportElement.children.item(0).clientWidth}px`;\n }\n }\n });\n\n setTimeout(() =>\n {\n const viewportElement = this.viewPort?.getElementRef().nativeElement;\n\n viewportElement.style.width = `${viewportElement.children.item(0).clientWidth}px`;\n }, 0);\n\n this.viewPort.getElementRef().nativeElement.style.height = this.popupElement.style.maxHeight;\n this.viewPort.checkViewportSize();\n }\n else\n {\n this._maxWidth = 0;\n }\n }\n\n private _scrollToOption()\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n const index = activeOption ? this.availableOptions.indexOf(activeOption) : 0;\n\n this.viewPort?.scrollToIndex(index);\n\n // if (index === 0)\n // {\n // // scrollTop = 0;\n // }\n // else\n // {\n // // scrollTop = this._getOptionScrollPosition(this.viewPort.elementRef.nativeElement?.scrollTop);\n // }\n\n // console.log(scrollTop);\n\n // if (this.popupElement)\n // {\n // this.viewPort.elementRef.nativeElement.scrollTop = scrollTop;\n // }\n }\n\n // private _getOptionScrollPosition(currentScrollPosition: number)\n // {\n // const activeOptionsElement = this.popupOptions.toArray().find(el => el.nativeElement.classList.contains('active'))?.nativeElement;\n // const top = activeOptionsElement?.offsetTop;\n // const bottom = top + activeOptionsElement?.offsetHeight;\n\n // if (bottom > this.popupElement?.clientHeight + currentScrollPosition)\n // {\n // return Math.max(bottom - this.popupElement?.clientHeight);\n // }\n // else if (top < currentScrollPosition)\n // {\n // return Math.max(0, top);\n // }\n\n // return currentScrollPosition;\n // }\n}","<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <cdk-virtual-scroll-viewport itemSize=\"28\" class=\"thin-scrollbar\">\r\n <div *cdkVirtualFor=\"let option of selectOptions\"\r\n #popupOptions\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n </cdk-virtual-scroll-viewport>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>"]}
|
|
@@ -34,14 +34,15 @@ export class OptGroupComponent {
|
|
|
34
34
|
this._optionsChange.emit();
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: OptGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: OptGroupComponent, isStandalone: false, selector: "ng-select>ng-optgroup", inputs: { text: "text" }, viewQueries: [{ propertyName: "optionsChildren", predicate: OptionComponent, descendants: true }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
OptGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: OptGroupComponent, selector: "ng-select>ng-optgroup", inputs: { text: "text" }, viewQueries: [{ propertyName: "optionsChildren", predicate: OptionComponent, descendants: true }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: OptGroupComponent, decorators: [{
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: OptGroupComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{
|
|
43
43
|
selector: 'ng-select>ng-optgroup',
|
|
44
44
|
template: '',
|
|
45
|
+
standalone: false,
|
|
45
46
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
46
47
|
}]
|
|
47
48
|
}], propDecorators: { optionsChildren: [{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optgroup.component.js","sourceRoot":"","sources":["../../../../src/components/option/optgroup.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAI9H,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;;AAEnD;;GAEG;AAQH,MAAM,OAAO,iBAAiB;IAP9B;QASI,oEAAoE;QAEpE;;WAEG;QACK,mBAAc,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAiDzE;IA/CG,uEAAuE;IAEvE;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAmBD,sGAAsG;IAEtG;;OAEG;IACI,eAAe;QAElB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,EAAE;YAExC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC,CAAC,CAAC;IACP,CAAC;8GAvDQ,iBAAiB;kGAAjB,iBAAiB,gJAiCZ,eAAe,gDArCnB,EAAE;;2FAIH,iBAAiB;kBAP7B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;8BAmCU,eAAe;sBADrB,YAAY;uBAAC,eAAe;gBAStB,IAAI;sBADV,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, EventEmitter, QueryList, ViewChildren, AfterViewInit} from '@angular/core';\n\nimport {NgSelectOptGroup} from './optgroup.interface';\nimport {NgSelectOption} from './option.interface';\nimport {OptionComponent} from './option.component';\n\n/**\n * Component used for options group in select component\n */\n@Component(\n{\n selector: 'ng-select>ng-optgroup',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class OptGroupComponent<TValue = any> implements NgSelectOptGroup<TValue>, AfterViewInit\n{\n //######################### private fields #########################\n\n /**\n * Instance of event emitter for optionsChange\n */\n private _optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties #########################\n\n /**\n * Options assigned to this options group\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this.optionsChildren.toArray();\n }\n\n /**\n * Occurs when options in this group change\n */\n public get optionsChange(): EventEmitter<void>\n {\n return this._optionsChange;\n }\n\n //######################### public properties - children #########################\n\n /**\n * Children options in this group\n * @internal\n */\n @ViewChildren(OptionComponent)\n public optionsChildren: QueryList<NgSelectOption<TValue>>;\n\n //######################### public properties - inputs #########################\n\n /**\n * Text that is displayed for this options group\n */\n @Input()\n public text: string;\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.optionsChildren.changes.subscribe(() =>\n {\n this._optionsChange.emit();\n });\n }\n}"]}
|
|
@@ -20,14 +20,15 @@ export class OptionComponent {
|
|
|
20
20
|
*/
|
|
21
21
|
this.group = null;
|
|
22
22
|
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: OptionComponent, isStandalone: false, selector: "ng-option", inputs: { value: "value", text: "text" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
25
|
}
|
|
24
|
-
|
|
25
|
-
OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: OptionComponent, selector: "ng-option", inputs: { value: "value", text: "text" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: OptionComponent, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: OptionComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: 'ng-option',
|
|
30
30
|
template: '',
|
|
31
|
+
standalone: false,
|
|
31
32
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
32
33
|
}]
|
|
33
34
|
}], propDecorators: { value: [{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option.component.js","sourceRoot":"","sources":["../../../../src/components/option/option.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;;AAIxE;;GAEG;AAQH,MAAM,OAAO,eAAe;IAP5B;QASI,2FAA2F;QAE3F;;WAEG;QACI,WAAM,GAAY,KAAK,CAAC;QAE/B;;WAEG;QACI,aAAQ,GAAY,KAAK,CAAC;QAgBjC,uEAAuE;QAEvE;;WAEG;QACI,UAAK,GAAW,IAAI,CAAC;KAC/B;8GAlCY,eAAe;kGAAf,eAAe,gHAJd,EAAE;;2FAIH,eAAe;kBAP3B,SAAS;mBACV;oBACI,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;8BAqBU,KAAK;sBADX,KAAK;gBAOC,IAAI;sBADV,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, Input} from '@angular/core';\n\nimport {NgSelectOption} from './option.interface';\n\n/**\n * Component used for options in select component\n */\n@Component(\n{\n selector: 'ng-option',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class OptionComponent<TValue = any> implements NgSelectOption<TValue>\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Indication whether is item active\n */\n public active: boolean = false;\n\n /**\n * Indication whether this option is selected\n */\n public selected: boolean = false;\n\n //######################### public properties - inputs #########################\n\n /**\n * Value that will be used if this option will be selected\n */\n @Input()\n public value: TValue;\n\n /**\n * Text that is displayed if this value is selected\n */\n @Input()\n public text: string;\n\n //######################### public properties #########################\n\n /**\n * If specified this option will be displayed in group\n */\n public group: string = null;\n}"]}
|