@anglr/select 15.0.0 → 16.0.0-beta.20260226142137
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 +153 -0
- package/es2022/extensions/src/extensions/getValue.js +16 -1
- package/es2022/extensions/src/extensions/getValue.js.map +1 -1
- package/es2022/extensions/src/extensions/onFocus.js +14 -1
- package/es2022/extensions/src/extensions/onFocus.js.map +1 -1
- package/es2022/extensions/src/extensions/patchOptions.js +15 -11
- package/es2022/extensions/src/extensions/patchOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/reinitializeOptions.js +19 -14
- package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/setReadonly.js +21 -1
- package/es2022/extensions/src/extensions/setReadonly.js.map +1 -1
- package/es2022/extensions/src/extensions/setValue.js +17 -1
- package/es2022/extensions/src/extensions/setValue.js.map +1 -1
- package/es2022/extensions/src/extensions/valueChange.js +17 -1
- package/es2022/extensions/src/extensions/valueChange.js.map +1 -1
- package/es2022/extensions/src/index.js +1 -7
- package/es2022/extensions/src/index.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +100 -72
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +26 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/index.js +2 -1
- package/es2022/material/src/components/basicDialogPopup/index.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/types.js +2 -1
- package/es2022/material/src/components/basicDialogPopup/types.js.map +1 -1
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js +73 -74
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -1
- package/es2022/material/src/index.js +1 -7
- package/es2022/material/src/index.js.map +1 -1
- package/es2022/material/src/modules/dialogPopup.module.js +33 -40
- package/es2022/material/src/modules/dialogPopup.module.js.map +1 -1
- package/es2022/material/src/modules/virtualEditPopup.module.js +27 -30
- package/es2022/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js +172 -140
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js +65 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -1
- package/es2022/material/src/plugins/popup/index.js +1 -2
- package/es2022/material/src/plugins/popup/index.js.map +1 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +120 -88
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +20 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -1
- package/es2022/src/components/index.js +4 -0
- package/es2022/src/components/index.js.map +1 -0
- package/es2022/src/components/option/option.component.js +22 -19
- package/es2022/src/components/option/option.component.js.map +1 -1
- package/es2022/src/components/optionGroup/optgroup.component.js +29 -0
- package/es2022/src/components/optionGroup/optgroup.component.js.map +1 -0
- package/es2022/src/components/select/select.component.js +356 -450
- package/es2022/src/components/select/select.component.js.map +1 -1
- package/es2022/src/decorators/index.js +2 -0
- package/es2022/src/decorators/index.js.map +1 -0
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js +12 -0
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js.map +1 -0
- package/es2022/src/directives/index.js +5 -0
- package/es2022/src/directives/index.js.map +1 -0
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js +30 -0
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js.map +1 -0
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js +30 -0
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js.map +1 -0
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js +25 -0
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js.map +1 -0
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js +210 -0
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js.map +1 -0
- package/es2022/src/directives/selectEdit/selectEdit.directive.js +51 -0
- package/es2022/src/directives/selectEdit/selectEdit.directive.js.map +1 -0
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js +48 -0
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js.map +1 -0
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js +17 -0
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js.map +1 -0
- package/es2022/src/index.js +8 -41
- package/es2022/src/index.js.map +1 -1
- package/es2022/src/interfaces/index.js +20 -0
- package/es2022/src/interfaces/index.js.map +1 -0
- package/es2022/src/interfaces/initState/initState.interface.js +2 -0
- package/es2022/src/interfaces/initState/initState.interface.js.map +1 -0
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js +2 -0
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js.map +1 -0
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js +2 -0
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js.map +1 -0
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js +2 -0
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/index.js +10 -0
- package/es2022/src/interfaces/plugins/index.js.map +1 -0
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js +2 -0
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js +2 -0
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/popup/popup.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/popupContext/popupContext.interface.js +2 -0
- package/es2022/src/interfaces/popupContext/popupContext.interface.js.map +1 -0
- package/es2022/src/interfaces/selectApi/selectApi.interface.js +2 -0
- package/es2022/src/interfaces/selectApi/selectApi.interface.js.map +1 -0
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js +2 -0
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js +2 -0
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js.map +1 -0
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js +2 -0
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js.map +1 -0
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js +2 -0
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOption/selectOption.interface.js +2 -0
- package/es2022/src/interfaces/selectOption/selectOption.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js +2 -0
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js +2 -0
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js +2 -0
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js.map +1 -0
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js +2 -0
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js.map +1 -0
- package/es2022/src/interfaces/templateGatherer/templateGatherer.interface.js.map +1 -0
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js +2 -0
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js.map +1 -0
- package/es2022/src/misc/classes/index.js +3 -0
- package/es2022/src/misc/classes/index.js.map +1 -0
- package/es2022/src/misc/{pluginBus/pluginBus.js → classes/selectBus/selectBus.js} +17 -8
- package/es2022/src/misc/classes/selectBus/selectBus.js.map +1 -0
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js +163 -0
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js.map +1 -0
- package/es2022/src/misc/enums.js +43 -0
- package/es2022/src/misc/enums.js.map +1 -0
- package/es2022/src/misc/extensions/getValue.js +16 -11
- package/es2022/src/misc/extensions/getValue.js.map +1 -1
- package/es2022/src/misc/extensions/index.js +6 -5
- package/es2022/src/misc/extensions/index.js.map +1 -1
- package/es2022/src/misc/extensions/onFocus.js +14 -9
- package/es2022/src/misc/extensions/onFocus.js.map +1 -1
- package/es2022/src/misc/extensions/setReadonly.js +22 -17
- package/es2022/src/misc/extensions/setReadonly.js.map +1 -1
- package/es2022/src/misc/extensions/setValue.js +17 -12
- package/es2022/src/misc/extensions/setValue.js.map +1 -1
- package/es2022/src/misc/extensions/valueChange.js +17 -11
- package/es2022/src/misc/extensions/valueChange.js.map +1 -1
- package/es2022/src/misc/ngSelectOptions.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js +119 -82
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +31 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js +178 -117
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js +155 -109
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js +55 -1
- package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/types.js +4 -3
- package/es2022/src/misc/optionsGatherer/types.js.map +1 -1
- package/es2022/src/misc/providers.js +102 -0
- package/es2022/src/misc/providers.js.map +1 -0
- package/es2022/src/misc/tokens.js +78 -0
- package/es2022/src/misc/tokens.js.map +1 -0
- package/es2022/src/misc/types.js +1 -33
- package/es2022/src/misc/types.js.map +1 -1
- package/es2022/src/modules/index.js +2 -0
- package/es2022/src/modules/index.js.map +1 -0
- package/es2022/src/modules/ngSelect.module.js +31 -75
- package/es2022/src/modules/ngSelect.module.js.map +1 -1
- package/es2022/src/modules/ngSelectEdit.module.js +39 -50
- package/es2022/src/modules/ngSelectEdit.module.js.map +1 -1
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js +17 -0
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js.map +1 -0
- package/es2022/src/pipes/index.js +4 -0
- package/es2022/src/pipes/index.js.map +1 -0
- package/es2022/src/pipes/{ngSelectHasValue.pipe.js → selectHasValue/selectHasValue.pipe.js} +7 -7
- package/es2022/src/pipes/selectHasValue/selectHasValue.pipe.js.map +1 -0
- package/es2022/src/pipes/selectValue/selectValue.pipe.js +31 -0
- package/es2022/src/pipes/selectValue/selectValue.pipe.js.map +1 -0
- package/es2022/src/plugins/index.js +10 -0
- package/es2022/src/plugins/index.js.map +1 -0
- package/es2022/src/plugins/interactions/index.js +2 -0
- package/es2022/src/plugins/interactions/index.js.map +1 -0
- package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js +36 -0
- package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js.map +1 -0
- package/es2022/src/plugins/keyboardHandler/index.js +1 -3
- package/es2022/src/plugins/keyboardHandler/index.js.map +1 -1
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js +36 -0
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js.map +1 -0
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js +36 -0
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/liveSearch/index.js +2 -4
- package/es2022/src/plugins/liveSearch/index.js.map +1 -1
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js +36 -0
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/normalState/index.js +1 -3
- package/es2022/src/plugins/normalState/index.js.map +1 -1
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js +36 -0
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js.map +1 -0
- package/es2022/src/plugins/optionsHandler/index.js +2 -0
- package/es2022/src/plugins/optionsHandler/index.js.map +1 -0
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js +50 -0
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js.map +1 -0
- package/es2022/src/plugins/popup/index.js +1 -3
- package/es2022/src/plugins/popup/index.js.map +1 -1
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js +36 -0
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js.map +1 -0
- package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js +36 -0
- package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js.map +1 -0
- package/es2022/src/plugins/positioner/index.js +1 -3
- package/es2022/src/plugins/positioner/index.js.map +1 -1
- package/es2022/src/plugins/readonlyState/index.js +1 -1
- package/es2022/src/plugins/readonlyState/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/index.js +1 -4
- package/es2022/src/plugins/valueHandler/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js +81 -0
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js.map +1 -0
- package/extensions/src/extensions/getValue.d.ts +0 -1
- package/extensions/src/extensions/getValue.d.ts.map +1 -1
- package/extensions/src/extensions/onFocus.d.ts +0 -1
- package/extensions/src/extensions/onFocus.d.ts.map +1 -1
- package/extensions/src/extensions/patchOptions.d.ts +0 -6
- package/extensions/src/extensions/patchOptions.d.ts.map +1 -1
- package/extensions/src/extensions/reinitializeOptions.d.ts +0 -6
- package/extensions/src/extensions/reinitializeOptions.d.ts.map +1 -1
- package/extensions/src/extensions/setReadonly.d.ts +0 -1
- package/extensions/src/extensions/setReadonly.d.ts.map +1 -1
- package/extensions/src/extensions/setValue.d.ts +0 -1
- package/extensions/src/extensions/setValue.d.ts.map +1 -1
- package/extensions/src/extensions/valueChange.d.ts +0 -1
- package/extensions/src/extensions/valueChange.d.ts.map +1 -1
- package/extensions/src/index.d.ts +1 -7
- package/extensions/src/index.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +0 -46
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +0 -23
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/index.d.ts +0 -1
- package/material/src/components/basicDialogPopup/index.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/types.d.ts +0 -1
- package/material/src/components/basicDialogPopup/types.d.ts.map +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +0 -26
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
- package/material/src/index.d.ts +1 -7
- package/material/src/index.d.ts.map +1 -1
- package/material/src/modules/dialogPopup.module.d.ts +0 -14
- package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
- package/material/src/modules/virtualEditPopup.module.d.ts +0 -12
- package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +0 -82
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +0 -59
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
- package/material/src/plugins/popup/index.d.ts +1 -2
- package/material/src/plugins/popup/index.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +0 -29
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +0 -16
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts.map +1 -1
- package/package.json +27 -19
- package/src/components/index.d.ts +4 -0
- package/src/components/index.d.ts.map +1 -0
- package/src/components/option/option.component.d.ts +15 -14
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/optionGroup/optgroup.component.d.ts +25 -0
- package/src/components/optionGroup/optgroup.component.d.ts.map +1 -0
- package/src/components/select/select.component.css +5 -0
- package/src/components/select/select.component.d.ts +94 -179
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.component.html +10 -16
- package/src/decorators/index.d.ts +2 -0
- package/src/{components/select → decorators}/index.d.ts.map +1 -1
- package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts +5 -0
- package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts.map +1 -0
- package/src/directives/index.d.ts +5 -0
- package/src/directives/index.d.ts.map +1 -0
- package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts +19 -0
- package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts.map +1 -0
- package/src/directives/optionTemplate/optionTemplate.directive.d.ts +19 -0
- package/src/directives/optionTemplate/optionTemplate.directive.d.ts.map +1 -0
- package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts +12 -0
- package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts.map +1 -0
- package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts +1 -0
- package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts.map +1 -0
- package/src/directives/selectEdit/selectEdit.directive.d.ts +1 -0
- package/src/directives/selectEdit/selectEdit.directive.d.ts.map +1 -0
- package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts +1 -0
- package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts.map +1 -0
- package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts +9 -0
- package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts.map +1 -0
- package/src/index.d.ts +8 -41
- package/src/index.d.ts.map +1 -1
- package/src/interfaces/index.d.ts +20 -0
- package/src/interfaces/index.d.ts.map +1 -0
- package/src/interfaces/initState/initState.interface.d.ts +10 -0
- package/src/interfaces/initState/initState.interface.d.ts.map +1 -0
- package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts +11 -0
- package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts.map +1 -0
- package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts +12 -0
- package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -0
- package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts +21 -0
- package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts.map +1 -0
- package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts +6 -0
- package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/index.d.ts +10 -0
- package/src/interfaces/plugins/index.d.ts.map +1 -0
- package/src/interfaces/plugins/interactions/interactions.interface.d.ts +13 -0
- package/src/interfaces/plugins/interactions/interactions.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts +13 -0
- package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts +13 -0
- package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/normalState/normalState.interface.d.ts +31 -0
- package/src/interfaces/plugins/normalState/normalState.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts +19 -0
- package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/popup/popup.interface.d.ts +13 -0
- package/src/interfaces/plugins/popup/popup.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/positioner/positioner.interface.d.ts +13 -0
- package/src/interfaces/plugins/positioner/positioner.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts +12 -0
- package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts +23 -0
- package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts.map +1 -0
- package/src/interfaces/popupContext/popupContext.interface.d.ts +16 -0
- package/src/interfaces/popupContext/popupContext.interface.d.ts.map +1 -0
- package/src/interfaces/selectApi/selectApi.interface.d.ts +50 -0
- package/src/interfaces/selectApi/selectApi.interface.d.ts.map +1 -0
- package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts +29 -0
- package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts.map +1 -0
- package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts +6 -0
- package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts.map +1 -0
- package/src/interfaces/selectEvent/selectEvent.interface.d.ts +20 -0
- package/src/interfaces/selectEvent/selectEvent.interface.d.ts.map +1 -0
- package/src/interfaces/selectEvents/selectEvents.interface.d.ts +37 -0
- package/src/interfaces/selectEvents/selectEvents.interface.d.ts.map +1 -0
- package/src/interfaces/selectOption/selectOption.interface.d.ts +33 -0
- package/src/interfaces/selectOption/selectOption.interface.d.ts.map +1 -0
- package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts +21 -0
- package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts.map +1 -0
- package/src/interfaces/selectOptions/selectOptions.interface.d.ts +27 -0
- package/src/interfaces/selectOptions/selectOptions.interface.d.ts.map +1 -0
- package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts +33 -0
- package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts.map +1 -0
- package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts +44 -0
- package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts.map +1 -0
- package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts +17 -0
- package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts.map +1 -0
- package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts +11 -0
- package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts.map +1 -0
- package/src/misc/classes/index.d.ts +3 -0
- package/src/misc/classes/index.d.ts.map +1 -0
- package/src/misc/classes/selectBus/selectBus.d.ts +54 -0
- package/src/misc/classes/selectBus/selectBus.d.ts.map +1 -0
- package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts +90 -0
- package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts.map +1 -0
- package/src/misc/enums.d.ts +42 -0
- package/src/misc/enums.d.ts.map +1 -0
- package/src/misc/extensions/getValue.d.ts +0 -6
- package/src/misc/extensions/getValue.d.ts.map +1 -1
- package/src/misc/extensions/index.d.ts +0 -5
- package/src/misc/extensions/index.d.ts.map +1 -1
- package/src/misc/extensions/onFocus.d.ts +0 -7
- package/src/misc/extensions/onFocus.d.ts.map +1 -1
- package/src/misc/extensions/setReadonly.d.ts +0 -7
- package/src/misc/extensions/setReadonly.d.ts.map +1 -1
- package/src/misc/extensions/setValue.d.ts +0 -7
- package/src/misc/extensions/setValue.d.ts.map +1 -1
- package/src/misc/extensions/valueChange.d.ts +0 -7
- package/src/misc/extensions/valueChange.d.ts.map +1 -1
- package/src/misc/ngSelectOptions.interface.d.ts +0 -71
- package/src/misc/ngSelectOptions.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +0 -69
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +0 -85
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +0 -28
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +0 -72
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +0 -52
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/types.d.ts +0 -3
- package/src/misc/optionsGatherer/types.d.ts.map +1 -1
- package/src/misc/providers.d.ts +54 -0
- package/src/misc/providers.d.ts.map +1 -0
- package/src/misc/tokens.d.ts +81 -0
- package/src/misc/tokens.d.ts.map +1 -0
- package/src/misc/types.d.ts +11 -31
- package/src/misc/types.d.ts.map +1 -1
- package/src/modules/index.d.ts +2 -0
- package/src/modules/index.d.ts.map +1 -0
- package/src/modules/ngSelect.module.d.ts +7 -20
- package/src/modules/ngSelect.module.d.ts.map +1 -1
- package/src/modules/ngSelectEdit.module.d.ts +0 -16
- package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
- package/src/pipes/getPlugin/getPlugin.pipe.d.ts +25 -0
- package/src/pipes/getPlugin/getPlugin.pipe.d.ts.map +1 -0
- package/src/pipes/index.d.ts +4 -0
- package/src/pipes/index.d.ts.map +1 -0
- package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts +16 -0
- package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts.map +1 -0
- package/src/pipes/selectValue/selectValue.pipe.d.ts +19 -0
- package/src/pipes/selectValue/selectValue.pipe.d.ts.map +1 -0
- package/src/plugins/index.d.ts +9 -0
- package/src/plugins/index.d.ts.map +1 -0
- package/src/plugins/interactions/index.d.ts +2 -0
- package/src/plugins/interactions/index.d.ts.map +1 -0
- package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts +28 -0
- package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts.map +1 -0
- package/src/plugins/keyboardHandler/index.d.ts +1 -3
- package/src/plugins/keyboardHandler/index.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts +28 -0
- package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts.map +1 -0
- package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts +28 -0
- package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts.map +1 -0
- package/src/plugins/liveSearch/index.d.ts +2 -4
- package/src/plugins/liveSearch/index.d.ts.map +1 -1
- package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts +28 -0
- package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts.map +1 -0
- package/src/plugins/normalState/index.d.ts +1 -3
- package/src/plugins/normalState/index.d.ts.map +1 -1
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts +28 -0
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts.map +1 -0
- package/src/plugins/optionsHandler/index.d.ts +2 -0
- package/src/plugins/optionsHandler/index.d.ts.map +1 -0
- package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts +41 -0
- package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts.map +1 -0
- package/src/plugins/popup/index.d.ts +1 -3
- package/src/plugins/popup/index.d.ts.map +1 -1
- package/src/plugins/popup/simplePopup/simplePopup.component.d.ts +28 -0
- package/src/plugins/popup/simplePopup/simplePopup.component.d.ts.map +1 -0
- package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts +28 -0
- package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts.map +1 -0
- package/src/plugins/positioner/index.d.ts +1 -3
- package/src/plugins/positioner/index.d.ts.map +1 -1
- package/src/plugins/readonlyState/index.d.ts +0 -1
- package/src/plugins/readonlyState/index.d.ts.map +1 -1
- package/src/plugins/valueHandler/index.d.ts +1 -4
- package/src/plugins/valueHandler/index.d.ts.map +1 -1
- package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts +46 -0
- package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts.map +1 -0
- package/styles/components/_grid.scss +9 -0
- package/styles/core/_functions.scss +10 -0
- package/styles/core/_misc.scss +146 -0
- package/styles/core/_mixins.scss +44 -0
- package/styles/core/_theme.scss +16 -0
- package/styles/index.scss +2 -0
- package/styles/themes/dark.scss +19 -0
- package/styles/themes/light.scss +19 -0
- package/version.bak +1 -1
- package/es2022/material/src/directives/types.js +0 -2
- package/es2022/material/src/directives/types.js.map +0 -1
- package/es2022/material/src/plugins/popup/components.js +0 -3
- package/es2022/material/src/plugins/popup/components.js.map +0 -1
- package/es2022/src/components/option/index.js +0 -3
- package/es2022/src/components/option/index.js.map +0 -1
- package/es2022/src/components/option/optgroup.component.js +0 -54
- package/es2022/src/components/option/optgroup.component.js.map +0 -1
- package/es2022/src/components/option/optgroup.interface.js +0 -2
- package/es2022/src/components/option/optgroup.interface.js.map +0 -1
- package/es2022/src/components/option/option.interface.js +0 -2
- package/es2022/src/components/option/option.interface.js.map +0 -1
- package/es2022/src/components/select/index.js +0 -2
- package/es2022/src/components/select/index.js.map +0 -1
- package/es2022/src/components/select/select.interface.js +0 -2
- package/es2022/src/components/select/select.interface.js.map +0 -1
- package/es2022/src/components/select/types.js +0 -6
- package/es2022/src/components/select/types.js.map +0 -1
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2022/src/index.ssr.js +0 -10
- package/es2022/src/index.ssr.js.map +0 -1
- package/es2022/src/misc/index.js +0 -6
- package/es2022/src/misc/index.js.map +0 -1
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js +0 -162
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2022/src/misc/plugin.interface.js +0 -2
- package/es2022/src/misc/plugin.interface.js.map +0 -1
- package/es2022/src/misc/pluginBus/pluginBus.interface.js +0 -2
- package/es2022/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
- package/es2022/src/misc/pluginBus/pluginBus.js.map +0 -1
- package/es2022/src/misc/templateGatherer.interface.js.map +0 -1
- package/es2022/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2022/src/modules/ngSelectDynamic.module.js.map +0 -1
- package/es2022/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
- package/es2022/src/pipes/ngSelectValue.pipe.js +0 -31
- package/es2022/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -146
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/components.js +0 -3
- package/es2022/src/plugins/keyboardHandler/components.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -197
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/types.js +0 -10
- package/es2022/src/plugins/keyboardHandler/types.js.map +0 -1
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -164
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/components.js +0 -4
- package/es2022/src/plugins/liveSearch/components.js.map +0 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -313
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -65
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/types.js +0 -10
- package/es2022/src/plugins/liveSearch/types.js.map +0 -1
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
- package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/components.js +0 -4
- package/es2022/src/plugins/normalState/components.js.map +0 -1
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js +0 -88
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2022/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
- package/es2022/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/normalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js +0 -89
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2022/src/plugins/normalState/types.js +0 -10
- package/es2022/src/plugins/normalState/types.js.map +0 -1
- package/es2022/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2022/src/plugins/popup/basic/basicPopup.interface.js +0 -2
- package/es2022/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/component.js +0 -4
- package/es2022/src/plugins/popup/component.js.map +0 -1
- package/es2022/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2022/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2022/src/plugins/popup/edit/editPopup.interface.js +0 -2
- package/es2022/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/popup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/popupAbstract.component.js +0 -200
- package/es2022/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2022/src/plugins/popup/types.js +0 -10
- package/es2022/src/plugins/popup/types.js.map +0 -1
- package/es2022/src/plugins/positioner/components.js +0 -3
- package/es2022/src/plugins/positioner/components.js.map +0 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js +0 -160
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
- package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/no/noPositioner.component.js +0 -78
- package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2022/src/plugins/positioner/no/noPositioner.interface.js +0 -2
- package/es2022/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/positioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/types.js +0 -10
- package/es2022/src/plugins/positioner/types.js.map +0 -1
- package/es2022/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
- package/es2022/src/plugins/readonlyState/types.js +0 -10
- package/es2022/src/plugins/readonlyState/types.js.map +0 -1
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -159
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/components.js +0 -3
- package/es2022/src/plugins/valueHandler/components.js.map +0 -1
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -179
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/types.js +0 -10
- package/es2022/src/plugins/valueHandler/types.js.map +0 -1
- package/es2022/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js +0 -145
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- package/material/src/directives/types.d.ts +0 -2
- package/material/src/directives/types.d.ts.map +0 -1
- package/material/src/plugins/popup/components.d.ts +0 -3
- package/material/src/plugins/popup/components.d.ts.map +0 -1
- package/src/components/option/index.d.ts +0 -3
- package/src/components/option/index.d.ts.map +0 -1
- package/src/components/option/optgroup.component.d.ts +0 -37
- package/src/components/option/optgroup.component.d.ts.map +0 -1
- package/src/components/option/optgroup.interface.d.ts +0 -20
- package/src/components/option/optgroup.interface.d.ts.map +0 -1
- package/src/components/option/option.interface.d.ts +0 -31
- package/src/components/option/option.interface.d.ts.map +0 -1
- package/src/components/select/index.d.ts +0 -2
- package/src/components/select/select.interface.d.ts +0 -68
- package/src/components/select/select.interface.d.ts.map +0 -1
- package/src/components/select/types.d.ts +0 -7
- package/src/components/select/types.d.ts.map +0 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +0 -11
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +0 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +0 -11
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +0 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +0 -21
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +0 -1
- package/src/index.ssr.d.ts +0 -1
- package/src/index.ssr.d.ts.map +0 -1
- package/src/misc/index.d.ts +0 -6
- package/src/misc/index.d.ts.map +0 -1
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +0 -63
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +0 -1
- package/src/misc/plugin.interface.d.ts +0 -108
- package/src/misc/plugin.interface.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.d.ts +0 -49
- package/src/misc/pluginBus/pluginBus.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.interface.d.ts +0 -36
- package/src/misc/pluginBus/pluginBus.interface.d.ts.map +0 -1
- package/src/misc/templateGatherer.interface.d.ts +0 -17
- package/src/misc/templateGatherer.interface.d.ts.map +0 -1
- package/src/modules/ngSelectDynamic.module.d.ts +0 -11
- package/src/modules/ngSelectDynamic.module.d.ts.map +0 -1
- package/src/pipes/ngSelectHasValue.pipe.d.ts +0 -16
- package/src/pipes/ngSelectHasValue.pipe.d.ts.map +0 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +0 -19
- package/src/pipes/ngSelectValue.pipe.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +0 -58
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/components.d.ts +0 -3
- package/src/plugins/keyboardHandler/components.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +0 -68
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/types.d.ts +0 -11
- package/src/plugins/keyboardHandler/types.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.css +0 -11
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +0 -98
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.html +0 -5
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +0 -29
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/components.d.ts +0 -4
- package/src/plugins/liveSearch/components.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.css +0 -13
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +0 -141
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.html +0 -13
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +0 -37
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/liveSearch.interface.d.ts +0 -38
- package/src/plugins/liveSearch/liveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +0 -54
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +0 -12
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/types.d.ts +0 -11
- package/src/plugins/liveSearch/types.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.css +0 -38
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts +0 -17
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.html +0 -6
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +0 -29
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/components.d.ts +0 -4
- package/src/plugins/normalState/components.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.css +0 -77
- package/src/plugins/normalState/edit/editNormalState.component.d.ts +0 -26
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.html +0 -19
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts +0 -53
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/normalState.interface.d.ts +0 -49
- package/src/plugins/normalState/normalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +0 -65
- package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +0 -1
- package/src/plugins/normalState/types.d.ts +0 -11
- package/src/plugins/normalState/types.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.css +0 -61
- package/src/plugins/popup/basic/basicPopup.component.d.ts +0 -17
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.html +0 -21
- package/src/plugins/popup/basic/basicPopup.interface.d.ts +0 -33
- package/src/plugins/popup/basic/basicPopup.interface.d.ts.map +0 -1
- package/src/plugins/popup/component.d.ts +0 -4
- package/src/plugins/popup/component.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.css +0 -61
- package/src/plugins/popup/edit/editPopup.component.d.ts +0 -32
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.html +0 -19
- package/src/plugins/popup/edit/editPopup.interface.d.ts +0 -33
- package/src/plugins/popup/edit/editPopup.interface.d.ts.map +0 -1
- package/src/plugins/popup/popup.interface.d.ts +0 -52
- package/src/plugins/popup/popup.interface.d.ts.map +0 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +0 -130
- package/src/plugins/popup/popupAbstract.component.d.ts.map +0 -1
- package/src/plugins/popup/types.d.ts +0 -11
- package/src/plugins/popup/types.d.ts.map +0 -1
- package/src/plugins/positioner/components.d.ts +0 -3
- package/src/plugins/positioner/components.d.ts.map +0 -1
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts +0 -89
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts +0 -12
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.component.d.ts +0 -50
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.interface.d.ts +0 -12
- package/src/plugins/positioner/no/noPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/positioner.interface.d.ts +0 -22
- package/src/plugins/positioner/positioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/types.d.ts +0 -11
- package/src/plugins/positioner/types.d.ts.map +0 -1
- package/src/plugins/readonlyState/readonlyState.interface.d.ts +0 -12
- package/src/plugins/readonlyState/readonlyState.interface.d.ts.map +0 -1
- package/src/plugins/readonlyState/types.d.ts +0 -11
- package/src/plugins/readonlyState/types.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +0 -51
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +0 -12
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/components.d.ts +0 -3
- package/src/plugins/valueHandler/components.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +0 -52
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +0 -21
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/types.d.ts +0 -11
- package/src/plugins/valueHandler/types.d.ts.map +0 -1
- package/src/plugins/valueHandler/valueHandler.interface.d.ts +0 -31
- package/src/plugins/valueHandler/valueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +0 -115
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +0 -1
- /package/es2022/src/{plugins → interfaces/plugins}/keyboardHandler/keyboardHandler.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/liveSearch/liveSearch.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/normalState/normalState.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/popup/popup.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/positioner/positioner.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/readonlyState/readonlyState.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/valueHandler/valueHandler.interface.js +0 -0
- /package/es2022/src/{misc → interfaces/templateGatherer}/templateGatherer.interface.js +0 -0
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Inject, Optional } from '@angular/core';
|
|
2
|
-
import { extend } from '@jscrpt/common/extend';
|
|
3
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
4
|
-
import { POSITIONER_OPTIONS } from '../types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Default options for positioner
|
|
8
|
-
*/
|
|
9
|
-
const defaultOptions = {};
|
|
10
|
-
/**
|
|
11
|
-
* Component used for not positioning popup
|
|
12
|
-
*/
|
|
13
|
-
export class NoPositionerComponent {
|
|
14
|
-
//######################### public properties - implementation of NoPositioner #########################
|
|
15
|
-
/**
|
|
16
|
-
* Options for NgSelect plugin
|
|
17
|
-
*/
|
|
18
|
-
get options() {
|
|
19
|
-
return this.ɵoptions;
|
|
20
|
-
}
|
|
21
|
-
set options(options) {
|
|
22
|
-
this.ɵoptions = extend(true, this.ɵoptions, options);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @inheritdoc
|
|
26
|
-
*/
|
|
27
|
-
get flip() {
|
|
28
|
-
return this.ɵflip;
|
|
29
|
-
}
|
|
30
|
-
//######################### constructor #########################
|
|
31
|
-
constructor(ngSelectPlugins, pluginElement, options) {
|
|
32
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
33
|
-
this.pluginElement = pluginElement;
|
|
34
|
-
/**
|
|
35
|
-
* Occurs when flip occured during positining of popup
|
|
36
|
-
*/
|
|
37
|
-
this.ɵflip = new EventEmitter();
|
|
38
|
-
this.ɵoptions = extend(true, {}, defaultOptions, options);
|
|
39
|
-
}
|
|
40
|
-
//######################### public methods - implementation of NoPositioner #########################
|
|
41
|
-
/**
|
|
42
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
43
|
-
*/
|
|
44
|
-
initialize() {
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
48
|
-
*/
|
|
49
|
-
initOptions() {
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Explicitly runs invalidation of content (change detection)
|
|
53
|
-
*/
|
|
54
|
-
invalidateVisuals() {
|
|
55
|
-
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: POSITIONER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: NoPositionerComponent, isStandalone: false, selector: "ng-no-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoPositionerComponent, decorators: [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: 'ng-no-positioner',
|
|
63
|
-
template: '',
|
|
64
|
-
standalone: false,
|
|
65
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
66
|
-
}]
|
|
67
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
68
|
-
type: Inject,
|
|
69
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
70
|
-
}, {
|
|
71
|
-
type: Optional
|
|
72
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
73
|
-
type: Inject,
|
|
74
|
-
args: [POSITIONER_OPTIONS]
|
|
75
|
-
}, {
|
|
76
|
-
type: Optional
|
|
77
|
-
}] }] });
|
|
78
|
-
//# sourceMappingURL=noPositioner.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAK7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;;AAG5C;;GAEG;AACH,MAAM,cAAc,GACpB,EACC,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAc9B,wGAAwG;IAExG;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAW,OAAO,CAAC,OAA4B;QAE3C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QAEX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAQD,iEAAiE;IACjE,YAAmE,eAAwC,EACxF,aAAyB,EACQ,OAA6B;QAFd,oBAAe,GAAf,eAAe,CAAyB;QACxF,kBAAa,GAAb,aAAa,CAAY;QAnC5C;;WAEG;QACO,UAAK,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAmC3D,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,qGAAqG;IAErG;;OAEG;IACI,UAAU;IAEjB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;8GAvEQ,qBAAqB,kBA2CV,0BAA0B,uDAE1B,kBAAkB;kGA7C7B,qBAAqB,6EAJpB,EAAE;;2FAIH,qBAAqB;kBAPjC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BA4CgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAE5C,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ","sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Inject, Optional} from '@angular/core';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {NoPositioner, NoPositionerOptions} from './noPositioner.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n */\nconst defaultOptions: NoPositionerOptions =\n{\n};\n\n/**\n * Component used for not positioning popup\n */\n@Component(\n{\n selector: 'ng-no-positioner',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoPositionerComponent implements NoPositioner, NgSelectPlugin<NoPositionerOptions>\n{\n //######################### protected properties #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected ɵoptions: NoPositionerOptions;\n\n /**\n * Occurs when flip occured during positining of popup\n */\n protected ɵflip: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - implementation of NoPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): NoPositionerOptions\n {\n return this.ɵoptions;\n }\n public set options(options: NoPositionerOptions)\n {\n this.ɵoptions = extend(true, this.ɵoptions, options);\n }\n\n /**\n * @inheritdoc\n */\n public get flip(): EventEmitter<void>\n {\n return this.ɵflip;\n }\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: NoPositionerOptions)\n {\n this.ɵoptions = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of NoPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\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 }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Public API for 'NoPositionerComponent'\n */\nexport interface NoPositioner extends Positioner\n{}\n\n/**\n * No positioner options\n */\nexport interface NoPositionerOptions extends PositionerOptions\n{}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.interface.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/positioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {PositionOptions} from '@anglr/common';\n\nimport {PluginOptions, NgSelectPlugin} from '../../misc';\n\n/**\n * Options for positioner plugin\n */\nexport interface PositionerOptions extends PluginOptions\n{\n /**\n * Options used for positioning\n */\n positionOptions?: Partial<Omit<PositionOptions, 'mouseEvent'|'autoUpdate'|'flip'>>;\n}\n\n/**\n * Positioner plugin interface\n */\nexport interface Positioner extends NgSelectPlugin\n{\n /**\n * Occurs when flip occured during positining of popup\n */\n readonly flip: EventEmitter<void>;\n}"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Constant used for accessing positioner plugin in NgSelect
|
|
4
|
-
*/
|
|
5
|
-
export const POSITIONER = 'POSITIONER';
|
|
6
|
-
/**
|
|
7
|
-
* Token for injecting options for positioner plugin
|
|
8
|
-
*/
|
|
9
|
-
export const POSITIONER_OPTIONS = new InjectionToken('POSITIONER_OPTIONS');
|
|
10
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsC,IAAI,cAAc,CAAoB,oBAAoB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {PositionerOptions} from './positioner.interface';\n\n/**\n * Constant used for accessing positioner plugin in NgSelect\n */\nexport const POSITIONER = 'POSITIONER';\n\n/**\n * Token for injecting options for positioner plugin\n */\nexport const POSITIONER_OPTIONS: InjectionToken<PositionerOptions> = new InjectionToken<PositionerOptions>('POSITIONER_OPTIONS');"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readonlyState.interface.js","sourceRoot":"","sources":["../../../../src/plugins/readonlyState/readonlyState.interface.ts"],"names":[],"mappings":"","sourcesContent":["\nimport {NormalStateOptions, NormalState} from '../normalState';\n\n/**\n * Options for readonly state plugin\n */\nexport interface ReadonlyStateOptions<TCssClasses = any> extends NormalStateOptions<TCssClasses>\n{\n}\n\n/**\n * Readonly state plugin interface\n */\nexport interface ReadonlyState extends NormalState\n{\n}"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Constant used for accessing readonly state plugin in NgSelect
|
|
4
|
-
*/
|
|
5
|
-
export const READONLY_STATE = 'READONLY_STATE';
|
|
6
|
-
/**
|
|
7
|
-
* Token for injecting options for readonly state plugin
|
|
8
|
-
*/
|
|
9
|
-
export const READONLY_STATE_OPTIONS = new InjectionToken('READONLY_STATE_OPTIONS');
|
|
10
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/readonlyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAyC,IAAI,cAAc,CAAuB,wBAAwB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {ReadonlyStateOptions} from './readonlyState.interface';\n\n/**\n * Constant used for accessing readonly state plugin in NgSelect\n */\nexport const READONLY_STATE = 'READONLY_STATE';\n\n/**\n * Token for injecting options for readonly state plugin\n */\nexport const READONLY_STATE_OPTIONS: InjectionToken<ReadonlyStateOptions> = new InjectionToken<ReadonlyStateOptions>('READONLY_STATE_OPTIONS');"]}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
|
|
2
|
-
import { isBlank } from '@jscrpt/common';
|
|
3
|
-
import { extend } from '@jscrpt/common/extend';
|
|
4
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
5
|
-
import { VALUE_HANDLER_OPTIONS } from '../types';
|
|
6
|
-
import { ValueHandlerBase } from '../valueHandlerBase';
|
|
7
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
10
|
-
//TODO - select _setValue, reject non existing
|
|
11
|
-
/**
|
|
12
|
-
* Default options for value handler
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
const defaultOptions = {};
|
|
16
|
-
/**
|
|
17
|
-
* Component used for handling current value of NgSelect
|
|
18
|
-
*/
|
|
19
|
-
export class BasicValueHandlerComponent extends ValueHandlerBase {
|
|
20
|
-
//######################### public properties - implementation of BasicValueHandler #########################
|
|
21
|
-
/**
|
|
22
|
-
* Options for NgSelect plugin
|
|
23
|
-
*/
|
|
24
|
-
get options() {
|
|
25
|
-
return this._options;
|
|
26
|
-
}
|
|
27
|
-
set options(options) {
|
|
28
|
-
this._options = extend(true, this._options, options);
|
|
29
|
-
}
|
|
30
|
-
//######################### constructor #########################
|
|
31
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
|
|
32
|
-
super(ngSelectPlugins, pluginElement, pluginBus);
|
|
33
|
-
//######################### protected methods #########################
|
|
34
|
-
/**
|
|
35
|
-
* Sets value
|
|
36
|
-
*/
|
|
37
|
-
this._setValue = (option) => {
|
|
38
|
-
//multiple values are allowed
|
|
39
|
-
if (this.pluginBus.selectOptions.multiple) {
|
|
40
|
-
if (!Array.isArray(this.selectedOptions)) {
|
|
41
|
-
this.selectedOptions = [];
|
|
42
|
-
}
|
|
43
|
-
if (Array.isArray(this.selectedOptions)) {
|
|
44
|
-
let index;
|
|
45
|
-
//value exists, removing from list
|
|
46
|
-
if ((index = this.selectedOptions.indexOf(option)) >= 0) {
|
|
47
|
-
this.selectedOptions.splice(index, 1);
|
|
48
|
-
}
|
|
49
|
-
//adding value
|
|
50
|
-
else {
|
|
51
|
-
this.selectedOptions.push(option);
|
|
52
|
-
}
|
|
53
|
-
this.selectedOptions = [...this.selectedOptions];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
else
|
|
57
|
-
//only signle value allowed
|
|
58
|
-
{
|
|
59
|
-
this.selectedOptions = option;
|
|
60
|
-
}
|
|
61
|
-
this._clearSelected();
|
|
62
|
-
this._markValueAsSelected();
|
|
63
|
-
this._normalState.invalidateVisuals();
|
|
64
|
-
this.valueChange.emit();
|
|
65
|
-
};
|
|
66
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
67
|
-
}
|
|
68
|
-
//######################### public methods - implementation of BasicValueHandler #########################
|
|
69
|
-
/**
|
|
70
|
-
* Sets value for NgSelect
|
|
71
|
-
* @param value - Value to be set
|
|
72
|
-
*/
|
|
73
|
-
setValue(value) {
|
|
74
|
-
this._useOptionsAsValue(value);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
78
|
-
*/
|
|
79
|
-
initOptions() {
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Explicitly runs invalidation of content (change detection)
|
|
83
|
-
*/
|
|
84
|
-
invalidateVisuals() {
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Loads options
|
|
88
|
-
*/
|
|
89
|
-
_loadOptions() {
|
|
90
|
-
this._useOptionsAsValue(isBlank(this._unmappedValue) ? this.value : this._unmappedValue);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Converts value to options
|
|
94
|
-
* @param value - Value to be changed to options
|
|
95
|
-
*/
|
|
96
|
-
_useOptionsAsValue(value) {
|
|
97
|
-
//set empty value
|
|
98
|
-
if (isBlank(value) || (Array.isArray(value) && !value.length)) {
|
|
99
|
-
this.selectedOptions = value;
|
|
100
|
-
this._clearSelected();
|
|
101
|
-
this._unmappedValue = null;
|
|
102
|
-
this._normalState.invalidateVisuals();
|
|
103
|
-
this.valueChange.emit();
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
//no options available yet
|
|
107
|
-
if (!this._optionsGatherer.options || !this._optionsGatherer.options.length) {
|
|
108
|
-
this._unmappedValue = value;
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (this.pluginBus.selectOptions.multiple) {
|
|
112
|
-
if (Array.isArray(value)) {
|
|
113
|
-
const items = value;
|
|
114
|
-
this.selectedOptions = this._optionsGatherer.options.filter(itm => !!items.find(it => this.valueComparer(it, itm.value)));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
throw new Error('Don`t you have redundant "multiple"?');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
if (Array.isArray(value)) {
|
|
122
|
-
throw new Error('Are you missing attribute "multiple"?');
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
const item = value;
|
|
126
|
-
this.selectedOptions = this._optionsGatherer.options.find(itm => this.valueComparer(itm.value, item));
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
this._clearSelected();
|
|
130
|
-
this._markValueAsSelected();
|
|
131
|
-
this._unmappedValue = null;
|
|
132
|
-
this._normalState.invalidateVisuals();
|
|
133
|
-
this.valueChange.emit();
|
|
134
|
-
}
|
|
135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicValueHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: VALUE_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
136
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: BasicValueHandlerComponent, isStandalone: false, selector: "ng-basic-value-handler", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
137
|
-
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicValueHandlerComponent, decorators: [{
|
|
139
|
-
type: Component,
|
|
140
|
-
args: [{
|
|
141
|
-
selector: 'ng-basic-value-handler',
|
|
142
|
-
template: '',
|
|
143
|
-
standalone: false,
|
|
144
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
145
|
-
}]
|
|
146
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
147
|
-
type: Inject,
|
|
148
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
149
|
-
}, {
|
|
150
|
-
type: Optional
|
|
151
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
152
|
-
type: Optional
|
|
153
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
154
|
-
type: Inject,
|
|
155
|
-
args: [VALUE_HANDLER_OPTIONS]
|
|
156
|
-
}, {
|
|
157
|
-
type: Optional
|
|
158
|
-
}] }] });
|
|
159
|
-
//# sourceMappingURL=basicValueHandler.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"basicValueHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/valueHandler/basic/basicValueHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,C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B,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;YAC1G,CAAC;QACL,CAAC;QAED,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;8GA5KQ,0BAA0B,kBAwBf,0BAA0B,gGAG1B,qBAAqB;kGA3BhC,0BAA0B,0GAJzB,EAAE;;2FAIH,0BAA0B;kBAPtC,SAAS;mBACV;oBACI,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyBgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,qBAAqB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {BasicValueHandlerOptions, BasicValueHandler} from './basicValueHandler.interface';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {VALUE_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption, } from '../../../components/option';\nimport {ValueHandlerBase} from '../valueHandlerBase';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n//TODO - select _setValue, reject non existing\n\n/**\n * Default options for value handler\n * @internal\n */\nconst defaultOptions: BasicValueHandlerOptions =\n{\n};\n\n/**\n * Component used for handling current value of NgSelect\n */\n@Component(\n{\n selector: 'ng-basic-value-handler',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicValueHandlerComponent<TValue = any> extends ValueHandlerBase<TValue, BasicValueHandlerOptions> implements BasicValueHandler<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Backed up unmapped value that was set before options were obtained\n */\n protected _unmappedValue: TValue|TValue[];\n\n //######################### public properties - implementation of BasicValueHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicValueHandlerOptions\n {\n return this._options;\n }\n public set options(options: BasicValueHandlerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() ngSelectPlugins: NgSelectPluginInstances,\n @Optional() pluginBus: PluginBus<TValue>,\n pluginElement: ElementRef,\n @Inject(VALUE_HANDLER_OPTIONS) @Optional() options?: BasicValueHandlerOptions)\n {\n super(ngSelectPlugins, pluginElement, pluginBus);\n\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of BasicValueHandler #########################\n\n /**\n * Sets value for NgSelect\n * @param value - Value to be set\n */\n public setValue(value: TValue|TValue[]): void\n {\n this._useOptionsAsValue(value);\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public override initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public override invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets value\n */\n protected _setValue = (option: ɵNgSelectOption<TValue>) =>\n {\n //multiple values are allowed\n if(this.pluginBus.selectOptions.multiple)\n {\n if(!Array.isArray(this.selectedOptions))\n {\n this.selectedOptions = [];\n }\n\n if(Array.isArray(this.selectedOptions))\n {\n let index: number;\n\n //value exists, removing from list\n if((index = this.selectedOptions.indexOf(option)) >= 0)\n {\n this.selectedOptions.splice(index, 1);\n }\n //adding value\n else\n {\n this.selectedOptions.push(option);\n }\n\n this.selectedOptions = [...this.selectedOptions];\n }\n }\n else\n //only signle value allowed\n {\n this.selectedOptions = option;\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n };\n\n /**\n * Loads options\n */\n protected _loadOptions()\n {\n this._useOptionsAsValue(isBlank(this._unmappedValue) ? this.value : this._unmappedValue);\n }\n\n /**\n * Converts value to options\n * @param value - Value to be changed to options\n */\n protected _useOptionsAsValue(value: TValue|TValue[])\n {\n //set empty value\n if(isBlank(value) || (Array.isArray(value) && !value.length))\n {\n this.selectedOptions = value;\n\n this._clearSelected();\n this._unmappedValue = null;\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n\n return;\n }\n\n //no options available yet\n if(!this._optionsGatherer.options || !this._optionsGatherer.options.length)\n {\n this._unmappedValue = value;\n\n return;\n }\n\n if(this.pluginBus.selectOptions.multiple)\n {\n if(Array.isArray(value))\n {\n const items = value;\n\n this.selectedOptions = this._optionsGatherer.options.filter(itm => !!items.find(it => this.valueComparer(it, itm.value)));\n }\n else\n {\n throw new Error('Don`t you have redundant \"multiple\"?');\n }\n }\n else\n {\n if(Array.isArray(value))\n {\n throw new Error('Are you missing attribute \"multiple\"?');\n }\n else\n {\n const item = value;\n\n this.selectedOptions = this._optionsGatherer.options.find(itm => this.valueComparer(itm.value, item));\n }\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n this._unmappedValue = null;\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"basicValueHandler.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/valueHandler/basic/basicValueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {ValueHandler, ValueHandlerOptions} from '../valueHandler.interface';\n\n/**\n * Basic value handler options\n */\nexport interface BasicValueHandlerOptions extends ValueHandlerOptions\n{\n}\n\n/**\n * Public API for 'BasicValueHandlerComponent'\n */\nexport interface BasicValueHandler<TValue = any> extends ValueHandler<TValue>\n{\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/valueHandler/components.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC","sourcesContent":["export * from './basic/basicValueHandler.component';\nexport * from './dynamic/dynamicValueHandler.component';"]}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
|
|
2
|
-
import { isBlank } from '@jscrpt/common';
|
|
3
|
-
import { extend } from '@jscrpt/common/extend';
|
|
4
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
5
|
-
import { VALUE_HANDLER_OPTIONS } from '../types';
|
|
6
|
-
import { ValueHandlerBase } from '../valueHandlerBase';
|
|
7
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
10
|
-
/**
|
|
11
|
-
* Default options for value handler
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
const defaultOptions = {
|
|
15
|
-
textExtractor: value => value
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Component used for handling current value of NgSelect, allows values which are not present in options
|
|
19
|
-
*/
|
|
20
|
-
export class DynamicValueHandlerComponent extends ValueHandlerBase {
|
|
21
|
-
//######################### public properties - implementation of DynamicValueHandler #########################
|
|
22
|
-
/**
|
|
23
|
-
* Options for NgSelect plugin
|
|
24
|
-
*/
|
|
25
|
-
get options() {
|
|
26
|
-
return this._options;
|
|
27
|
-
}
|
|
28
|
-
set options(options) {
|
|
29
|
-
this._options = extend(true, this._options, options);
|
|
30
|
-
}
|
|
31
|
-
//######################### constructor #########################
|
|
32
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
|
|
33
|
-
super(ngSelectPlugins, pluginElement, pluginBus);
|
|
34
|
-
//######################### protected methods #########################
|
|
35
|
-
/**
|
|
36
|
-
* Sets value
|
|
37
|
-
*/
|
|
38
|
-
this._setValue = (option) => {
|
|
39
|
-
//multiple values are allowed
|
|
40
|
-
if (this.pluginBus.selectOptions.multiple) {
|
|
41
|
-
if (!Array.isArray(this.selectedOptions)) {
|
|
42
|
-
this.selectedOptions = [];
|
|
43
|
-
}
|
|
44
|
-
if (Array.isArray(this.selectedOptions)) {
|
|
45
|
-
//value exists, removing from list
|
|
46
|
-
if (this.selectedOptions.find(selOpt => this.valueComparer(selOpt.value, option.value))) {
|
|
47
|
-
const index = this.selectedOptions.indexOf(option);
|
|
48
|
-
this.selectedOptions.splice(index, 1);
|
|
49
|
-
}
|
|
50
|
-
//adding value
|
|
51
|
-
else {
|
|
52
|
-
this.selectedOptions.push(option);
|
|
53
|
-
}
|
|
54
|
-
this.selectedOptions = [...this.selectedOptions];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else
|
|
58
|
-
//only signle value allowed
|
|
59
|
-
{
|
|
60
|
-
this.selectedOptions = option;
|
|
61
|
-
}
|
|
62
|
-
this._clearSelected();
|
|
63
|
-
this._markValueAsSelected();
|
|
64
|
-
this._normalState.invalidateVisuals();
|
|
65
|
-
this.valueChange.emit();
|
|
66
|
-
};
|
|
67
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
68
|
-
}
|
|
69
|
-
//######################### public methods - implementation of DynamicValueHandler #########################
|
|
70
|
-
/**
|
|
71
|
-
* Sets value for NgSelect
|
|
72
|
-
* @param value - Value to be set
|
|
73
|
-
*/
|
|
74
|
-
setValue(value) {
|
|
75
|
-
this._useOptionsAsValue(value);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
79
|
-
*/
|
|
80
|
-
initOptions() {
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Explicitly runs invalidation of content (change detection)
|
|
84
|
-
*/
|
|
85
|
-
invalidateVisuals() {
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Loads options
|
|
89
|
-
*/
|
|
90
|
-
_loadOptions() {
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Converts value to options
|
|
94
|
-
* @param value - Value to be changed to options
|
|
95
|
-
*/
|
|
96
|
-
async _useOptionsAsValue(value) {
|
|
97
|
-
//set empty value
|
|
98
|
-
if (isBlank(value) || (Array.isArray(value) && !value.length)) {
|
|
99
|
-
this.selectedOptions = value;
|
|
100
|
-
this._clearSelected();
|
|
101
|
-
this._normalState.invalidateVisuals();
|
|
102
|
-
this.valueChange.emit();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (this.pluginBus.selectOptions.multiple) {
|
|
106
|
-
if (Array.isArray(value)) {
|
|
107
|
-
const items = value;
|
|
108
|
-
const options = [];
|
|
109
|
-
for (const itm of items) {
|
|
110
|
-
options.push(await this._loadText(itm));
|
|
111
|
-
}
|
|
112
|
-
this.selectedOptions = options;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
throw new Error('Don`t you have redundant "multiple"?');
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
if (Array.isArray(value)) {
|
|
120
|
-
throw new Error('Are you missing attribute "multiple"?');
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
const item = value;
|
|
124
|
-
this.selectedOptions = await this._loadText(item);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
this._clearSelected();
|
|
128
|
-
this._markValueAsSelected();
|
|
129
|
-
this._normalState.invalidateVisuals();
|
|
130
|
-
this.valueChange.emit();
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Loads text for specified value
|
|
134
|
-
* @param value - Value that is going to be used for obtaining option
|
|
135
|
-
*/
|
|
136
|
-
async _loadText(value) {
|
|
137
|
-
//load option dynamically
|
|
138
|
-
if (this.options.dynamicOptionsCallback) {
|
|
139
|
-
const opts = await this.options.dynamicOptionsCallback(value);
|
|
140
|
-
if (opts && opts.length) {
|
|
141
|
-
const opt = opts[0];
|
|
142
|
-
opt.value = value;
|
|
143
|
-
opt.selected = true;
|
|
144
|
-
return opt;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
//load option from value
|
|
148
|
-
return {
|
|
149
|
-
selected: true,
|
|
150
|
-
active: false,
|
|
151
|
-
value: value,
|
|
152
|
-
text: this.options.textExtractor(value)
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DynamicValueHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: VALUE_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
156
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: DynamicValueHandlerComponent, isStandalone: false, selector: "ng-dynamic-value-handler", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
157
|
-
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DynamicValueHandlerComponent, decorators: [{
|
|
159
|
-
type: Component,
|
|
160
|
-
args: [{
|
|
161
|
-
selector: 'ng-dynamic-value-handler',
|
|
162
|
-
template: '',
|
|
163
|
-
standalone: false,
|
|
164
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
165
|
-
}]
|
|
166
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
167
|
-
type: Inject,
|
|
168
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
169
|
-
}, {
|
|
170
|
-
type: Optional
|
|
171
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
172
|
-
type: Optional
|
|
173
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
174
|
-
type: Inject,
|
|
175
|
-
args: [VALUE_HANDLER_OPTIONS]
|
|
176
|
-
}, {
|
|
177
|
-
type: Optional
|
|
178
|
-
}] }] });
|
|
179
|
-
//# sourceMappingURL=dynamicValueHandler.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicValueHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/valueHandler/dynamic/dynamicValueHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAI7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAE/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;;AAE5D;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK;CAChC,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,4BAA2C,SAAQ,gBAA4D;IAExH,+GAA+G;IAE/G;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAW,OAAO,CAAC,OAA2C;QAE1D,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,iEAAiE;IACjE,Y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BAA4B,4GAJ3B,EAAE;;2FAIH,4BAA4B;kBAPxC,SAAS;mBACV;oBACI,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAkBgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,qBAAqB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {DynamicValueHandlerOptions, DynamicValueHandler} from './dynamicValueHandler.interface';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {VALUE_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {ValueHandlerBase} from '../valueHandlerBase';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for value handler\n * @internal\n */\nconst defaultOptions: DynamicValueHandlerOptions =\n{\n textExtractor: value => value\n};\n\n/**\n * Component used for handling current value of NgSelect, allows values which are not present in options\n */\n@Component(\n{\n selector: 'ng-dynamic-value-handler',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DynamicValueHandlerComponent<TValue = any> extends ValueHandlerBase<TValue, DynamicValueHandlerOptions<TValue>> implements DynamicValueHandler<TValue>\n{\n //######################### public properties - implementation of DynamicValueHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): DynamicValueHandlerOptions<TValue>\n {\n return this._options;\n }\n public set options(options: DynamicValueHandlerOptions<TValue>)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() ngSelectPlugins: NgSelectPluginInstances,\n @Optional() pluginBus: PluginBus<TValue>,\n pluginElement: ElementRef,\n @Inject(VALUE_HANDLER_OPTIONS) @Optional() options?: DynamicValueHandlerOptions<TValue>)\n {\n super(ngSelectPlugins, pluginElement, pluginBus);\n\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of DynamicValueHandler #########################\n\n /**\n * Sets value for NgSelect\n * @param value - Value to be set\n */\n public setValue(value: TValue|TValue[]): void\n {\n this._useOptionsAsValue(value);\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public override initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public override invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets value\n */\n protected _setValue = (option: ɵNgSelectOption<TValue>) =>\n {\n //multiple values are allowed\n if(this.pluginBus.selectOptions.multiple)\n {\n if(!Array.isArray(this.selectedOptions))\n {\n this.selectedOptions = [];\n }\n\n if(Array.isArray(this.selectedOptions))\n {\n //value exists, removing from list\n if(this.selectedOptions.find(selOpt => this.valueComparer(selOpt.value, option.value)))\n {\n const index = this.selectedOptions.indexOf(option);\n this.selectedOptions.splice(index, 1);\n }\n //adding value\n else\n {\n this.selectedOptions.push(option);\n }\n\n this.selectedOptions = [...this.selectedOptions];\n }\n }\n else\n //only signle value allowed\n {\n this.selectedOptions = option;\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n };\n\n /**\n * Loads options\n */\n protected _loadOptions()\n {\n }\n\n /**\n * Converts value to options\n * @param value - Value to be changed to options\n */\n protected async _useOptionsAsValue(value: TValue|TValue[])\n {\n //set empty value\n if(isBlank(value) || (Array.isArray(value) && !value.length))\n {\n this.selectedOptions = value;\n\n this._clearSelected();\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n\n return;\n }\n\n if(this.pluginBus.selectOptions.multiple)\n {\n if(Array.isArray(value))\n {\n const items = value;\n const options: ɵNgSelectOption<TValue>[] = [];\n\n for(const itm of items)\n {\n options.push(await this._loadText(itm));\n }\n\n this.selectedOptions = options;\n }\n else\n {\n throw new Error('Don`t you have redundant \"multiple\"?');\n }\n }\n else\n {\n if(Array.isArray(value))\n {\n throw new Error('Are you missing attribute \"multiple\"?');\n }\n else\n {\n const item = value;\n\n this.selectedOptions = await this._loadText(item);\n }\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n }\n\n /**\n * Loads text for specified value\n * @param value - Value that is going to be used for obtaining option\n */\n protected async _loadText(value: TValue): Promise<ɵNgSelectOption<TValue>>\n {\n //load option dynamically\n if(this.options.dynamicOptionsCallback)\n {\n const opts = await this.options.dynamicOptionsCallback(value);\n\n if(opts && opts.length)\n {\n const opt: ɵNgSelectOption<TValue> = opts[0];\n\n opt.value = value;\n opt.selected = true;\n\n return opt;\n }\n }\n\n //load option from value\n return <ɵNgSelectOption<TValue>>\n {\n selected: true,\n active: false,\n value: value,\n text: this.options.textExtractor(value)\n };\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicValueHandler.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {ValueHandler, ValueHandlerOptions} from '../valueHandler.interface';\nimport {GetOptionsCallback} from '../../../misc';\n\n/**\n * Dynamic value handler options\n */\nexport interface DynamicValueHandlerOptions<TValue = any> extends ValueHandlerOptions\n{\n /**\n * Callback used for obtaining dynamic options during initialization, if not specified value will be used as text\n */\n dynamicOptionsCallback?: GetOptionsCallback<TValue>;\n\n /**\n * Used for obtaining displayed text from value, defaults to value itself, if dynamicOptionsCallback is specified this is not called\n */\n textExtractor?: (value: TValue) => string;\n}\n\n/**\n * Public API for 'DynamicValueHandlerComponent'\n */\nexport interface DynamicValueHandler<TValue = any> extends ValueHandler<TValue>\n{\n}"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Constant used for accessing value handler plugin in NgSelect
|
|
4
|
-
*/
|
|
5
|
-
export const VALUE_HANDLER = 'VALUE_HANDLER';
|
|
6
|
-
/**
|
|
7
|
-
* Token for injecting options for value handler plugin
|
|
8
|
-
*/
|
|
9
|
-
export const VALUE_HANDLER_OPTIONS = new InjectionToken('VALUE_HANDLER_OPTIONS');
|
|
10
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/valueHandler/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAwC,IAAI,cAAc,CAAsB,uBAAuB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {ValueHandlerOptions} from './valueHandler.interface';\n\n/**\n * Constant used for accessing value handler plugin in NgSelect\n */\nexport const VALUE_HANDLER = 'VALUE_HANDLER';\n\n/**\n * Token for injecting options for value handler plugin\n */\nexport const VALUE_HANDLER_OPTIONS: InjectionToken<ValueHandlerOptions> = new InjectionToken<ValueHandlerOptions>('VALUE_HANDLER_OPTIONS');"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valueHandler.interface.js","sourceRoot":"","sources":["../../../../src/plugins/valueHandler/valueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {PluginOptions, NgSelectPlugin} from '../../misc';\nimport {NgSelectOption} from '../../components/option';\n\n/**\n * Options for value handler plugin\n */\nexport interface ValueHandlerOptions extends PluginOptions\n{\n}\n\n/**\n * Value handler plugin interface\n */\nexport interface ValueHandler<TValue = any> extends NgSelectPlugin\n{\n /**\n * Current selected options of NgSelect\n */\n readonly selectedOptions: NgSelectOption<TValue>|NgSelectOption<TValue>[];\n\n /**\n * Current selected value of NgSelect\n */\n readonly value: TValue|TValue[];\n\n /**\n * Occurs when value of NgSelect changes\n */\n readonly valueChange: EventEmitter<void>;\n\n /**\n * Sets value for NgSelect\n * @param value - Value to be set\n */\n setValue(value:TValue|TValue[]): void;\n}"]}
|