@anglr/select 17.2.0 → 18.0.0-beta.20260805043138
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/.claude/skills/angular-developer/SKILL.md +130 -130
- package/.claude/skills/angular-developer/references/angular-animations.md +160 -160
- package/.claude/skills/angular-developer/references/angular-aria.md +410 -410
- package/.claude/skills/angular-developer/references/cli.md +86 -86
- package/.claude/skills/angular-developer/references/component-harnesses.md +59 -59
- package/.claude/skills/angular-developer/references/component-styling.md +91 -91
- package/.claude/skills/angular-developer/references/components.md +117 -117
- package/.claude/skills/angular-developer/references/creating-services.md +97 -97
- package/.claude/skills/angular-developer/references/data-resolvers.md +69 -69
- package/.claude/skills/angular-developer/references/define-routes.md +67 -67
- package/.claude/skills/angular-developer/references/defining-providers.md +72 -72
- package/.claude/skills/angular-developer/references/di-fundamentals.md +120 -120
- package/.claude/skills/angular-developer/references/e2e-testing.md +66 -66
- package/.claude/skills/angular-developer/references/effects.md +83 -83
- package/.claude/skills/angular-developer/references/hierarchical-injectors.md +43 -43
- package/.claude/skills/angular-developer/references/host-elements.md +80 -80
- package/.claude/skills/angular-developer/references/injection-context.md +63 -63
- package/.claude/skills/angular-developer/references/inputs.md +101 -101
- package/.claude/skills/angular-developer/references/linked-signal.md +59 -59
- package/.claude/skills/angular-developer/references/loading-strategies.md +61 -61
- package/.claude/skills/angular-developer/references/mcp.md +106 -106
- package/.claude/skills/angular-developer/references/migrations.md +30 -30
- package/.claude/skills/angular-developer/references/navigate-to-routes.md +69 -69
- package/.claude/skills/angular-developer/references/outputs.md +86 -86
- package/.claude/skills/angular-developer/references/reactive-forms.md +122 -122
- package/.claude/skills/angular-developer/references/rendering-strategies.md +44 -44
- package/.claude/skills/angular-developer/references/resource.md +77 -77
- package/.claude/skills/angular-developer/references/route-animations.md +56 -56
- package/.claude/skills/angular-developer/references/route-guards.md +52 -52
- package/.claude/skills/angular-developer/references/router-lifecycle.md +45 -45
- package/.claude/skills/angular-developer/references/router-testing.md +87 -87
- package/.claude/skills/angular-developer/references/show-routes-with-outlets.md +68 -68
- package/.claude/skills/angular-developer/references/signal-forms.md +897 -897
- package/.claude/skills/angular-developer/references/signals-overview.md +94 -94
- package/.claude/skills/angular-developer/references/tailwind-css.md +69 -69
- package/.claude/skills/angular-developer/references/template-driven-forms.md +114 -114
- package/.claude/skills/angular-developer/references/testing-fundamentals.md +66 -66
- package/.github/instructions/typescript/code-conventions.md +7 -7
- package/.github/instructions/typescript/comments.md +40 -40
- package/.github/instructions/typescript/formatting.md +41 -41
- package/.github/instructions/typescript/naming-conventions.md +6 -6
- package/es2022/extensions/src/extensions/getSearch.js.map +1 -1
- package/es2022/extensions/src/extensions/getSelectedOption.js.map +1 -1
- package/es2022/extensions/src/extensions/getSelectedOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/getValue.js.map +1 -1
- package/es2022/extensions/src/extensions/setReadonly.js.map +1 -1
- package/es2022/extensions/src/extensions/setValue.js.map +1 -1
- package/es2022/extensions/src/index.js.map +1 -1
- package/es2022/src/components/index.js.map +1 -1
- package/es2022/src/components/option/option.component.js.map +1 -1
- package/es2022/src/components/optionGroup/optgroup.component.js.map +1 -1
- package/es2022/src/components/select/select.component.js +2 -2
- package/es2022/src/components/select/select.component.js.map +1 -1
- package/es2022/src/decorators/index.js.map +1 -1
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js.map +1 -1
- package/es2022/src/directives/highlightInstance/highlightInstance.directive.js.map +1 -1
- package/es2022/src/directives/highlightSearch/highlightSearch.directive.js.map +1 -1
- package/es2022/src/directives/highlightText/highlightText.directive.js.map +1 -1
- package/es2022/src/directives/index.js.map +1 -1
- package/es2022/src/directives/normalStateTagTemplate/normalStateTagTemplate.directive.js.map +1 -1
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js.map +1 -1
- package/es2022/src/directives/optionGroupTemplate/optionGroupTemplate.directive.js.map +1 -1
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js.map +1 -1
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js.map +1 -1
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js.map +1 -1
- package/es2022/src/directives/selectEdit/selectEdit.directive.js.map +1 -1
- package/es2022/src/directives/selectFormControl/selectFormControl.directive.js.map +1 -1
- package/es2022/src/directives/selectMultipleKeepPopup/selectMultipleKeepPopup.directive.js.map +1 -1
- package/es2022/src/directives/selectNoCarret/selectNoCarret.directive.js.map +1 -1
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js.map +1 -1
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js.map +1 -1
- package/es2022/src/index.js.map +1 -1
- package/es2022/src/interfaces/index.js.map +1 -1
- package/es2022/src/interfaces/initState/initState.interface.js.map +1 -1
- package/es2022/src/interfaces/keyboardAction/keyboardAction.interface.js.map +1 -1
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js.map +1 -1
- package/es2022/src/interfaces/normalStateTagContext/normalStateTagContext.interface.js.map +1 -1
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js.map +1 -1
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js.map +1 -1
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/index.js.map +1 -1
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/keyboardHandler/simpleKeyboardHandler.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/liveSearch/editLiveSearch.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/liveSearch/filterLiveSearch.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/liveSearch/liveSearch.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/normalState/editNormalState.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/normalState/normalState.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/normalState/simpleNormalState.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/optionsHandler/simpleOptionsHandler.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/popup/popup.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/popup/simplePopup.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/positioner/commonPositioner.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/positioner/popoverPositioner.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/positioner/positioner.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/readonlyState/readonlyState.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/valueHandler/dynamicValueHandler.interface.js.map +1 -1
- package/es2022/src/interfaces/plugins/valueHandler/valueHandler.interface.js.map +1 -1
- package/es2022/src/interfaces/popupContext/popupContext.interface.js.map +1 -1
- package/es2022/src/interfaces/selectApi/selectApi.interface.js.map +1 -1
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js.map +1 -1
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js.map +1 -1
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js.map +1 -1
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js.map +1 -1
- package/es2022/src/interfaces/selectOption/selectOption.interface.js.map +1 -1
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js.map +1 -1
- package/es2022/src/interfaces/selectOptionState/selectOptionState.interface.js.map +1 -1
- package/es2022/src/interfaces/selectOptionStateSyntetic/selectOptionStateSyntetic.interface.js.map +1 -1
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js.map +1 -1
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js.map +1 -1
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js.map +1 -1
- package/es2022/src/interfaces/tempValue/tempValue.interface.js.map +1 -1
- package/es2022/src/interfaces/templateGatherer/templateGatherer.interface.js.map +1 -1
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js.map +1 -1
- package/es2022/src/misc/classes/codeOptionsGatherer/codeOptionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/classes/index.js.map +1 -1
- package/es2022/src/misc/classes/selectBus/selectBus.js.map +1 -1
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js.map +1 -1
- package/es2022/src/misc/enums.js.map +1 -1
- package/es2022/src/misc/providers.js.map +1 -1
- package/es2022/src/misc/tokens.js.map +1 -1
- package/es2022/src/misc/types.js.map +1 -1
- package/es2022/src/misc/utils.js.map +1 -1
- package/es2022/src/modules/index.js.map +1 -1
- package/es2022/src/modules/select.module.js.map +1 -1
- package/es2022/src/pipes/addNewOption/addNewOption.pipe.js.map +1 -1
- package/es2022/src/pipes/displayOptionValue/displayOptionValue.pipe.js.map +1 -1
- package/es2022/src/pipes/displayValue/displayValue.pipe.js.map +1 -1
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js.map +1 -1
- package/es2022/src/pipes/groupedListOptions/groupedListOptions.pipe.js.map +1 -1
- package/es2022/src/pipes/hasValue/hasValue.pipe.js.map +1 -1
- package/es2022/src/pipes/index.js.map +1 -1
- package/es2022/src/pipes/optionCssClasses/optionCssClasses.pipe.js.map +1 -1
- package/es2022/src/plugins/index.js.map +1 -1
- package/es2022/src/plugins/interactions/index.js.map +1 -1
- package/es2022/src/plugins/interactions/simpleInteractions/simpleInteractions.component.js.map +1 -1
- package/es2022/src/plugins/keyboardHandler/index.js.map +1 -1
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js.map +1 -1
- package/es2022/src/plugins/liveSearch/editLiveSearch/editLiveSearch.component.js +2 -2
- package/es2022/src/plugins/liveSearch/editLiveSearch/editLiveSearch.component.js.map +1 -1
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js.map +1 -1
- package/es2022/src/plugins/liveSearch/index.js.map +1 -1
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js.map +1 -1
- package/es2022/src/plugins/normalState/editNormalState/editNormalState.component.js +2 -2
- package/es2022/src/plugins/normalState/editNormalState/editNormalState.component.js.map +1 -1
- package/es2022/src/plugins/normalState/index.js.map +1 -1
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js +5 -6
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js.map +1 -1
- package/es2022/src/plugins/optionsHandler/index.js.map +1 -1
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js.map +1 -1
- package/es2022/src/plugins/optionsHandler/optionsHandlerBase.js.map +1 -1
- package/es2022/src/plugins/optionsHandler/simpleOptionsHandler/simpleOptionsHandler.component.js.map +1 -1
- package/es2022/src/plugins/popup/index.js.map +1 -1
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js +2 -2
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js.map +1 -1
- package/es2022/src/plugins/positioner/commonPositioner/commonPositioner.component.js.map +1 -1
- package/es2022/src/plugins/positioner/index.js.map +1 -1
- package/es2022/src/plugins/positioner/noPositioner/noPositioner.component.js.map +1 -1
- package/es2022/src/plugins/positioner/popoverPositioner/popoverPositioner.component.js.map +1 -1
- package/es2022/src/plugins/valueHandler/dynamicValueHandler/dynamicValueHandler.component.js.map +1 -1
- package/es2022/src/plugins/valueHandler/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js.map +1 -1
- package/package.json +125 -125
- package/src/components/select/select.component.css +5 -5
- package/src/interfaces/plugins/normalState/simpleNormalState.interface.d.ts +1 -5
- package/src/interfaces/plugins/normalState/simpleNormalState.interface.d.ts.map +1 -1
- package/src/plugins/liveSearch/editLiveSearch/editLiveSearch.component.html +19 -19
- package/src/plugins/normalState/editNormalState/editNormalState.component.html +50 -50
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.html +36 -37
- package/src/plugins/popup/simplePopup/simplePopup.component.html +56 -56
- package/styles/components/_liveSearch.scss +32 -32
- package/styles/components/_normalState.scss +116 -116
- package/styles/components/_popup.scss +107 -107
- package/styles/components/_select.scss +14 -14
- package/styles/core/_defaultTheme.scss +105 -105
- package/styles/core/_misc.scss +34 -34
- package/styles/core/_mixins.scss +29 -29
- package/styles/index.scss +2 -2
- package/styles/themes/dark.scss +63 -63
- package/styles/themes/light.scss +64 -64
- package/version.bak +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,yDAAyD,CAAC;AACxE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,WAAW,CAAC;AAC1B,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,iEAAiE,CAAC;AAChF,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iCAAiC,CAAC;AAChD,cAAc,qDAAqD,CAAC","sourcesContent":["export * from './initState/initState.interface';\nexport * from './keyboardAction/keyboardAction.interface';\nexport * from './normalStateContext/normalStateContext.interface';\nexport * from './normalStateTagContext/normalStateTagContext.interface';\nexport * from './optionsGatherer/optionsGatherer.interface';\nexport * from './pluginDescription/pluginDescription.interface';\nexport * from './pluginOptions/pluginOptions.interface';\nexport * from './plugins';\nexport * from './popupContext/popupContext.interface';\nexport * from './selectApi/selectApi.interface';\nexport * from './selectBusOptions/selectBusOptions.interface';\nexport * from './selectCssClasses/selectCssClasses.interface';\nexport * from './selectEvent/selectEvent.interface';\nexport * from './selectEvents/selectEvents.interface';\nexport * from './selectOption/selectOption.interface';\nexport * from './selectOptionGroup/selectOptionGroup.interface';\nexport * from './selectOptions/selectOptions.interface';\nexport * from './selectOptionState/selectOptionState.interface';\nexport * from './selectOptionStateSyntetic/selectOptionStateSyntetic.interface';\nexport * from './selectOptions/selectOptions.interface';\nexport * from './selectPlugin/selectPlugin.interface';\nexport * from './selectPluginTypes/selectPluginTypes.interface';\nexport * from './templateGatherer/templateGatherer.interface';\nexport * from './tempValue/tempValue.interface';\nexport * from './visualPluginOptions/visualPluginOptions.interface';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,yDAAyD,CAAC;AACxE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,WAAW,CAAC;AAC1B,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,iEAAiE,CAAC;AAChF,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iCAAiC,CAAC;AAChD,cAAc,qDAAqD,CAAC","sourcesContent":["export * from './initState/initState.interface';\r\nexport * from './keyboardAction/keyboardAction.interface';\r\nexport * from './normalStateContext/normalStateContext.interface';\r\nexport * from './normalStateTagContext/normalStateTagContext.interface';\r\nexport * from './optionsGatherer/optionsGatherer.interface';\r\nexport * from './pluginDescription/pluginDescription.interface';\r\nexport * from './pluginOptions/pluginOptions.interface';\r\nexport * from './plugins';\r\nexport * from './popupContext/popupContext.interface';\r\nexport * from './selectApi/selectApi.interface';\r\nexport * from './selectBusOptions/selectBusOptions.interface';\r\nexport * from './selectCssClasses/selectCssClasses.interface';\r\nexport * from './selectEvent/selectEvent.interface';\r\nexport * from './selectEvents/selectEvents.interface';\r\nexport * from './selectOption/selectOption.interface';\r\nexport * from './selectOptionGroup/selectOptionGroup.interface';\r\nexport * from './selectOptions/selectOptions.interface';\r\nexport * from './selectOptionState/selectOptionState.interface';\r\nexport * from './selectOptionStateSyntetic/selectOptionStateSyntetic.interface';\r\nexport * from './selectOptions/selectOptions.interface';\r\nexport * from './selectPlugin/selectPlugin.interface';\r\nexport * from './selectPluginTypes/selectPluginTypes.interface';\r\nexport * from './templateGatherer/templateGatherer.interface';\r\nexport * from './tempValue/tempValue.interface';\r\nexport * from './visualPluginOptions/visualPluginOptions.interface';\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initState.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/initState/initState.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Wraps state of initialization\n */\nexport interface InitState\n{\n //######################### properties #########################\n\n /**\n * Represents state of initialization\n */\n initialized: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"initState.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/initState/initState.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Wraps state of initialization\r\n */\r\nexport interface InitState\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Represents state of initialization\r\n */\r\n initialized: boolean;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardAction.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/keyboardAction/keyboardAction.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Defines keyboard action that is used as data when keyboard event occurs\n */\nexport interface KeyboardAction<TType>\n{\n //######################### properties #########################\n\n /**\n * Type of keyboard action\n */\n type: TType;\n}\n\n/**\n * Defines keyboard action that should select active option\n */\nexport interface SelectActiveKeyboardAction extends KeyboardAction<'SELECT_ACTIVE'>\n{\n}\n\n/**\n * Defines keyboard action that should select first that corresponds to entered letters\n */\nexport interface SelectFirstKeyboardAction extends KeyboardAction<'SELECT_FIRST'>\n{\n //######################### properties #########################\n\n /**\n * Text that should be used for finding option to select\n */\n search: string;\n}\n\n/**\n * Defines keyboard action that should remove last selected value or only value if select is single\n */\nexport interface RemoveLastSelectedValueKeyboardAction extends KeyboardAction<'REMOVE_LAST_SELECTED_VALUE'>\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"keyboardAction.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/keyboardAction/keyboardAction.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Defines keyboard action that is used as data when keyboard event occurs\r\n */\r\nexport interface KeyboardAction<TType>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Type of keyboard action\r\n */\r\n type: TType;\r\n}\r\n\r\n/**\r\n * Defines keyboard action that should select active option\r\n */\r\nexport interface SelectActiveKeyboardAction extends KeyboardAction<'SELECT_ACTIVE'>\r\n{\r\n}\r\n\r\n/**\r\n * Defines keyboard action that should select first that corresponds to entered letters\r\n */\r\nexport interface SelectFirstKeyboardAction extends KeyboardAction<'SELECT_FIRST'>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Text that should be used for finding option to select\r\n */\r\n search: string;\r\n}\r\n\r\n/**\r\n * Defines keyboard action that should remove last selected value or only value if select is single\r\n */\r\nexport interface RemoveLastSelectedValueKeyboardAction extends KeyboardAction<'REMOVE_LAST_SELECTED_VALUE'>\r\n{\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalStateContext.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/normalStateContext/normalStateContext.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState} from '../plugins';\n\n/**\n * Context for template that is used within normal state plugin for rendering content\n */\nexport interface NormalStateContext<TValue = unknown, TPublicValue = TValue>\n{\n /**\n * Instance of plugin itself\n */\n $implicit: NormalState<TValue, TPublicValue>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"normalStateContext.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/normalStateContext/normalStateContext.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState} from '../plugins';\r\n\r\n/**\r\n * Context for template that is used within normal state plugin for rendering content\r\n */\r\nexport interface NormalStateContext<TValue = unknown, TPublicValue = TValue>\r\n{\r\n /**\r\n * Instance of plugin itself\r\n */\r\n $implicit: NormalState<TValue, TPublicValue>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalStateTagContext.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/normalStateTagContext/normalStateTagContext.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState} from '../plugins';\nimport {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\n\n/**\n * Context for template that is used within normal state plugin for rendering tag\n */\nexport interface NormalStateTagContext<TValue = unknown, TPublicValue = TValue>\n{\n /**\n * Instance of rendered option\n */\n $implicit: SelectOptionState<TValue>;\n\n /**\n * Instance of plugin itself\n */\n normalState: NormalState<TValue, TPublicValue>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"normalStateTagContext.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/normalStateTagContext/normalStateTagContext.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState} from '../plugins';\r\nimport {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\r\n\r\n/**\r\n * Context for template that is used within normal state plugin for rendering tag\r\n */\r\nexport interface NormalStateTagContext<TValue = unknown, TPublicValue = TValue>\r\n{\r\n /**\r\n * Instance of rendered option\r\n */\r\n $implicit: SelectOptionState<TValue>;\r\n\r\n /**\r\n * Instance of plugin itself\r\n */\r\n normalState: NormalState<TValue, TPublicValue>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\n\nimport {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\n\n/**\n * Gatherer used for obtaining options for select\n */\nexport interface OptionsGatherer<TValue = unknown>\n{\n /**\n * Array of all available options for select\n */\n readonly availableOptions: Signal<readonly SelectOptionState<TValue>[]|undefined|null>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\r\n\r\nimport {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\r\n\r\n/**\r\n * Gatherer used for obtaining options for select\r\n */\r\nexport interface OptionsGatherer<TValue = unknown>\r\n{\r\n /**\r\n * Array of all available options for select\r\n */\r\n readonly availableOptions: Signal<readonly SelectOptionState<TValue>[]|undefined|null>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginDescription.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/pluginDescription/pluginDescription.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\nimport {RecursivePartial} from '@jscrpt/common';\n\nimport {PluginOptions} from '../pluginOptions/pluginOptions.interface';\n\n/**\n * Description of plugin, used for creating plugin instance\n */\nexport interface PluginDescription<PluginType = unknown, TOptions extends PluginOptions = PluginOptions>\n{\n /**\n * Type of plugin that will be dynamically instantiated\n */\n type: Type<PluginType>|undefined|null;\n\n /**\n * Options that will be passed to dynamically instantiated plugin\n */\n options: RecursivePartial<TOptions>|undefined|null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pluginDescription.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/pluginDescription/pluginDescription.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\r\nimport {RecursivePartial} from '@jscrpt/common';\r\n\r\nimport {PluginOptions} from '../pluginOptions/pluginOptions.interface';\r\n\r\n/**\r\n * Description of plugin, used for creating plugin instance\r\n */\r\nexport interface PluginDescription<PluginType = unknown, TOptions extends PluginOptions = PluginOptions>\r\n{\r\n /**\r\n * Type of plugin that will be dynamically instantiated\r\n */\r\n type: Type<PluginType>|undefined|null;\r\n\r\n /**\r\n * Options that will be passed to dynamically instantiated plugin\r\n */\r\n options: RecursivePartial<TOptions>|undefined|null;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/pluginOptions/pluginOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Base options for every plugin\n */\nexport interface PluginOptions\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pluginOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/pluginOptions/pluginOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Base options for every plugin\r\n */\r\nexport interface PluginOptions\r\n{\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC","sourcesContent":["export * from './interactions/interactions.interface';\nexport * from './keyboardHandler/keyboardHandler.interface';\nexport * from './keyboardHandler/simpleKeyboardHandler.interface';\nexport * from './liveSearch/editLiveSearch.interface';\nexport * from './liveSearch/filterLiveSearch.interface';\nexport * from './liveSearch/liveSearch.interface';\nexport * from './normalState/editNormalState.interface';\nexport * from './normalState/normalState.interface';\nexport * from './normalState/simpleNormalState.interface';\nexport * from './optionsHandler/optionsHandler.interface';\nexport * from './optionsHandler/simpleOptionsHandler.interface';\nexport * from './popup/popup.interface';\nexport * from './popup/simplePopup.interface';\nexport * from './positioner/commonPositioner.interface';\nexport * from './positioner/popoverPositioner.interface';\nexport * from './positioner/positioner.interface';\nexport * from './readonlyState/readonlyState.interface';\nexport * from './valueHandler/dynamicValueHandler.interface';\nexport * from './valueHandler/valueHandler.interface';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC","sourcesContent":["export * from './interactions/interactions.interface';\r\nexport * from './keyboardHandler/keyboardHandler.interface';\r\nexport * from './keyboardHandler/simpleKeyboardHandler.interface';\r\nexport * from './liveSearch/editLiveSearch.interface';\r\nexport * from './liveSearch/filterLiveSearch.interface';\r\nexport * from './liveSearch/liveSearch.interface';\r\nexport * from './normalState/editNormalState.interface';\r\nexport * from './normalState/normalState.interface';\r\nexport * from './normalState/simpleNormalState.interface';\r\nexport * from './optionsHandler/optionsHandler.interface';\r\nexport * from './optionsHandler/simpleOptionsHandler.interface';\r\nexport * from './popup/popup.interface';\r\nexport * from './popup/simplePopup.interface';\r\nexport * from './positioner/commonPositioner.interface';\r\nexport * from './positioner/popoverPositioner.interface';\r\nexport * from './positioner/positioner.interface';\r\nexport * from './readonlyState/readonlyState.interface';\r\nexport * from './valueHandler/dynamicValueHandler.interface';\r\nexport * from './valueHandler/valueHandler.interface';\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactions.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/interactions/interactions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\n\n/**\n * Options for interactions plugin\n */\nexport interface InteractionsOptions extends PluginOptions\n{\n //######################### properties #########################\n\n /**\n * Indication whether click outside should be handled by plugin. If true, click outside will close popup\n */\n handleClickOutside: boolean;\n}\n\n/**\n * Interactions plugin interface\n */\nexport interface Interactions<TValue = unknown, TPublicValue = TValue, TOptions extends InteractionsOptions = InteractionsOptions, TAction = string> extends SelectPlugin<TOptions, TValue, TPublicValue, TAction>\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interactions.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/interactions/interactions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\r\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\n\r\n/**\r\n * Options for interactions plugin\r\n */\r\nexport interface InteractionsOptions extends PluginOptions\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether click outside should be handled by plugin. If true, click outside will close popup\r\n */\r\n handleClickOutside: boolean;\r\n}\r\n\r\n/**\r\n * Interactions plugin interface\r\n */\r\nexport interface Interactions<TValue = unknown, TPublicValue = TValue, TOptions extends InteractionsOptions = InteractionsOptions, TAction = string> extends SelectPlugin<TOptions, TValue, TPublicValue, TAction>\r\n{\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\n\n/**\n * Options for keyboard handler plugin\n */\nexport interface KeyboardHandlerOptions extends PluginOptions\n{\n}\n\n/**\n * Keyboard handler plugin interface\n */\nexport interface KeyboardHandler<TValue = unknown, TPublicValue = TValue, TOptions extends KeyboardHandlerOptions = KeyboardHandlerOptions, TAction = string> extends SelectPlugin<TOptions, TValue, TPublicValue, TAction>\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"keyboardHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\r\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\n\r\n/**\r\n * Options for keyboard handler plugin\r\n */\r\nexport interface KeyboardHandlerOptions extends PluginOptions\r\n{\r\n}\r\n\r\n/**\r\n * Keyboard handler plugin interface\r\n */\r\nexport interface KeyboardHandler<TValue = unknown, TPublicValue = TValue, TOptions extends KeyboardHandlerOptions = KeyboardHandlerOptions, TAction = string> extends SelectPlugin<TOptions, TValue, TPublicValue, TAction>\r\n{\r\n}\r\n"]}
|
package/es2022/src/interfaces/plugins/keyboardHandler/simpleKeyboardHandler.interface.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleKeyboardHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/keyboardHandler/simpleKeyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {KeyboardHandlerOptions} from './keyboardHandler.interface';\n\n/**\n * Options for simple keyboard handler plugin\n */\nexport interface SimpleKeyboardHandlerOptions extends KeyboardHandlerOptions\n{\n //######################### properties #########################\n\n /**\n * Debounce timeout for selecting first option when typing\n */\n selectFirstDebounceTimeout: number;\n\n /**\n * Indication whether is alphanumeric search enabled, meaning that when user types alphanumeric keys (outside of live search), select will try to find option starting with searched text and select it\n */\n alphanumericSearch: boolean;\n\n /**\n * Indication whether live search events should be processed\n */\n liveSearchEvents: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"simpleKeyboardHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/keyboardHandler/simpleKeyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {KeyboardHandlerOptions} from './keyboardHandler.interface';\r\n\r\n/**\r\n * Options for simple keyboard handler plugin\r\n */\r\nexport interface SimpleKeyboardHandlerOptions extends KeyboardHandlerOptions\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Debounce timeout for selecting first option when typing\r\n */\r\n selectFirstDebounceTimeout: number;\r\n\r\n /**\r\n * Indication whether is alphanumeric search enabled, meaning that when user types alphanumeric keys (outside of live search), select will try to find option starting with searched text and select it\r\n */\r\n alphanumericSearch: boolean;\r\n\r\n /**\r\n * Indication whether live search events should be processed\r\n */\r\n liveSearchEvents: boolean;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/liveSearch/editLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearchCssClasses} from './liveSearch.interface';\n\n/**\n * Css classes for edit live search\n */\nexport interface EditLiveSearchCssClasses extends LiveSearchCssClasses\n{\n //######################### properties #########################\n\n /**\n * Applied to HTML element that represents the search input\n */\n searchElement: string;\n\n /**\n * Applied to HTML element that represents the search input when the select is in multiple mode\n */\n multiple: string;\n\n /**\n * Applied to HTML element that represents the search input when the select is in single mode\n */\n single: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"editLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/liveSearch/editLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearchCssClasses} from './liveSearch.interface';\r\n\r\n/**\r\n * Css classes for edit live search\r\n */\r\nexport interface EditLiveSearchCssClasses extends LiveSearchCssClasses\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Applied to HTML element that represents the search input\r\n */\r\n searchElement: string;\r\n\r\n /**\r\n * Applied to HTML element that represents the search input when the select is in multiple mode\r\n */\r\n multiple: string;\r\n\r\n /**\r\n * Applied to HTML element that represents the search input when the select is in single mode\r\n */\r\n single: string;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/liveSearch/filterLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearchCssClasses, LiveSearchOptions} from './liveSearch.interface';\n\n/**\n * Texts that are used within filter live search\n */\nexport interface FilterLiveSearchTexts\n{\n //######################### properties #########################\n\n /**\n * Placeholder for search input\n */\n searchPlaceholder: string;\n}\n\n/**\n * Options for filter live search plugin\n */\nexport interface FilterLiveSearchOptions<TCssClasses extends LiveSearchCssClasses = LiveSearchCssClasses> extends LiveSearchOptions<TCssClasses>\n{\n //######################### properties #########################\n\n /**\n * Texts that are used within filter live search\n */\n texts: FilterLiveSearchTexts;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"filterLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/liveSearch/filterLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearchCssClasses, LiveSearchOptions} from './liveSearch.interface';\r\n\r\n/**\r\n * Texts that are used within filter live search\r\n */\r\nexport interface FilterLiveSearchTexts\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Placeholder for search input\r\n */\r\n searchPlaceholder: string;\r\n}\r\n\r\n/**\r\n * Options for filter live search plugin\r\n */\r\nexport interface FilterLiveSearchOptions<TCssClasses extends LiveSearchCssClasses = LiveSearchCssClasses> extends LiveSearchOptions<TCssClasses>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Texts that are used within filter live search\r\n */\r\n texts: FilterLiveSearchTexts;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/liveSearch/liveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\n\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\nimport {VisualPluginOptions} from '../../visualPluginOptions/visualPluginOptions.interface';\n\n/**\n * Css classes for live search\n */\nexport interface LiveSearchCssClasses\n{\n /**\n * Applied to HTML element that represents whole component\n */\n componentElement: string;\n}\n\n/**\n * Options for live search plugin\n */\nexport interface LiveSearchOptions<TCssClasses extends LiveSearchCssClasses = LiveSearchCssClasses> extends VisualPluginOptions<TCssClasses>\n{\n //######################### properties #########################\n\n /**\n * Time in milliseconds after which search value will be emitted after user stops typing\n */\n searchDebounceTimeout: number;\n}\n\n/**\n * Live search plugin interface\n */\nexport interface LiveSearch<TValue = unknown, TPublicValue = TValue, TOptions extends LiveSearchOptions = LiveSearchOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\n{\n //######################### properties #########################\n\n /**\n * Text of search value\n */\n readonly search: Signal<string>;\n\n /**\n * Indication whether input search value is empty\n */\n readonly emptyInput: Signal<boolean>;\n\n //######################### methods #########################\n\n /**\n * Sets focus on plugin element\n */\n focus(): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"liveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/liveSearch/liveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\r\n\r\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\nimport {VisualPluginOptions} from '../../visualPluginOptions/visualPluginOptions.interface';\r\n\r\n/**\r\n * Css classes for live search\r\n */\r\nexport interface LiveSearchCssClasses\r\n{\r\n /**\r\n * Applied to HTML element that represents whole component\r\n */\r\n componentElement: string;\r\n}\r\n\r\n/**\r\n * Options for live search plugin\r\n */\r\nexport interface LiveSearchOptions<TCssClasses extends LiveSearchCssClasses = LiveSearchCssClasses> extends VisualPluginOptions<TCssClasses>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Time in milliseconds after which search value will be emitted after user stops typing\r\n */\r\n searchDebounceTimeout: number;\r\n}\r\n\r\n/**\r\n * Live search plugin interface\r\n */\r\nexport interface LiveSearch<TValue = unknown, TPublicValue = TValue, TOptions extends LiveSearchOptions = LiveSearchOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Text of search value\r\n */\r\n readonly search: Signal<string>;\r\n\r\n /**\r\n * Indication whether input search value is empty\r\n */\r\n readonly emptyInput: Signal<boolean>;\r\n\r\n //######################### methods #########################\r\n\r\n /**\r\n * Sets focus on plugin element\r\n */\r\n focus(): void;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editNormalState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/normalState/editNormalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalStateCssClasses, NormalStateOptions} from './normalState.interface';\n\n/**\n * Css classes for edit normal state plugin.\n */\nexport interface EditNormalStateCssClasses extends NormalStateCssClasses\n{\n /**\n * Applied to currently selected value, which is visible to user (default template)\n */\n value: string;\n\n /**\n * Applied to \"carret\", indicating that it is select and there is more options available\n */\n carret: string;\n\n /**\n * Applied to tag that represents selected value\n */\n tag: string;\n\n /**\n * Applied to HTML element that represents whole component\n */\n componentElement: string;\n\n /**\n * Applied to cancel button that allows clearing selected value\n */\n cancel: string;\n\n /**\n * Applied to cancel button icon\n */\n cancelIcon: string;\n\n /**\n * Applied to HTML element that wraps selected value\n */\n valueWrapper: string;\n\n /**\n * Applied to HTML element that represents value and holds multiple selected values\n */\n valueMultiple: string;\n\n /**\n * Applied to HTML element that represents value and holds single selected value\n */\n valueSingle: string;\n}\n\n/**\n * Options for edit normal state plugin\n */\nexport interface EditNormalStateOptions<TCssClasses extends EditNormalStateCssClasses = EditNormalStateCssClasses> extends NormalStateOptions<TCssClasses>\n{\n //######################### properties #########################\n\n /**\n * Indication whether show carret icon\n */\n carret: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"editNormalState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/normalState/editNormalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalStateCssClasses, NormalStateOptions} from './normalState.interface';\r\n\r\n/**\r\n * Css classes for edit normal state plugin.\r\n */\r\nexport interface EditNormalStateCssClasses extends NormalStateCssClasses\r\n{\r\n /**\r\n * Applied to currently selected value, which is visible to user (default template)\r\n */\r\n value: string;\r\n\r\n /**\r\n * Applied to \"carret\", indicating that it is select and there is more options available\r\n */\r\n carret: string;\r\n\r\n /**\r\n * Applied to tag that represents selected value\r\n */\r\n tag: string;\r\n\r\n /**\r\n * Applied to HTML element that represents whole component\r\n */\r\n componentElement: string;\r\n\r\n /**\r\n * Applied to cancel button that allows clearing selected value\r\n */\r\n cancel: string;\r\n\r\n /**\r\n * Applied to cancel button icon\r\n */\r\n cancelIcon: string;\r\n\r\n /**\r\n * Applied to HTML element that wraps selected value\r\n */\r\n valueWrapper: string;\r\n\r\n /**\r\n * Applied to HTML element that represents value and holds multiple selected values\r\n */\r\n valueMultiple: string;\r\n\r\n /**\r\n * Applied to HTML element that represents value and holds single selected value\r\n */\r\n valueSingle: string;\r\n}\r\n\r\n/**\r\n * Options for edit normal state plugin\r\n */\r\nexport interface EditNormalStateOptions<TCssClasses extends EditNormalStateCssClasses = EditNormalStateCssClasses> extends NormalStateOptions<TCssClasses>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether show carret icon\r\n */\r\n carret: boolean;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/normalState/normalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\nimport {VisualPluginOptions} from '../../visualPluginOptions/visualPluginOptions.interface';\n\n/**\n * Texts that are used within normal state plugin\n */\nexport interface NormalStateTexts\n{\n //######################### properties #########################\n\n /**\n * Title for cancel button\n */\n cancelTitle: string;\n}\n\n/**\n * CSS classes for normal state plugin\n */\nexport interface NormalStateCssClasses\n{\n}\n\n/**\n * Options for normal state plugin\n */\nexport interface NormalStateOptions<TCssClasses extends NormalStateCssClasses = NormalStateCssClasses> extends VisualPluginOptions<TCssClasses>\n{\n //######################### properties #########################\n\n /**\n * Indication whether allow cancel value\n */\n cancelValue: boolean;\n\n /**\n * Texts used within normal state plugin\n */\n texts: NormalStateTexts;\n}\n\n/**\n * Normal state plugin interface\n */\nexport interface NormalState<TValue = unknown, TPublicValue = TValue, TOptions extends NormalStateOptions = NormalStateOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\n{\n //######################### methods #########################\n\n /**\n * Sets focus on plugin element\n */\n focus(): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"normalState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/normalState/normalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\nimport {VisualPluginOptions} from '../../visualPluginOptions/visualPluginOptions.interface';\r\n\r\n/**\r\n * Texts that are used within normal state plugin\r\n */\r\nexport interface NormalStateTexts\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Title for cancel button\r\n */\r\n cancelTitle: string;\r\n}\r\n\r\n/**\r\n * CSS classes for normal state plugin\r\n */\r\nexport interface NormalStateCssClasses\r\n{\r\n}\r\n\r\n/**\r\n * Options for normal state plugin\r\n */\r\nexport interface NormalStateOptions<TCssClasses extends NormalStateCssClasses = NormalStateCssClasses> extends VisualPluginOptions<TCssClasses>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether allow cancel value\r\n */\r\n cancelValue: boolean;\r\n\r\n /**\r\n * Texts used within normal state plugin\r\n */\r\n texts: NormalStateTexts;\r\n}\r\n\r\n/**\r\n * Normal state plugin interface\r\n */\r\nexport interface NormalState<TValue = unknown, TPublicValue = TValue, TOptions extends NormalStateOptions = NormalStateOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\r\n{\r\n //######################### methods #########################\r\n\r\n /**\r\n * Sets focus on plugin element\r\n */\r\n focus(): void;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleNormalState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/normalState/simpleNormalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalStateCssClasses} from './normalState.interface';\n\n/**\n * Css classes for simple normal state plugin\n */\nexport interface SimpleNormalStateCssClasses extends NormalStateCssClasses\n{\n /**\n * Applied to currently selected value, which is visible to user (default template)\n */\n value: string;\n\n /**\n * Applied to \"carret\"
|
|
1
|
+
{"version":3,"file":"simpleNormalState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/normalState/simpleNormalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalStateCssClasses} from './normalState.interface';\n\n/**\n * Css classes for simple normal state plugin\n */\nexport interface SimpleNormalStateCssClasses extends NormalStateCssClasses\n{\n /**\n * Applied to currently selected value, which is visible to user (default template)\n */\n value: string;\n\n /**\n * Applied to \"carret\" icon element\n */\n carretIcon: string;\n\n /**\n * Applied to HTML element that represents normal state main element visible to user\n */\n interactiveElement: string;\n\n /**\n * Applied to HTML element that represents whole component\n */\n componentElement: string;\n\n /**\n * Applied to cancel button that allows clearing selected value\n */\n cancel: string;\n\n /**\n * Applied to cancel button icon\n */\n cancelIcon: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionsHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/optionsHandler/optionsHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\n\nimport {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\nimport {SelectOptionState} from '../../selectOptionState/selectOptionState.interface';\nimport {NewOptionGetterFunc} from '../../../misc/types';\n\n/**\n * Options for options handler plugin\n */\nexport interface OptionsHandlerOptions<TValue = unknown> extends PluginOptions\n{\n //######################### properties #########################\n\n /**\n * Allows adding new option to select when defined\n */\n newOptionGetter: NewOptionGetterFunc<TValue>|undefined|null;\n\n /**\n * Indication that add new option only when there are no options available\n */\n newOptionOnlyWhenNoOptions: boolean;\n}\n\n/**\n * Options handler plugin interface\n */\nexport interface OptionsHandler<TValue = unknown, TPublicValue = TValue, TOptions extends OptionsHandlerOptions<TValue> = OptionsHandlerOptions<TValue>> extends SelectPlugin<TOptions, TValue, TPublicValue>\n{\n //######################### properties #########################\n\n /**\n * Array of options that are available for processing\n */\n readonly availableOptions: Signal<readonly SelectOptionState<TValue>[]|undefined|null>;\n\n /**\n * Array of options that are available for listing/displaying\n */\n readonly listOptions: Signal<readonly SelectOptionState<TValue>[]|undefined|null>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"optionsHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/optionsHandler/optionsHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\r\n\r\nimport {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\r\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\nimport {SelectOptionState} from '../../selectOptionState/selectOptionState.interface';\r\nimport {NewOptionGetterFunc} from '../../../misc/types';\r\n\r\n/**\r\n * Options for options handler plugin\r\n */\r\nexport interface OptionsHandlerOptions<TValue = unknown> extends PluginOptions\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Allows adding new option to select when defined\r\n */\r\n newOptionGetter: NewOptionGetterFunc<TValue>|undefined|null;\r\n\r\n /**\r\n * Indication that add new option only when there are no options available\r\n */\r\n newOptionOnlyWhenNoOptions: boolean;\r\n}\r\n\r\n/**\r\n * Options handler plugin interface\r\n */\r\nexport interface OptionsHandler<TValue = unknown, TPublicValue = TValue, TOptions extends OptionsHandlerOptions<TValue> = OptionsHandlerOptions<TValue>> extends SelectPlugin<TOptions, TValue, TPublicValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Array of options that are available for processing\r\n */\r\n readonly availableOptions: Signal<readonly SelectOptionState<TValue>[]|undefined|null>;\r\n\r\n /**\r\n * Array of options that are available for listing/displaying\r\n */\r\n readonly listOptions: Signal<readonly SelectOptionState<TValue>[]|undefined|null>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleOptionsHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/optionsHandler/simpleOptionsHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {OptionsHandlerOptions} from './optionsHandler.interface';\n\n/**\n * Options for simple options handler plugin\n */\nexport interface SimpleOptionsHandlerOptions<TValue = unknown> extends OptionsHandlerOptions<TValue>\n{\n //######################### properties #########################\n\n /**\n * Indication whether display selected option in list of available options\n */\n listSelected: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"simpleOptionsHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/optionsHandler/simpleOptionsHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {OptionsHandlerOptions} from './optionsHandler.interface';\r\n\r\n/**\r\n * Options for simple options handler plugin\r\n */\r\nexport interface SimpleOptionsHandlerOptions<TValue = unknown> extends OptionsHandlerOptions<TValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether display selected option in list of available options\r\n */\r\n listSelected: boolean;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popup.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/popup/popup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\nimport {VisualPluginOptions} from '../../visualPluginOptions/visualPluginOptions.interface';\n\n/**\n * Texts that are used within Popup\n */\nexport interface PopupTexts\n{\n /**\n * Displayed when there are no available options to be displayed\n */\n noAvailableOptions: string;\n\n /**\n * Displayed when add new option is displayed\n */\n addNewOption: string;\n\n /**\n * ARIA label for options list\n */\n optionsList: string;\n}\n\n/**\n * CSS classes for pupup plugin\n */\nexport interface PopupCssClasses\n{\n}\n\n/**\n * Options for popup plugin\n */\nexport interface PopupOptions<TCssClasses extends PopupCssClasses = PopupCssClasses> extends VisualPluginOptions<TCssClasses>\n{\n //######################### properties #########################\n\n /**\n * Indication whether are popup options visible, or not, force popup to be visible if set to true\n */\n visible: boolean;\n\n /**\n * Indication whether is highlighting enabled for popup, if set to true, then popup will search query\n */\n searchHighlighting: boolean;\n\n /**\n * Texts that are used within any Popup\n */\n texts: PopupTexts;\n\n /**\n * Indication whether is live search enabled for popup\n */\n liveSearchEnabled: boolean;\n}\n\n/**\n * Popup plugin interface\n */\nexport interface Popup<TValue = unknown, TPublicValue = TValue, TOptions extends PopupOptions = PopupOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"popup.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/popup/popup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\nimport {VisualPluginOptions} from '../../visualPluginOptions/visualPluginOptions.interface';\r\n\r\n/**\r\n * Texts that are used within Popup\r\n */\r\nexport interface PopupTexts\r\n{\r\n /**\r\n * Displayed when there are no available options to be displayed\r\n */\r\n noAvailableOptions: string;\r\n\r\n /**\r\n * Displayed when add new option is displayed\r\n */\r\n addNewOption: string;\r\n\r\n /**\r\n * ARIA label for options list\r\n */\r\n optionsList: string;\r\n}\r\n\r\n/**\r\n * CSS classes for pupup plugin\r\n */\r\nexport interface PopupCssClasses\r\n{\r\n}\r\n\r\n/**\r\n * Options for popup plugin\r\n */\r\nexport interface PopupOptions<TCssClasses extends PopupCssClasses = PopupCssClasses> extends VisualPluginOptions<TCssClasses>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether are popup options visible, or not, force popup to be visible if set to true\r\n */\r\n visible: boolean;\r\n\r\n /**\r\n * Indication whether is highlighting enabled for popup, if set to true, then popup will search query\r\n */\r\n searchHighlighting: boolean;\r\n\r\n /**\r\n * Texts that are used within any Popup\r\n */\r\n texts: PopupTexts;\r\n\r\n /**\r\n * Indication whether is live search enabled for popup\r\n */\r\n liveSearchEnabled: boolean;\r\n}\r\n\r\n/**\r\n * Popup plugin interface\r\n */\r\nexport interface Popup<TValue = unknown, TPublicValue = TValue, TOptions extends PopupOptions = PopupOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\r\n{\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simplePopup.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/popup/simplePopup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PopupCssClasses} from './popup.interface';\n\n/**\n * CSS classes for simple popup plugin\n */\nexport interface SimplePopupCssClasses extends PopupCssClasses\n{\n /**\n * Css class applied to component itself\n */\n componentElement: string;\n\n /**\n * Css class applied to each option\n */\n option: string;\n\n /**\n * Css class applied to each option group\n */\n optionGroup: string;\n\n /**\n * Css class applied to each option text\n */\n optionText: string;\n\n /**\n * Css class used as icons indicating that option is selected (only when multiple)\n */\n optionChecked: string;\n\n /**\n * Css class applied directly to css popup container\n */\n popupContainer: string;\n\n /**\n * Css class applied to selected option\n */\n selected: string;\n\n /**\n * Css class applied to active option\n */\n active: string;\n\n /**\n * Css class applied to option that is displayed inside of group\n */\n inGroup: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"simplePopup.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/popup/simplePopup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PopupCssClasses} from './popup.interface';\r\n\r\n/**\r\n * CSS classes for simple popup plugin\r\n */\r\nexport interface SimplePopupCssClasses extends PopupCssClasses\r\n{\r\n /**\r\n * Css class applied to component itself\r\n */\r\n componentElement: string;\r\n\r\n /**\r\n * Css class applied to each option\r\n */\r\n option: string;\r\n\r\n /**\r\n * Css class applied to each option group\r\n */\r\n optionGroup: string;\r\n\r\n /**\r\n * Css class applied to each option text\r\n */\r\n optionText: string;\r\n\r\n /**\r\n * Css class used as icons indicating that option is selected (only when multiple)\r\n */\r\n optionChecked: string;\r\n\r\n /**\r\n * Css class applied directly to css popup container\r\n */\r\n popupContainer: string;\r\n\r\n /**\r\n * Css class applied to selected option\r\n */\r\n selected: string;\r\n\r\n /**\r\n * Css class applied to active option\r\n */\r\n active: string;\r\n\r\n /**\r\n * Css class applied to option that is displayed inside of group\r\n */\r\n inGroup: string;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/positioner/commonPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PositionerOptions} from './positioner.interface';\n\n/**\n * Options for common positioner plugin\n */\nexport interface CommonPositionerOptions extends PositionerOptions\n{\n //######################### properties #########################\n\n /**\n * If set tells positioner to set z-index of positioned element to this value, if not set positioner will not change z-index of element\n */\n zIndex: number|undefined|null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"commonPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/positioner/commonPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PositionerOptions} from './positioner.interface';\r\n\r\n/**\r\n * Options for common positioner plugin\r\n */\r\nexport interface CommonPositionerOptions extends PositionerOptions\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * If set tells positioner to set z-index of positioned element to this value, if not set positioner will not change z-index of element\r\n */\r\n zIndex: number|undefined|null;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popoverPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/positioner/popoverPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PositionerOptions} from './positioner.interface';\n\n/**\n * Options for popover positioner plugin\n */\nexport interface PopoverPositionerOptions extends PositionerOptions\n{\n //######################### properties #########################\n\n /**\n * Indication whether popover property should be set to 'auto' or 'manual'\n */\n popoverAuto: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"popoverPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/positioner/popoverPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PositionerOptions} from './positioner.interface';\r\n\r\n/**\r\n * Options for popover positioner plugin\r\n */\r\nexport interface PopoverPositionerOptions extends PositionerOptions\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether popover property should be set to 'auto' or 'manual'\r\n */\r\n popoverAuto: boolean;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/positioner/positioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\n\n/**\n * Options for positioner plugin\n */\nexport interface PositionerOptions extends PluginOptions\n{\n}\n\n/**\n * Positioner plugin interface\n */\nexport interface Positioner<TValue = unknown, TPublicValue = TValue, TOptions extends PositionerOptions = PositionerOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"positioner.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/positioner/positioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\r\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\n\r\n/**\r\n * Options for positioner plugin\r\n */\r\nexport interface PositionerOptions extends PluginOptions\r\n{\r\n}\r\n\r\n/**\r\n * Positioner plugin interface\r\n */\r\nexport interface Positioner<TValue = unknown, TPublicValue = TValue, TOptions extends PositionerOptions = PositionerOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\r\n{\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readonlyState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/readonlyState/readonlyState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState, NormalStateCssClasses, NormalStateOptions} from '../normalState/normalState.interface';\n\n/**\n * CSS classes for readonly state plugin\n */\nexport interface ReadonlyStateCssClasses extends NormalStateCssClasses\n{\n}\n\n/**\n * Options for readonly state plugin\n */\nexport interface ReadonlyStateOptions<TCssClasses extends ReadonlyStateCssClasses = ReadonlyStateCssClasses> extends NormalStateOptions<TCssClasses>\n{\n}\n\n/**\n * Readonly state plugin interface\n */\nexport interface ReadonlyState<TValue = unknown, TPublicValue = TValue> extends NormalState<TValue, TPublicValue>\n{\n}\n"]}
|
|
1
|
+
{"version":3,"file":"readonlyState.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/readonlyState/readonlyState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState, NormalStateCssClasses, NormalStateOptions} from '../normalState/normalState.interface';\r\n\r\n/**\r\n * CSS classes for readonly state plugin\r\n */\r\nexport interface ReadonlyStateCssClasses extends NormalStateCssClasses\r\n{\r\n}\r\n\r\n/**\r\n * Options for readonly state plugin\r\n */\r\nexport interface ReadonlyStateOptions<TCssClasses extends ReadonlyStateCssClasses = ReadonlyStateCssClasses> extends NormalStateOptions<TCssClasses>\r\n{\r\n}\r\n\r\n/**\r\n * Readonly state plugin interface\r\n */\r\nexport interface ReadonlyState<TValue = unknown, TPublicValue = TValue> extends NormalState<TValue, TPublicValue>\r\n{\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicValueHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/valueHandler/dynamicValueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {OptionGetterFunc} from '../../../misc/types';\nimport {ValueHandlerOptions} from './valueHandler.interface';\n\n/**\n * Options for dynamic value handler plugin\n */\nexport interface DynamicValueHandlerOptions<TValue = unknown, TPublicValue = TValue> extends ValueHandlerOptions\n{\n //######################### properties #########################\n\n /**\n * Function for obtaining option for provided value\n */\n optionGetter: OptionGetterFunc<TValue, TPublicValue>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"dynamicValueHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/valueHandler/dynamicValueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {OptionGetterFunc} from '../../../misc/types';\r\nimport {ValueHandlerOptions} from './valueHandler.interface';\r\n\r\n/**\r\n * Options for dynamic value handler plugin\r\n */\r\nexport interface DynamicValueHandlerOptions<TValue = unknown, TPublicValue = TValue> extends ValueHandlerOptions\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Function for obtaining option for provided value\r\n */\r\n optionGetter: OptionGetterFunc<TValue, TPublicValue>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/valueHandler/valueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\nimport {PromiseOr} from '@jscrpt/common';\n\nimport {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\n\n/**\n * Options for value handler plugin\n */\nexport interface ValueHandlerOptions extends PluginOptions\n{\n}\n\n/**\n * Value handler plugin interface\n */\nexport interface ValueHandler<TValue = unknown, TPublicValue = TValue, TOptions extends ValueHandlerOptions = ValueHandlerOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\n{\n //######################### properties #########################\n\n /**\n * Current selected value of Select\n */\n readonly value: Signal<TPublicValue|TPublicValue[]|undefined|null>;\n\n //######################### methods #########################\n\n /**\n * Sets value for Select\n * @param value - Value to be set\n */\n setValue(value: TPublicValue|TPublicValue[]|undefined|null): PromiseOr<void>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"valueHandler.interface.js","sourceRoot":"","sources":["../../../../../src/interfaces/plugins/valueHandler/valueHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\r\nimport {PromiseOr} from '@jscrpt/common';\r\n\r\nimport {PluginOptions} from '../../pluginOptions/pluginOptions.interface';\r\nimport {SelectPlugin} from '../../selectPlugin/selectPlugin.interface';\r\n\r\n/**\r\n * Options for value handler plugin\r\n */\r\nexport interface ValueHandlerOptions extends PluginOptions\r\n{\r\n}\r\n\r\n/**\r\n * Value handler plugin interface\r\n */\r\nexport interface ValueHandler<TValue = unknown, TPublicValue = TValue, TOptions extends ValueHandlerOptions = ValueHandlerOptions> extends SelectPlugin<TOptions, TValue, TPublicValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Current selected value of Select\r\n */\r\n readonly value: Signal<TPublicValue|TPublicValue[]|undefined|null>;\r\n\r\n //######################### methods #########################\r\n\r\n /**\r\n * Sets value for Select\r\n * @param value - Value to be set\r\n */\r\n setValue(value: TPublicValue|TPublicValue[]|undefined|null): PromiseOr<void>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popupContext.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/popupContext/popupContext.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Popup} from '../plugins';\nimport {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\n\n/**\n * Context for template that is used within popup plugin for rendering option\n */\nexport interface PopupContext<TValue = unknown, TPublicValue = TValue>\n{\n /**\n * Instance of plugin itself\n */\n $implicit: SelectOptionState<TValue>;\n\n /**\n * Instance of plugin itself\n */\n popup: Popup<TValue, TPublicValue>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"popupContext.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/popupContext/popupContext.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Popup} from '../plugins';\r\nimport {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\r\n\r\n/**\r\n * Context for template that is used within popup plugin for rendering option\r\n */\r\nexport interface PopupContext<TValue = unknown, TPublicValue = TValue>\r\n{\r\n /**\r\n * Instance of plugin itself\r\n */\r\n $implicit: SelectOptionState<TValue>;\r\n\r\n /**\r\n * Instance of plugin itself\r\n */\r\n popup: Popup<TValue, TPublicValue>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectApi.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectApi/selectApi.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\n\nimport {SelectOptions} from '../selectOptions/selectOptions.interface';\nimport {SelectPlugin} from '../selectPlugin/selectPlugin.interface';\nimport {SelectAction, SelectFunction} from '../../misc/types';\nimport {SelectEvents} from '../selectEvents/selectEvents.interface';\nimport {SelectPluginType} from '../../misc/enums';\nimport {Interactions, KeyboardHandler, LiveSearch, NormalState, OptionsHandler, Popup, Positioner, ReadonlyState, ValueHandler} from '../plugins';\nimport {SelectCssClasses} from '../selectCssClasses/selectCssClasses.interface';\n\n/**\n * Public API for Select\n */\nexport interface SelectApi<TValue = unknown, TPublicValue = TValue, TCssClasses = SelectCssClasses>\n{\n /**\n * Gets information whether is select initialized or not, changes when Select is initialized or reinitialized, if value is false Select was not initialized yet\n */\n readonly initialized: Signal<boolean>;\n\n /**\n * Gets or sets Select options\n */\n selectOptions: SelectOptions<TValue, TPublicValue, TCssClasses>;\n\n /**\n * Select public events, signal based\n */\n readonly events: SelectEvents;\n\n /**\n * Gets instance of plugin by its type\n * @param pluginType - Type of plugin\n */\n getPlugin(pluginType: SelectPluginType.Interactions): Interactions<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.KeyboardHandler): KeyboardHandler<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.LiveSearch): LiveSearch<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.NormalState): NormalState<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.OptionsHandler): OptionsHandler<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.Popup): Popup<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.Positioner): Positioner<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.ReadonlyState): ReadonlyState<TValue, TPublicValue>;\n getPlugin(pluginType: SelectPluginType.ValueHandler): ValueHandler<TValue, TPublicValue>;\n getPlugin<PluginInstance extends SelectPlugin<unknown, TValue, TPublicValue>>(pluginType: SelectPluginType): PluginInstance;\n\n /**\n * Executes actions on Select\n * @param actions - Array of actions that are executed over Select\n */\n execute(...actions: SelectAction<TValue, TPublicValue, TCssClasses>[]): void;\n\n /**\n * Executes function on Select and returns result\n * @param func - Function that is executed and its result is returned\n */\n executeAndReturn<TResult>(func: SelectFunction<TResult, TValue, TPublicValue, TCssClasses>): TResult;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectApi.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectApi/selectApi.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\r\n\r\nimport {SelectOptions} from '../selectOptions/selectOptions.interface';\r\nimport {SelectPlugin} from '../selectPlugin/selectPlugin.interface';\r\nimport {SelectAction, SelectFunction} from '../../misc/types';\r\nimport {SelectEvents} from '../selectEvents/selectEvents.interface';\r\nimport {SelectPluginType} from '../../misc/enums';\r\nimport {Interactions, KeyboardHandler, LiveSearch, NormalState, OptionsHandler, Popup, Positioner, ReadonlyState, ValueHandler} from '../plugins';\r\nimport {SelectCssClasses} from '../selectCssClasses/selectCssClasses.interface';\r\n\r\n/**\r\n * Public API for Select\r\n */\r\nexport interface SelectApi<TValue = unknown, TPublicValue = TValue, TCssClasses = SelectCssClasses>\r\n{\r\n /**\r\n * Gets information whether is select initialized or not, changes when Select is initialized or reinitialized, if value is false Select was not initialized yet\r\n */\r\n readonly initialized: Signal<boolean>;\r\n\r\n /**\r\n * Gets or sets Select options\r\n */\r\n selectOptions: SelectOptions<TValue, TPublicValue, TCssClasses>;\r\n\r\n /**\r\n * Select public events, signal based\r\n */\r\n readonly events: SelectEvents;\r\n\r\n /**\r\n * Gets instance of plugin by its type\r\n * @param pluginType - Type of plugin\r\n */\r\n getPlugin(pluginType: SelectPluginType.Interactions): Interactions<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.KeyboardHandler): KeyboardHandler<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.LiveSearch): LiveSearch<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.NormalState): NormalState<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.OptionsHandler): OptionsHandler<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.Popup): Popup<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.Positioner): Positioner<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.ReadonlyState): ReadonlyState<TValue, TPublicValue>;\r\n getPlugin(pluginType: SelectPluginType.ValueHandler): ValueHandler<TValue, TPublicValue>;\r\n getPlugin<PluginInstance extends SelectPlugin<unknown, TValue, TPublicValue>>(pluginType: SelectPluginType): PluginInstance;\r\n\r\n /**\r\n * Executes actions on Select\r\n * @param actions - Array of actions that are executed over Select\r\n */\r\n execute(...actions: SelectAction<TValue, TPublicValue, TCssClasses>[]): void;\r\n\r\n /**\r\n * Executes function on Select and returns result\r\n * @param func - Function that is executed and its result is returned\r\n */\r\n executeAndReturn<TResult>(func: SelectFunction<TResult, TValue, TPublicValue, TCssClasses>): TResult;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectBusOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectBusOptions/selectBusOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {DisplayTextFunc, NormalizeTextForComparison, TextComparerFunc, TextExtractorFunc, ValueEqualityFunc, ValueExtractorFunc} from '../../misc/types';\nimport {OptionsGatherer} from '../optionsGatherer/optionsGatherer.interface';\nimport {TemplateGatherer} from '../templateGatherer/templateGatherer.interface';\n\n/**\n * Options used for select bus\n */\nexport interface SelectBusOptions<TValue = unknown, TPublicValue = TValue>\n{\n //######################### properties #########################\n\n /**\n * Instance of options gatherer that is used for obtaining options\n */\n optionsGatherer: OptionsGatherer<TValue>;\n\n /**\n * Instance of template gatherer used for obtaining custom templates\n */\n templateGatherer: TemplateGatherer<TValue>;\n\n /**\n * Indication whether is Select readonly or not\n */\n readonly: boolean;\n\n /**\n * Indication that multiple values can be selected\n */\n multiple: boolean;\n\n /**\n * Placeholder text shown when there is no value selected\n */\n placeholder: string;\n\n /**\n * Indication whether close popup on selecting value\n */\n closeOnSelect: boolean;\n\n /**\n * Function used for transformation of selected option into display text\n */\n displaySelectedValue: DisplayTextFunc<TValue>;\n\n /**\n * Function used for transformation of option into display text, if not specified, displaySelectedValue will be used for transforming option into display text\n */\n displayOptionValue: DisplayTextFunc<TValue>|undefined|null;\n /**\n * Function used to extract value from option, if not provided, select option value will be used as value\n */\n valueExtractor: ValueExtractorFunc<TValue, TPublicValue>;\n\n /**\n * Function used for comparing values of select options\n */\n valueComparer: ValueEqualityFunc<TPublicValue>;\n\n /**\n * Method that is used for filtering when live search is running on static data\n */\n textExtractor: TextExtractorFunc<TValue>;\n\n /**\n * Normalize text for comparison\n */\n normalize: NormalizeTextForComparison;\n\n /**\n * Compares two texts of option\n */\n textCompare: TextComparerFunc;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectBusOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectBusOptions/selectBusOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {DisplayTextFunc, NormalizeTextForComparison, TextComparerFunc, TextExtractorFunc, ValueEqualityFunc, ValueExtractorFunc} from '../../misc/types';\r\nimport {OptionsGatherer} from '../optionsGatherer/optionsGatherer.interface';\r\nimport {TemplateGatherer} from '../templateGatherer/templateGatherer.interface';\r\n\r\n/**\r\n * Options used for select bus\r\n */\r\nexport interface SelectBusOptions<TValue = unknown, TPublicValue = TValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Instance of options gatherer that is used for obtaining options\r\n */\r\n optionsGatherer: OptionsGatherer<TValue>;\r\n\r\n /**\r\n * Instance of template gatherer used for obtaining custom templates\r\n */\r\n templateGatherer: TemplateGatherer<TValue>;\r\n\r\n /**\r\n * Indication whether is Select readonly or not\r\n */\r\n readonly: boolean;\r\n\r\n /**\r\n * Indication that multiple values can be selected\r\n */\r\n multiple: boolean;\r\n\r\n /**\r\n * Placeholder text shown when there is no value selected\r\n */\r\n placeholder: string;\r\n\r\n /**\r\n * Indication whether close popup on selecting value\r\n */\r\n closeOnSelect: boolean;\r\n\r\n /**\r\n * Function used for transformation of selected option into display text\r\n */\r\n displaySelectedValue: DisplayTextFunc<TValue>;\r\n\r\n /**\r\n * Function used for transformation of option into display text, if not specified, displaySelectedValue will be used for transforming option into display text\r\n */\r\n displayOptionValue: DisplayTextFunc<TValue>|undefined|null;\r\n /**\r\n * Function used to extract value from option, if not provided, select option value will be used as value\r\n */\r\n valueExtractor: ValueExtractorFunc<TValue, TPublicValue>;\r\n\r\n /**\r\n * Function used for comparing values of select options\r\n */\r\n valueComparer: ValueEqualityFunc<TPublicValue>;\r\n\r\n /**\r\n * Method that is used for filtering when live search is running on static data\r\n */\r\n textExtractor: TextExtractorFunc<TValue>;\r\n\r\n /**\r\n * Normalize text for comparison\r\n */\r\n normalize: NormalizeTextForComparison;\r\n\r\n /**\r\n * Compares two texts of option\r\n */\r\n textCompare: TextComparerFunc;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectCssClasses.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectCssClasses/selectCssClasses.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Css classes for Select\n */\nexport interface SelectCssClasses\n{\n //######################### properties #########################\n\n /**\n * Css class applied to container storing visual parts of Select\n */\n visualContainer: string;\n\n /**\n * Css class applied directly to css select\n */\n selectElement: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectCssClasses.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectCssClasses/selectCssClasses.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Css classes for Select\r\n */\r\nexport interface SelectCssClasses\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Css class applied to container storing visual parts of Select\r\n */\r\n visualContainer: string;\r\n\r\n /**\r\n * Css class applied directly to css select\r\n */\r\n selectElement: string;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectEvent.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectEvent/selectEvent.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectApi} from '../selectApi/selectApi.interface';\nimport {SelectPlugin} from '../selectPlugin/selectPlugin.interface';\n\n/**\n * Event that is used for 'void' events, storing information about source of event and source element\n */\nexport interface SelectEvent<TData = unknown>\n{\n /**\n * Html element that caused the event\n */\n sourceElement: HTMLElement;\n\n /**\n * Instance of select or select plugin that caused event\n */\n source: SelectApi|SelectPlugin;\n\n /**\n * Data passed with event that occured\n */\n data: TData|undefined|null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectEvent.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectEvent/selectEvent.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectApi} from '../selectApi/selectApi.interface';\r\nimport {SelectPlugin} from '../selectPlugin/selectPlugin.interface';\r\n\r\n/**\r\n * Event that is used for 'void' events, storing information about source of event and source element\r\n */\r\nexport interface SelectEvent<TData = unknown>\r\n{\r\n /**\r\n * Html element that caused the event\r\n */\r\n sourceElement: HTMLElement;\r\n\r\n /**\r\n * Instance of select or select plugin that caused event\r\n */\r\n source: SelectApi|SelectPlugin;\r\n\r\n /**\r\n * Data passed with event that occured\r\n */\r\n data: TData|undefined|null;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectEvents.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectEvents/selectEvents.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Observable} from 'rxjs';\n\nimport {SelectEvent} from '../selectEvent/selectEvent.interface';\n\n/**\n * Represents all events implemented by select bus\n */\nexport interface SelectEvents\n{\n //######################### properties - events #########################\n\n /**\n * Occurs when any part of select gains focus\n */\n readonly focus: Observable<SelectEvent>;\n\n /**\n * Occurs when there is click on select itself (anywhere in select)\n */\n readonly click: Observable<SelectEvent>;\n\n /**\n * Occurs when any part of select loses focus\n */\n readonly blur: Observable<SelectEvent>;\n\n //######################### methods - events #########################\n\n /**\n * Sets focus on Select.\n */\n setFocus(): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectEvents.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectEvents/selectEvents.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Observable} from 'rxjs';\r\n\r\nimport {SelectEvent} from '../selectEvent/selectEvent.interface';\r\n\r\n/**\r\n * Represents all events implemented by select bus\r\n */\r\nexport interface SelectEvents\r\n{\r\n //######################### properties - events #########################\r\n\r\n /**\r\n * Occurs when any part of select gains focus\r\n */\r\n readonly focus: Observable<SelectEvent>;\r\n\r\n /**\r\n * Occurs when there is click on select itself (anywhere in select)\r\n */\r\n readonly click: Observable<SelectEvent>;\r\n\r\n /**\r\n * Occurs when any part of select loses focus\r\n */\r\n readonly blur: Observable<SelectEvent>;\r\n\r\n //######################### methods - events #########################\r\n\r\n /**\r\n * Sets focus on Select.\r\n */\r\n setFocus(): void;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOption.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOption/selectOption.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\n\nimport {SelectOptionGroup} from '../selectOptionGroup/selectOptionGroup.interface';\n\n/**\n * Option for select\n */\nexport interface SelectOption<TValue = unknown>\n{\n /**\n * Value that will be used if this option will be selected\n */\n value: Signal<TValue|undefined|null>;\n\n /**\n * Text that is displayed if this value is selected\n */\n text: Signal<string>;\n\n /**\n * If specified this option will be displayed in group\n */\n group: Signal<SelectOptionGroup|undefined|null>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectOption.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOption/selectOption.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal} from '@angular/core';\r\n\r\nimport {SelectOptionGroup} from '../selectOptionGroup/selectOptionGroup.interface';\r\n\r\n/**\r\n * Option for select\r\n */\r\nexport interface SelectOption<TValue = unknown>\r\n{\r\n /**\r\n * Value that will be used if this option will be selected\r\n */\r\n value: Signal<TValue|undefined|null>;\r\n\r\n /**\r\n * Text that is displayed if this value is selected\r\n */\r\n text: Signal<string>;\r\n\r\n /**\r\n * If specified this option will be displayed in group\r\n */\r\n group: Signal<SelectOptionGroup|undefined|null>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOptionGroup.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptionGroup/selectOptionGroup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal, TemplateRef} from '@angular/core';\n\n/**\n * Option group for Select\n */\nexport interface SelectOptionGroup\n{\n /**\n * Index of the option group in the list of options\n */\n index: number;\n\n /**\n * Optional template to be used for rendering option group\n */\n template: Signal<TemplateRef<{$implicit: string}>|undefined|null>;\n\n /**\n * Unique id of group\n */\n readonly id: string;\n\n /**\n * Text that is displayed for this options group\n */\n text: Signal<string>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectOptionGroup.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptionGroup/selectOptionGroup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal, TemplateRef} from '@angular/core';\r\n\r\n/**\r\n * Option group for Select\r\n */\r\nexport interface SelectOptionGroup\r\n{\r\n /**\r\n * Index of the option group in the list of options\r\n */\r\n index: number;\r\n\r\n /**\r\n * Optional template to be used for rendering option group\r\n */\r\n template: Signal<TemplateRef<{$implicit: string}>|undefined|null>;\r\n\r\n /**\r\n * Unique id of group\r\n */\r\n readonly id: string;\r\n\r\n /**\r\n * Text that is displayed for this options group\r\n */\r\n text: Signal<string>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOptionState.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptionState/selectOptionState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {WritableSignal} from '@angular/core';\n\nimport {SelectOption} from '../selectOption/selectOption.interface';\n\n/**\n * Option for Select with information about its state\n */\nexport interface SelectOptionState<TValue = unknown> extends SelectOption<TValue>\n{\n /**\n * Index of the option in the list of options\n */\n index: number;\n\n /**\n * Indication whether is item active\n */\n active: WritableSignal<boolean>;\n\n /**\n * Indication whether is this option selected\n */\n selected: WritableSignal<boolean>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectOptionState.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptionState/selectOptionState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {WritableSignal} from '@angular/core';\r\n\r\nimport {SelectOption} from '../selectOption/selectOption.interface';\r\n\r\n/**\r\n * Option for Select with information about its state\r\n */\r\nexport interface SelectOptionState<TValue = unknown> extends SelectOption<TValue>\r\n{\r\n /**\r\n * Index of the option in the list of options\r\n */\r\n index: number;\r\n\r\n /**\r\n * Indication whether is item active\r\n */\r\n active: WritableSignal<boolean>;\r\n\r\n /**\r\n * Indication whether is this option selected\r\n */\r\n selected: WritableSignal<boolean>;\r\n}\r\n"]}
|
package/es2022/src/interfaces/selectOptionStateSyntetic/selectOptionStateSyntetic.interface.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOptionStateSyntetic.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptionStateSyntetic/selectOptionStateSyntetic.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\n\n/**\n * Option for Select with information about its state and whether it was created\n */\nexport interface SelectOptionStateSyntetic<TValue = unknown> extends SelectOptionState<TValue>\n{\n //######################### properties #########################\n\n /**\n * Indication whether was this option created in Select\n */\n created?: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectOptionStateSyntetic.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptionStateSyntetic/selectOptionStateSyntetic.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectOptionState} from '../selectOptionState/selectOptionState.interface';\r\n\r\n/**\r\n * Option for Select with information about its state and whether it was created\r\n */\r\nexport interface SelectOptionStateSyntetic<TValue = unknown> extends SelectOptionState<TValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Indication whether was this option created in Select\r\n */\r\n created?: boolean;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptions/selectOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectBusOptions} from '../selectBusOptions/selectBusOptions.interface';\nimport {SelectCssClasses} from '../selectCssClasses/selectCssClasses.interface';\nimport {SelectPluginTypes} from '../selectPluginTypes/selectPluginTypes.interface';\n\n/**\n * Describes select options used for Select\n */\nexport interface SelectOptions<TValue = unknown, TPublicValue = TValue, TCssClasses = SelectCssClasses> extends SelectBusOptions<TValue, TPublicValue>\n{\n /**\n * Css classes applied to select component\n */\n cssClasses: TCssClasses;\n\n /**\n * Object defining overrides for default plugins, default plugins can be also specified using DI\n */\n plugins: SelectPluginTypes<TValue, TPublicValue>;\n\n /**\n * Indication whether is 'Popup' plugin displayd inside of Select (false) or directly in Body (true)\n */\n absolute: boolean;\n\n /**\n * String that defines element in which should be absolute popup rendered, if not specified, body is used, used only if absolute is set to true, otherwise it has no effect\n *\n * Allows also css classes to be specified (div.body-box)\n */\n containerElement: string|undefined|null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectOptions/selectOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {SelectBusOptions} from '../selectBusOptions/selectBusOptions.interface';\r\nimport {SelectCssClasses} from '../selectCssClasses/selectCssClasses.interface';\r\nimport {SelectPluginTypes} from '../selectPluginTypes/selectPluginTypes.interface';\r\n\r\n/**\r\n * Describes select options used for Select\r\n */\r\nexport interface SelectOptions<TValue = unknown, TPublicValue = TValue, TCssClasses = SelectCssClasses> extends SelectBusOptions<TValue, TPublicValue>\r\n{\r\n /**\r\n * Css classes applied to select component\r\n */\r\n cssClasses: TCssClasses;\r\n\r\n /**\r\n * Object defining overrides for default plugins, default plugins can be also specified using DI\r\n */\r\n plugins: SelectPluginTypes<TValue, TPublicValue>;\r\n\r\n /**\r\n * Indication whether is 'Popup' plugin displayd inside of Select (false) or directly in Body (true)\r\n */\r\n absolute: boolean;\r\n\r\n /**\r\n * String that defines element in which should be absolute popup rendered, if not specified, body is used, used only if absolute is set to true, otherwise it has no effect\r\n *\r\n * Allows also css classes to be specified (div.body-box)\r\n */\r\n containerElement: string|undefined|null;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectPlugin.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectPlugin/selectPlugin.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {ElementRef} from '@angular/core';\n\nimport type {SelectBus, SelectPluginInstances} from '../../misc/classes';\n\n/**\n * Select plugin interface\n */\nexport interface SelectPlugin<TOptions = unknown, TValue = unknown, TPublicValue = TValue, TAction = string>\n{\n /**\n * Select plugin instances available for this plugin\n */\n readonly selectPlugins: SelectPluginInstances<TValue, TPublicValue>;\n\n /**\n * Element that represents plugin\n */\n readonly pluginElement: ElementRef<HTMLElement>;\n\n /**\n * Options for Select plugin\n */\n options: TOptions;\n\n /**\n * Select bus used in Select for comunication between plugins and Select\n */\n readonly selectBus: SelectBus<TValue, TPublicValue, TAction>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectPlugin.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectPlugin/selectPlugin.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {ElementRef} from '@angular/core';\r\n\r\nimport type {SelectBus, SelectPluginInstances} from '../../misc/classes';\r\n\r\n/**\r\n * Select plugin interface\r\n */\r\nexport interface SelectPlugin<TOptions = unknown, TValue = unknown, TPublicValue = TValue, TAction = string>\r\n{\r\n /**\r\n * Select plugin instances available for this plugin\r\n */\r\n readonly selectPlugins: SelectPluginInstances<TValue, TPublicValue>;\r\n\r\n /**\r\n * Element that represents plugin\r\n */\r\n readonly pluginElement: ElementRef<HTMLElement>;\r\n\r\n /**\r\n * Options for Select plugin\r\n */\r\n options: TOptions;\r\n\r\n /**\r\n * Select bus used in Select for comunication between plugins and Select\r\n */\r\n readonly selectBus: SelectBus<TValue, TPublicValue, TAction>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectPluginTypes.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectPluginTypes/selectPluginTypes.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginDescription} from '../pluginDescription/pluginDescription.interface';\nimport {Interactions, InteractionsOptions, KeyboardHandler, KeyboardHandlerOptions, LiveSearch, LiveSearchOptions, NormalState, NormalStateOptions, OptionsHandler, OptionsHandlerOptions, Popup, PopupOptions, Positioner, PositionerOptions, ReadonlyState, ReadonlyStateOptions, ValueHandler, ValueHandlerOptions} from '../plugins';\n\n/**\n * All available types of plugins for Select\n */\nexport interface SelectPluginTypes<TValue = unknown, TPublicValue = TValue>\n{\n /**\n * Handles interactions of plugins and select\n */\n interactions: PluginDescription<Interactions<TValue, TPublicValue>, InteractionsOptions>;\n\n /**\n * Handles keyboard input from user\n */\n keyboardHandler: PluginDescription<KeyboardHandler<TValue, TPublicValue>, KeyboardHandlerOptions>;\n\n /**\n * Contains component that is used for live search of options\n */\n liveSearch: PluginDescription<LiveSearch<TValue, TPublicValue>, LiveSearchOptions>;\n\n /**\n * Component used for displaying normal state of selected value\n */\n normalState: PluginDescription<NormalState<TValue, TPublicValue>, NormalStateOptions>;\n\n /**\n * Component used for handling available options\n */\n optionsHandler: PluginDescription<OptionsHandler<TValue, TPublicValue>, OptionsHandlerOptions<TValue>>;\n\n /**\n * Component that handles positioning of popup\n */\n popup: PluginDescription<Popup<TValue, TPublicValue>, PopupOptions>;\n\n /**\n * Handles correct position of pop component\n */\n positioner: PluginDescription<Positioner<TValue, TPublicValue>, PositionerOptions>;\n\n /**\n * Component that is used for displaying readonly state of selected value, can be ommited, in that case normal state is used\n */\n readonlyState: PluginDescription<ReadonlyState<TValue, TPublicValue>, ReadonlyStateOptions>;\n\n /**\n * Component that is used for storing and handling value of select\n */\n valueHandler: PluginDescription<ValueHandler<TValue, TPublicValue>, ValueHandlerOptions>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectPluginTypes.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/selectPluginTypes/selectPluginTypes.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginDescription} from '../pluginDescription/pluginDescription.interface';\r\nimport {Interactions, InteractionsOptions, KeyboardHandler, KeyboardHandlerOptions, LiveSearch, LiveSearchOptions, NormalState, NormalStateOptions, OptionsHandler, OptionsHandlerOptions, Popup, PopupOptions, Positioner, PositionerOptions, ReadonlyState, ReadonlyStateOptions, ValueHandler, ValueHandlerOptions} from '../plugins';\r\n\r\n/**\r\n * All available types of plugins for Select\r\n */\r\nexport interface SelectPluginTypes<TValue = unknown, TPublicValue = TValue>\r\n{\r\n /**\r\n * Handles interactions of plugins and select\r\n */\r\n interactions: PluginDescription<Interactions<TValue, TPublicValue>, InteractionsOptions>;\r\n\r\n /**\r\n * Handles keyboard input from user\r\n */\r\n keyboardHandler: PluginDescription<KeyboardHandler<TValue, TPublicValue>, KeyboardHandlerOptions>;\r\n\r\n /**\r\n * Contains component that is used for live search of options\r\n */\r\n liveSearch: PluginDescription<LiveSearch<TValue, TPublicValue>, LiveSearchOptions>;\r\n\r\n /**\r\n * Component used for displaying normal state of selected value\r\n */\r\n normalState: PluginDescription<NormalState<TValue, TPublicValue>, NormalStateOptions>;\r\n\r\n /**\r\n * Component used for handling available options\r\n */\r\n optionsHandler: PluginDescription<OptionsHandler<TValue, TPublicValue>, OptionsHandlerOptions<TValue>>;\r\n\r\n /**\r\n * Component that handles positioning of popup\r\n */\r\n popup: PluginDescription<Popup<TValue, TPublicValue>, PopupOptions>;\r\n\r\n /**\r\n * Handles correct position of pop component\r\n */\r\n positioner: PluginDescription<Positioner<TValue, TPublicValue>, PositionerOptions>;\r\n\r\n /**\r\n * Component that is used for displaying readonly state of selected value, can be ommited, in that case normal state is used\r\n */\r\n readonlyState: PluginDescription<ReadonlyState<TValue, TPublicValue>, ReadonlyStateOptions>;\r\n\r\n /**\r\n * Component that is used for storing and handling value of select\r\n */\r\n valueHandler: PluginDescription<ValueHandler<TValue, TPublicValue>, ValueHandlerOptions>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tempValue.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/tempValue/tempValue.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Used for storing temporary value during async write\n */\nexport interface TempValue<TValue>\n{\n //######################### properties #########################\n\n /**\n * Stored value\n */\n value?: TValue|undefined|null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"tempValue.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/tempValue/tempValue.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Used for storing temporary value during async write\r\n */\r\nexport interface TempValue<TValue>\r\n{\r\n //######################### properties #########################\r\n\r\n /**\r\n * Stored value\r\n */\r\n value?: TValue|undefined|null;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateGatherer.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/templateGatherer/templateGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal, TemplateRef} from '@angular/core';\n\nimport {NormalStateContext} from '../normalStateContext/normalStateContext.interface';\nimport {PopupContext} from '../popupContext/popupContext.interface';\nimport {NormalStateTagContext} from '../normalStateTagContext/normalStateTagContext.interface';\n\n/**\n * Gatherer used for obtaining templates for Select\n */\nexport interface TemplateGatherer<TValue = unknown, TPublicValue = TValue>\n{\n /**\n * Template used within normal state, for rendering normal state if defined\n */\n readonly normalStateTemplate: Signal<TemplateRef<NormalStateContext<TValue, TPublicValue>>|undefined|null>;\n\n /**\n * Template used within Popup, for rendering option if defined\n */\n readonly optionTemplate: Signal<TemplateRef<PopupContext<TValue, TPublicValue>>|undefined|null>;\n\n /**\n * Template used within normal state, for rendering tags\n */\n readonly normalStateTagTemplate: Signal<TemplateRef<NormalStateTagContext<TValue, TPublicValue>>|undefined|null>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"templateGatherer.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/templateGatherer/templateGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Signal, TemplateRef} from '@angular/core';\r\n\r\nimport {NormalStateContext} from '../normalStateContext/normalStateContext.interface';\r\nimport {PopupContext} from '../popupContext/popupContext.interface';\r\nimport {NormalStateTagContext} from '../normalStateTagContext/normalStateTagContext.interface';\r\n\r\n/**\r\n * Gatherer used for obtaining templates for Select\r\n */\r\nexport interface TemplateGatherer<TValue = unknown, TPublicValue = TValue>\r\n{\r\n /**\r\n * Template used within normal state, for rendering normal state if defined\r\n */\r\n readonly normalStateTemplate: Signal<TemplateRef<NormalStateContext<TValue, TPublicValue>>|undefined|null>;\r\n\r\n /**\r\n * Template used within Popup, for rendering option if defined\r\n */\r\n readonly optionTemplate: Signal<TemplateRef<PopupContext<TValue, TPublicValue>>|undefined|null>;\r\n\r\n /**\r\n * Template used within normal state, for rendering tags\r\n */\r\n readonly normalStateTagTemplate: Signal<TemplateRef<NormalStateTagContext<TValue, TPublicValue>>|undefined|null>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualPluginOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/visualPluginOptions/visualPluginOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../pluginOptions/pluginOptions.interface';\n\n/**\n * Base options for every visual plugin (component)\n */\nexport interface VisualPluginOptions<TCssClasses = unknown> extends PluginOptions\n{\n /**\n * Css classes applied to visual plugin (component), possible to override only part of classes\n */\n cssClasses: TCssClasses;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"visualPluginOptions.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/visualPluginOptions/visualPluginOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions} from '../pluginOptions/pluginOptions.interface';\r\n\r\n/**\r\n * Base options for every visual plugin (component)\r\n */\r\nexport interface VisualPluginOptions<TCssClasses = unknown> extends PluginOptions\r\n{\r\n /**\r\n * Css classes applied to visual plugin (component), possible to override only part of classes\r\n */\r\n cssClasses: TCssClasses;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeOptionsGatherer.interface.js","sourceRoot":"","sources":["../../../../../src/misc/classes/codeOptionsGatherer/codeOptionsGatherer.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAyB,MAAM,eAAe,CAAC;AAI7D;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QAEI,sEAAsE;QAEtE;;WAEG;QACO,2BAAsB,GAAwE,MAAM,CAAC,IAAI;mGAAC,CAAC;IAmCzH,CAAC;IAjCG,2GAA2G;IAE3G;;OAEG;IACH,IAAW,gBAAgB;QAEvB,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,CAAC;IACpD,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,mBAAmB,CAAC,OAAwC;QAE/D,MAAM,gBAAgB,GAAG,EAAiC,CAAC;QAE3D,KAAI,MAAM,MAAM,IAAI,OAAO,EAC3B,CAAC;YACG,MAAM,GAAG,GAA8B,MAAmC,CAAC;YAE3E,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK;uFAAC,CAAC;YAC3B,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,KAAK;yFAAC,CAAC;YAC7B,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;YAEd,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,CAAC;QAED,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACtD,CAAC;CACJ","sourcesContent":["import {signal, Signal, WritableSignal} from '@angular/core';\n\nimport {OptionsGatherer, SelectOption, SelectOptionState} from '../../../interfaces';\n\n/**\n * Options gatherer used for obtaining select options from code\n */\nexport class CodeOptionsGatherer<TValue = unknown> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Array of all available options for select\n */\n protected availableOptionsSignal: WritableSignal<readonly SelectOptionState<TValue>[]|null|undefined> = signal(null);\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * @inheritdoc\n */\n public get availableOptions(): Signal<readonly SelectOptionState<TValue>[]|null|undefined>\n {\n return this.availableOptionsSignal.asReadonly();\n }\n\n //######################### public methods #########################\n\n /**\n * Sets available options\n * @param options - Options to be set\n */\n public setAvailableOptions(options: readonly SelectOption<TValue>[]): void\n {\n const availableOptions = [] as SelectOptionState<TValue>[];\n\n for(const option of options)\n {\n const opt: SelectOptionState<TValue> = option as SelectOptionState<TValue>;\n\n opt.active = signal(false);\n opt.selected = signal(false);\n opt.index = 0;\n\n availableOptions.push(opt);\n }\n\n this.availableOptionsSignal.set(availableOptions);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"codeOptionsGatherer.interface.js","sourceRoot":"","sources":["../../../../../src/misc/classes/codeOptionsGatherer/codeOptionsGatherer.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAyB,MAAM,eAAe,CAAC;AAI7D;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QAEI,sEAAsE;QAEtE;;WAEG;QACO,2BAAsB,GAAwE,MAAM,CAAC,IAAI;mGAAC,CAAC;IAmCzH,CAAC;IAjCG,2GAA2G;IAE3G;;OAEG;IACH,IAAW,gBAAgB;QAEvB,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,CAAC;IACpD,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,mBAAmB,CAAC,OAAwC;QAE/D,MAAM,gBAAgB,GAAG,EAAiC,CAAC;QAE3D,KAAI,MAAM,MAAM,IAAI,OAAO,EAC3B,CAAC;YACG,MAAM,GAAG,GAA8B,MAAmC,CAAC;YAE3E,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK;uFAAC,CAAC;YAC3B,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,KAAK;yFAAC,CAAC;YAC7B,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;YAEd,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,CAAC;QAED,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACtD,CAAC;CACJ","sourcesContent":["import {signal, Signal, WritableSignal} from '@angular/core';\r\n\r\nimport {OptionsGatherer, SelectOption, SelectOptionState} from '../../../interfaces';\r\n\r\n/**\r\n * Options gatherer used for obtaining select options from code\r\n */\r\nexport class CodeOptionsGatherer<TValue = unknown> implements OptionsGatherer<TValue>\r\n{\r\n //######################### protected fields #########################\r\n\r\n /**\r\n * Array of all available options for select\r\n */\r\n protected availableOptionsSignal: WritableSignal<readonly SelectOptionState<TValue>[]|null|undefined> = signal(null);\r\n\r\n //######################### public properties - implementation of OptionsGatherer #########################\r\n\r\n /**\r\n * @inheritdoc\r\n */\r\n public get availableOptions(): Signal<readonly SelectOptionState<TValue>[]|null|undefined>\r\n {\r\n return this.availableOptionsSignal.asReadonly();\r\n }\r\n\r\n //######################### public methods #########################\r\n\r\n /**\r\n * Sets available options\r\n * @param options - Options to be set\r\n */\r\n public setAvailableOptions(options: readonly SelectOption<TValue>[]): void\r\n {\r\n const availableOptions = [] as SelectOptionState<TValue>[];\r\n\r\n for(const option of options)\r\n {\r\n const opt: SelectOptionState<TValue> = option as SelectOptionState<TValue>;\r\n\r\n opt.active = signal(false);\r\n opt.selected = signal(false);\r\n opt.index = 0;\r\n\r\n availableOptions.push(opt);\r\n }\r\n\r\n this.availableOptionsSignal.set(availableOptions);\r\n }\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/misc/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC;AACpE,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC","sourcesContent":["export * from './codeOptionsGatherer/codeOptionsGatherer.interface';\nexport * from './selectBus/selectBus';\nexport * from './selectPluginInstances/selectPluginInstances';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/misc/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC;AACpE,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC","sourcesContent":["export * from './codeOptionsGatherer/codeOptionsGatherer.interface';\r\nexport * from './selectBus/selectBus';\r\nexport * from './selectPluginInstances/selectPluginInstances';\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectBus.js","sourceRoot":"","sources":["../../../../../src/misc/classes/selectBus/selectBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAc,MAAM,EAA0B,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;;AAI7B;;GAEG;AAEH,MAAM,OAAO,SAAS;IADtB;QAGI,uEAAuE;QAEvE;;WAEG;QACa,OAAE,GAAW,MAAM,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;QAgBpD;;WAEG;QACa,oBAAe,GAAyF,MAAM,CAAC,IAAI;4FAAC,CAAC;QAErI;;WAEG;QACa,iBAAY,GAA4B,MAAM,CAAC,KAAK;yFAAC,CAAC;QAEtE;;WAEG;QACa,mBAAc,GAAoD,IAAI,OAAO,EAA0C,CAAC;QAExI;;WAEG;QACa,mBAAc,GAAkD,IAAI,OAAO,EAAwC,CAAC;QAEpI;;WAEG;QACa,cAAS,GAAyB,IAAI,OAAO,EAAe,CAAC;QAE7E;;WAEG;QACa,cAAS,GAAyB,IAAI,OAAO,EAAe,CAAC;QAE7E;;WAEG;QACa,eAAU,GAAoD,IAAI,OAAO,EAA0C,CAAC;QAEpI;;WAEG;QACa,aAAQ,GAA4B,MAAM,CAAC,KAAK;qFAAC,CAAC;QAElE;;WAEG;QACa,qBAAgB,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;6FAAC,CAAC;QAEpF;;WAEG;QACa,mBAAc,GAAyB,IAAI,OAAO,EAAe,CAAC;QAElF;;WAEG;QACa,kBAAa,GAAyB,IAAI,OAAO,EAAe,CAAC;QAEjF;;WAEG;QACa,aAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAC;QAE9D,gFAAgF;QAEhF;;WAEG;QACa,UAAK,GAAyB,IAAI,OAAO,EAAe,CAAC;QAEzE;;WAEG;QACa,UAAK,GAAyB,IAAI,OAAO,EAAe,CAAC;QAEzE;;WAEG;QACa,SAAI,GAAyB,IAAI,OAAO,EAAe,CAAC;KAW3E;IATG,6EAA6E;IAE7E;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;8GA5GQ,SAAS;kHAAT,SAAS;;2FAAT,SAAS;kBADrB,UAAU","sourcesContent":["import {Injectable, ElementRef, signal, WritableSignal, Signal, computed} from '@angular/core';\nimport {generateId} from '@jscrpt/common';\nimport {Subject} from 'rxjs';\n\nimport {SelectEvents, SelectBusOptions, SelectEvent, SelectOptionState, KeyboardAction} from '../../../interfaces';\n\n/**\n * Class represents centralized bus for internal communication\n */\n@Injectable()\nexport class SelectBus<TValue = unknown, TPublicValue = TValue, TAction = string> implements SelectEvents\n{\n //######################### public properties #########################\n\n /**\n * Unique id of select\n */\n public readonly id: string = `$id${generateId(10)}`;\n\n /**\n * Options passed to select\n *\n * Initialized in constructor of select\n */\n public selectOptions!: Signal<SelectBusOptions<TValue, TPublicValue>>;\n\n /**\n * HTML element that represents select itself\n *\n * Initialized in constructor of select\n */\n public selectElement!: Signal<ElementRef<HTMLElement>>;\n\n /**\n * Currently selected options of Select\n */\n public readonly selectedOptions: WritableSignal<SelectOptionState<TValue>|SelectOptionState<TValue>[]|undefined|null> = signal(null);\n\n /**\n * Indicates whether is popup visible or not\n */\n public readonly popupVisible: WritableSignal<boolean> = signal(false);\n\n /**\n * Occurs when option is being to be activated\n */\n public readonly optionActivate: Subject<SelectEvent<SelectOptionState<TValue>>> = new Subject<SelectEvent<SelectOptionState<TValue>>>();\n\n /**\n * Occurs when certain keys on keyboard are pressed\n */\n public readonly keyboardAction: Subject<SelectEvent<KeyboardAction<TAction>>> = new Subject<SelectEvent<KeyboardAction<TAction>>>();\n\n /**\n * Occurs when popup should be shown\n */\n public readonly showPopup: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n /**\n * Occurs when popup should be hidden\n */\n public readonly hidePopup: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n /**\n * Occurs when option needs to be marked as active (hovered or keyboard focused)\n */\n public readonly markOption: Subject<SelectEvent<SelectOptionState<TValue>>> = new Subject<SelectEvent<SelectOptionState<TValue>>>();\n\n /**\n * Indication whether Select has focus\n */\n public readonly hasFocus: WritableSignal<boolean> = signal(false);\n\n /**\n * Computed indication whether Select has focus\n */\n public readonly hasFocusComputed: Signal<boolean> = computed(() => this.hasFocus());\n\n /**\n * Occurs when select internals receives focus\n */\n public readonly internalsFocus: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n /**\n * Occurs when select internals loses focus\n */\n public readonly internalsBlur: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n /**\n * Occurs when focus is set on select\n */\n public readonly focusSet: Subject<void> = new Subject<void>();\n\n //######################### public properties - events #########################\n\n /**\n * @inheritdoc\n */\n public readonly focus: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n /**\n * @inheritdoc\n */\n public readonly click: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n /**\n * @inheritdoc\n */\n public readonly blur: Subject<SelectEvent> = new Subject<SelectEvent>();\n\n //######################### public methods - events #########################\n\n /**\n * @inheritdoc\n */\n public setFocus(): void\n {\n this.focusSet.next();\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"selectBus.js","sourceRoot":"","sources":["../../../../../src/misc/classes/selectBus/selectBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAc,MAAM,EAA0B,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;;AAI7B;;GAEG;AAEH,MAAM,OAAO,SAAS;IADtB;QAGI,uEAAuE;QAEvE;;WAEG;QACa,OAAE,GAAW,MAAM,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;QAgBpD;;WAEG;QACa,oBAAe,GAAyF,MAAM,CAAC,IAAI;4FAAC,CAAC;QAErI;;WAEG;QACa,iBAAY,GAA4B,MAAM,CAAC,KAAK;yFAAC,CAAC;QAEtE;;WAEG;QACa,mBAAc,GAAoD,IAAI,OAAO,EAA0C,CAAC;QAExI;;WAEG;QACa,mBAAc,GAAkD,IAAI,OAAO,EAAwC,CAAC;QAEpI;;WAEG;QACa,cAAS,GAAyB,IAAI,OAAO,EAAe,CAAC;QAE7E;;WAEG;QACa,cAAS,GAAyB,IAAI,OAAO,EAAe,CAAC;QAE7E;;WAEG;QACa,eAAU,GAAoD,IAAI,OAAO,EAA0C,CAAC;QAEpI;;WAEG;QACa,aAAQ,GAA4B,MAAM,CAAC,KAAK;qFAAC,CAAC;QAElE;;WAEG;QACa,qBAAgB,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;6FAAC,CAAC;QAEpF;;WAEG;QACa,mBAAc,GAAyB,IAAI,OAAO,EAAe,CAAC;QAElF;;WAEG;QACa,kBAAa,GAAyB,IAAI,OAAO,EAAe,CAAC;QAEjF;;WAEG;QACa,aAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAC;QAE9D,gFAAgF;QAEhF;;WAEG;QACa,UAAK,GAAyB,IAAI,OAAO,EAAe,CAAC;QAEzE;;WAEG;QACa,UAAK,GAAyB,IAAI,OAAO,EAAe,CAAC;QAEzE;;WAEG;QACa,SAAI,GAAyB,IAAI,OAAO,EAAe,CAAC;KAW3E;IATG,6EAA6E;IAE7E;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;8GA5GQ,SAAS;kHAAT,SAAS;;2FAAT,SAAS;kBADrB,UAAU","sourcesContent":["import {Injectable, ElementRef, signal, WritableSignal, Signal, computed} from '@angular/core';\r\nimport {generateId} from '@jscrpt/common';\r\nimport {Subject} from 'rxjs';\r\n\r\nimport {SelectEvents, SelectBusOptions, SelectEvent, SelectOptionState, KeyboardAction} from '../../../interfaces';\r\n\r\n/**\r\n * Class represents centralized bus for internal communication\r\n */\r\n@Injectable()\r\nexport class SelectBus<TValue = unknown, TPublicValue = TValue, TAction = string> implements SelectEvents\r\n{\r\n //######################### public properties #########################\r\n\r\n /**\r\n * Unique id of select\r\n */\r\n public readonly id: string = `$id${generateId(10)}`;\r\n\r\n /**\r\n * Options passed to select\r\n *\r\n * Initialized in constructor of select\r\n */\r\n public selectOptions!: Signal<SelectBusOptions<TValue, TPublicValue>>;\r\n\r\n /**\r\n * HTML element that represents select itself\r\n *\r\n * Initialized in constructor of select\r\n */\r\n public selectElement!: Signal<ElementRef<HTMLElement>>;\r\n\r\n /**\r\n * Currently selected options of Select\r\n */\r\n public readonly selectedOptions: WritableSignal<SelectOptionState<TValue>|SelectOptionState<TValue>[]|undefined|null> = signal(null);\r\n\r\n /**\r\n * Indicates whether is popup visible or not\r\n */\r\n public readonly popupVisible: WritableSignal<boolean> = signal(false);\r\n\r\n /**\r\n * Occurs when option is being to be activated\r\n */\r\n public readonly optionActivate: Subject<SelectEvent<SelectOptionState<TValue>>> = new Subject<SelectEvent<SelectOptionState<TValue>>>();\r\n\r\n /**\r\n * Occurs when certain keys on keyboard are pressed\r\n */\r\n public readonly keyboardAction: Subject<SelectEvent<KeyboardAction<TAction>>> = new Subject<SelectEvent<KeyboardAction<TAction>>>();\r\n\r\n /**\r\n * Occurs when popup should be shown\r\n */\r\n public readonly showPopup: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n /**\r\n * Occurs when popup should be hidden\r\n */\r\n public readonly hidePopup: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n /**\r\n * Occurs when option needs to be marked as active (hovered or keyboard focused)\r\n */\r\n public readonly markOption: Subject<SelectEvent<SelectOptionState<TValue>>> = new Subject<SelectEvent<SelectOptionState<TValue>>>();\r\n\r\n /**\r\n * Indication whether Select has focus\r\n */\r\n public readonly hasFocus: WritableSignal<boolean> = signal(false);\r\n\r\n /**\r\n * Computed indication whether Select has focus\r\n */\r\n public readonly hasFocusComputed: Signal<boolean> = computed(() => this.hasFocus());\r\n\r\n /**\r\n * Occurs when select internals receives focus\r\n */\r\n public readonly internalsFocus: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n /**\r\n * Occurs when select internals loses focus\r\n */\r\n public readonly internalsBlur: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n /**\r\n * Occurs when focus is set on select\r\n */\r\n public readonly focusSet: Subject<void> = new Subject<void>();\r\n\r\n //######################### public properties - events #########################\r\n\r\n /**\r\n * @inheritdoc\r\n */\r\n public readonly focus: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n /**\r\n * @inheritdoc\r\n */\r\n public readonly click: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n /**\r\n * @inheritdoc\r\n */\r\n public readonly blur: Subject<SelectEvent> = new Subject<SelectEvent>();\r\n\r\n //######################### public methods - events #########################\r\n\r\n /**\r\n * @inheritdoc\r\n */\r\n public setFocus(): void\r\n {\r\n this.focusSet.next();\r\n }\r\n}\r\n"]}
|