@web-atoms/web-controls 2.2.0 → 2.2.2

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.
Files changed (223) hide show
  1. package/dist/ModuleFiles.js +45 -46
  2. package/dist/ModuleFiles.js.map +1 -1
  3. package/dist/PageNavigator.d.ts +2 -2
  4. package/dist/PageNavigator.d.ts.map +1 -1
  5. package/dist/PageNavigator.js +54 -39
  6. package/dist/PageNavigator.js.map +1 -1
  7. package/dist/animations/Animations.js +38 -52
  8. package/dist/animations/Animations.js.map +1 -1
  9. package/dist/auto-complete/AppComboBoxViewModel.js +16 -17
  10. package/dist/auto-complete/AppComboBoxViewModel.js.map +1 -1
  11. package/dist/auto-complete/AutoCompleteBox.js +296 -273
  12. package/dist/auto-complete/AutoCompleteBox.js.map +1 -1
  13. package/dist/auto-complete/AutoCompleteBoxStyle.js +69 -65
  14. package/dist/auto-complete/AutoCompleteBoxStyle.js.map +1 -1
  15. package/dist/auto-complete/ItemHost.js +39 -28
  16. package/dist/auto-complete/ItemHost.js.map +1 -1
  17. package/dist/basic/AtomChips.js +348 -355
  18. package/dist/basic/AtomChips.js.map +1 -1
  19. package/dist/basic/AtomRepeater.js +1000 -1041
  20. package/dist/basic/AtomRepeater.js.map +1 -1
  21. package/dist/basic/AtomSuggestions.js +154 -161
  22. package/dist/basic/AtomSuggestions.js.map +1 -1
  23. package/dist/basic/Button.js +63 -60
  24. package/dist/basic/Button.js.map +1 -1
  25. package/dist/basic/Calendar.js +215 -255
  26. package/dist/basic/Calendar.js.map +1 -1
  27. package/dist/basic/CheckBoxList.js +73 -66
  28. package/dist/basic/CheckBoxList.js.map +1 -1
  29. package/dist/basic/Checkbox.js +30 -37
  30. package/dist/basic/Checkbox.js.map +1 -1
  31. package/dist/basic/Chip.js +52 -76
  32. package/dist/basic/Chip.js.map +1 -1
  33. package/dist/basic/ComboBox.js +75 -70
  34. package/dist/basic/ComboBox.js.map +1 -1
  35. package/dist/basic/DataGrid.js +289 -306
  36. package/dist/basic/DataGrid.js.map +1 -1
  37. package/dist/basic/DateField.js +90 -97
  38. package/dist/basic/DateField.js.map +1 -1
  39. package/dist/basic/DropDown.js +162 -142
  40. package/dist/basic/DropDown.js.map +1 -1
  41. package/dist/basic/Editable.js +109 -107
  42. package/dist/basic/Editable.js.map +1 -1
  43. package/dist/basic/Expander.js +111 -185
  44. package/dist/basic/Expander.js.map +1 -1
  45. package/dist/basic/Form.js +269 -264
  46. package/dist/basic/Form.js.map +1 -1
  47. package/dist/basic/FormDialog.js +27 -29
  48. package/dist/basic/FormDialog.js.map +1 -1
  49. package/dist/basic/FormField.js +183 -203
  50. package/dist/basic/FormField.js.map +1 -1
  51. package/dist/basic/IElement.js +8 -12
  52. package/dist/basic/IElement.js.map +1 -1
  53. package/dist/basic/InlinePopup.js +291 -262
  54. package/dist/basic/InlinePopup.js.map +1 -1
  55. package/dist/basic/InlinePopupControl.js +34 -33
  56. package/dist/basic/InlinePopupControl.js.map +1 -1
  57. package/dist/basic/Input.js +28 -28
  58. package/dist/basic/Input.js.map +1 -1
  59. package/dist/basic/ListRepeater.js +45 -61
  60. package/dist/basic/ListRepeater.js.map +1 -1
  61. package/dist/basic/MaskedInput.js +53 -66
  62. package/dist/basic/MaskedInput.js.map +1 -1
  63. package/dist/basic/MaskedInputDiv.js +78 -99
  64. package/dist/basic/MaskedInputDiv.js.map +1 -1
  65. package/dist/basic/Mix.js +34 -33
  66. package/dist/basic/Mix.js.map +1 -1
  67. package/dist/basic/Panel.js +34 -34
  68. package/dist/basic/Panel.js.map +1 -1
  69. package/dist/basic/PasswordBox.js +46 -49
  70. package/dist/basic/PasswordBox.js.map +1 -1
  71. package/dist/basic/PinchZoomView.js +250 -255
  72. package/dist/basic/PinchZoomView.js.map +1 -1
  73. package/dist/basic/PopupButton.js +70 -128
  74. package/dist/basic/PopupButton.js.map +1 -1
  75. package/dist/basic/RadioButtonList.js +63 -51
  76. package/dist/basic/RadioButtonList.js.map +1 -1
  77. package/dist/basic/RefreshLock.js +76 -60
  78. package/dist/basic/RefreshLock.js.map +1 -1
  79. package/dist/basic/Row.js +41 -43
  80. package/dist/basic/Row.js.map +1 -1
  81. package/dist/basic/Swipe.js +94 -101
  82. package/dist/basic/Swipe.js.map +1 -1
  83. package/dist/basic/Switch.js +58 -105
  84. package/dist/basic/Switch.js.map +1 -1
  85. package/dist/basic/TableRepeater.js +42 -43
  86. package/dist/basic/TableRepeater.js.map +1 -1
  87. package/dist/basic/ToggleButtonBar.js +58 -71
  88. package/dist/basic/ToggleButtonBar.js.map +1 -1
  89. package/dist/basic/Tooltip.js +89 -81
  90. package/dist/basic/Tooltip.js.map +1 -1
  91. package/dist/basic/combineClasses.js +12 -16
  92. package/dist/basic/combineClasses.js.map +1 -1
  93. package/dist/basic/in-built/InBuiltStyles.js +44 -43
  94. package/dist/basic/in-built/InBuiltStyles.js.map +1 -1
  95. package/dist/button-bar/AtomButtonBar.js +40 -50
  96. package/dist/button-bar/AtomButtonBar.js.map +1 -1
  97. package/dist/buttons/AtomPopupButton.js +18 -18
  98. package/dist/buttons/AtomPopupButton.js.map +1 -1
  99. package/dist/buttons/AtomPopupButtonStyle.js +28 -29
  100. package/dist/buttons/AtomPopupButtonStyle.js.map +1 -1
  101. package/dist/calendar/AtomCalendar.js +93 -61
  102. package/dist/calendar/AtomCalendar.js.map +1 -1
  103. package/dist/calendar/AtomCalendarStyle.js +165 -136
  104. package/dist/calendar/AtomCalendarStyle.js.map +1 -1
  105. package/dist/calendar/CalendarViewModel.js +105 -114
  106. package/dist/calendar/CalendarViewModel.js.map +1 -1
  107. package/dist/calendar/res/SRCalendar.js +85 -51
  108. package/dist/calendar/res/SRCalendar.js.map +1 -1
  109. package/dist/calendar/res/en-US/SRCalendar.js +74 -39
  110. package/dist/calendar/res/en-US/SRCalendar.js.map +1 -1
  111. package/dist/data-grid/AtomColumn.js +55 -72
  112. package/dist/data-grid/AtomColumn.js.map +1 -1
  113. package/dist/data-grid/AtomDataGrid.js +64 -63
  114. package/dist/data-grid/AtomDataGrid.js.map +1 -1
  115. package/dist/data-grid/AtomDataGridStyle.js +50 -50
  116. package/dist/data-grid/AtomDataGridStyle.js.map +1 -1
  117. package/dist/data-grid/AtomDataGridViewModel.js +71 -77
  118. package/dist/data-grid/AtomDataGridViewModel.js.map +1 -1
  119. package/dist/data-grid/GridTemplate.js +64 -66
  120. package/dist/data-grid/GridTemplate.js.map +1 -1
  121. package/dist/data-pager/AtomDataPager.js +104 -94
  122. package/dist/data-pager/AtomDataPager.js.map +1 -1
  123. package/dist/date-field/AtomDateField.js +52 -47
  124. package/dist/date-field/AtomDateField.js.map +1 -1
  125. package/dist/desktop-app/DesktopApp.js +87 -123
  126. package/dist/desktop-app/DesktopApp.js.map +1 -1
  127. package/dist/form/AtomField.js +131 -133
  128. package/dist/form/AtomField.js.map +1 -1
  129. package/dist/form/AtomForm.js +84 -98
  130. package/dist/form/AtomForm.js.map +1 -1
  131. package/dist/form/AtomFormGroup.js +15 -19
  132. package/dist/form/AtomFormGroup.js.map +1 -1
  133. package/dist/form/AtomFormStyle.js +67 -67
  134. package/dist/form/AtomFormStyle.js.map +1 -1
  135. package/dist/form/HelpPopup.js +23 -19
  136. package/dist/form/HelpPopup.js.map +1 -1
  137. package/dist/html-editor/AtomHtmlEditor.js +295 -383
  138. package/dist/html-editor/AtomHtmlEditor.js.map +1 -1
  139. package/dist/html-editor/commands/AddImage.js +79 -65
  140. package/dist/html-editor/commands/AddImage.js.map +1 -1
  141. package/dist/html-editor/commands/AddLink.js +98 -88
  142. package/dist/html-editor/commands/AddLink.js.map +1 -1
  143. package/dist/html-editor/commands/Align.js +40 -23
  144. package/dist/html-editor/commands/Align.js.map +1 -1
  145. package/dist/html-editor/commands/AttachFile.js +93 -73
  146. package/dist/html-editor/commands/AttachFile.js.map +1 -1
  147. package/dist/html-editor/commands/Bold.js +23 -19
  148. package/dist/html-editor/commands/Bold.js.map +1 -1
  149. package/dist/html-editor/commands/ChangeColor.js +55 -144
  150. package/dist/html-editor/commands/ChangeColor.js.map +1 -1
  151. package/dist/html-editor/commands/ChangeFont.js +67 -75
  152. package/dist/html-editor/commands/ChangeFont.js.map +1 -1
  153. package/dist/html-editor/commands/ChangeFontSize.js +32 -21
  154. package/dist/html-editor/commands/ChangeFontSize.js.map +1 -1
  155. package/dist/html-editor/commands/Command.js +53 -39
  156. package/dist/html-editor/commands/Command.js.map +1 -1
  157. package/dist/html-editor/commands/CommandButton.js +93 -56
  158. package/dist/html-editor/commands/CommandButton.js.map +1 -1
  159. package/dist/html-editor/commands/Headings.js +42 -25
  160. package/dist/html-editor/commands/Headings.js.map +1 -1
  161. package/dist/html-editor/commands/HorizontalRule.js +22 -19
  162. package/dist/html-editor/commands/HorizontalRule.js.map +1 -1
  163. package/dist/html-editor/commands/HtmlCommands.js +73 -76
  164. package/dist/html-editor/commands/HtmlCommands.js.map +1 -1
  165. package/dist/html-editor/commands/IndentLess.js +23 -19
  166. package/dist/html-editor/commands/IndentLess.js.map +1 -1
  167. package/dist/html-editor/commands/IndentMore.js +23 -19
  168. package/dist/html-editor/commands/IndentMore.js.map +1 -1
  169. package/dist/html-editor/commands/Italic.js +23 -19
  170. package/dist/html-editor/commands/Italic.js.map +1 -1
  171. package/dist/html-editor/commands/NumberedList.js +23 -19
  172. package/dist/html-editor/commands/NumberedList.js.map +1 -1
  173. package/dist/html-editor/commands/Quote.js +23 -19
  174. package/dist/html-editor/commands/Quote.js.map +1 -1
  175. package/dist/html-editor/commands/RemoveFormat.js +23 -19
  176. package/dist/html-editor/commands/RemoveFormat.js.map +1 -1
  177. package/dist/html-editor/commands/Separator.js +24 -27
  178. package/dist/html-editor/commands/Separator.js.map +1 -1
  179. package/dist/html-editor/commands/Source.js +95 -67
  180. package/dist/html-editor/commands/Source.js.map +1 -1
  181. package/dist/html-editor/commands/StrikeThrough.js +23 -19
  182. package/dist/html-editor/commands/StrikeThrough.js.map +1 -1
  183. package/dist/html-editor/commands/Underline.js +23 -19
  184. package/dist/html-editor/commands/Underline.js.map +1 -1
  185. package/dist/html-editor/commands/Unlink.js +24 -23
  186. package/dist/html-editor/commands/Unlink.js.map +1 -1
  187. package/dist/html-editor/commands/UnorderedList.js +23 -19
  188. package/dist/html-editor/commands/UnorderedList.js.map +1 -1
  189. package/dist/mobile/pages/AtomPageFrame.js +177 -192
  190. package/dist/mobile/pages/AtomPageFrame.js.map +1 -1
  191. package/dist/mobile/pages/AtomPageFrameStyle.js +56 -54
  192. package/dist/mobile/pages/AtomPageFrameStyle.js.map +1 -1
  193. package/dist/mobile/pages/AtomPageFrameTemplate.js +48 -32
  194. package/dist/mobile/pages/AtomPageFrameTemplate.js.map +1 -1
  195. package/dist/mobile/pages/Page.js +23 -23
  196. package/dist/mobile/pages/Page.js.map +1 -1
  197. package/dist/mobile/pages/PageFrameViewModel.js +154 -148
  198. package/dist/mobile/pages/PageFrameViewModel.js.map +1 -1
  199. package/dist/mobile/pages/TitleTemplate.js +22 -22
  200. package/dist/mobile/pages/TitleTemplate.js.map +1 -1
  201. package/dist/mobile-app/BottomPopup.js +206 -240
  202. package/dist/mobile-app/BottomPopup.js.map +1 -1
  203. package/dist/mobile-app/MobileApp.js +552 -654
  204. package/dist/mobile-app/MobileApp.js.map +1 -1
  205. package/dist/player/AtomVideoPlayer.js +221 -267
  206. package/dist/player/AtomVideoPlayer.js.map +1 -1
  207. package/dist/player/TrackProgress.js +28 -27
  208. package/dist/player/TrackProgress.js.map +1 -1
  209. package/dist/setupBridge.js +74 -98
  210. package/dist/setupBridge.js.map +1 -1
  211. package/dist/switch/AtomSwitch.js +43 -37
  212. package/dist/switch/AtomSwitch.js.map +1 -1
  213. package/dist/switch/AtomSwitchStyle.js +68 -68
  214. package/dist/switch/AtomSwitchStyle.js.map +1 -1
  215. package/dist/time-field/AtomTimeField.js +97 -83
  216. package/dist/time-field/AtomTimeField.js.map +1 -1
  217. package/dist/time-field/AtomTimeFieldStyle.js +24 -25
  218. package/dist/time-field/AtomTimeFieldStyle.js.map +1 -1
  219. package/dist/toggle-view/AtomToggleView.js +96 -115
  220. package/dist/toggle-view/AtomToggleView.js.map +1 -1
  221. package/dist/tsconfig.tsbuildinfo +1 -1
  222. package/package.json +2 -1
  223. package/src/PageNavigator.ts +2 -2
