@anglr/select 10.0.0 → 11.0.1-beta.20220222062944
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 +18 -0
- package/elements/package.json +7 -6
- package/elements/src/components/ngSelectElements.component.d.ts +66 -63
- package/elements/src/components/ngSelectElements.component.d.ts.map +1 -1
- package/elements/src/components/ngSelectElements.interface.d.ts +46 -46
- package/elements/src/components/ngSelectElements.interface.d.ts.map +1 -1
- package/elements/src/index.d.ts +3 -3
- package/elements/src/modules/ngSelectElements.module.d.ts +20 -11
- package/elements/src/modules/ngSelectElements.module.d.ts.map +1 -1
- package/es2015/elements/src/components/ngSelectElements.component.js +187 -0
- package/es2015/elements/src/components/ngSelectElements.component.js.map +1 -0
- package/es2015/elements/src/components/ngSelectElements.interface.js +2 -0
- package/es2015/elements/src/components/ngSelectElements.interface.js.map +1 -0
- package/es2015/elements/src/index.js +4 -0
- package/es2015/elements/src/index.js.map +1 -0
- package/es2015/elements/src/modules/ngSelectElements.module.js +52 -0
- package/es2015/elements/src/modules/ngSelectElements.module.js.map +1 -0
- package/es2015/extensions/src/extensions/getValue.js +2 -0
- package/es2015/extensions/src/extensions/getValue.js.map +1 -0
- package/es2015/extensions/src/extensions/onFocus.js +2 -0
- package/es2015/extensions/src/extensions/onFocus.js.map +1 -0
- package/es2015/extensions/src/extensions/patchOptions.js +12 -0
- package/es2015/extensions/src/extensions/patchOptions.js.map +1 -0
- package/es2015/extensions/src/extensions/reinitializeOptions.js +15 -0
- package/es2015/extensions/src/extensions/reinitializeOptions.js.map +1 -0
- package/es2015/extensions/src/extensions/setReadonly.js +2 -0
- package/es2015/extensions/src/extensions/setReadonly.js.map +1 -0
- package/es2015/extensions/src/extensions/setValue.js +2 -0
- package/es2015/extensions/src/extensions/setValue.js.map +1 -0
- package/es2015/extensions/src/extensions/valueChange.js +2 -0
- package/es2015/extensions/src/extensions/valueChange.js.map +1 -0
- package/es2015/extensions/src/index.js +8 -0
- package/es2015/extensions/src/index.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +74 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +2 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/index.js +2 -0
- package/es2015/material/src/components/basicDialogPopup/index.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/types.js +2 -0
- package/es2015/material/src/components/basicDialogPopup/types.js.map +1 -0
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +75 -0
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
- package/es2015/material/src/directives/types.js +2 -0
- package/es2015/material/src/directives/types.js.map +1 -0
- package/es2015/material/src/index.js +8 -0
- package/es2015/material/src/index.js.map +1 -0
- package/es2015/material/src/modules/dialogPopup.module.js +43 -0
- package/es2015/material/src/modules/dialogPopup.module.js.map +1 -0
- package/es2015/material/src/modules/virtualEditPopup.module.js +33 -0
- package/es2015/material/src/modules/virtualEditPopup.module.js.map +1 -0
- package/es2015/material/src/plugins/popup/components.js +3 -0
- package/es2015/material/src/plugins/popup/components.js.map +1 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +143 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js +2 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -0
- package/es2015/material/src/plugins/popup/index.js +3 -0
- package/es2015/material/src/plugins/popup/index.js.map +1 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +92 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +2 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -0
- package/es2015/popperJs/src/index.js +4 -0
- package/es2015/popperJs/src/index.js.map +1 -0
- package/es2015/popperJs/src/modules/popperjsPositioner.module.js +23 -0
- package/es2015/popperJs/src/modules/popperjsPositioner.module.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/components.js +2 -0
- package/es2015/popperJs/src/plugins/positioner/components.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/index.js +2 -0
- package/es2015/popperJs/src/plugins/positioner/index.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +151 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +2 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +1 -0
- package/es2015/src/components/option/index.js +3 -0
- package/es2015/src/components/option/index.js.map +1 -0
- package/es2015/src/components/option/optgroup.component.js +53 -0
- package/es2015/src/components/option/optgroup.component.js.map +1 -0
- package/es2015/src/components/option/optgroup.interface.js +2 -0
- package/es2015/src/components/option/optgroup.interface.js.map +1 -0
- package/es2015/src/components/option/option.component.js +38 -0
- package/es2015/src/components/option/option.component.js.map +1 -0
- package/es2015/src/components/option/option.interface.js +2 -0
- package/es2015/src/components/option/option.interface.js.map +1 -0
- package/es2015/src/components/select/index.js +2 -0
- package/es2015/src/components/select/index.js.map +1 -0
- package/es2015/src/components/select/select.component.js +605 -0
- package/es2015/src/components/select/select.component.js.map +1 -0
- package/es2015/src/components/select/select.interface.js +2 -0
- package/es2015/src/components/select/select.interface.js.map +1 -0
- package/es2015/src/components/select/types.js +6 -0
- package/es2015/src/components/select/types.js.map +1 -0
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -0
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +66 -0
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +42 -0
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
- package/es2015/src/index.js +40 -0
- package/es2015/src/index.js.map +1 -0
- package/es2015/src/index.ssr.js +10 -0
- package/es2015/src/index.ssr.js.map +1 -0
- package/es2015/src/misc/extensions/getValue.js +12 -0
- package/es2015/src/misc/extensions/getValue.js.map +1 -0
- package/es2015/src/misc/extensions/index.js +6 -0
- package/es2015/src/misc/extensions/index.js.map +1 -0
- package/es2015/src/misc/extensions/onFocus.js +10 -0
- package/es2015/src/misc/extensions/onFocus.js.map +1 -0
- package/es2015/src/misc/extensions/setReadonly.js +18 -0
- package/es2015/src/misc/extensions/setReadonly.js.map +1 -0
- package/es2015/src/misc/extensions/setValue.js +13 -0
- package/es2015/src/misc/extensions/setValue.js.map +1 -0
- package/es2015/src/misc/extensions/valueChange.js +12 -0
- package/es2015/src/misc/extensions/valueChange.js.map +1 -0
- package/es2015/src/misc/index.js +6 -0
- package/es2015/src/misc/index.js.map +1 -0
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +163 -0
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
- package/es2015/src/misc/ngSelectOptions.interface.js +2 -0
- package/es2015/src/misc/ngSelectOptions.interface.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js +83 -0
- package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +2 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +123 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +111 -0
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/types.js +4 -0
- package/es2015/src/misc/optionsGatherer/types.js.map +1 -0
- package/es2015/src/misc/plugin.interface.js +2 -0
- package/es2015/src/misc/plugin.interface.js.map +1 -0
- package/es2015/src/misc/pluginBus/pluginBus.interface.js +2 -0
- package/es2015/src/misc/pluginBus/pluginBus.interface.js.map +1 -0
- package/es2015/src/misc/pluginBus/pluginBus.js +44 -0
- package/es2015/src/misc/pluginBus/pluginBus.js.map +1 -0
- package/es2015/src/misc/templateGatherer.interface.js +2 -0
- package/es2015/src/misc/templateGatherer.interface.js.map +1 -0
- package/es2015/src/misc/types.js +34 -0
- package/es2015/src/misc/types.js.map +1 -0
- package/es2015/src/modules/ngSelect.module.js +92 -0
- package/es2015/src/modules/ngSelect.module.js.map +1 -0
- package/es2015/src/modules/ngSelectDynamic.module.js +20 -0
- package/es2015/src/modules/ngSelectDynamic.module.js.map +1 -0
- package/es2015/src/modules/ngSelectEdit.module.js +53 -0
- package/es2015/src/modules/ngSelectEdit.module.js.map +1 -0
- package/es2015/src/pipes/ngSelectHasValue.pipe.js +23 -0
- package/es2015/src/pipes/ngSelectHasValue.pipe.js.map +1 -0
- package/es2015/src/pipes/ngSelectValue.pipe.js +31 -0
- package/es2015/src/pipes/ngSelectValue.pipe.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +145 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +2 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/components.js +3 -0
- package/es2015/src/plugins/keyboardHandler/components.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +196 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +2 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/index.js +4 -0
- package/es2015/src/plugins/keyboardHandler/index.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js +2 -0
- package/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/types.js +10 -0
- package/es2015/src/plugins/keyboardHandler/types.js.map +1 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +169 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/components.js +4 -0
- package/es2015/src/plugins/liveSearch/components.js.map +1 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +318 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/index.js +5 -0
- package/es2015/src/plugins/liveSearch/index.js.map +1 -0
- package/es2015/src/plugins/liveSearch/liveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +64 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/types.js +10 -0
- package/es2015/src/plugins/liveSearch/types.js.map +1 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.interface.js +2 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.interface.js.map +1 -0
- package/es2015/src/plugins/normalState/components.js +4 -0
- package/es2015/src/plugins/normalState/components.js.map +1 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js +89 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.interface.js +2 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.interface.js.map +1 -0
- package/es2015/src/plugins/normalState/index.js +4 -0
- package/es2015/src/plugins/normalState/index.js.map +1 -0
- package/es2015/src/plugins/normalState/normalState.interface.js +2 -0
- package/es2015/src/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js +93 -0
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
- package/es2015/src/plugins/normalState/types.js +10 -0
- package/es2015/src/plugins/normalState/types.js.map +1 -0
- package/es2015/src/plugins/popup/basic/basicPopup.component.js +62 -0
- package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
- package/es2015/src/plugins/popup/basic/basicPopup.interface.js +2 -0
- package/es2015/src/plugins/popup/basic/basicPopup.interface.js.map +1 -0
- package/es2015/src/plugins/popup/component.js +4 -0
- package/es2015/src/plugins/popup/component.js.map +1 -0
- package/es2015/src/plugins/popup/edit/editPopup.component.js +85 -0
- package/es2015/src/plugins/popup/edit/editPopup.component.js.map +1 -0
- package/es2015/src/plugins/popup/edit/editPopup.interface.js +2 -0
- package/es2015/src/plugins/popup/edit/editPopup.interface.js.map +1 -0
- package/es2015/src/plugins/popup/index.js +4 -0
- package/es2015/src/plugins/popup/index.js.map +1 -0
- package/es2015/src/plugins/popup/popup.interface.js +2 -0
- package/es2015/src/plugins/popup/popup.interface.js.map +1 -0
- package/es2015/src/plugins/popup/popupAbstract.component.js +203 -0
- package/es2015/src/plugins/popup/popupAbstract.component.js.map +1 -0
- package/es2015/src/plugins/popup/types.js +10 -0
- package/es2015/src/plugins/popup/types.js.map +1 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.component.js +193 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.component.js.map +1 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/basic/types.js +36 -0
- package/es2015/src/plugins/positioner/basic/types.js.map +1 -0
- package/es2015/src/plugins/positioner/components.js +3 -0
- package/es2015/src/plugins/positioner/components.js.map +1 -0
- package/es2015/src/plugins/positioner/index.js +4 -0
- package/es2015/src/plugins/positioner/index.js.map +1 -0
- package/es2015/src/plugins/positioner/no/noPositioner.component.js +68 -0
- package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
- package/es2015/src/plugins/positioner/no/noPositioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/no/noPositioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/positioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/types.js +11 -0
- package/es2015/src/plugins/positioner/types.js.map +1 -0
- package/es2015/src/plugins/readonlyState/index.js +2 -0
- package/es2015/src/plugins/readonlyState/index.js.map +1 -0
- package/es2015/src/plugins/readonlyState/readonlyState.interface.js +2 -0
- package/es2015/src/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2015/src/plugins/readonlyState/types.js +10 -0
- package/es2015/src/plugins/readonlyState/types.js.map +1 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +157 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js +2 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +1 -0
- package/es2015/src/plugins/valueHandler/components.js +3 -0
- package/es2015/src/plugins/valueHandler/components.js.map +1 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +182 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +2 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +1 -0
- package/es2015/src/plugins/valueHandler/index.js +5 -0
- package/es2015/src/plugins/valueHandler/index.js.map +1 -0
- package/es2015/src/plugins/valueHandler/types.js +10 -0
- package/es2015/src/plugins/valueHandler/types.js.map +1 -0
- package/es2015/src/plugins/valueHandler/valueHandler.interface.js +2 -0
- package/es2015/src/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js +150 -0
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
- package/es2020/elements/src/components/ngSelectElements.component.js +187 -0
- package/es2020/elements/src/components/ngSelectElements.component.js.map +1 -0
- package/es2020/elements/src/components/ngSelectElements.interface.js +2 -0
- package/es2020/elements/src/components/ngSelectElements.interface.js.map +1 -0
- package/es2020/elements/src/index.js +4 -0
- package/es2020/elements/src/index.js.map +1 -0
- package/es2020/elements/src/modules/ngSelectElements.module.js +52 -0
- package/es2020/elements/src/modules/ngSelectElements.module.js.map +1 -0
- package/es2020/extensions/src/extensions/getValue.js +2 -0
- package/es2020/extensions/src/extensions/getValue.js.map +1 -0
- package/es2020/extensions/src/extensions/onFocus.js +2 -0
- package/es2020/extensions/src/extensions/onFocus.js.map +1 -0
- package/es2020/extensions/src/extensions/patchOptions.js +12 -0
- package/es2020/extensions/src/extensions/patchOptions.js.map +1 -0
- package/es2020/extensions/src/extensions/reinitializeOptions.js +15 -0
- package/es2020/extensions/src/extensions/reinitializeOptions.js.map +1 -0
- package/es2020/extensions/src/extensions/setReadonly.js +2 -0
- package/es2020/extensions/src/extensions/setReadonly.js.map +1 -0
- package/es2020/extensions/src/extensions/setValue.js +2 -0
- package/es2020/extensions/src/extensions/setValue.js.map +1 -0
- package/es2020/extensions/src/extensions/valueChange.js +2 -0
- package/es2020/extensions/src/extensions/valueChange.js.map +1 -0
- package/es2020/extensions/src/index.js +8 -0
- package/es2020/extensions/src/index.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +73 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +2 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/index.js +2 -0
- package/es2020/material/src/components/basicDialogPopup/index.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/types.js +2 -0
- package/es2020/material/src/components/basicDialogPopup/types.js.map +1 -0
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js +75 -0
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
- package/es2020/material/src/directives/types.js +2 -0
- package/es2020/material/src/directives/types.js.map +1 -0
- package/es2020/material/src/index.js +8 -0
- package/es2020/material/src/index.js.map +1 -0
- package/es2020/material/src/modules/dialogPopup.module.js +43 -0
- package/es2020/material/src/modules/dialogPopup.module.js.map +1 -0
- package/es2020/material/src/modules/virtualEditPopup.module.js +33 -0
- package/es2020/material/src/modules/virtualEditPopup.module.js.map +1 -0
- package/es2020/material/src/plugins/popup/components.js +3 -0
- package/es2020/material/src/plugins/popup/components.js.map +1 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js +140 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js +2 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -0
- package/es2020/material/src/plugins/popup/index.js +3 -0
- package/es2020/material/src/plugins/popup/index.js.map +1 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +89 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +2 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -0
- package/es2020/popperJs/src/index.js +4 -0
- package/es2020/popperJs/src/index.js.map +1 -0
- package/es2020/popperJs/src/modules/popperjsPositioner.module.js +23 -0
- package/es2020/popperJs/src/modules/popperjsPositioner.module.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/components.js +2 -0
- package/es2020/popperJs/src/plugins/positioner/components.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/index.js +2 -0
- package/es2020/popperJs/src/plugins/positioner/index.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +148 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +2 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +1 -0
- package/es2020/src/components/option/index.js +3 -0
- package/es2020/src/components/option/index.js.map +1 -0
- package/es2020/src/components/option/optgroup.component.js +53 -0
- package/es2020/src/components/option/optgroup.component.js.map +1 -0
- package/es2020/src/components/option/optgroup.interface.js +2 -0
- package/es2020/src/components/option/optgroup.interface.js.map +1 -0
- package/es2020/src/components/option/option.component.js +38 -0
- package/es2020/src/components/option/option.component.js.map +1 -0
- package/es2020/src/components/option/option.interface.js +2 -0
- package/es2020/src/components/option/option.interface.js.map +1 -0
- package/es2020/src/components/select/index.js +2 -0
- package/es2020/src/components/select/index.js.map +1 -0
- package/es2020/src/components/select/select.component.js +603 -0
- package/es2020/src/components/select/select.component.js.map +1 -0
- package/es2020/src/components/select/select.interface.js +2 -0
- package/es2020/src/components/select/select.interface.js.map +1 -0
- package/es2020/src/components/select/types.js +6 -0
- package/es2020/src/components/select/types.js.map +1 -0
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -0
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +66 -0
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +42 -0
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
- package/es2020/src/index.js +40 -0
- package/es2020/src/index.js.map +1 -0
- package/es2020/src/index.ssr.js +10 -0
- package/es2020/src/index.ssr.js.map +1 -0
- package/es2020/src/misc/extensions/getValue.js +12 -0
- package/es2020/src/misc/extensions/getValue.js.map +1 -0
- package/es2020/src/misc/extensions/index.js +6 -0
- package/es2020/src/misc/extensions/index.js.map +1 -0
- package/es2020/src/misc/extensions/onFocus.js +10 -0
- package/es2020/src/misc/extensions/onFocus.js.map +1 -0
- package/es2020/src/misc/extensions/setReadonly.js +18 -0
- package/es2020/src/misc/extensions/setReadonly.js.map +1 -0
- package/es2020/src/misc/extensions/setValue.js +13 -0
- package/es2020/src/misc/extensions/setValue.js.map +1 -0
- package/es2020/src/misc/extensions/valueChange.js +12 -0
- package/es2020/src/misc/extensions/valueChange.js.map +1 -0
- package/es2020/src/misc/index.js +6 -0
- package/es2020/src/misc/index.js.map +1 -0
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js +162 -0
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
- package/es2020/src/misc/ngSelectOptions.interface.js +2 -0
- package/es2020/src/misc/ngSelectOptions.interface.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js +83 -0
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +2 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js +118 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js +110 -0
- package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/types.js +4 -0
- package/es2020/src/misc/optionsGatherer/types.js.map +1 -0
- package/es2020/src/misc/plugin.interface.js +2 -0
- package/es2020/src/misc/plugin.interface.js.map +1 -0
- package/es2020/src/misc/pluginBus/pluginBus.interface.js +2 -0
- package/es2020/src/misc/pluginBus/pluginBus.interface.js.map +1 -0
- package/es2020/src/misc/pluginBus/pluginBus.js +44 -0
- package/es2020/src/misc/pluginBus/pluginBus.js.map +1 -0
- package/es2020/src/misc/templateGatherer.interface.js +2 -0
- package/es2020/src/misc/templateGatherer.interface.js.map +1 -0
- package/es2020/src/misc/types.js +34 -0
- package/es2020/src/misc/types.js.map +1 -0
- package/es2020/src/modules/ngSelect.module.js +92 -0
- package/es2020/src/modules/ngSelect.module.js.map +1 -0
- package/es2020/src/modules/ngSelectDynamic.module.js +20 -0
- package/es2020/src/modules/ngSelectDynamic.module.js.map +1 -0
- package/es2020/src/modules/ngSelectEdit.module.js +53 -0
- package/es2020/src/modules/ngSelectEdit.module.js.map +1 -0
- package/es2020/src/pipes/ngSelectHasValue.pipe.js +23 -0
- package/es2020/src/pipes/ngSelectHasValue.pipe.js.map +1 -0
- package/es2020/src/pipes/ngSelectValue.pipe.js +31 -0
- package/es2020/src/pipes/ngSelectValue.pipe.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +145 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +2 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/components.js +3 -0
- package/es2020/src/plugins/keyboardHandler/components.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +196 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +2 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/index.js +4 -0
- package/es2020/src/plugins/keyboardHandler/index.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js +2 -0
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/types.js +10 -0
- package/es2020/src/plugins/keyboardHandler/types.js.map +1 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js +167 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/components.js +4 -0
- package/es2020/src/plugins/liveSearch/components.js.map +1 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js +315 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/index.js +5 -0
- package/es2020/src/plugins/liveSearch/index.js.map +1 -0
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js +64 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/types.js +10 -0
- package/es2020/src/plugins/liveSearch/types.js.map +1 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js +2 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js.map +1 -0
- package/es2020/src/plugins/normalState/components.js +4 -0
- package/es2020/src/plugins/normalState/components.js.map +1 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js +88 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js +2 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js.map +1 -0
- package/es2020/src/plugins/normalState/index.js +4 -0
- package/es2020/src/plugins/normalState/index.js.map +1 -0
- package/es2020/src/plugins/normalState/normalState.interface.js +2 -0
- package/es2020/src/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js +92 -0
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
- package/es2020/src/plugins/normalState/types.js +10 -0
- package/es2020/src/plugins/normalState/types.js.map +1 -0
- package/es2020/src/plugins/popup/basic/basicPopup.component.js +62 -0
- package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js +2 -0
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js.map +1 -0
- package/es2020/src/plugins/popup/component.js +4 -0
- package/es2020/src/plugins/popup/component.js.map +1 -0
- package/es2020/src/plugins/popup/edit/editPopup.component.js +85 -0
- package/es2020/src/plugins/popup/edit/editPopup.component.js.map +1 -0
- package/es2020/src/plugins/popup/edit/editPopup.interface.js +2 -0
- package/es2020/src/plugins/popup/edit/editPopup.interface.js.map +1 -0
- package/es2020/src/plugins/popup/index.js +4 -0
- package/es2020/src/plugins/popup/index.js.map +1 -0
- package/es2020/src/plugins/popup/popup.interface.js +2 -0
- package/es2020/src/plugins/popup/popup.interface.js.map +1 -0
- package/es2020/src/plugins/popup/popupAbstract.component.js +202 -0
- package/es2020/src/plugins/popup/popupAbstract.component.js.map +1 -0
- package/es2020/src/plugins/popup/types.js +10 -0
- package/es2020/src/plugins/popup/types.js.map +1 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.component.js +190 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.component.js.map +1 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/basic/types.js +36 -0
- package/es2020/src/plugins/positioner/basic/types.js.map +1 -0
- package/es2020/src/plugins/positioner/components.js +3 -0
- package/es2020/src/plugins/positioner/components.js.map +1 -0
- package/es2020/src/plugins/positioner/index.js +4 -0
- package/es2020/src/plugins/positioner/index.js.map +1 -0
- package/es2020/src/plugins/positioner/no/noPositioner.component.js +68 -0
- package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/positioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/types.js +11 -0
- package/es2020/src/plugins/positioner/types.js.map +1 -0
- package/es2020/src/plugins/readonlyState/index.js +2 -0
- package/es2020/src/plugins/readonlyState/index.js.map +1 -0
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js +2 -0
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2020/src/plugins/readonlyState/types.js +10 -0
- package/es2020/src/plugins/readonlyState/types.js.map +1 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js +157 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js +2 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +1 -0
- package/es2020/src/plugins/valueHandler/components.js +3 -0
- package/es2020/src/plugins/valueHandler/components.js.map +1 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +177 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +2 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +1 -0
- package/es2020/src/plugins/valueHandler/index.js +5 -0
- package/es2020/src/plugins/valueHandler/index.js.map +1 -0
- package/es2020/src/plugins/valueHandler/types.js +10 -0
- package/es2020/src/plugins/valueHandler/types.js.map +1 -0
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js +2 -0
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js +145 -0
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
- package/extensions/package.json +7 -6
- package/extensions/src/extensions/getValue.d.ts +1 -1
- package/extensions/src/extensions/onFocus.d.ts +1 -1
- package/extensions/src/extensions/patchOptions.d.ts +6 -6
- package/extensions/src/extensions/reinitializeOptions.d.ts +6 -6
- package/extensions/src/extensions/setReadonly.d.ts +1 -1
- package/extensions/src/extensions/setValue.d.ts +1 -1
- package/extensions/src/extensions/valueChange.d.ts +1 -1
- package/extensions/src/index.d.ts +8 -0
- package/extensions/src/index.d.ts.map +1 -0
- package/material/package.json +7 -7
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +46 -43
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +23 -23
- package/material/src/components/basicDialogPopup/index.d.ts +1 -1
- package/material/src/components/basicDialogPopup/types.d.ts +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +26 -23
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
- package/material/src/directives/types.d.ts +1 -1
- package/material/src/index.d.ts +8 -0
- package/material/src/index.d.ts.map +1 -0
- package/material/src/modules/dialogPopup.module.d.ts +14 -5
- package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
- package/material/src/modules/virtualEditPopup.module.d.ts +12 -5
- package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
- package/material/src/plugins/popup/components.d.ts +2 -2
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +82 -79
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +59 -59
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
- package/material/src/plugins/popup/index.d.ts +2 -2
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +29 -26
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +16 -16
- package/package.json +123 -63
- package/popperJs/package.json +8 -8
- package/popperJs/src/index.d.ts +4 -0
- package/popperJs/src/index.d.ts.map +1 -0
- package/popperJs/src/modules/popperjsPositioner.module.d.ts +10 -5
- package/popperJs/src/modules/popperjsPositioner.module.d.ts.map +1 -1
- package/popperJs/src/plugins/positioner/components.d.ts +1 -1
- package/popperJs/src/plugins/positioner/index.d.ts +1 -1
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts +77 -74
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts.map +1 -1
- package/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.d.ts +11 -11
- package/src/components/option/index.d.ts +2 -2
- package/src/components/option/optgroup.component.d.ts +36 -33
- package/src/components/option/optgroup.component.d.ts.map +1 -1
- package/src/components/option/optgroup.interface.d.ts +19 -19
- package/src/components/option/option.component.d.ts +29 -26
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/option/option.interface.d.ts +30 -30
- package/src/components/select/index.d.ts +1 -1
- package/src/components/select/select.component.d.ts +255 -270
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.interface.d.ts +67 -67
- package/src/components/select/types.d.ts +6 -6
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +10 -7
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +1 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +10 -7
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +1 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +20 -17
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +1 -1
- package/src/index.d.ts +40 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ssr.d.ts +1 -0
- package/src/index.ssr.d.ts.map +1 -0
- package/src/misc/extensions/getValue.d.ts +6 -5
- package/src/misc/extensions/getValue.d.ts.map +1 -1
- package/src/misc/extensions/index.d.ts +5 -5
- package/src/misc/extensions/onFocus.d.ts +7 -6
- package/src/misc/extensions/onFocus.d.ts.map +1 -1
- package/src/misc/extensions/setReadonly.d.ts +7 -6
- package/src/misc/extensions/setReadonly.d.ts.map +1 -1
- package/src/misc/extensions/setValue.d.ts +7 -6
- package/src/misc/extensions/setValue.d.ts.map +1 -1
- package/src/misc/extensions/valueChange.d.ts +7 -6
- package/src/misc/extensions/valueChange.d.ts.map +1 -1
- package/src/misc/index.d.ts +5 -5
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +62 -64
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +1 -1
- package/src/misc/ngSelectOptions.interface.d.ts +86 -86
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +69 -69
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +85 -85
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +28 -28
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +72 -72
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +52 -52
- package/src/misc/optionsGatherer/types.d.ts +3 -3
- package/src/misc/plugin.interface.d.ts +107 -107
- package/src/misc/plugin.interface.d.ts.map +1 -1
- package/src/misc/pluginBus/pluginBus.d.ts +48 -45
- package/src/misc/pluginBus/pluginBus.d.ts.map +1 -1
- package/src/misc/pluginBus/pluginBus.interface.d.ts +35 -35
- package/src/misc/templateGatherer.interface.d.ts +16 -16
- package/src/misc/types.d.ts +41 -41
- package/src/modules/ngSelect.module.d.ts +27 -5
- package/src/modules/ngSelect.module.d.ts.map +1 -1
- package/src/modules/ngSelectDynamic.module.d.ts +10 -5
- package/src/modules/ngSelectDynamic.module.d.ts.map +1 -1
- package/src/modules/ngSelectEdit.module.d.ts +16 -5
- package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
- package/src/pipes/ngSelectHasValue.pipe.d.ts +15 -12
- package/src/pipes/ngSelectHasValue.pipe.d.ts.map +1 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +18 -15
- package/src/pipes/ngSelectValue.pipe.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +57 -54
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +11 -11
- package/src/plugins/keyboardHandler/components.d.ts +2 -2
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +67 -64
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +11 -11
- package/src/plugins/keyboardHandler/index.d.ts +3 -3
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +11 -11
- package/src/plugins/keyboardHandler/types.d.ts +10 -10
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +101 -98
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +28 -28
- package/src/plugins/liveSearch/components.d.ts +3 -3
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +144 -141
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +36 -36
- package/src/plugins/liveSearch/index.d.ts +4 -4
- package/src/plugins/liveSearch/liveSearch.interface.d.ts +37 -37
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +53 -50
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +11 -11
- package/src/plugins/liveSearch/types.d.ts +10 -10
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts +16 -13
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +28 -28
- package/src/plugins/normalState/components.d.ts +3 -3
- package/src/plugins/normalState/edit/editNormalState.component.d.ts +25 -22
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts +52 -52
- package/src/plugins/normalState/index.d.ts +3 -3
- package/src/plugins/normalState/normalState.interface.d.ts +48 -48
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +69 -66
- package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +1 -1
- package/src/plugins/normalState/types.d.ts +10 -10
- package/src/plugins/popup/basic/basicPopup.component.d.ts +16 -13
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/basic/basicPopup.interface.d.ts +32 -32
- package/src/plugins/popup/component.d.ts +3 -3
- package/src/plugins/popup/edit/editPopup.component.d.ts +31 -28
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/edit/editPopup.interface.d.ts +32 -32
- package/src/plugins/popup/index.d.ts +3 -3
- package/src/plugins/popup/popup.interface.d.ts +51 -51
- package/src/plugins/popup/popupAbstract.component.d.ts +133 -130
- package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
- package/src/plugins/popup/types.d.ts +10 -10
- package/src/plugins/positioner/basic/basicPositioner.component.d.ts +89 -86
- package/src/plugins/positioner/basic/basicPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/basic/basicPositioner.interface.d.ts +28 -28
- package/src/plugins/positioner/basic/types.d.ts +21 -18
- package/src/plugins/positioner/basic/types.d.ts.map +1 -1
- package/src/plugins/positioner/components.d.ts +2 -2
- package/src/plugins/positioner/index.d.ts +3 -3
- package/src/plugins/positioner/no/noPositioner.component.d.ts +41 -38
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/no/noPositioner.interface.d.ts +11 -11
- package/src/plugins/positioner/positioner.interface.d.ts +20 -20
- package/src/plugins/positioner/positioner.interface.d.ts.map +1 -1
- package/src/plugins/positioner/types.d.ts +11 -11
- package/src/plugins/positioner/types.d.ts.map +1 -1
- package/src/plugins/readonlyState/index.d.ts +1 -1
- package/src/plugins/readonlyState/readonlyState.interface.d.ts +11 -11
- package/src/plugins/readonlyState/types.d.ts +10 -10
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +50 -47
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +11 -11
- package/src/plugins/valueHandler/components.d.ts +2 -2
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +51 -48
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +20 -20
- package/src/plugins/valueHandler/index.d.ts +4 -4
- package/src/plugins/valueHandler/types.d.ts +10 -10
- package/src/plugins/valueHandler/valueHandler.interface.d.ts +30 -30
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +114 -111
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
- package/version.bak +1 -1
- package/appveyor.yml +0 -67
- package/dist/es2015/public_api.js +0 -7
- package/dist/es2015/select.js +0 -14
- package/dist/es2015/src/components/option/index.js +0 -8
- package/dist/es2015/src/components/option/optgroup.component.js +0 -80
- package/dist/es2015/src/components/option/optgroup.interface.js +0 -29
- package/dist/es2015/src/components/option/option.component.js +0 -68
- package/dist/es2015/src/components/option/option.interface.js +0 -47
- package/dist/es2015/src/components/select/index.js +0 -7
- package/dist/es2015/src/components/select/select.component.js +0 -867
- package/dist/es2015/src/components/select/select.interface.js +0 -77
- package/dist/es2015/src/components/select/types.js +0 -12
- package/dist/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -32
- package/dist/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -58
- package/dist/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -63
- package/dist/es2015/src/misc/extensions/getValue.js +0 -23
- package/dist/es2015/src/misc/extensions/index.js +0 -11
- package/dist/es2015/src/misc/extensions/onFocus.js +0 -21
- package/dist/es2015/src/misc/extensions/setReadonly.js +0 -28
- package/dist/es2015/src/misc/extensions/setValue.js +0 -24
- package/dist/es2015/src/misc/extensions/valueChange.js +0 -27
- package/dist/es2015/src/misc/index.js +0 -11
- package/dist/es2015/src/misc/ngSelectControlValueAccessor.directive.js +0 -254
- package/dist/es2015/src/misc/ngSelectOptions.interface.js +0 -99
- package/dist/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -157
- package/dist/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -35
- package/dist/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -230
- package/dist/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -201
- package/dist/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -65
- package/dist/es2015/src/misc/optionsGatherer/types.js +0 -9
- package/dist/es2015/src/misc/plugin.interface.js +0 -132
- package/dist/es2015/src/misc/pluginBus/pluginBus.interface.js +0 -48
- package/dist/es2015/src/misc/pluginBus/pluginBus.js +0 -95
- package/dist/es2015/src/misc/templateGatherer.interface.js +0 -23
- package/dist/es2015/src/misc/types.js +0 -47
- package/dist/es2015/src/modules/ngSelect.module.js +0 -66
- package/dist/es2015/src/modules/ngSelectDynamic.module.js +0 -20
- package/dist/es2015/src/modules/ngSelectEdit.module.js +0 -41
- package/dist/es2015/src/pipes/ngSelectHasValue.pipe.js +0 -26
- package/dist/es2015/src/pipes/ngSelectValue.pipe.js +0 -38
- package/dist/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -201
- package/dist/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -16
- package/dist/es2015/src/plugins/keyboardHandler/components.js +0 -8
- package/dist/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -272
- package/dist/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -16
- package/dist/es2015/src/plugins/keyboardHandler/index.js +0 -9
- package/dist/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -16
- package/dist/es2015/src/plugins/keyboardHandler/types.js +0 -17
- package/dist/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -277
- package/dist/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -40
- package/dist/es2015/src/plugins/liveSearch/components.js +0 -9
- package/dist/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -494
- package/dist/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -50
- package/dist/es2015/src/plugins/liveSearch/index.js +0 -10
- package/dist/es2015/src/plugins/liveSearch/liveSearch.interface.js +0 -53
- package/dist/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -109
- package/dist/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -16
- package/dist/es2015/src/plugins/liveSearch/types.js +0 -17
- package/dist/es2015/src/plugins/normalState/basic/basicNormalState.component.js +0 -71
- package/dist/es2015/src/plugins/normalState/basic/basicNormalState.interface.js +0 -39
- package/dist/es2015/src/plugins/normalState/components.js +0 -9
- package/dist/es2015/src/plugins/normalState/edit/editNormalState.component.js +0 -108
- package/dist/es2015/src/plugins/normalState/edit/editNormalState.interface.js +0 -71
- package/dist/es2015/src/plugins/normalState/index.js +0 -9
- package/dist/es2015/src/plugins/normalState/normalState.interface.js +0 -59
- package/dist/es2015/src/plugins/normalState/normalStateAbstract.component.js +0 -178
- package/dist/es2015/src/plugins/normalState/types.js +0 -17
- package/dist/es2015/src/plugins/popup/basic/basicPopup.component.js +0 -68
- package/dist/es2015/src/plugins/popup/basic/basicPopup.interface.js +0 -43
- package/dist/es2015/src/plugins/popup/component.js +0 -9
- package/dist/es2015/src/plugins/popup/edit/editPopup.component.js +0 -100
- package/dist/es2015/src/plugins/popup/edit/editPopup.interface.js +0 -43
- package/dist/es2015/src/plugins/popup/index.js +0 -9
- package/dist/es2015/src/plugins/popup/popup.interface.js +0 -70
- package/dist/es2015/src/plugins/popup/popupAbstract.component.js +0 -383
- package/dist/es2015/src/plugins/popup/types.js +0 -17
- package/dist/es2015/src/plugins/positioner/basic/basicPositioner.component.js +0 -302
- package/dist/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +0 -38
- package/dist/es2015/src/plugins/positioner/basic/types.js +0 -52
- package/dist/es2015/src/plugins/positioner/components.js +0 -8
- package/dist/es2015/src/plugins/positioner/index.js +0 -9
- package/dist/es2015/src/plugins/positioner/no/noPositioner.component.js +0 -96
- package/dist/es2015/src/plugins/positioner/no/noPositioner.interface.js +0 -16
- package/dist/es2015/src/plugins/positioner/positioner.interface.js +0 -28
- package/dist/es2015/src/plugins/positioner/types.js +0 -18
- package/dist/es2015/src/plugins/readonlyState/index.js +0 -7
- package/dist/es2015/src/plugins/readonlyState/readonlyState.interface.js +0 -17
- package/dist/es2015/src/plugins/readonlyState/types.js +0 -17
- package/dist/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -205
- package/dist/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -17
- package/dist/es2015/src/plugins/valueHandler/components.js +0 -8
- package/dist/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -235
- package/dist/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -30
- package/dist/es2015/src/plugins/valueHandler/index.js +0 -10
- package/dist/es2015/src/plugins/valueHandler/types.js +0 -17
- package/dist/es2015/src/plugins/valueHandler/valueHandler.interface.js +0 -40
- package/dist/es2015/src/plugins/valueHandler/valueHandlerBase.js +0 -286
- package/dist/es2015/src/select.js +0 -45
- package/dist/es2015/src/select.ssr.js +0 -21
- package/dist/es5/public_api.js +0 -7
- package/dist/es5/select.js +0 -14
- package/dist/es5/src/components/option/index.js +0 -8
- package/dist/es5/src/components/option/optgroup.component.js +0 -109
- package/dist/es5/src/components/option/optgroup.interface.js +0 -29
- package/dist/es5/src/components/option/option.component.js +0 -70
- package/dist/es5/src/components/option/option.interface.js +0 -47
- package/dist/es5/src/components/select/index.js +0 -7
- package/dist/es5/src/components/select/select.component.js +0 -1149
- package/dist/es5/src/components/select/select.interface.js +0 -77
- package/dist/es5/src/components/select/types.js +0 -12
- package/dist/es5/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -31
- package/dist/es5/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -57
- package/dist/es5/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -72
- package/dist/es5/src/misc/extensions/getValue.js +0 -23
- package/dist/es5/src/misc/extensions/index.js +0 -11
- package/dist/es5/src/misc/extensions/onFocus.js +0 -21
- package/dist/es5/src/misc/extensions/setReadonly.js +0 -29
- package/dist/es5/src/misc/extensions/setValue.js +0 -24
- package/dist/es5/src/misc/extensions/valueChange.js +0 -27
- package/dist/es5/src/misc/index.js +0 -11
- package/dist/es5/src/misc/ngSelectControlValueAccessor.directive.js +0 -303
- package/dist/es5/src/misc/ngSelectOptions.interface.js +0 -99
- package/dist/es5/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -208
- package/dist/es5/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -35
- package/dist/es5/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -329
- package/dist/es5/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -271
- package/dist/es5/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -65
- package/dist/es5/src/misc/optionsGatherer/types.js +0 -9
- package/dist/es5/src/misc/plugin.interface.js +0 -132
- package/dist/es5/src/misc/pluginBus/pluginBus.interface.js +0 -48
- package/dist/es5/src/misc/pluginBus/pluginBus.js +0 -97
- package/dist/es5/src/misc/templateGatherer.interface.js +0 -23
- package/dist/es5/src/misc/types.js +0 -47
- package/dist/es5/src/modules/ngSelect.module.js +0 -70
- package/dist/es5/src/modules/ngSelectDynamic.module.js +0 -24
- package/dist/es5/src/modules/ngSelectEdit.module.js +0 -45
- package/dist/es5/src/pipes/ngSelectHasValue.pipe.js +0 -42
- package/dist/es5/src/pipes/ngSelectValue.pipe.js +0 -59
- package/dist/es5/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -250
- package/dist/es5/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -16
- package/dist/es5/src/plugins/keyboardHandler/components.js +0 -8
- package/dist/es5/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -321
- package/dist/es5/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -16
- package/dist/es5/src/plugins/keyboardHandler/index.js +0 -9
- package/dist/es5/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -16
- package/dist/es5/src/plugins/keyboardHandler/types.js +0 -17
- package/dist/es5/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -348
- package/dist/es5/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -40
- package/dist/es5/src/plugins/liveSearch/components.js +0 -9
- package/dist/es5/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -606
- package/dist/es5/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -50
- package/dist/es5/src/plugins/liveSearch/index.js +0 -10
- package/dist/es5/src/plugins/liveSearch/liveSearch.interface.js +0 -53
- package/dist/es5/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -137
- package/dist/es5/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -16
- package/dist/es5/src/plugins/liveSearch/types.js +0 -17
- package/dist/es5/src/plugins/normalState/basic/basicNormalState.component.js +0 -80
- package/dist/es5/src/plugins/normalState/basic/basicNormalState.interface.js +0 -39
- package/dist/es5/src/plugins/normalState/components.js +0 -9
- package/dist/es5/src/plugins/normalState/edit/editNormalState.component.js +0 -144
- package/dist/es5/src/plugins/normalState/edit/editNormalState.interface.js +0 -71
- package/dist/es5/src/plugins/normalState/index.js +0 -9
- package/dist/es5/src/plugins/normalState/normalState.interface.js +0 -59
- package/dist/es5/src/plugins/normalState/normalStateAbstract.component.js +0 -229
- package/dist/es5/src/plugins/normalState/types.js +0 -17
- package/dist/es5/src/plugins/popup/basic/basicPopup.component.js +0 -76
- package/dist/es5/src/plugins/popup/basic/basicPopup.interface.js +0 -43
- package/dist/es5/src/plugins/popup/component.js +0 -9
- package/dist/es5/src/plugins/popup/edit/editPopup.component.js +0 -138
- package/dist/es5/src/plugins/popup/edit/editPopup.interface.js +0 -43
- package/dist/es5/src/plugins/popup/index.js +0 -9
- package/dist/es5/src/plugins/popup/popup.interface.js +0 -70
- package/dist/es5/src/plugins/popup/popupAbstract.component.js +0 -477
- package/dist/es5/src/plugins/popup/types.js +0 -17
- package/dist/es5/src/plugins/positioner/basic/basicPositioner.component.js +0 -364
- package/dist/es5/src/plugins/positioner/basic/basicPositioner.interface.js +0 -38
- package/dist/es5/src/plugins/positioner/basic/types.js +0 -75
- package/dist/es5/src/plugins/positioner/components.js +0 -8
- package/dist/es5/src/plugins/positioner/index.js +0 -9
- package/dist/es5/src/plugins/positioner/no/noPositioner.component.js +0 -126
- package/dist/es5/src/plugins/positioner/no/noPositioner.interface.js +0 -16
- package/dist/es5/src/plugins/positioner/positioner.interface.js +0 -28
- package/dist/es5/src/plugins/positioner/types.js +0 -18
- package/dist/es5/src/plugins/readonlyState/index.js +0 -7
- package/dist/es5/src/plugins/readonlyState/readonlyState.interface.js +0 -17
- package/dist/es5/src/plugins/readonlyState/types.js +0 -17
- package/dist/es5/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -277
- package/dist/es5/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -17
- package/dist/es5/src/plugins/valueHandler/components.js +0 -8
- package/dist/es5/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -364
- package/dist/es5/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -30
- package/dist/es5/src/plugins/valueHandler/index.js +0 -10
- package/dist/es5/src/plugins/valueHandler/types.js +0 -17
- package/dist/es5/src/plugins/valueHandler/valueHandler.interface.js +0 -40
- package/dist/es5/src/plugins/valueHandler/valueHandlerBase.js +0 -369
- package/dist/es5/src/select.js +0 -45
- package/dist/es5/src/select.ssr.js +0 -21
- package/elements/dist/es2015/elements/index.js +0 -10
- package/elements/dist/es2015/elements/public_api.js +0 -7
- package/elements/dist/es2015/elements/src/components/ngSelectElements.component.js +0 -292
- package/elements/dist/es2015/elements/src/components/ngSelectElements.interface.js +0 -64
- package/elements/dist/es2015/elements/src/index.js +0 -9
- package/elements/dist/es2015/elements/src/modules/ngSelectElements.module.js +0 -54
- package/elements/dist/es5/elements/index.js +0 -10
- package/elements/dist/es5/elements/public_api.js +0 -7
- package/elements/dist/es5/elements/src/components/ngSelectElements.component.js +0 -332
- package/elements/dist/es5/elements/src/components/ngSelectElements.interface.js +0 -64
- package/elements/dist/es5/elements/src/index.js +0 -9
- package/elements/dist/es5/elements/src/modules/ngSelectElements.module.js +0 -63
- package/elements/index.d.ts +0 -5
- package/elements/index.d.ts.map +0 -1
- package/elements/index.metadata.json +0 -1
- package/elements/public_api.d.ts +0 -2
- package/elements/public_api.d.ts.map +0 -1
- package/elements/src/components/ngSelectElements.component.ngfactory.d.ts.map +0 -1
- package/elements/src/modules/ngSelectElements.module.ngfactory.d.ts.map +0 -1
- package/extensions/dist/es2015/extensions/index.js +0 -10
- package/extensions/dist/es2015/extensions/public_api.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/getValue.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/onFocus.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/patchOptions.js +0 -23
- package/extensions/dist/es2015/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/extensions/dist/es2015/extensions/src/extensions/setReadonly.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/setValue.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/valueChange.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions.js +0 -13
- package/extensions/dist/es5/extensions/index.js +0 -10
- package/extensions/dist/es5/extensions/public_api.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/getValue.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/onFocus.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/patchOptions.js +0 -23
- package/extensions/dist/es5/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/extensions/dist/es5/extensions/src/extensions/setReadonly.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/setValue.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/valueChange.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions.js +0 -13
- package/extensions/index.d.ts +0 -5
- package/extensions/index.d.ts.map +0 -1
- package/extensions/index.metadata.json +0 -1
- package/extensions/public_api.d.ts +0 -2
- package/extensions/public_api.d.ts.map +0 -1
- package/extensions/src/extensions.d.ts +0 -8
- package/extensions/src/extensions.d.ts.map +0 -1
- package/material/dist/es2015/extensions/src/extensions/getValue.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/onFocus.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/patchOptions.js +0 -23
- package/material/dist/es2015/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/material/dist/es2015/extensions/src/extensions/setReadonly.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/setValue.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/valueChange.js +0 -7
- package/material/dist/es2015/extensions/src/extensions.js +0 -13
- package/material/dist/es2015/material/index.js +0 -10
- package/material/dist/es2015/material/public_api.js +0 -7
- package/material/dist/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -127
- package/material/dist/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -33
- package/material/dist/es2015/material/src/components/basicDialogPopup/index.js +0 -7
- package/material/dist/es2015/material/src/components/basicDialogPopup/types.js +0 -7
- package/material/dist/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -99
- package/material/dist/es2015/material/src/directives/types.js +0 -7
- package/material/dist/es2015/material/src/material.js +0 -13
- package/material/dist/es2015/material/src/modules/dialogPopup.module.js +0 -35
- package/material/dist/es2015/material/src/modules/virtualEditPopup.module.js +0 -29
- package/material/dist/es2015/material/src/plugins/popup/components.js +0 -8
- package/material/dist/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -236
- package/material/dist/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -82
- package/material/dist/es2015/material/src/plugins/popup/index.js +0 -8
- package/material/dist/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -151
- package/material/dist/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -21
- package/material/dist/es5/extensions/src/extensions/getValue.js +0 -7
- package/material/dist/es5/extensions/src/extensions/onFocus.js +0 -7
- package/material/dist/es5/extensions/src/extensions/patchOptions.js +0 -23
- package/material/dist/es5/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/material/dist/es5/extensions/src/extensions/setReadonly.js +0 -7
- package/material/dist/es5/extensions/src/extensions/setValue.js +0 -7
- package/material/dist/es5/extensions/src/extensions/valueChange.js +0 -7
- package/material/dist/es5/extensions/src/extensions.js +0 -13
- package/material/dist/es5/material/index.js +0 -10
- package/material/dist/es5/material/public_api.js +0 -7
- package/material/dist/es5/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -155
- package/material/dist/es5/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -33
- package/material/dist/es5/material/src/components/basicDialogPopup/index.js +0 -7
- package/material/dist/es5/material/src/components/basicDialogPopup/types.js +0 -7
- package/material/dist/es5/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -109
- package/material/dist/es5/material/src/directives/types.js +0 -7
- package/material/dist/es5/material/src/material.js +0 -13
- package/material/dist/es5/material/src/modules/dialogPopup.module.js +0 -39
- package/material/dist/es5/material/src/modules/virtualEditPopup.module.js +0 -33
- package/material/dist/es5/material/src/plugins/popup/components.js +0 -8
- package/material/dist/es5/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -290
- package/material/dist/es5/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -82
- package/material/dist/es5/material/src/plugins/popup/index.js +0 -8
- package/material/dist/es5/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -196
- package/material/dist/es5/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -21
- package/material/index.d.ts +0 -6
- package/material/index.d.ts.map +0 -1
- package/material/index.metadata.json +0 -1
- package/material/public_api.d.ts +0 -2
- package/material/public_api.d.ts.map +0 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.css.shim.ngstyle.d.ts.map +0 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.ngfactory.d.ts.map +0 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.ngfactory.d.ts.map +0 -1
- package/material/src/material.d.ts +0 -8
- package/material/src/material.d.ts.map +0 -1
- package/material/src/modules/dialogPopup.module.ngfactory.d.ts.map +0 -1
- package/material/src/modules/virtualEditPopup.module.ngfactory.d.ts.map +0 -1
- package/material/src/plugins/popup/dialog/dialogPopup.component.ngfactory.d.ts.map +0 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.ngfactory.d.ts.map +0 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/popperJs/dist/es2015/popperjs/index.js +0 -10
- package/popperJs/dist/es2015/popperjs/public_api.js +0 -7
- package/popperJs/dist/es2015/popperjs/src/modules/popperjsPositioner.module.js +0 -23
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/components.js +0 -7
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/index.js +0 -7
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -242
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -16
- package/popperJs/dist/es2015/popperjs/src/popperJs.js +0 -9
- package/popperJs/dist/es5/popperjs/index.js +0 -10
- package/popperJs/dist/es5/popperjs/public_api.js +0 -7
- package/popperJs/dist/es5/popperjs/src/modules/popperjsPositioner.module.js +0 -27
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/components.js +0 -7
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/index.js +0 -7
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -290
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -16
- package/popperJs/dist/es5/popperjs/src/popperJs.js +0 -9
- package/popperJs/index.d.ts +0 -6
- package/popperJs/index.d.ts.map +0 -1
- package/popperJs/index.metadata.json +0 -1
- package/popperJs/public_api.d.ts +0 -2
- package/popperJs/public_api.d.ts.map +0 -1
- package/popperJs/src/modules/popperjsPositioner.module.ngfactory.d.ts.map +0 -1
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.ngfactory.d.ts.map +0 -1
- package/popperJs/src/popperJs.d.ts +0 -4
- package/popperJs/src/popperJs.d.ts.map +0 -1
- package/public_api.d.ts +0 -2
- package/public_api.d.ts.map +0 -1
- package/select.d.ts +0 -26
- package/select.d.ts.map +0 -1
- package/select.metadata.json +0 -1
- package/src/components/option/optgroup.component.ngfactory.d.ts.map +0 -1
- package/src/components/option/option.component.ngfactory.d.ts.map +0 -1
- package/src/components/select/select.component.ngfactory.d.ts.map +0 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.ngfactory.d.ts.map +0 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.ngfactory.d.ts.map +0 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.ngfactory.d.ts.map +0 -1
- package/src/misc/ngSelectControlValueAccessor.directive.ngfactory.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.ngfactory.d.ts.map +0 -1
- package/src/modules/ngSelect.module.ngfactory.d.ts.map +0 -1
- package/src/modules/ngSelectDynamic.module.ngfactory.d.ts.map +0 -1
- package/src/modules/ngSelectEdit.module.ngfactory.d.ts.map +0 -1
- package/src/pipes/ngSelectHasValue.pipe.ngfactory.d.ts.map +0 -1
- package/src/pipes/ngSelectValue.pipe.ngfactory.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/positioner/basic/basicPositioner.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/positioner/basic/types.ngfactory.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.ngfactory.d.ts.map +0 -1
- package/src/select.d.ts +0 -40
- package/src/select.d.ts.map +0 -1
- package/src/select.ssr.d.ts +0 -1
- package/src/select.ssr.d.ts.map +0 -1
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter } from '@angular/core';
|
|
2
|
+
import { STRING_LOCALIZATION } from '@anglr/common';
|
|
3
|
+
import { extend, isPresent } from '@jscrpt/common';
|
|
4
|
+
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
5
|
+
import { LIVE_SEARCH_OPTIONS } from '../types';
|
|
6
|
+
import { VALUE_HANDLER } from '../../valueHandler/types';
|
|
7
|
+
import { POPUP } from '../../popup/types';
|
|
8
|
+
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
11
|
+
import * as i2 from "@angular/common";
|
|
12
|
+
/**
|
|
13
|
+
* Default options for live search
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
const defaultOptions = {
|
|
17
|
+
cssClasses: {
|
|
18
|
+
wrapperDiv: 'edit-wrapper-div',
|
|
19
|
+
input: 'edit-control'
|
|
20
|
+
},
|
|
21
|
+
texts: {
|
|
22
|
+
inputPlaceholder: 'Select item'
|
|
23
|
+
},
|
|
24
|
+
keepSearchValue: false,
|
|
25
|
+
nonExistingCancel: false,
|
|
26
|
+
emptyCancel: false
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Component used for obtaining edit live search html element
|
|
30
|
+
*/
|
|
31
|
+
export class EditLiveSearchComponent {
|
|
32
|
+
//######################### constructor #########################
|
|
33
|
+
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _stringLocalization, options) {
|
|
34
|
+
this.ngSelectPlugins = ngSelectPlugins;
|
|
35
|
+
this.pluginBus = pluginBus;
|
|
36
|
+
this.pluginElement = pluginElement;
|
|
37
|
+
this._changeDetector = _changeDetector;
|
|
38
|
+
this._stringLocalization = _stringLocalization;
|
|
39
|
+
/**
|
|
40
|
+
* Current value of live search
|
|
41
|
+
*/
|
|
42
|
+
this.searchValue = null;
|
|
43
|
+
/**
|
|
44
|
+
* Occurs when current value of live search changes
|
|
45
|
+
*/
|
|
46
|
+
this.searchValueChange = new EventEmitter();
|
|
47
|
+
//######################### public properties - template bindings #########################
|
|
48
|
+
/**
|
|
49
|
+
* Current value that is displayed
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
this.searchValueDisplayed = null;
|
|
53
|
+
/**
|
|
54
|
+
* Object containing available texts
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
this.texts = {};
|
|
58
|
+
this._options = extend(true, {}, defaultOptions, options);
|
|
59
|
+
}
|
|
60
|
+
//######################### protected properties #########################
|
|
61
|
+
/**
|
|
62
|
+
* Gets currently available options
|
|
63
|
+
*/
|
|
64
|
+
get availableOptions() {
|
|
65
|
+
return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
|
|
66
|
+
}
|
|
67
|
+
//######################### public properties - implementation of EditLiveSearch #########################
|
|
68
|
+
/**
|
|
69
|
+
* Options for NgSelect plugin
|
|
70
|
+
*/
|
|
71
|
+
get options() {
|
|
72
|
+
return this._options;
|
|
73
|
+
}
|
|
74
|
+
set options(options) {
|
|
75
|
+
this._options = extend(true, this._options, options);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* HTML element that represents live search
|
|
79
|
+
*/
|
|
80
|
+
get liveSearchElement() {
|
|
81
|
+
return this.liveSearchElementChild.nativeElement;
|
|
82
|
+
}
|
|
83
|
+
//######################### public methods - implementation of OnDestroy #########################
|
|
84
|
+
/**
|
|
85
|
+
* Called when component is destroyed
|
|
86
|
+
*/
|
|
87
|
+
ngOnDestroy() {
|
|
88
|
+
var _a, _b, _c, _d, _e;
|
|
89
|
+
(_a = this._optionsChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
90
|
+
this._optionsChangeSubscription = null;
|
|
91
|
+
(_b = this._textsChangedSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
92
|
+
this._textsChangedSubscription = null;
|
|
93
|
+
(_c = this._valueChangedSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
94
|
+
this._valueChangedSubscription = null;
|
|
95
|
+
(_d = this._liveSearchFocusSubscription) === null || _d === void 0 ? void 0 : _d.unsubscribe();
|
|
96
|
+
this._liveSearchFocusSubscription = null;
|
|
97
|
+
(_e = this._updateDisplayedValueSubscription) === null || _e === void 0 ? void 0 : _e.unsubscribe();
|
|
98
|
+
this._updateDisplayedValueSubscription = null;
|
|
99
|
+
}
|
|
100
|
+
//######################### public methods - implementation of EditLiveSearch #########################
|
|
101
|
+
/**
|
|
102
|
+
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
103
|
+
*/
|
|
104
|
+
initialize() {
|
|
105
|
+
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
106
|
+
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
|
|
107
|
+
this._optionsChangeSubscription.unsubscribe();
|
|
108
|
+
this._optionsChangeSubscription = null;
|
|
109
|
+
this._optionsGatherer = null;
|
|
110
|
+
}
|
|
111
|
+
if (!this._optionsGatherer) {
|
|
112
|
+
this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
|
|
113
|
+
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => {
|
|
114
|
+
//do not change active if active is visible
|
|
115
|
+
if (!this.pluginBus.selectOptions.optionsGatherer.availableOptions.find((option) => option.active)) {
|
|
116
|
+
//only when input is filled at least with one char
|
|
117
|
+
if (this.searchValue) {
|
|
118
|
+
const option = this.pluginBus.selectOptions.optionsGatherer.availableOptions.find(itm => this.pluginBus.selectOptions.liveSearchFilter(this.searchValue, this.pluginBus.selectOptions.normalizer)(itm));
|
|
119
|
+
if (option) {
|
|
120
|
+
this.pluginBus.selectOptions.optionsGatherer.options.forEach((option) => option.active = false);
|
|
121
|
+
option.active = true;
|
|
122
|
+
this._popup.invalidateVisuals();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
//select first
|
|
126
|
+
else {
|
|
127
|
+
this._activateSelectedOrFirst();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
const popup = this.ngSelectPlugins[POPUP];
|
|
133
|
+
if (this._popup && this._popup != popup) {
|
|
134
|
+
this._popup = null;
|
|
135
|
+
}
|
|
136
|
+
if (!this._popup) {
|
|
137
|
+
this._popup = popup;
|
|
138
|
+
}
|
|
139
|
+
if (!this._liveSearchFocusSubscription) {
|
|
140
|
+
this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() => {
|
|
141
|
+
var _a;
|
|
142
|
+
(_a = this.inputElementChild) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
if (!this._updateDisplayedValueSubscription) {
|
|
146
|
+
this._updateDisplayedValueSubscription = this.pluginBus.updateDisplayedValue.subscribe(() => {
|
|
147
|
+
this.handleBlur();
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
151
|
+
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
152
|
+
this._valueChangedSubscription.unsubscribe();
|
|
153
|
+
this._valueChangedSubscription = null;
|
|
154
|
+
this._valueHandler = null;
|
|
155
|
+
}
|
|
156
|
+
if (!this._valueHandler) {
|
|
157
|
+
this._valueHandler = valueHandler;
|
|
158
|
+
this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
|
|
159
|
+
var _a, _b;
|
|
160
|
+
const selected = this._valueHandler.selectedOptions;
|
|
161
|
+
if (!selected) {
|
|
162
|
+
this.searchValueDisplayed = '';
|
|
163
|
+
this.handleInput('');
|
|
164
|
+
this._changeDetector.detectChanges();
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
//reset filtering of available options
|
|
168
|
+
this.handleInput(null);
|
|
169
|
+
if (Array.isArray(selected)) {
|
|
170
|
+
this.searchValueDisplayed = '';
|
|
171
|
+
(_a = this.inputElementChild) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
172
|
+
this._changeDetector.detectChanges();
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
//set selected into live search
|
|
176
|
+
this.searchValueDisplayed = selected.text;
|
|
177
|
+
this._changeDetector.detectChanges();
|
|
178
|
+
//select current text
|
|
179
|
+
(_b = this.inputElementChild) === null || _b === void 0 ? void 0 : _b.nativeElement.select();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
this._initTexts();
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
187
|
+
*/
|
|
188
|
+
initOptions() {
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Explicitly runs invalidation of content (change detection)
|
|
192
|
+
*/
|
|
193
|
+
invalidateVisuals() {
|
|
194
|
+
this._changeDetector.detectChanges();
|
|
195
|
+
}
|
|
196
|
+
//######################### public methods - template bindings #########################
|
|
197
|
+
/**
|
|
198
|
+
* Handle input value
|
|
199
|
+
* @param value - Value of input
|
|
200
|
+
* @param inputChange - Indication that change was by input event of input
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
handleInput(value, inputChange = false) {
|
|
204
|
+
this.searchValue = value;
|
|
205
|
+
this.searchValueChange.emit();
|
|
206
|
+
if (inputChange) {
|
|
207
|
+
this.pluginBus.showHidePopup.emit(true);
|
|
208
|
+
this.searchValueDisplayed = value;
|
|
209
|
+
//single value select
|
|
210
|
+
if (!this.pluginBus.selectOptions.multiple) {
|
|
211
|
+
//cancel value
|
|
212
|
+
if (this._options.nonExistingCancel) {
|
|
213
|
+
this._valueHandler.setValue(null);
|
|
214
|
+
}
|
|
215
|
+
//empty string cancels value
|
|
216
|
+
else if (this._options.emptyCancel && isPresent(value) && !value.length) {
|
|
217
|
+
this._valueHandler.setValue(null);
|
|
218
|
+
}
|
|
219
|
+
//otherwise keep last value
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Handles focus event
|
|
225
|
+
* @param element - Element that got focus
|
|
226
|
+
* @param show - Indication whether show popup
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
handleFocus(element, show = false) {
|
|
230
|
+
element.select();
|
|
231
|
+
this._activateSelectedOrFirst();
|
|
232
|
+
if (show) {
|
|
233
|
+
this.pluginBus.showHidePopup.emit(true);
|
|
234
|
+
}
|
|
235
|
+
this.pluginBus.focus.emit();
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Handles blur of live search
|
|
239
|
+
*/
|
|
240
|
+
handleBlur() {
|
|
241
|
+
//not multiple and selected value
|
|
242
|
+
if (!this.pluginBus.selectOptions.multiple) {
|
|
243
|
+
//use selected text
|
|
244
|
+
if (this._valueHandler.selectedOptions && !Array.isArray(this._valueHandler.selectedOptions)) {
|
|
245
|
+
this.searchValueDisplayed = this._valueHandler.selectedOptions.text;
|
|
246
|
+
}
|
|
247
|
+
//reset text
|
|
248
|
+
else {
|
|
249
|
+
this.searchValueDisplayed = '';
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
//reset text
|
|
253
|
+
else {
|
|
254
|
+
this.searchValueDisplayed = '';
|
|
255
|
+
}
|
|
256
|
+
//reset available options
|
|
257
|
+
this.searchValue = null;
|
|
258
|
+
this.searchValueChange.emit();
|
|
259
|
+
this._changeDetector.detectChanges();
|
|
260
|
+
}
|
|
261
|
+
//######################### protected methods #########################
|
|
262
|
+
/**
|
|
263
|
+
* Initialize texts
|
|
264
|
+
*/
|
|
265
|
+
_initTexts() {
|
|
266
|
+
Object.keys(this.options.texts).forEach(key => {
|
|
267
|
+
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
268
|
+
});
|
|
269
|
+
this._changeDetector.detectChanges();
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Activates first available option or selected option
|
|
273
|
+
*/
|
|
274
|
+
_activateSelectedOrFirst() {
|
|
275
|
+
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
276
|
+
const selectedOptions = this.availableOptions.filter(itm => itm.selected);
|
|
277
|
+
//nothing active, nothing selected
|
|
278
|
+
if (!activeOption && !selectedOptions.length) {
|
|
279
|
+
const first = this.availableOptions[0];
|
|
280
|
+
if (first) {
|
|
281
|
+
first.active = true;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
//nothing active
|
|
285
|
+
else if (!activeOption) {
|
|
286
|
+
//last selected as sactive
|
|
287
|
+
selectedOptions[selectedOptions.length - 1].active = true;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
EditLiveSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EditLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: STRING_LOCALIZATION }, { token: LIVE_SEARCH_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
292
|
+
EditLiveSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: EditLiveSearchComponent, selector: "ng-edit-live-search", viewQueries: [{ propertyName: "liveSearchElementChild", first: true, predicate: ["liveSearchElement"], descendants: true }, { propertyName: "inputElementChild", first: true, predicate: ["inputElement"], descendants: true }], ngImport: i0, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>", styles: [".edit-wrapper-div\r\n{\r\n width: 100%;\r\n}\r\n\r\n.edit-control\r\n{\r\n padding: 4px;\r\n height: 26px;\r\n width: 100%;\r\n border: none;\r\n outline: none;\r\n}"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EditLiveSearchComponent, decorators: [{
|
|
294
|
+
type: Component,
|
|
295
|
+
args: [{ selector: 'ng-edit-live-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>", styles: [".edit-wrapper-div\r\n{\r\n width: 100%;\r\n}\r\n\r\n.edit-control\r\n{\r\n padding: 4px;\r\n height: 26px;\r\n width: 100%;\r\n border: none;\r\n outline: none;\r\n}"] }]
|
|
296
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
297
|
+
type: Inject,
|
|
298
|
+
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
299
|
+
}, {
|
|
300
|
+
type: Optional
|
|
301
|
+
}] }, { type: i1.PluginBus, decorators: [{
|
|
302
|
+
type: Optional
|
|
303
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
304
|
+
type: Inject,
|
|
305
|
+
args: [STRING_LOCALIZATION]
|
|
306
|
+
}] }, { type: undefined, decorators: [{
|
|
307
|
+
type: Inject,
|
|
308
|
+
args: [LIVE_SEARCH_OPTIONS]
|
|
309
|
+
}, {
|
|
310
|
+
type: Optional
|
|
311
|
+
}] }]; }, propDecorators: { liveSearchElementChild: [{
|
|
312
|
+
type: ViewChild,
|
|
313
|
+
args: ['liveSearchElement']
|
|
314
|
+
}], inputElementChild: [{
|
|
315
|
+
type: ViewChild,
|
|
316
|
+
args: ['inputElement']
|
|
317
|
+
}] } });
|
|
318
|
+
//# sourceMappingURL=editLiveSearch.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/edit/editLiveSearch.component.ts","../../../../../src/plugins/liveSearch/edit/editLiveSearch.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAC,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,MAAM,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAMjD,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAE7C,OAA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BAAqB,mBAGd,uBAAuB,CAAC,MAAM;;0BA4HlC,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,mBAAmB;;0BAAG,QAAQ;4CAf3C,sBAAsB;sBAD5B,SAAS;uBAAC,mBAAmB;gBAQvB,iBAAiB;sBADvB,SAAS;uBAAC,cAAc","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter, OnDestroy} from '@angular/core';\nimport {STRING_LOCALIZATION, StringLocalization} from '@anglr/common';\nimport {extend, isPresent} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {EditLiveSearchOptions, EditLiveSearch} from './editLiveSearch.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {LIVE_SEARCH_OPTIONS} from '../types';\nimport {ValueHandler} from '../../valueHandler';\nimport {VALUE_HANDLER} from '../../valueHandler/types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {LiveSearchTexts} from '../liveSearch.interface';\n\n/**\n * Default options for live search\n * @internal\n */\nconst defaultOptions: EditLiveSearchOptions =\n{\n cssClasses:\n {\n wrapperDiv: 'edit-wrapper-div',\n input: 'edit-control'\n },\n texts:\n {\n inputPlaceholder: 'Select item'\n\n },\n keepSearchValue: false,\n nonExistingCancel: false,\n emptyCancel: false\n};\n\n/**\n * Component used for obtaining edit live search html element\n */\n@Component(\n{\n selector: 'ng-edit-live-search',\n templateUrl: 'editLiveSearch.component.html',\n styleUrls: ['editLiveSearch.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EditLiveSearchComponent implements EditLiveSearch, NgSelectPlugin<EditLiveSearchOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Popup plugin used within `NgSelect`\n */\n protected _popup: Popup;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for changes in texts\n */\n protected _textsChangedSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Subscription for live search focus request\n */\n protected _liveSearchFocusSubscription: Subscription;\n\n /**\n * Subscription for update displayed value request\n */\n protected _updateDisplayedValueSubscription: Subscription;\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: EditLiveSearchOptions;\n\n //######################### protected properties #########################\n\n /**\n * Gets currently available options\n */\n protected get availableOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.availableOptions;\n }\n\n //######################### public properties - implementation of EditLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): EditLiveSearchOptions\n {\n return this._options;\n }\n public set options(options: EditLiveSearchOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this.liveSearchElementChild.nativeElement;\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - template bindings #########################\n\n /**\n * Current value that is displayed\n * @internal\n */\n public searchValueDisplayed: string = null;\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: LiveSearchTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * View child that represents live search element\n * @internal\n */\n @ViewChild('liveSearchElement')\n public liveSearchElementChild: ElementRef<HTMLElement>;\n\n /**\n * View child that represents input element\n * @internal\n */\n @ViewChild('inputElement')\n public inputElementChild: ElementRef<HTMLInputElement>;\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(STRING_LOCALIZATION) protected _stringLocalization: StringLocalization,\n @Inject(LIVE_SEARCH_OPTIONS) @Optional() options?: EditLiveSearchOptions)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._liveSearchFocusSubscription?.unsubscribe();\n this._liveSearchFocusSubscription = null;\n\n this._updateDisplayedValueSubscription?.unsubscribe();\n this._updateDisplayedValueSubscription = null;\n }\n\n //######################### public methods - implementation of EditLiveSearch #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\n\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() =>\n {\n //do not change active if active is visible\n if(!this.pluginBus.selectOptions.optionsGatherer.availableOptions.find((option: ɵNgSelectOption) => option.active))\n {\n //only when input is filled at least with one char\n if(this.searchValue)\n {\n const option: ɵNgSelectOption = this.pluginBus.selectOptions.optionsGatherer.availableOptions.find(itm => this.pluginBus.selectOptions.liveSearchFilter(this.searchValue, this.pluginBus.selectOptions.normalizer)(itm));\n \n if(option)\n {\n this.pluginBus.selectOptions.optionsGatherer.options.forEach((option: ɵNgSelectOption) => option.active = false);\n option.active = true;\n this._popup.invalidateVisuals();\n }\n }\n //select first\n else\n {\n this._activateSelectedOrFirst();\n }\n }\n });\n }\n\n const popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._popup = null;\n }\n\n if(!this._popup)\n {\n this._popup = popup;\n }\n\n if(!this._liveSearchFocusSubscription)\n {\n this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() =>\n {\n this.inputElementChild?.nativeElement.focus();\n });\n }\n\n if(!this._updateDisplayedValueSubscription)\n {\n this._updateDisplayedValueSubscription = this.pluginBus.updateDisplayedValue.subscribe(() =>\n {\n this.handleBlur();\n });\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n const selected = this._valueHandler.selectedOptions;\n\n if(!selected)\n {\n this.searchValueDisplayed = '';\n this.handleInput('');\n this._changeDetector.detectChanges();\n\n return;\n }\n\n //reset filtering of available options\n this.handleInput(null);\n\n if(Array.isArray(selected))\n {\n this.searchValueDisplayed = '';\n this.inputElementChild?.nativeElement.focus();\n this._changeDetector.detectChanges();\n }\n else\n {\n //set selected into live search\n this.searchValueDisplayed = selected.text;\n this._changeDetector.detectChanges();\n\n //select current text\n this.inputElementChild?.nativeElement.select();\n }\n });\n }\n\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handle input value\n * @param value - Value of input\n * @param inputChange - Indication that change was by input event of input\n * @internal\n */\n public handleInput(value: string, inputChange: boolean = false)\n {\n this.searchValue = value;\n this.searchValueChange.emit();\n\n if(inputChange)\n {\n this.pluginBus.showHidePopup.emit(true);\n this.searchValueDisplayed = value;\n\n //single value select\n if(!this.pluginBus.selectOptions.multiple)\n {\n //cancel value\n if(this._options.nonExistingCancel)\n {\n this._valueHandler.setValue(null);\n }\n //empty string cancels value\n else if(this._options.emptyCancel && isPresent(value) && !value.length)\n {\n this._valueHandler.setValue(null);\n }\n //otherwise keep last value\n }\n }\n }\n\n /**\n * Handles focus event\n * @param element - Element that got focus\n * @param show - Indication whether show popup\n * @internal\n */\n public handleFocus(element: HTMLInputElement, show: boolean = false)\n {\n element.select();\n\n this._activateSelectedOrFirst();\n\n if(show)\n {\n this.pluginBus.showHidePopup.emit(true);\n }\n\n this.pluginBus.focus.emit();\n }\n\n /**\n * Handles blur of live search\n */\n public handleBlur()\n {\n //not multiple and selected value\n if(!this.pluginBus.selectOptions.multiple)\n {\n //use selected text\n if(this._valueHandler.selectedOptions && !Array.isArray(this._valueHandler.selectedOptions))\n {\n this.searchValueDisplayed = this._valueHandler.selectedOptions.text;\n }\n //reset text\n else\n {\n this.searchValueDisplayed = '';\n }\n }\n //reset text\n else\n {\n this.searchValueDisplayed = '';\n }\n\n //reset available options\n this.searchValue = null;\n this.searchValueChange.emit();\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof LiveSearchTexts] = this._stringLocalization.get(this.options.texts[key as keyof LiveSearchTexts]);\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Activates first available option or selected option\n */\n protected _activateSelectedOrFirst()\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n const selectedOptions = this.availableOptions.filter(itm => itm.selected);\n\n //nothing active, nothing selected\n if(!activeOption && !selectedOptions.length)\n {\n const first = this.availableOptions[0];\n\n if(first)\n {\n first.active = true;\n }\n }\n //nothing active\n else if(!activeOption)\n {\n //last selected as sactive\n selectedOptions[selectedOptions.length - 1].active = true;\n }\n }\n}","<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/edit/editLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearch, LiveSearchOptions} from '../liveSearch.interface';\n\n/**\n * Css classes for edit live search\n */\nexport interface CssClassesEditLiveSearch\n{\n /**\n * Applied to wrapper div around input\n */\n wrapperDiv?: string;\n\n /**\n * Applied to input that represents live search\n */\n input?: string;\n}\n\n/**\n * Edit live search options\n */\nexport interface EditLiveSearchOptions extends LiveSearchOptions<CssClassesEditLiveSearch>\n{\n /**\n * Indication whether keep search value after popup close\n */\n keepSearchValue?: boolean;\n\n /**\n * Indication whether cancel selected value if non existing value is in live search, works for single value\n */\n nonExistingCancel?: boolean;\n\n /**\n * Indicaiton whether empty string in live search cancel selected value\n */\n emptyCancel?: boolean;\n}\n\n/**\n * Public API for 'EditLiveSearchComponent'\n */\nexport interface EditLiveSearch extends LiveSearch\n{\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/liveSearch/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './liveSearch.interface';\n\nexport * from './basic/basicLiveSearch.interface';\nexport * from './no/noLiveSearch.interface';\nexport * from './edit/editLiveSearch.interface';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveSearch.interface.js","sourceRoot":"","sources":["../../../../src/plugins/liveSearch/liveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectPlugin, VisualPluginOptions} from '../../misc';\n\n/**\n * Texts that are used within LiveSearch\n */\nexport interface LiveSearchTexts\n{\n /**\n * Displayed when nothing was entered into input\n */\n inputPlaceholder?: string;\n}\n\n/**\n * Options for live search plugin\n */\nexport interface LiveSearchOptions<TCssClasses = any> extends VisualPluginOptions<TCssClasses>\n{\n /**\n * Texts that are used within any LiveSearch\n */\n texts?: LiveSearchTexts;\n}\n\n/**\n * Keyboard handler plugin interface\n */\nexport interface LiveSearch extends NgSelectPlugin\n{\n /**\n * HTML element that represents live search\n */\n readonly liveSearchElement: HTMLElement;\n\n /**\n * Current value of live search\n */\n readonly searchValue: string;\n\n /**\n * Occurs when current value of live search changes\n */\n readonly searchValueChange: EventEmitter<void>;\n}"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DOCUMENT } from '@angular/common';
|
|
3
|
+
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Component used for no live search
|
|
7
|
+
*/
|
|
8
|
+
export class NoLiveSearchComponent {
|
|
9
|
+
//######################### constructor #########################
|
|
10
|
+
constructor(ngSelectPlugins, pluginElement, _document) {
|
|
11
|
+
this.ngSelectPlugins = ngSelectPlugins;
|
|
12
|
+
this.pluginElement = pluginElement;
|
|
13
|
+
this._document = _document;
|
|
14
|
+
/**
|
|
15
|
+
* Current value of live search
|
|
16
|
+
*/
|
|
17
|
+
this.searchValue = null;
|
|
18
|
+
/**
|
|
19
|
+
* Occurs when current value of live search changes
|
|
20
|
+
*/
|
|
21
|
+
this.searchValueChange = new EventEmitter();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* HTML element that represents live search
|
|
25
|
+
*/
|
|
26
|
+
get liveSearchElement() {
|
|
27
|
+
return this._document.createElement('span');
|
|
28
|
+
}
|
|
29
|
+
//######################### public methods - implementation of NoLiveSearch #########################
|
|
30
|
+
/**
|
|
31
|
+
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
32
|
+
*/
|
|
33
|
+
initialize() {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
37
|
+
*/
|
|
38
|
+
initOptions() {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Explicitly runs invalidation of content (change detection)
|
|
42
|
+
*/
|
|
43
|
+
invalidateVisuals() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
NoLiveSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NoLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
NoLiveSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: NoLiveSearchComponent, selector: "ng-no-live-search", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NoLiveSearchComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: 'ng-no-live-search',
|
|
52
|
+
template: '',
|
|
53
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
54
|
+
}]
|
|
55
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
56
|
+
type: Inject,
|
|
57
|
+
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
58
|
+
}, {
|
|
59
|
+
type: Optional
|
|
60
|
+
}] }, { type: i0.ElementRef }, { type: Document, decorators: [{
|
|
61
|
+
type: Inject,
|
|
62
|
+
args: [DOCUMENT]
|
|
63
|
+
}] }]; } });
|
|
64
|
+
//# sourceMappingURL=noLiveSearch.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/no/noLiveSearch.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAKzC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;;AAG5E;;GAEG;AAOH,MAAM,OAAO,qBAAqB;IAuC9B,iEAAiE;IACjE,YAAmE,eAAwC,EACxF,aAAyB,EACN,SAAmB;QAFU,oBAAe,GAAf,eAAe,CAAyB;QACxF,kBAAa,GAAb,aAAa,CAAY;QACN,cAAS,GAAT,SAAS,CAAU;QAbzD;;WAEG;QACI,gBAAW,GAAW,IAAI,CAAC;QAElC;;WAEG;QACI,sBAAiB,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAOxE,CAAC;IAvBD;;OAEG;IACH,IAAW,iBAAiB;QAExB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IAmBD,qGAAqG;IAErG;;OAEG;IACI,UAAU;IAEjB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;;kHAnEQ,qBAAqB,kBAwCV,0BAA0B,uDAE1B,QAAQ;sGA1CnB,qBAAqB,yDAHpB,EAAE;2FAGH,qBAAqB;kBANjC,SAAS;mBACV;oBACI,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyCgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;uDAER,QAAQ;0BAA5C,MAAM;2BAAC,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, EventEmitter} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {NoLiveSearchOptions, NoLiveSearch} from './noLiveSearch.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Component used for no live search\n */\n@Component(\n{\n selector: 'ng-no-live-search',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoLiveSearchComponent implements NoLiveSearch, NgSelectPlugin<NoLiveSearchOptions>\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: NoLiveSearchOptions;\n\n //######################### public properties - implementation of NoLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public options: NoLiveSearchOptions;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this._document.createElement('span');\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(DOCUMENT) private _document: Document)\n {\n }\n\n //######################### public methods - implementation of NoLiveSearch #########################\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}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/no/noLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearch, LiveSearchOptions} from '../liveSearch.interface';\n\n/**\n * No live search options\n */\nexport interface NoLiveSearchOptions extends LiveSearchOptions\n{\n}\n\n/**\n * Public API for 'NoLiveSearchComponent'\n */\nexport interface NoLiveSearch extends LiveSearch\n{\n}"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Constant used for accessing live search plugin in NgSelect
|
|
4
|
+
*/
|
|
5
|
+
export const LIVE_SEARCH = 'LIVE_SEARCH';
|
|
6
|
+
/**
|
|
7
|
+
* Token for injecting options for live search plugin
|
|
8
|
+
*/
|
|
9
|
+
export const LIVE_SEARCH_OPTIONS = new InjectionToken('LIVE_SEARCH_OPTIONS');
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/liveSearch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAsC,IAAI,cAAc,CAAoB,qBAAqB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {LiveSearchOptions} from './liveSearch.interface';\n\n/**\n * Constant used for accessing live search plugin in NgSelect\n */\nexport const LIVE_SEARCH = 'LIVE_SEARCH';\n\n/**\n * Token for injecting options for live search plugin\n */\nexport const LIVE_SEARCH_OPTIONS: InjectionToken<LiveSearchOptions> = new InjectionToken<LiveSearchOptions>('LIVE_SEARCH_OPTIONS');"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef } from '@angular/core';
|
|
2
|
+
import { STRING_LOCALIZATION } from '@anglr/common';
|
|
3
|
+
import { extend } from '@jscrpt/common';
|
|
4
|
+
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
5
|
+
import { NORMAL_STATE_OPTIONS } from '../types';
|
|
6
|
+
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
7
|
+
import { NormalStateAbstractComponent } from '../normalStateAbstract.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
10
|
+
import * as i2 from "@angular/common";
|
|
11
|
+
import * as i3 from "../../../pipes/ngSelectValue.pipe";
|
|
12
|
+
/**
|
|
13
|
+
* Default options for normal state
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
const defaultOptions = {
|
|
17
|
+
cssClasses: {
|
|
18
|
+
normalStateElement: 'btn btn-select',
|
|
19
|
+
selectedCarret: 'selected-caret fa fa-caret-down',
|
|
20
|
+
selectedValue: 'selected-value'
|
|
21
|
+
},
|
|
22
|
+
texts: {
|
|
23
|
+
nothingSelected: 'Nothing selected'
|
|
24
|
+
},
|
|
25
|
+
optionDisplayText: option => option.text
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Component used for rendering basic simple normal state of select
|
|
29
|
+
*/
|
|
30
|
+
export class BasicNormalStateComponent extends NormalStateAbstractComponent {
|
|
31
|
+
//######################### constructor #########################
|
|
32
|
+
constructor(ngSelectPlugins, pluginBus, pluginElement, changeDetector, stringLocalization, options) {
|
|
33
|
+
super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, stringLocalization);
|
|
34
|
+
this._options = extend(true, {}, defaultOptions, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
BasicNormalStateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BasicNormalStateComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: STRING_LOCALIZATION }, { token: NORMAL_STATE_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
BasicNormalStateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: BasicNormalStateComponent, selector: "div.normal-state", usesInheritance: true, ngImport: i0, template: "<ng-template #defaultLook>{{valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected: options?.optionDisplayText}}</ng-template>\r\n\r\n<button [ngClass]=\"options?.cssClasses?.normalStateElement\" (click)=\"pluginBus?.togglePopup.emit(); pluginBus?.liveSearchFocus.emit()\" (focus)=\"pluginBus?.focus?.emit()\" [disabled]=\"!!pluginBus?.selectOptions?.readonly\" type=\"button\" [title]=\"valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected\">\r\n <span [ngClass]=\"options?.cssClasses?.selectedValue\"><ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.normalStateTemplate || defaultLook; context: {$implicit: this}\"></ng-container></span>\r\n <span [ngClass]=\"options?.cssClasses?.selectedCarret\"></span>\r\n</button>", styles: ["button.btn-select\r\n{\r\n display: flex;\r\n width: 100%;\r\n padding: 5px 0px 4px 6px;\r\n background-color: #ffffff;\r\n background-image: none;\r\n border: 1px solid #cccccc;\r\n border-radius: 4px;\r\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;\r\n height: 28px;\r\n overflow: hidden;\r\n}\r\n\r\nbutton.btn-select:hover\r\n{\r\n background-color: #F2F2F2;\r\n}\r\n\r\nbutton.btn-select:active\r\n{\r\n box-shadow: 0 0 5px -1px #888888 inset;\r\n}\r\n\r\nbutton.btn-select .selected-value\r\n{\r\n flex: 1;\r\n text-align: left;\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\nbutton.btn-select .selected-caret\r\n{\r\n flex: 0 0 20px;\r\n align-self: center;\r\n}"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "ngSelectValue": i3.NgSelectValuePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BasicNormalStateComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: 'div.normal-state', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultLook>{{valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected: options?.optionDisplayText}}</ng-template>\r\n\r\n<button [ngClass]=\"options?.cssClasses?.normalStateElement\" (click)=\"pluginBus?.togglePopup.emit(); pluginBus?.liveSearchFocus.emit()\" (focus)=\"pluginBus?.focus?.emit()\" [disabled]=\"!!pluginBus?.selectOptions?.readonly\" type=\"button\" [title]=\"valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected\">\r\n <span [ngClass]=\"options?.cssClasses?.selectedValue\"><ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.normalStateTemplate || defaultLook; context: {$implicit: this}\"></ng-container></span>\r\n <span [ngClass]=\"options?.cssClasses?.selectedCarret\"></span>\r\n</button>", styles: ["button.btn-select\r\n{\r\n display: flex;\r\n width: 100%;\r\n padding: 5px 0px 4px 6px;\r\n background-color: #ffffff;\r\n background-image: none;\r\n border: 1px solid #cccccc;\r\n border-radius: 4px;\r\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;\r\n height: 28px;\r\n overflow: hidden;\r\n}\r\n\r\nbutton.btn-select:hover\r\n{\r\n background-color: #F2F2F2;\r\n}\r\n\r\nbutton.btn-select:active\r\n{\r\n box-shadow: 0 0 5px -1px #888888 inset;\r\n}\r\n\r\nbutton.btn-select .selected-value\r\n{\r\n flex: 1;\r\n text-align: left;\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\nbutton.btn-select .selected-caret\r\n{\r\n flex: 0 0 20px;\r\n align-self: center;\r\n}"] }]
|
|
42
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
43
|
+
type: Inject,
|
|
44
|
+
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
45
|
+
}, {
|
|
46
|
+
type: Optional
|
|
47
|
+
}] }, { type: i1.PluginBus, decorators: [{
|
|
48
|
+
type: Optional
|
|
49
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
50
|
+
type: Inject,
|
|
51
|
+
args: [STRING_LOCALIZATION]
|
|
52
|
+
}] }, { type: undefined, decorators: [{
|
|
53
|
+
type: Inject,
|
|
54
|
+
args: [NORMAL_STATE_OPTIONS]
|
|
55
|
+
}, {
|
|
56
|
+
type: Optional
|
|
57
|
+
}] }]; } });
|
|
58
|
+
//# sourceMappingURL=basicNormalState.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicNormalState.component.js","sourceRoot":"","sources":["../../../../../src/plugins/normalState/basic/basicNormalState.component.ts","../../../../../src/plugins/normalState/basic/basicNormalState.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AAC7H,OAAO,EAAqB,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,oBAAoB,EAAC,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAC,4BAA4B,EAAC,MAAM,kCAAkC,CAAC;;;;;AAE9E;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,UAAU,EACV;QACI,kBAAkB,EAAE,gBAAgB;QACpC,cAAc,EAAE,iCAAiC;QACjD,aAAa,EAAE,gBAAgB;KAClC;IACD,KAAK,EACL;QACI,eAAe,EAAE,kBAAkB;KACtC;IACD,iBAAiB,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI;CAC3C,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,yBAAwC,SAAQ,4BAAiG;IAE1J,iEAAiE;IACjE,YAA4D,eAAwC,EAC5E,SAAoB,EAChC,aAAyB,EACzB,cAAiC,EACJ,kBAAsC,EACzB,OAAiC;QAEnF,KAAK,CAAC,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAErF,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;;sHAbQ,yBAAyB,kBAGd,0BAA0B,iIAI1B,mBAAmB,aACnB,oBAAoB;0GAR/B,yBAAyB,+ECzCtC,qxBAKS;2FDoCI,yBAAyB;kBAPrC,SAAS;+BAEI,kBAAkB,mBAGX,uBAAuB,CAAC,MAAM;;0BAKlC,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,oBAAoB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, OnDestroy} from '@angular/core';\nimport {StringLocalization, STRING_LOCALIZATION} from '@anglr/common';\nimport {extend} from '@jscrpt/common';\n\nimport {BasicNormalStateOptions, BasicNormalState, CssClassesBasicNormalState} from './basicNormalState.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {NORMAL_STATE_OPTIONS} from '../types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {NormalStateAbstractComponent} from '../normalStateAbstract.component';\n\n/**\n * Default options for normal state\n * @internal\n */\nconst defaultOptions: BasicNormalStateOptions =\n{\n cssClasses:\n {\n normalStateElement: 'btn btn-select',\n selectedCarret: 'selected-caret fa fa-caret-down',\n selectedValue: 'selected-value'\n },\n texts:\n {\n nothingSelected: 'Nothing selected'\n },\n optionDisplayText: option => option.text\n};\n\n/**\n * Component used for rendering basic simple normal state of select\n */\n@Component(\n{\n selector: 'div.normal-state',\n templateUrl: 'basicNormalState.component.html',\n styleUrls: ['basicNormalState.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicNormalStateComponent<TValue = any> extends NormalStateAbstractComponent<CssClassesBasicNormalState, BasicNormalStateOptions<TValue>, TValue> implements BasicNormalState, NgSelectPlugin<BasicNormalStateOptions>, OnDestroy\n{\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() ngSelectPlugins: NgSelectPluginInstances,\n @Optional() pluginBus: PluginBus,\n pluginElement: ElementRef,\n changeDetector: ChangeDetectorRef,\n @Inject(STRING_LOCALIZATION) stringLocalization: StringLocalization,\n @Inject(NORMAL_STATE_OPTIONS) @Optional() options?: BasicNormalStateOptions)\n {\n super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, stringLocalization);\n\n this._options = extend(true, {}, defaultOptions, options);\n }\n}","<ng-template #defaultLook>{{valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected: options?.optionDisplayText}}</ng-template>\r\n\r\n<button [ngClass]=\"options?.cssClasses?.normalStateElement\" (click)=\"pluginBus?.togglePopup.emit(); pluginBus?.liveSearchFocus.emit()\" (focus)=\"pluginBus?.focus?.emit()\" [disabled]=\"!!pluginBus?.selectOptions?.readonly\" type=\"button\" [title]=\"valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected\">\r\n <span [ngClass]=\"options?.cssClasses?.selectedValue\"><ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.normalStateTemplate || defaultLook; context: {$implicit: this}\"></ng-container></span>\r\n <span [ngClass]=\"options?.cssClasses?.selectedCarret\"></span>\r\n</button>"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicNormalState.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/normalState/basic/basicNormalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState, NormalStateOptions} from '../normalState.interface';\n\n/**\n * Css classes for basic normal state\n */\nexport interface CssClassesBasicNormalState\n{\n /**\n * Applied to currently selected value, which is visible to user (default template)\n */\n selectedValue?: string;\n\n /**\n * Applied to \"carret\", indicating that it is select and there is more options available\n */\n selectedCarret?: string;\n\n /**\n * Applied to HTML element that represents normal default state visible to user\n */\n normalStateElement?: string;\n}\n\n/**\n * Basic normal state options\n */\nexport interface BasicNormalStateOptions<TValue = any> extends NormalStateOptions<CssClassesBasicNormalState, TValue>\n{\n}\n\n/**\n * Public API for 'BasicNormalStateComponent'\n */\nexport interface BasicNormalState extends NormalState\n{\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/normalState/components.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './normalStateAbstract.component';\nexport * from './basic/basicNormalState.component';\nexport * from './edit/editNormalState.component';"]}
|