@@ -1,384 +1,377 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
11
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12
- return new (P || (P = Promise))(function (resolve, reject) {
13
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
14
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
16
- step((generator = generator.apply(thisArg, _arguments || [])).next());
17
- });
18
- };
19
- (function (factory) {
20
- if (typeof module === "object" && typeof module.exports === "object") {
21
- var v = factory(require, exports);
22
- if (v !== undefined) module.exports = v;
1
+ System.register(["@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/Colors", "@web-atoms/core/dist/core/types", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/StyleRule", "@web-atoms/core/dist/web/styles/CSS", "./AtomRepeater", "./Chip", "./InlinePopup"], function (_export, _context) {
2
+ "use strict";
3
+
4
+ var Bind, BindableProperty, Colors, CancelToken, XNode, StyleRule, CSS, AtomRepeater, MatchTrue, InlinePopup, AtomChips, __decorate, __metadata, __awaiter;
5
+ function getChips(target) {
6
+ let start = target;
7
+ while (start) {
8
+ const chips = start.atomControl;
9
+ if (chips && chips instanceof AtomChips) {
10
+ return chips;
11
+ }
12
+ start = start.parentElement;
23
13
  }
24
- else if (typeof define === "function" && define.amd) {
25
- define(["require", "exports", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/Colors", "@web-atoms/core/dist/core/types", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/StyleRule", "@web-atoms/core/dist/web/styles/CSS", "./AtomRepeater", "./Chip", "./InlinePopup"], factory);
14
+ }
15
+ function askSuggestionPopup(host, opener, itemRenderer, suggestionFilter, cancelToken) {
16
+ class Suggestions extends InlinePopup {
17
+ create() {
18
+ this.opener = opener;
19
+ this.render(XNode.create("div", {
20
+ "data-suggestion-popup": "suggestion-popup"
21
+ }, XNode.create("div", {
22
+ class: "items"
23
+ }, XNode.create(AtomRepeater, {
24
+ class: "presenter",
25
+ selectedItem: Bind.oneWay(() => this.opener.anchorItem),
26
+ itemRenderer: itemRenderer,
27
+ eventDeleteSuggestion: e => opener.element.dispatchEvent(e),
28
+ visibilityFilter: suggestionFilter !== null && suggestionFilter !== void 0 ? suggestionFilter : MatchTrue,
29
+ "event-item-click": e => {
30
+ e.preventDefault();
31
+ e.stopImmediatePropagation();
32
+ e.stopPropagation();
33
+ this.close(e.detail);
34
+ },
35
+ items: Bind.oneWay(() => this.opener.suggestions)
36
+ }))));
37
+ }
26
38
  }
27
- })(function (require, exports) {
28
- "use strict";
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.Suggestion = exports.Chip = void 0;
31
- const Bind_1 = require("@web-atoms/core/dist/core/Bind");
32
- const BindableProperty_1 = require("@web-atoms/core/dist/core/BindableProperty");
33
- const Colors_1 = require("@web-atoms/core/dist/core/Colors");
34
- const types_1 = require("@web-atoms/core/dist/core/types");
35
- const XNode_1 = require("@web-atoms/core/dist/core/XNode");
36
- const StyleRule_1 = require("@web-atoms/core/dist/style/StyleRule");
37
- const CSS_1 = require("@web-atoms/core/dist/web/styles/CSS");
38
- const AtomRepeater_1 = require("./AtomRepeater");
39
- var Chip_1 = require("./Chip");
40
- Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.default; } });
41
- const InlinePopup_1 = require("./InlinePopup");
42
- (0, CSS_1.default)((0, StyleRule_1.default)()
43
- .flexLayout({ justifyContent: "stretch" })
44
- .flexFlow("wrap")
45
- .child((0, StyleRule_1.default)(".search")
46
- .border("none")
47
- .outline("none")
48
- .flex("1 1"))
49
- .child((0, StyleRule_1.default)(".footer")
50
- .marginLeft("auto"))
51
- .child((0, StyleRule_1.default)(".presenter")
52
- .flexLayout({ inline: true, justifyContent: "flex-start" })
53
- .flexFlow("wrap")
54
- .child((0, StyleRule_1.default)("*")
55
- .backgroundColor(Colors_1.default.lightGray.withAlphaPercent(0.3))))
56
- .and((0, StyleRule_1.default)("[data-mode=search]")
57
- .child((0, StyleRule_1.default)(".search")
58
- .paddingLeft(20)
59
- // tslint:disable-next-line: max-line-length
60
- .background(`transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 1px center`))), "div[data-atom-chips]");
61
- function getChips(target) {
62
- let start = target;
63
- while (start) {
64
- const chips = start.atomControl;
65
- if (chips && chips instanceof AtomChips) {
66
- return chips;
67
- }
68
- start = start.parentElement;
39
+ return Suggestions.showControl(host, {
40
+ cancelToken,
41
+ alignment: "auto"
42
+ });
43
+ }
44
+ function Suggestion({
45
+ icon,
46
+ label,
47
+ header,
48
+ deleteIcon
49
+ }, ...nodes) {
50
+ return XNode.create("div", {
51
+ "data-item-suggestion": "suggestion"
52
+ }, icon && XNode.create("i", {
53
+ class: "icon " + icon
54
+ }), header && XNode.create("label", {
55
+ class: "header",
56
+ text: header
57
+ }), label && XNode.create("label", {
58
+ class: "label",
59
+ text: label
60
+ }), ...nodes, deleteIcon && XNode.create("i", {
61
+ class: "delete " + deleteIcon,
62
+ "data-click-event": "remove-suggestion"
63
+ }));
64
+ }
65
+ _export({
66
+ Suggestion: Suggestion,
67
+ default: void 0
68
+ });
69
+ return {
70
+ setters: [function (_webAtomsCoreDistCoreBind) {
71
+ Bind = _webAtomsCoreDistCoreBind.default;
72
+ }, function (_webAtomsCoreDistCoreBindableProperty) {
73
+ BindableProperty = _webAtomsCoreDistCoreBindableProperty.BindableProperty;
74
+ }, function (_webAtomsCoreDistCoreColors) {
75
+ Colors = _webAtomsCoreDistCoreColors.default;
76
+ }, function (_webAtomsCoreDistCoreTypes) {
77
+ CancelToken = _webAtomsCoreDistCoreTypes.CancelToken;
78
+ }, function (_webAtomsCoreDistCoreXNode) {
79
+ XNode = _webAtomsCoreDistCoreXNode.default;
80
+ }, function (_webAtomsCoreDistStyleStyleRule) {
81
+ StyleRule = _webAtomsCoreDistStyleStyleRule.default;
82
+ }, function (_webAtomsCoreDistWebStylesCSS) {
83
+ CSS = _webAtomsCoreDistWebStylesCSS.default;
84
+ }, function (_AtomRepeater) {
85
+ AtomRepeater = _AtomRepeater.default;
86
+ MatchTrue = _AtomRepeater.MatchTrue;
87
+ }, function (_Chip) {
88
+ _export("Chip", _Chip.default);
89
+ }, function (_InlinePopup) {
90
+ InlinePopup = _InlinePopup.default;
91
+ }],
92
+ execute: function () {
93
+ __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
94
+ var c = arguments.length,
95
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
96
+ d;
97
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
98
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
99
+ };
100
+ __metadata = void 0 && (void 0).__metadata || function (k, v) {
101
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
102
+ };
103
+ __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
104
+ function adopt(value) {
105
+ return value instanceof P ? value : new P(function (resolve) {
106
+ resolve(value);
107
+ });
69
108
  }
70
- }
71
- document.body.addEventListener("focusin", (e) => {
109
+ return new (P || (P = Promise))(function (resolve, reject) {
110
+ function fulfilled(value) {
111
+ try {
112
+ step(generator.next(value));
113
+ } catch (e) {
114
+ reject(e);
115
+ }
116
+ }
117
+ function rejected(value) {
118
+ try {
119
+ step(generator["throw"](value));
120
+ } catch (e) {
121
+ reject(e);
122
+ }
123
+ }
124
+ function step(result) {
125
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
126
+ }
127
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
128
+ });
129
+ };
130
+ CSS(StyleRule().flexLayout({
131
+ justifyContent: "stretch"
132
+ }).flexFlow("wrap").child(StyleRule(".search").border("none").outline("none").flex("1 1")).child(StyleRule(".footer").marginLeft("auto")).child(StyleRule(".presenter").flexLayout({
133
+ inline: true,
134
+ justifyContent: "flex-start"
135
+ }).flexFlow("wrap").child(StyleRule("*").backgroundColor(Colors.lightGray.withAlphaPercent(0.3)))).and(StyleRule("[data-mode=search]").child(StyleRule(".search").paddingLeft(20).background(`transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 1px center`))), "div[data-atom-chips]");
136
+ document.body.addEventListener("focusin", e => {
72
137
  const chips = getChips(e.target);
73
138
  chips === null || chips === void 0 ? void 0 : chips.setFocus(true);
74
- });
75
- document.body.addEventListener("focusout", (e) => {
139
+ });
140
+ document.body.addEventListener("focusout", e => {
76
141
  const chips = getChips(e.target);
77
142
  chips === null || chips === void 0 ? void 0 : chips.setFocus(false);
78
- });
79
- document.body.addEventListener("keydown", (e) => {
143
+ });
144
+ document.body.addEventListener("keydown", e => {
80
145
  const chips = getChips(e.target);
81
146
  chips === null || chips === void 0 ? void 0 : chips.onKey(e);
82
- });
83
- /**
84
- * Asks user for selecting item from given suggestions
85
- * @param items items to display
86
- * @param itemRenderer render function
87
- * @param match search match
88
- * @returns selected item
89
- */
90
- function askSuggestionPopup(host, opener, itemRenderer, suggestionFilter, cancelToken) {
91
- class Suggestions extends InlinePopup_1.default {
92
- create() {
93
- this.opener = opener;
94
- this.render(XNode_1.default.create("div", { "data-suggestion-popup": "suggestion-popup" },
95
- XNode_1.default.create("div", { class: "items" },
96
- XNode_1.default.create(AtomRepeater_1.default, { class: "presenter", selectedItem: Bind_1.default.oneWay(() => this.opener.anchorItem), itemRenderer: itemRenderer, eventDeleteSuggestion: (e) => opener.element.dispatchEvent(e), visibilityFilter: suggestionFilter !== null && suggestionFilter !== void 0 ? suggestionFilter : AtomRepeater_1.MatchTrue, "event-item-click": (e) => {
97
- e.preventDefault();
98
- e.stopImmediatePropagation();
99
- e.stopPropagation();
100
- this.close(e.detail);
101
- }, items: Bind_1.default.oneWay(() => this.opener.suggestions) }))));
102
- }
103
- }
104
- return Suggestions.showControl(host, { cancelToken, alignment: "auto" });
105
- }
106
- (0, CSS_1.default)((0, StyleRule_1.default)()
107
- .padding(1)
108
- .paddingLeft(5)
109
- .paddingRight(5)
110
- .borderRadius(10)
111
- .display("grid")
112
- .alignItems("center")
113
- .gridTemplateRows("auto 1fr")
114
- .gridTemplateColumns("auto 1fr auto")
115
- .child((0, StyleRule_1.default)("[data-content]")
116
- .gridRowStart("2")
117
- .gridColumnStart("2"))
118
- .child((0, StyleRule_1.default)(".icon")
119
- .gridColumnStart("1")
120
- .gridRowStart("1")
121
- .gridRowEnd("span 2")
122
- .alignSelf("center"))
123
- .child((0, StyleRule_1.default)(".delete")
124
- .gridColumnStart("3")
125
- .gridRowStart("1")
126
- .gridRowEnd("span 2")
127
- .alignSelf("center")
128
- .color(Colors_1.default.red))
129
- .child((0, StyleRule_1.default)(".header")
130
- .fontSize("x-small")
131
- .gridRowStart("1")
132
- .gridColumnStart("2"))
133
- .child((0, StyleRule_1.default)(".label")
134
- .gridRowStart("2")
135
- .gridColumnStart("2")), "*[data-item-suggestion]");
136
- function Suggestion({ icon, label, header, deleteIcon }, ...nodes) {
137
- return XNode_1.default.create("div", { "data-item-suggestion": "suggestion" },
138
- icon && XNode_1.default.create("i", { class: "icon " + icon }),
139
- header && XNode_1.default.create("label", { class: "header", text: header }),
140
- label && XNode_1.default.create("label", { class: "label", text: label }),
141
- ...nodes,
142
- deleteIcon && XNode_1.default.create("i", { class: "delete " + deleteIcon, "data-click-event": "remove-suggestion" }));
143
- }
144
- exports.Suggestion = Suggestion;
145
- class AtomChips extends AtomRepeater_1.default {
147
+ });
148
+ CSS(StyleRule().padding(1).paddingLeft(5).paddingRight(5).borderRadius(10).display("grid").alignItems("center").gridTemplateRows("auto 1fr").gridTemplateColumns("auto 1fr auto").child(StyleRule("[data-content]").gridRowStart("2").gridColumnStart("2")).child(StyleRule(".icon").gridColumnStart("1").gridRowStart("1").gridRowEnd("span 2").alignSelf("center")).child(StyleRule(".delete").gridColumnStart("3").gridRowStart("1").gridRowEnd("span 2").alignSelf("center").color(Colors.red)).child(StyleRule(".header").fontSize("x-small").gridRowStart("1").gridColumnStart("2")).child(StyleRule(".label").gridRowStart("2").gridColumnStart("2")), "*[data-item-suggestion]");
149
+ _export("default", AtomChips = class AtomChips extends AtomRepeater {
146
150
  onPropertyChanged(name) {
147
- var _a;
148
- super.onPropertyChanged(name);
149
- switch (name) {
150
- case "labelPath":
151
- this.itemRenderer = (item) => XNode_1.default.create("div", { text: this.labelPath(item) });
152
- break;
153
- case "prompt":
154
- this.updateClasses();
155
- break;
156
- case "focused":
157
- this.updatePopup();
158
- break;
159
- case "suggestions":
160
- (_a = this.suggestionsWatcher) === null || _a === void 0 ? void 0 : _a.dispose();
161
- this.suggestionsWatcher = undefined;
162
- const suggestions = this.suggestions;
163
- if (suggestions) {
164
- this.suggestionsWatcher = this.registerDisposable(suggestions.watch(() => {
165
- this.updatePopup();
166
- }));
167
- }
168
- this.updatePopup();
169
- break;
170
- }
151
+ var _a;
152
+ super.onPropertyChanged(name);
153
+ switch (name) {
154
+ case "labelPath":
155
+ this.itemRenderer = item => XNode.create("div", {
156
+ text: this.labelPath(item)
157
+ });
158
+ break;
159
+ case "prompt":
160
+ this.updateClasses();
161
+ break;
162
+ case "focused":
163
+ this.updatePopup();
164
+ break;
165
+ case "suggestions":
166
+ (_a = this.suggestionsWatcher) === null || _a === void 0 ? void 0 : _a.dispose();
167
+ this.suggestionsWatcher = undefined;
168
+ const suggestions = this.suggestions;
169
+ if (suggestions) {
170
+ this.suggestionsWatcher = this.registerDisposable(suggestions.watch(() => {
171
+ this.updatePopup();
172
+ }));
173
+ }
174
+ this.updatePopup();
175
+ break;
176
+ }
171
177
  }
172
178
  preCreate() {
173
- super.preCreate();
174
- this.preventDuplicates = true;
175
- this.softDeleteProperty = null;
176
- this.prompt = "Search";
177
- this.element.dataset.atomChips = "atom-chips";
178
- this.element.dataset.mode = "search";
179
- this.suggestionFilter = AtomRepeater_1.MatchTrue;
180
- // this.bindEvent(this.element, "click", () => this.searchInput.focus());
181
- this.valuePath = (item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.value) !== null && _a !== void 0 ? _a : item; };
182
- this.labelPath = (item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.label) !== null && _a !== void 0 ? _a : item; };
183
- this.itemRenderer = (item) => XNode_1.default.create("div", { text: this.labelPath(item) });
184
- this.element.dataset.dropDown = "drop-down";
185
- this.render(XNode_1.default.create("div", null,
186
- XNode_1.default.create("div", { class: "presenter" }),
187
- XNode_1.default.create("input", { class: "search", placeholder: Bind_1.default.oneWay(() => this.prompt), value: Bind_1.default.twoWaysImmediate(() => this.search), type: "search" }),
188
- XNode_1.default.create("div", { class: "footer" })));
189
- this.itemsPresenter = this.element.children[0];
190
- this.searchInput = this.element.children[1];
191
- this.footerPresenter = this.element.children[2];
192
- this.bindEvent(this.element, "removeChip", (e) => e.defaultPrevented || this.removeItem(e.detail));
193
- this.bindEvent(this.element, "undoRemoveChip", (e) => e.defaultPrevented || this.undoRemoveItem(e.detail));
179
+ super.preCreate();
180
+ this.preventDuplicates = true;
181
+ this.softDeleteProperty = null;
182
+ this.prompt = "Search";
183
+ this.element.dataset.atomChips = "atom-chips";
184
+ this.element.dataset.mode = "search";
185
+ this.suggestionFilter = MatchTrue;
186
+ this.valuePath = item => {
187
+ var _a;
188
+ return (_a = item === null || item === void 0 ? void 0 : item.value) !== null && _a !== void 0 ? _a : item;
189
+ };
190
+ this.labelPath = item => {
191
+ var _a;
192
+ return (_a = item === null || item === void 0 ? void 0 : item.label) !== null && _a !== void 0 ? _a : item;
193
+ };
194
+ this.itemRenderer = item => XNode.create("div", {
195
+ text: this.labelPath(item)
196
+ });
197
+ this.element.dataset.dropDown = "drop-down";
198
+ this.render(XNode.create("div", null, XNode.create("div", {
199
+ class: "presenter"
200
+ }), XNode.create("input", {
201
+ class: "search",
202
+ placeholder: Bind.oneWay(() => this.prompt),
203
+ value: Bind.twoWaysImmediate(() => this.search),
204
+ type: "search"
205
+ }), XNode.create("div", {
206
+ class: "footer"
207
+ })));
208
+ this.itemsPresenter = this.element.children[0];
209
+ this.searchInput = this.element.children[1];
210
+ this.footerPresenter = this.element.children[2];
211
+ this.bindEvent(this.element, "removeChip", e => e.defaultPrevented || this.removeItem(e.detail));
212
+ this.bindEvent(this.element, "undoRemoveChip", e => e.defaultPrevented || this.undoRemoveItem(e.detail));
194
213
  }
195
214
  setFocus(hasFocus) {
196
- if (hasFocus) {
197
- this.focused = true;
198
- return;
199
- }
200
- setTimeout(() => {
201
- this.focused = false;
202
- }, 250);
215
+ if (hasFocus) {
216
+ this.focused = true;
217
+ return;
218
+ }
219
+ setTimeout(() => {
220
+ this.focused = false;
221
+ }, 250);
203
222
  }
204
223
  updatePopup() {
205
- var _a, _b, _c;
206
- return __awaiter(this, void 0, void 0, function* () {
207
- const suggestions = this.suggestions;
208
- if (!this.focused) {
209
- (_a = this.popupCancelToken) === null || _a === void 0 ? void 0 : _a.cancel();
210
- this.popupCancelToken = null;
211
- return;
212
- }
213
- if (this.popupCancelToken) {
214
- return;
215
- }
216
- const detail = this.suggestions;
217
- const ce = new CustomEvent("suggestions-requested", { detail });
218
- this.element.dispatchEvent(ce);
219
- if (ce.defaultPrevented) {
220
- return;
221
- }
222
- const { promise } = ce;
223
- if (promise) {
224
- yield promise;
225
- }
226
- if (ce.detail !== this.suggestions) {
227
- this.suggestions = ce.detail;
228
- }
229
- if (!suggestions || !suggestions.length) {
230
- (_b = this.popupCancelToken) === null || _b === void 0 ? void 0 : _b.cancel();
231
- this.popupCancelToken = null;
232
- return;
233
- }
234
- const cancelToken = this.popupCancelToken = new types_1.CancelToken();
235
- try {
236
- let selectedItem = yield askSuggestionPopup(this.element, this, (_c = this.suggestionRenderer) !== null && _c !== void 0 ? _c : this.itemRenderer, this.suggestionFilter, cancelToken);
237
- const itemToChip = this.itemToChip;
238
- if (itemToChip) {
239
- selectedItem = itemToChip(selectedItem, this.search);
240
- }
241
- this.addItem(selectedItem);
242
- this.search = "";
243
- this.popupCancelToken = null;
244
- }
245
- catch (e) {
246
- this.popupCancelToken = null;
247
- if (types_1.CancelToken.isCancelled(e)) {
248
- return;
249
- }
250
- // tslint:disable-next-line: no-console
251
- console.warn(e);
252
- }
224
+ var _a, _b, _c;
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ const suggestions = this.suggestions;
227
+ if (!this.focused) {
228
+ (_a = this.popupCancelToken) === null || _a === void 0 ? void 0 : _a.cancel();
229
+ this.popupCancelToken = null;
230
+ return;
231
+ }
232
+ if (this.popupCancelToken) {
233
+ return;
234
+ }
235
+ const detail = this.suggestions;
236
+ const ce = new CustomEvent("suggestions-requested", {
237
+ detail
253
238
  });
239
+ this.element.dispatchEvent(ce);
240
+ if (ce.defaultPrevented) {
241
+ return;
242
+ }
243
+ const {
244
+ promise
245
+ } = ce;
246
+ if (promise) {
247
+ yield promise;
248
+ }
249
+ if (ce.detail !== this.suggestions) {
250
+ this.suggestions = ce.detail;
251
+ }
252
+ if (!suggestions || !suggestions.length) {
253
+ (_b = this.popupCancelToken) === null || _b === void 0 ? void 0 : _b.cancel();
254
+ this.popupCancelToken = null;
255
+ return;
256
+ }
257
+ const cancelToken = this.popupCancelToken = new CancelToken();
258
+ try {
259
+ let selectedItem = yield askSuggestionPopup(this.element, this, (_c = this.suggestionRenderer) !== null && _c !== void 0 ? _c : this.itemRenderer, this.suggestionFilter, cancelToken);
260
+ const itemToChip = this.itemToChip;
261
+ if (itemToChip) {
262
+ selectedItem = itemToChip(selectedItem, this.search);
263
+ }
264
+ this.addItem(selectedItem);
265
+ this.search = "";
266
+ this.popupCancelToken = null;
267
+ } catch (e) {
268
+ this.popupCancelToken = null;
269
+ if (CancelToken.isCancelled(e)) {
270
+ return;
271
+ }
272
+ console.warn(e);
273
+ }
274
+ });
254
275
  }
255
276
  addItem(selectedItem) {
256
- var _a;
257
- const ce = new CustomEvent("suggestionChosen", {
258
- detail: selectedItem,
259
- cancelable: true,
260
- bubbles: true
261
- });
262
- this.element.dispatchEvent(ce);
263
- if (!ce.defaultPrevented) {
264
- const item = ce.detail;
265
- const vp = (_a = this.valuePath) !== null && _a !== void 0 ? _a : ((x) => x);
266
- const v = vp(item);
267
- for (const iterator of this.items) {
268
- if (v === vp(iterator)) {
269
- return;
270
- }
271
- }
272
- this.items.add(ce.detail);
277
+ var _a;
278
+ const ce = new CustomEvent("suggestionChosen", {
279
+ detail: selectedItem,
280
+ cancelable: true,
281
+ bubbles: true
282
+ });
283
+ this.element.dispatchEvent(ce);
284
+ if (!ce.defaultPrevented) {
285
+ const item = ce.detail;
286
+ const vp = (_a = this.valuePath) !== null && _a !== void 0 ? _a : x => x;
287
+ const v = vp(item);
288
+ for (const iterator of this.items) {
289
+ if (v === vp(iterator)) {
290
+ return;
291
+ }
273
292
  }
293
+ this.items.add(ce.detail);
294
+ }
274
295
  }
275
296
  undoRemoveItem(item) {
276
- let { softDeleteProperty } = this;
277
- softDeleteProperty = typeof softDeleteProperty !== "string" ? "$deleted" : softDeleteProperty;
278
- item[softDeleteProperty] = false;
279
- this.refreshItem(item);
297
+ let {
298
+ softDeleteProperty
299
+ } = this;
300
+ softDeleteProperty = typeof softDeleteProperty !== "string" ? "$deleted" : softDeleteProperty;
301
+ item[softDeleteProperty] = false;
302
+ this.refreshItem(item);
280
303
  }
281
304
  removeItem(item) {
282
- let { softDeleteProperty } = this;
283
- if (softDeleteProperty) {
284
- softDeleteProperty = typeof softDeleteProperty !== "string" ? "$deleted" : softDeleteProperty;
285
- item[softDeleteProperty] = true;
286
- this.refreshItem(item);
287
- }
288
- else {
289
- this.items.remove(item);
290
- }
305
+ let {
306
+ softDeleteProperty
307
+ } = this;
308
+ if (softDeleteProperty) {
309
+ softDeleteProperty = typeof softDeleteProperty !== "string" ? "$deleted" : softDeleteProperty;
310
+ item[softDeleteProperty] = true;
311
+ this.refreshItem(item);
312
+ } else {
313
+ this.items.remove(item);
314
+ }
291
315
  }
292
316
  onKey(e) {
293
- var _a, _b;
294
- const suggested = this.suggestions;
295
- switch (e.key) {
296
- case "Enter":
297
- // selection mode...
298
- (_a = e.preventDefault) === null || _a === void 0 ? void 0 : _a.call(e);
299
- (_b = e.stopImmediatePropagation) === null || _b === void 0 ? void 0 : _b.call(e);
300
- setTimeout(() => {
301
- let anchorItem = this.anchorItem;
302
- const itemToChip = this.itemToChip;
303
- if (itemToChip) {
304
- anchorItem = itemToChip(anchorItem, this.search);
305
- }
306
- if (!anchorItem) {
307
- return;
308
- }
309
- this.addItem(anchorItem);
310
- this.anchorIndex = 0;
311
- this.anchorItem = null;
312
- this.search = "";
313
- }, 1);
314
- break;
315
- case "ArrowDown":
316
- if (suggested) {
317
- if (!this.anchorItem) {
318
- this.anchorIndex = 0;
319
- }
320
- else {
321
- if (this.anchorIndex < suggested.length - 1) {
322
- this.anchorIndex++;
323
- }
324
- }
325
- this.anchorItem = suggested[this.anchorIndex];
326
- }
327
- break;
328
- case "ArrowUp":
329
- if (suggested) {
330
- if (!this.anchorItem) {
331
- return;
332
- }
333
- if (this.anchorIndex) {
334
- this.anchorIndex--;
335
- }
336
- this.anchorItem = suggested[this.anchorIndex];
337
- }
338
- break;
339
- }
317
+ var _a, _b;
318
+ const suggested = this.suggestions;
319
+ switch (e.key) {
320
+ case "Enter":
321
+ (_a = e.preventDefault) === null || _a === void 0 ? void 0 : _a.call(e);
322
+ (_b = e.stopImmediatePropagation) === null || _b === void 0 ? void 0 : _b.call(e);
323
+ setTimeout(() => {
324
+ let anchorItem = this.anchorItem;
325
+ const itemToChip = this.itemToChip;
326
+ if (itemToChip) {
327
+ anchorItem = itemToChip(anchorItem, this.search);
328
+ }
329
+ if (!anchorItem) {
330
+ return;
331
+ }
332
+ this.addItem(anchorItem);
333
+ this.anchorIndex = 0;
334
+ this.anchorItem = null;
335
+ this.search = "";
336
+ }, 1);
337
+ break;
338
+ case "ArrowDown":
339
+ if (suggested) {
340
+ if (!this.anchorItem) {
341
+ this.anchorIndex = 0;
342
+ } else {
343
+ if (this.anchorIndex < suggested.length - 1) {
344
+ this.anchorIndex++;
345
+ }
346
+ }
347
+ this.anchorItem = suggested[this.anchorIndex];
348
+ }
349
+ break;
350
+ case "ArrowUp":
351
+ if (suggested) {
352
+ if (!this.anchorItem) {
353
+ return;
354
+ }
355
+ if (this.anchorIndex) {
356
+ this.anchorIndex--;
357
+ }
358
+ this.anchorItem = suggested[this.anchorIndex];
359
+ }
360
+ break;
361
+ }
340
362
  }
363
+ });
364
+ __decorate([BindableProperty, __metadata("design:type", Array)], AtomChips.prototype, "suggestions", void 0);
365
+ __decorate([BindableProperty, __metadata("design:type", String)], AtomChips.prototype, "search", void 0);
366
+ __decorate([BindableProperty, __metadata("design:type", String)], AtomChips.prototype, "prompt", void 0);
367
+ __decorate([BindableProperty, __metadata("design:type", String)], AtomChips.prototype, "suggestionPrompt", void 0);
368
+ __decorate([BindableProperty, __metadata("design:type", String)], AtomChips.prototype, "softDeleteProperty", void 0);
369
+ __decorate([BindableProperty, __metadata("design:type", Function)], AtomChips.prototype, "labelPath", void 0);
370
+ __decorate([BindableProperty, __metadata("design:type", Function)], AtomChips.prototype, "match", void 0);
371
+ __decorate([BindableProperty, __metadata("design:type", Function)], AtomChips.prototype, "suggestionRenderer", void 0);
372
+ __decorate([BindableProperty, __metadata("design:type", Function)], AtomChips.prototype, "suggestionFilter", void 0);
373
+ __decorate([BindableProperty, __metadata("design:type", Boolean)], AtomChips.prototype, "focused", void 0);
341
374
  }
342
- __decorate([
343
- BindableProperty_1.BindableProperty,
344
- __metadata("design:type", Array)
345
- ], AtomChips.prototype, "suggestions", void 0);
346
- __decorate([
347
- BindableProperty_1.BindableProperty,
348
- __metadata("design:type", String)
349
- ], AtomChips.prototype, "search", void 0);
350
- __decorate([
351
- BindableProperty_1.BindableProperty,
352
- __metadata("design:type", String)
353
- ], AtomChips.prototype, "prompt", void 0);
354
- __decorate([
355
- BindableProperty_1.BindableProperty,
356
- __metadata("design:type", String)
357
- ], AtomChips.prototype, "suggestionPrompt", void 0);
358
- __decorate([
359
- BindableProperty_1.BindableProperty,
360
- __metadata("design:type", String)
361
- ], AtomChips.prototype, "softDeleteProperty", void 0);
362
- __decorate([
363
- BindableProperty_1.BindableProperty,
364
- __metadata("design:type", Function)
365
- ], AtomChips.prototype, "labelPath", void 0);
366
- __decorate([
367
- BindableProperty_1.BindableProperty,
368
- __metadata("design:type", Function)
369
- ], AtomChips.prototype, "match", void 0);
370
- __decorate([
371
- BindableProperty_1.BindableProperty,
372
- __metadata("design:type", Function)
373
- ], AtomChips.prototype, "suggestionRenderer", void 0);
374
- __decorate([
375
- BindableProperty_1.BindableProperty,
376
- __metadata("design:type", Function)
377
- ], AtomChips.prototype, "suggestionFilter", void 0);
378
- __decorate([
379
- BindableProperty_1.BindableProperty,
380
- __metadata("design:type", Boolean)
381
- ], AtomChips.prototype, "focused", void 0);
382
- exports.default = AtomChips;
383
- });
375
+ };
376
+ });
384
377
  //# sourceMappingURL=AtomChips.js.map