@dnncommunity/dnn-elements 0.13.0-beta.1

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 (244) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  4. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  5. package/dist/cjs/css-shim-3bfdba4f.js +8 -0
  6. package/dist/cjs/css-shim-3bfdba4f.js.map +1 -0
  7. package/dist/cjs/debounce-1de79bc7.js +24 -0
  8. package/dist/cjs/debounce-1de79bc7.js.map +1 -0
  9. package/dist/cjs/dnn-button.cjs.entry.js +88 -0
  10. package/dist/cjs/dnn-button.cjs.entry.js.map +1 -0
  11. package/dist/cjs/dnn-button_14.cjs.entry.js +1580 -0
  12. package/dist/cjs/dnn-button_14.cjs.entry.js.map +1 -0
  13. package/dist/cjs/dnn-checkbox.cjs.entry.js +58 -0
  14. package/dist/cjs/dnn-checkbox.cjs.entry.js.map +1 -0
  15. package/dist/cjs/dnn-chevron.cjs.entry.js +34 -0
  16. package/dist/cjs/dnn-chevron.cjs.entry.js.map +1 -0
  17. package/dist/cjs/dnn-collapsible.cjs.entry.js +112 -0
  18. package/dist/cjs/dnn-collapsible.cjs.entry.js.map +1 -0
  19. package/dist/cjs/dnn-color-picker.cjs.entry.js +508 -0
  20. package/dist/cjs/dnn-color-picker.cjs.entry.js.map +1 -0
  21. package/dist/cjs/dnn-dropzone.cjs.entry.js +153 -0
  22. package/dist/cjs/dnn-dropzone.cjs.entry.js.map +1 -0
  23. package/dist/cjs/dnn-image-cropper.cjs.entry.js +424 -0
  24. package/dist/cjs/dnn-image-cropper.cjs.entry.js.map +1 -0
  25. package/dist/cjs/dnn-modal.cjs.entry.js +62 -0
  26. package/dist/cjs/dnn-modal.cjs.entry.js.map +1 -0
  27. package/dist/cjs/dnn-searchbox.cjs.entry.js +66 -0
  28. package/dist/cjs/dnn-searchbox.cjs.entry.js.map +1 -0
  29. package/dist/cjs/dnn-sort-icon.cjs.entry.js +43 -0
  30. package/dist/cjs/dnn-sort-icon.cjs.entry.js.map +1 -0
  31. package/dist/cjs/dnn-tab.cjs.entry.js +31 -0
  32. package/dist/cjs/dnn-tab.cjs.entry.js.map +1 -0
  33. package/dist/cjs/dnn-tabs.cjs.entry.js +50 -0
  34. package/dist/cjs/dnn-tabs.cjs.entry.js.map +1 -0
  35. package/dist/cjs/dnn-toggle.cjs.entry.js +37 -0
  36. package/dist/cjs/dnn-toggle.cjs.entry.js.map +1 -0
  37. package/dist/cjs/dnn-treeview-item.cjs.entry.js +48 -0
  38. package/dist/cjs/dnn-treeview-item.cjs.entry.js.map +1 -0
  39. package/dist/cjs/dnn.cjs.js +129 -0
  40. package/dist/cjs/dnn.cjs.js.map +1 -0
  41. package/dist/cjs/dom-8ac1ad03.js +77 -0
  42. package/dist/cjs/dom-8ac1ad03.js.map +1 -0
  43. package/dist/cjs/index-e85ec026.js +1327 -0
  44. package/dist/cjs/index-e85ec026.js.map +1 -0
  45. package/dist/cjs/index-eede7745.js +3069 -0
  46. package/dist/cjs/index-eede7745.js.map +1 -0
  47. package/dist/cjs/index.cjs.js +52 -0
  48. package/dist/cjs/index.cjs.js.map +1 -0
  49. package/dist/cjs/loader.cjs.js +39 -0
  50. package/dist/cjs/loader.cjs.js.map +1 -0
  51. package/dist/cjs/shadow-css-41d9783d.js +392 -0
  52. package/dist/cjs/shadow-css-41d9783d.js.map +1 -0
  53. package/dist/collection/collection-manifest.json +25 -0
  54. package/dist/collection/components/dnn-button/dnn-button.css +87 -0
  55. package/dist/collection/components/dnn-button/dnn-button.js +272 -0
  56. package/dist/collection/components/dnn-button/dnn-button.js.map +1 -0
  57. package/dist/collection/components/dnn-checkbox/dnn-checkbox.css +27 -0
  58. package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +140 -0
  59. package/dist/collection/components/dnn-checkbox/dnn-checkbox.js.map +1 -0
  60. package/dist/collection/components/dnn-chevron/dnn-chevron.css +30 -0
  61. package/dist/collection/components/dnn-chevron/dnn-chevron.js +107 -0
  62. package/dist/collection/components/dnn-chevron/dnn-chevron.js.map +1 -0
  63. package/dist/collection/components/dnn-collapsible/dnn-collapsible.css +8 -0
  64. package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +188 -0
  65. package/dist/collection/components/dnn-collapsible/dnn-collapsible.js.map +1 -0
  66. package/dist/collection/components/dnn-color-picker/dnn-color-picker.css +225 -0
  67. package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +434 -0
  68. package/dist/collection/components/dnn-color-picker/dnn-color-picker.js.map +1 -0
  69. package/dist/collection/components/dnn-dropzone/dnn-dropzone.css +62 -0
  70. package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +266 -0
  71. package/dist/collection/components/dnn-dropzone/dnn-dropzone.js.map +1 -0
  72. package/dist/collection/components/dnn-image-cropper/CornerType.js +9 -0
  73. package/dist/collection/components/dnn-image-cropper/CornerType.js.map +1 -0
  74. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.css +80 -0
  75. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +539 -0
  76. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js.map +1 -0
  77. package/dist/collection/components/dnn-modal/dnn-modal.css +67 -0
  78. package/dist/collection/components/dnn-modal/dnn-modal.js +173 -0
  79. package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -0
  80. package/dist/collection/components/dnn-searchbox/dnn-searchbox.css +48 -0
  81. package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +137 -0
  82. package/dist/collection/components/dnn-searchbox/dnn-searchbox.js.map +1 -0
  83. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.css +32 -0
  84. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +81 -0
  85. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js.map +1 -0
  86. package/dist/collection/components/dnn-tab/dnn-tab.css +0 -0
  87. package/dist/collection/components/dnn-tab/dnn-tab.js +84 -0
  88. package/dist/collection/components/dnn-tab/dnn-tab.js.map +1 -0
  89. package/dist/collection/components/dnn-tabs/dnn-tabs.css +40 -0
  90. package/dist/collection/components/dnn-tabs/dnn-tabs.js +53 -0
  91. package/dist/collection/components/dnn-tabs/dnn-tabs.js.map +1 -0
  92. package/dist/collection/components/dnn-toggle/dnn-toggle.css +52 -0
  93. package/dist/collection/components/dnn-toggle/dnn-toggle.js +94 -0
  94. package/dist/collection/components/dnn-toggle/dnn-toggle.js.map +1 -0
  95. package/dist/collection/components/dnn-toggle/toggle-interface.js +2 -0
  96. package/dist/collection/components/dnn-toggle/toggle-interface.js.map +1 -0
  97. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.css +47 -0
  98. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +77 -0
  99. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js.map +1 -0
  100. package/dist/collection/index.js +3 -0
  101. package/dist/collection/index.js.map +1 -0
  102. package/dist/collection/utilities/colorInfo.js +191 -0
  103. package/dist/collection/utilities/colorInfo.js.map +1 -0
  104. package/dist/collection/utilities/debounce.js +19 -0
  105. package/dist/collection/utilities/debounce.js.map +1 -0
  106. package/dist/collection/utilities/dnnServicesFramework.js +42 -0
  107. package/dist/collection/utilities/dnnServicesFramework.js.map +1 -0
  108. package/dist/dnn/app-globals-0f993ce5.js +5 -0
  109. package/dist/dnn/app-globals-0f993ce5.js.map +1 -0
  110. package/dist/dnn/css-shim-20dbffa5.js +6 -0
  111. package/dist/dnn/css-shim-20dbffa5.js.map +1 -0
  112. package/dist/dnn/debounce-06f55268.js +22 -0
  113. package/dist/dnn/debounce-06f55268.js.map +1 -0
  114. package/dist/dnn/dnn-button.entry.js +84 -0
  115. package/dist/dnn/dnn-button.entry.js.map +1 -0
  116. package/dist/dnn/dnn-checkbox.entry.js +54 -0
  117. package/dist/dnn/dnn-checkbox.entry.js.map +1 -0
  118. package/dist/dnn/dnn-chevron.entry.js +30 -0
  119. package/dist/dnn/dnn-chevron.entry.js.map +1 -0
  120. package/dist/dnn/dnn-collapsible.entry.js +108 -0
  121. package/dist/dnn/dnn-collapsible.entry.js.map +1 -0
  122. package/dist/dnn/dnn-color-picker.entry.js +504 -0
  123. package/dist/dnn/dnn-color-picker.entry.js.map +1 -0
  124. package/dist/dnn/dnn-dropzone.entry.js +149 -0
  125. package/dist/dnn/dnn-dropzone.entry.js.map +1 -0
  126. package/dist/dnn/dnn-image-cropper.entry.js +420 -0
  127. package/dist/dnn/dnn-image-cropper.entry.js.map +1 -0
  128. package/dist/dnn/dnn-modal.entry.js +58 -0
  129. package/dist/dnn/dnn-modal.entry.js.map +1 -0
  130. package/dist/dnn/dnn-searchbox.entry.js +62 -0
  131. package/dist/dnn/dnn-searchbox.entry.js.map +1 -0
  132. package/dist/dnn/dnn-sort-icon.entry.js +39 -0
  133. package/dist/dnn/dnn-sort-icon.entry.js.map +1 -0
  134. package/dist/dnn/dnn-tab.entry.js +27 -0
  135. package/dist/dnn/dnn-tab.entry.js.map +1 -0
  136. package/dist/dnn/dnn-tabs.entry.js +46 -0
  137. package/dist/dnn/dnn-tabs.entry.js.map +1 -0
  138. package/dist/dnn/dnn-toggle.entry.js +33 -0
  139. package/dist/dnn/dnn-toggle.entry.js.map +1 -0
  140. package/dist/dnn/dnn-treeview-item.entry.js +44 -0
  141. package/dist/dnn/dnn-treeview-item.entry.js.map +1 -0
  142. package/dist/dnn/dnn.esm.js +127 -0
  143. package/dist/dnn/dnn.esm.js.map +1 -0
  144. package/dist/dnn/dom-c5ed0ba5.js +75 -0
  145. package/dist/dnn/dom-c5ed0ba5.js.map +1 -0
  146. package/dist/dnn/index-6c0764e5.js +3033 -0
  147. package/dist/dnn/index-6c0764e5.js.map +1 -0
  148. package/dist/dnn/index.esm.js +47 -0
  149. package/dist/dnn/index.esm.js.map +1 -0
  150. package/dist/dnn/p-0e94f5ee.js +2 -0
  151. package/dist/dnn/p-0e94f5ee.js.map +1 -0
  152. package/dist/dnn/p-7acf3104.entry.js +11 -0
  153. package/dist/dnn/p-7acf3104.entry.js.map +1 -0
  154. package/dist/dnn/p-bd3d3361.js +2 -0
  155. package/dist/dnn/p-bd3d3361.js.map +1 -0
  156. package/dist/dnn/shadow-css-8c625855.js +390 -0
  157. package/dist/dnn/shadow-css-8c625855.js.map +1 -0
  158. package/dist/esm/app-globals-0f993ce5.js +5 -0
  159. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  160. package/dist/esm/css-shim-20dbffa5.js +6 -0
  161. package/dist/esm/css-shim-20dbffa5.js.map +1 -0
  162. package/dist/esm/debounce-06f55268.js +22 -0
  163. package/dist/esm/debounce-06f55268.js.map +1 -0
  164. package/dist/esm/dnn-button.entry.js +84 -0
  165. package/dist/esm/dnn-button.entry.js.map +1 -0
  166. package/dist/esm/dnn-button_14.entry.js +1563 -0
  167. package/dist/esm/dnn-button_14.entry.js.map +1 -0
  168. package/dist/esm/dnn-checkbox.entry.js +54 -0
  169. package/dist/esm/dnn-checkbox.entry.js.map +1 -0
  170. package/dist/esm/dnn-chevron.entry.js +30 -0
  171. package/dist/esm/dnn-chevron.entry.js.map +1 -0
  172. package/dist/esm/dnn-collapsible.entry.js +108 -0
  173. package/dist/esm/dnn-collapsible.entry.js.map +1 -0
  174. package/dist/esm/dnn-color-picker.entry.js +504 -0
  175. package/dist/esm/dnn-color-picker.entry.js.map +1 -0
  176. package/dist/esm/dnn-dropzone.entry.js +149 -0
  177. package/dist/esm/dnn-dropzone.entry.js.map +1 -0
  178. package/dist/esm/dnn-image-cropper.entry.js +420 -0
  179. package/dist/esm/dnn-image-cropper.entry.js.map +1 -0
  180. package/dist/esm/dnn-modal.entry.js +58 -0
  181. package/dist/esm/dnn-modal.entry.js.map +1 -0
  182. package/dist/esm/dnn-searchbox.entry.js +62 -0
  183. package/dist/esm/dnn-searchbox.entry.js.map +1 -0
  184. package/dist/esm/dnn-sort-icon.entry.js +39 -0
  185. package/dist/esm/dnn-sort-icon.entry.js.map +1 -0
  186. package/dist/esm/dnn-tab.entry.js +27 -0
  187. package/dist/esm/dnn-tab.entry.js.map +1 -0
  188. package/dist/esm/dnn-tabs.entry.js +46 -0
  189. package/dist/esm/dnn-tabs.entry.js.map +1 -0
  190. package/dist/esm/dnn-toggle.entry.js +33 -0
  191. package/dist/esm/dnn-toggle.entry.js.map +1 -0
  192. package/dist/esm/dnn-treeview-item.entry.js +44 -0
  193. package/dist/esm/dnn-treeview-item.entry.js.map +1 -0
  194. package/dist/esm/dnn.js +127 -0
  195. package/dist/esm/dnn.js.map +1 -0
  196. package/dist/esm/dom-c5ed0ba5.js +75 -0
  197. package/dist/esm/dom-c5ed0ba5.js.map +1 -0
  198. package/dist/esm/index-6c0764e5.js +3033 -0
  199. package/dist/esm/index-6c0764e5.js.map +1 -0
  200. package/dist/esm/index-f79d9e82.js +1299 -0
  201. package/dist/esm/index-f79d9e82.js.map +1 -0
  202. package/dist/esm/index.js +47 -0
  203. package/dist/esm/index.js.map +1 -0
  204. package/dist/esm/loader.js +35 -0
  205. package/dist/esm/loader.js.map +1 -0
  206. package/dist/esm/polyfills/core-js.js +11 -0
  207. package/dist/esm/polyfills/css-shim.js +1 -0
  208. package/dist/esm/polyfills/dom.js +79 -0
  209. package/dist/esm/polyfills/es5-html-element.js +1 -0
  210. package/dist/esm/polyfills/index.js +34 -0
  211. package/dist/esm/polyfills/system.js +6 -0
  212. package/dist/esm/shadow-css-8c625855.js +390 -0
  213. package/dist/esm/shadow-css-8c625855.js.map +1 -0
  214. package/dist/index.cjs.js +1 -0
  215. package/dist/index.js +1 -0
  216. package/dist/types/components/dnn-button/dnn-button.d.ts +55 -0
  217. package/dist/types/components/dnn-checkbox/dnn-checkbox.d.ts +16 -0
  218. package/dist/types/components/dnn-chevron/dnn-chevron.d.ts +13 -0
  219. package/dist/types/components/dnn-collapsible/dnn-collapsible.d.ts +22 -0
  220. package/dist/types/components/dnn-color-picker/dnn-color-picker.d.ts +46 -0
  221. package/dist/types/components/dnn-dropzone/dnn-dropzone.d.ts +45 -0
  222. package/dist/types/components/dnn-image-cropper/CornerType.d.ts +6 -0
  223. package/dist/types/components/dnn-image-cropper/dnn-image-cropper.d.ts +62 -0
  224. package/dist/types/components/dnn-modal/dnn-modal.d.ts +35 -0
  225. package/dist/types/components/dnn-searchbox/dnn-searchbox.d.ts +22 -0
  226. package/dist/types/components/dnn-sort-icon/dnn-sort-icon.d.ts +9 -0
  227. package/dist/types/components/dnn-tab/dnn-tab.d.ts +11 -0
  228. package/dist/types/components/dnn-tabs/dnn-tabs.d.ts +11 -0
  229. package/dist/types/components/dnn-toggle/dnn-toggle.d.ts +13 -0
  230. package/dist/types/components/dnn-toggle/toggle-interface.d.ts +3 -0
  231. package/dist/types/components/dnn-treeview-item/dnn-treeview-item.d.ts +16 -0
  232. package/dist/types/components.d.ts +611 -0
  233. package/dist/types/index.d.ts +3 -0
  234. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  235. package/dist/types/utilities/colorInfo.d.ts +52 -0
  236. package/dist/types/utilities/debounce.d.ts +5 -0
  237. package/dist/types/utilities/dnnServicesFramework.d.ts +19 -0
  238. package/loader/cdn.js +3 -0
  239. package/loader/index.cjs.js +3 -0
  240. package/loader/index.d.ts +12 -0
  241. package/loader/index.es2017.js +3 -0
  242. package/loader/index.js +4 -0
  243. package/loader/package.json +10 -0
  244. package/package.json +48 -0
@@ -0,0 +1,611 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { ColorInfo } from "./utilities/colorInfo";
9
+ import { DnnToggleChangeEventDetail } from "./components/dnn-toggle/toggle-interface";
10
+ export namespace Components {
11
+ interface DnnButton {
12
+ /**
13
+ * Optionally add a confirmation dialog before firing the action.
14
+ */
15
+ "confirm"?: boolean;
16
+ /**
17
+ * The text of the confirmation message;
18
+ */
19
+ "confirmMessage"?: string;
20
+ /**
21
+ * The text of the no button for confirmation.
22
+ */
23
+ "confirmNoText"?: string;
24
+ /**
25
+ * The text of the yes button for confirmation.
26
+ */
27
+ "confirmYesText"?: string;
28
+ /**
29
+ * Disables the button
30
+ */
31
+ "disabled": boolean;
32
+ /**
33
+ * Optionally reverses the button style.
34
+ */
35
+ "reversed": boolean;
36
+ /**
37
+ * Optionally sets the button size, small normal or large, defaults to normal
38
+ */
39
+ "size"?: 'small' | 'normal' | 'large';
40
+ /**
41
+ * Optional button style, can be either primary, secondary or tertiary and defaults to primary if not specified
42
+ */
43
+ "type": 'primary' | 'secondary' | 'tertiary';
44
+ }
45
+ interface DnnCheckbox {
46
+ /**
47
+ * Defines if the checkbox is checked (true) or unchecked (false) or in an intermediate state (undefined)
48
+ */
49
+ "checked": boolean | undefined;
50
+ /**
51
+ * Defines if clicking the checkbox will go through the intermediate state between checked and unchecked (tri-state)
52
+ */
53
+ "useIntermediate": boolean;
54
+ /**
55
+ * The value for this checkbox (not to be confused with its checked state).
56
+ */
57
+ "value": string;
58
+ }
59
+ interface DnnChevron {
60
+ /**
61
+ * Collapse text for screen readers
62
+ */
63
+ "collapseText"?: string;
64
+ /**
65
+ * Expand text for screen readers
66
+ */
67
+ "expandText"?: string;
68
+ /**
69
+ * Is the chevron expanded
70
+ */
71
+ "expanded"?: boolean;
72
+ }
73
+ interface DnnCollapsible {
74
+ /**
75
+ * Defines if the panel is expanded or not.
76
+ */
77
+ "expanded": boolean;
78
+ /**
79
+ * Defines the transition time in ms, defaults to 100ms
80
+ */
81
+ "transitionDuration"?: number;
82
+ /**
83
+ * Updates the component height, use to update after a slot content changes.
84
+ */
85
+ "updateSize": () => Promise<void>;
86
+ }
87
+ interface DnnColorPicker {
88
+ /**
89
+ * Sets the initial color, must be a valid 8 character hexadecimal string without the # sign.
90
+ */
91
+ "color": string;
92
+ /**
93
+ * Sets the width-height ratio of the color picker saturation-lightness box.
94
+ * @example 100% renders a perfect square
95
+ */
96
+ "colorBoxHeight": string;
97
+ }
98
+ interface DnnDropzone {
99
+ /**
100
+ * If true, will allow the user to take a snapshot using the device camera. (only works over https).
101
+ */
102
+ "allowCameraMode": boolean;
103
+ /**
104
+ * A list of allowed file extensions. If not specified, any file is allowed. Ex: ["jpg", "jped", "gif", "png"]
105
+ */
106
+ "allowedExtensions": string[];
107
+ /**
108
+ * Specifies the jpeg quality for when the device camera is used to generate a picture. Needs to be a number between 0 and 1 and defaults to 0.8
109
+ */
110
+ "captureQuality": number;
111
+ /**
112
+ * Localization strings
113
+ */
114
+ "resx": {
115
+ dragAndDropFile: string;
116
+ capture: string;
117
+ or: string;
118
+ takePicture: string;
119
+ uploadFile: string;
120
+ };
121
+ }
122
+ interface DnnImageCropper {
123
+ /**
124
+ * Sets the desired final image height.
125
+ */
126
+ "height": number;
127
+ /**
128
+ * When set to true, prevents cropping an image smaller than the required size, which would blow pixel and make the final picture look blurry.
129
+ */
130
+ "preventUndersized": boolean;
131
+ /**
132
+ * Sets the output quality of the corpped image (number between 0 and 1).
133
+ */
134
+ "quality": number;
135
+ /**
136
+ * Can be used to customize controls text. Some values support tokens, see default values for examples.
137
+ */
138
+ "resx": {
139
+ capture: string;
140
+ dragAndDropFile: string;
141
+ or: string;
142
+ takePicture: string;
143
+ uploadFile: string;
144
+ imageTooSmall: string;
145
+ modalCloseText: string;
146
+ };
147
+ /**
148
+ * Sets the desired final image width.
149
+ */
150
+ "width": number;
151
+ }
152
+ interface DnnModal {
153
+ /**
154
+ * Pass false to remove the backdrop click auto-dismiss feature.
155
+ */
156
+ "backdropDismiss": boolean;
157
+ /**
158
+ * Optionally pass the aria-label text for the close button. Defaults to "Close modal" if not provided.
159
+ */
160
+ "closeText"?: string;
161
+ /**
162
+ * Hides the modal
163
+ */
164
+ "hide": () => Promise<void>;
165
+ /**
166
+ * Shows the modal
167
+ */
168
+ "show": () => Promise<void>;
169
+ /**
170
+ * Optionally you can pass false to not show the close button. If you decide to do so, you should either not also prevent dismissal by clicking the backdrop or provide your own dismissal logic in the modal content.
171
+ */
172
+ "showCloseButton"?: boolean;
173
+ }
174
+ interface DnnSearchbox {
175
+ /**
176
+ * Debounces the queryChanged by 500ms.
177
+ */
178
+ "debounced": boolean;
179
+ /**
180
+ * Sets the field placeholder text.
181
+ */
182
+ "placeholder"?: string;
183
+ /**
184
+ * Sets the query
185
+ */
186
+ "query": string;
187
+ }
188
+ interface DnnSortIcon {
189
+ /**
190
+ * Defines the current sort direction
191
+ */
192
+ "sortDirection": "asc" | "desc" | "none";
193
+ }
194
+ interface DnnTab {
195
+ /**
196
+ * Hides the modal
197
+ */
198
+ "hide": () => Promise<void>;
199
+ /**
200
+ * Shows the tab.
201
+ */
202
+ "show": () => Promise<void>;
203
+ /**
204
+ * Defines the tab title.
205
+ */
206
+ "tabTitle": string;
207
+ }
208
+ interface DnnTabs {
209
+ }
210
+ interface DnnToggle {
211
+ /**
212
+ * If 'true' the toggle is checked (on).
213
+ */
214
+ "checked": boolean;
215
+ /**
216
+ * If 'true' the toggle is not be interacted with.
217
+ */
218
+ "disabled": boolean;
219
+ }
220
+ interface DnnTreeviewItem {
221
+ /**
222
+ * Defines if the current node is expanded
223
+ */
224
+ "expanded": boolean;
225
+ }
226
+ }
227
+ declare global {
228
+ interface HTMLDnnButtonElement extends Components.DnnButton, HTMLStencilElement {
229
+ }
230
+ var HTMLDnnButtonElement: {
231
+ prototype: HTMLDnnButtonElement;
232
+ new (): HTMLDnnButtonElement;
233
+ };
234
+ interface HTMLDnnCheckboxElement extends Components.DnnCheckbox, HTMLStencilElement {
235
+ }
236
+ var HTMLDnnCheckboxElement: {
237
+ prototype: HTMLDnnCheckboxElement;
238
+ new (): HTMLDnnCheckboxElement;
239
+ };
240
+ interface HTMLDnnChevronElement extends Components.DnnChevron, HTMLStencilElement {
241
+ }
242
+ var HTMLDnnChevronElement: {
243
+ prototype: HTMLDnnChevronElement;
244
+ new (): HTMLDnnChevronElement;
245
+ };
246
+ interface HTMLDnnCollapsibleElement extends Components.DnnCollapsible, HTMLStencilElement {
247
+ }
248
+ var HTMLDnnCollapsibleElement: {
249
+ prototype: HTMLDnnCollapsibleElement;
250
+ new (): HTMLDnnCollapsibleElement;
251
+ };
252
+ interface HTMLDnnColorPickerElement extends Components.DnnColorPicker, HTMLStencilElement {
253
+ }
254
+ var HTMLDnnColorPickerElement: {
255
+ prototype: HTMLDnnColorPickerElement;
256
+ new (): HTMLDnnColorPickerElement;
257
+ };
258
+ interface HTMLDnnDropzoneElement extends Components.DnnDropzone, HTMLStencilElement {
259
+ }
260
+ var HTMLDnnDropzoneElement: {
261
+ prototype: HTMLDnnDropzoneElement;
262
+ new (): HTMLDnnDropzoneElement;
263
+ };
264
+ interface HTMLDnnImageCropperElement extends Components.DnnImageCropper, HTMLStencilElement {
265
+ }
266
+ var HTMLDnnImageCropperElement: {
267
+ prototype: HTMLDnnImageCropperElement;
268
+ new (): HTMLDnnImageCropperElement;
269
+ };
270
+ interface HTMLDnnModalElement extends Components.DnnModal, HTMLStencilElement {
271
+ }
272
+ var HTMLDnnModalElement: {
273
+ prototype: HTMLDnnModalElement;
274
+ new (): HTMLDnnModalElement;
275
+ };
276
+ interface HTMLDnnSearchboxElement extends Components.DnnSearchbox, HTMLStencilElement {
277
+ }
278
+ var HTMLDnnSearchboxElement: {
279
+ prototype: HTMLDnnSearchboxElement;
280
+ new (): HTMLDnnSearchboxElement;
281
+ };
282
+ interface HTMLDnnSortIconElement extends Components.DnnSortIcon, HTMLStencilElement {
283
+ }
284
+ var HTMLDnnSortIconElement: {
285
+ prototype: HTMLDnnSortIconElement;
286
+ new (): HTMLDnnSortIconElement;
287
+ };
288
+ interface HTMLDnnTabElement extends Components.DnnTab, HTMLStencilElement {
289
+ }
290
+ var HTMLDnnTabElement: {
291
+ prototype: HTMLDnnTabElement;
292
+ new (): HTMLDnnTabElement;
293
+ };
294
+ interface HTMLDnnTabsElement extends Components.DnnTabs, HTMLStencilElement {
295
+ }
296
+ var HTMLDnnTabsElement: {
297
+ prototype: HTMLDnnTabsElement;
298
+ new (): HTMLDnnTabsElement;
299
+ };
300
+ interface HTMLDnnToggleElement extends Components.DnnToggle, HTMLStencilElement {
301
+ }
302
+ var HTMLDnnToggleElement: {
303
+ prototype: HTMLDnnToggleElement;
304
+ new (): HTMLDnnToggleElement;
305
+ };
306
+ interface HTMLDnnTreeviewItemElement extends Components.DnnTreeviewItem, HTMLStencilElement {
307
+ }
308
+ var HTMLDnnTreeviewItemElement: {
309
+ prototype: HTMLDnnTreeviewItemElement;
310
+ new (): HTMLDnnTreeviewItemElement;
311
+ };
312
+ interface HTMLElementTagNameMap {
313
+ "dnn-button": HTMLDnnButtonElement;
314
+ "dnn-checkbox": HTMLDnnCheckboxElement;
315
+ "dnn-chevron": HTMLDnnChevronElement;
316
+ "dnn-collapsible": HTMLDnnCollapsibleElement;
317
+ "dnn-color-picker": HTMLDnnColorPickerElement;
318
+ "dnn-dropzone": HTMLDnnDropzoneElement;
319
+ "dnn-image-cropper": HTMLDnnImageCropperElement;
320
+ "dnn-modal": HTMLDnnModalElement;
321
+ "dnn-searchbox": HTMLDnnSearchboxElement;
322
+ "dnn-sort-icon": HTMLDnnSortIconElement;
323
+ "dnn-tab": HTMLDnnTabElement;
324
+ "dnn-tabs": HTMLDnnTabsElement;
325
+ "dnn-toggle": HTMLDnnToggleElement;
326
+ "dnn-treeview-item": HTMLDnnTreeviewItemElement;
327
+ }
328
+ }
329
+ declare namespace LocalJSX {
330
+ interface DnnButton {
331
+ /**
332
+ * Optionally add a confirmation dialog before firing the action.
333
+ */
334
+ "confirm"?: boolean;
335
+ /**
336
+ * The text of the confirmation message;
337
+ */
338
+ "confirmMessage"?: string;
339
+ /**
340
+ * The text of the no button for confirmation.
341
+ */
342
+ "confirmNoText"?: string;
343
+ /**
344
+ * The text of the yes button for confirmation.
345
+ */
346
+ "confirmYesText"?: string;
347
+ /**
348
+ * Disables the button
349
+ */
350
+ "disabled"?: boolean;
351
+ /**
352
+ * Fires when confirm is true and the user cancels the action.
353
+ */
354
+ "onCanceled"?: (event: CustomEvent<any>) => void;
355
+ /**
356
+ * Fires when confirm is true and the user confirms the action.
357
+ */
358
+ "onConfirmed"?: (event: CustomEvent<any>) => void;
359
+ /**
360
+ * Optionally reverses the button style.
361
+ */
362
+ "reversed"?: boolean;
363
+ /**
364
+ * Optionally sets the button size, small normal or large, defaults to normal
365
+ */
366
+ "size"?: 'small' | 'normal' | 'large';
367
+ /**
368
+ * Optional button style, can be either primary, secondary or tertiary and defaults to primary if not specified
369
+ */
370
+ "type"?: 'primary' | 'secondary' | 'tertiary';
371
+ }
372
+ interface DnnCheckbox {
373
+ /**
374
+ * Defines if the checkbox is checked (true) or unchecked (false) or in an intermediate state (undefined)
375
+ */
376
+ "checked"?: boolean | undefined;
377
+ /**
378
+ * Fires up when the checkbox checked property changes.
379
+ */
380
+ "onCheckedchange"?: (event: CustomEvent<boolean | undefined>) => void;
381
+ /**
382
+ * Defines if clicking the checkbox will go through the intermediate state between checked and unchecked (tri-state)
383
+ */
384
+ "useIntermediate"?: boolean;
385
+ /**
386
+ * The value for this checkbox (not to be confused with its checked state).
387
+ */
388
+ "value"?: string;
389
+ }
390
+ interface DnnChevron {
391
+ /**
392
+ * Collapse text for screen readers
393
+ */
394
+ "collapseText"?: string;
395
+ /**
396
+ * Expand text for screen readers
397
+ */
398
+ "expandText"?: string;
399
+ /**
400
+ * Is the chevron expanded
401
+ */
402
+ "expanded"?: boolean;
403
+ /**
404
+ * Fires up when the expanded status changes
405
+ */
406
+ "onChanged"?: (event: CustomEvent<any>) => void;
407
+ }
408
+ interface DnnCollapsible {
409
+ /**
410
+ * Defines if the panel is expanded or not.
411
+ */
412
+ "expanded"?: boolean;
413
+ /**
414
+ * Fires whenever the collapsible height has changed
415
+ */
416
+ "onDnnCollapsibleHeightChanged"?: (event: CustomEvent<void>) => void;
417
+ /**
418
+ * Defines the transition time in ms, defaults to 100ms
419
+ */
420
+ "transitionDuration"?: number;
421
+ }
422
+ interface DnnColorPicker {
423
+ /**
424
+ * Sets the initial color, must be a valid 8 character hexadecimal string without the # sign.
425
+ */
426
+ "color"?: string;
427
+ /**
428
+ * Sets the width-height ratio of the color picker saturation-lightness box.
429
+ * @example 100% renders a perfect square
430
+ */
431
+ "colorBoxHeight"?: string;
432
+ /**
433
+ * Fires up when the color is changed and emits a ColorInfo object
434
+ * @see .. /../utilities/colorInfo.ts
435
+ */
436
+ "onColorChanged"?: (event: CustomEvent<ColorInfo>) => void;
437
+ }
438
+ interface DnnDropzone {
439
+ /**
440
+ * If true, will allow the user to take a snapshot using the device camera. (only works over https).
441
+ */
442
+ "allowCameraMode"?: boolean;
443
+ /**
444
+ * A list of allowed file extensions. If not specified, any file is allowed. Ex: ["jpg", "jped", "gif", "png"]
445
+ */
446
+ "allowedExtensions"?: string[];
447
+ /**
448
+ * Specifies the jpeg quality for when the device camera is used to generate a picture. Needs to be a number between 0 and 1 and defaults to 0.8
449
+ */
450
+ "captureQuality"?: number;
451
+ /**
452
+ * Fires when file were selected.
453
+ */
454
+ "onFilesSelected"?: (event: CustomEvent<File[]>) => void;
455
+ /**
456
+ * Localization strings
457
+ */
458
+ "resx"?: {
459
+ dragAndDropFile: string;
460
+ capture: string;
461
+ or: string;
462
+ takePicture: string;
463
+ uploadFile: string;
464
+ };
465
+ }
466
+ interface DnnImageCropper {
467
+ /**
468
+ * Sets the desired final image height.
469
+ */
470
+ "height"?: number;
471
+ /**
472
+ * When the image crop changes, emits the dataurl for the new cropped image.
473
+ */
474
+ "onImageCropChanged"?: (event: CustomEvent<string>) => void;
475
+ /**
476
+ * When set to true, prevents cropping an image smaller than the required size, which would blow pixel and make the final picture look blurry.
477
+ */
478
+ "preventUndersized"?: boolean;
479
+ /**
480
+ * Sets the output quality of the corpped image (number between 0 and 1).
481
+ */
482
+ "quality"?: number;
483
+ /**
484
+ * Can be used to customize controls text. Some values support tokens, see default values for examples.
485
+ */
486
+ "resx"?: {
487
+ capture: string;
488
+ dragAndDropFile: string;
489
+ or: string;
490
+ takePicture: string;
491
+ uploadFile: string;
492
+ imageTooSmall: string;
493
+ modalCloseText: string;
494
+ };
495
+ /**
496
+ * Sets the desired final image width.
497
+ */
498
+ "width"?: number;
499
+ }
500
+ interface DnnModal {
501
+ /**
502
+ * Pass false to remove the backdrop click auto-dismiss feature.
503
+ */
504
+ "backdropDismiss"?: boolean;
505
+ /**
506
+ * Optionally pass the aria-label text for the close button. Defaults to "Close modal" if not provided.
507
+ */
508
+ "closeText"?: string;
509
+ /**
510
+ * Fires when the modal is dismissed.
511
+ */
512
+ "onDismissed"?: (event: CustomEvent<any>) => void;
513
+ /**
514
+ * Optionally you can pass false to not show the close button. If you decide to do so, you should either not also prevent dismissal by clicking the backdrop or provide your own dismissal logic in the modal content.
515
+ */
516
+ "showCloseButton"?: boolean;
517
+ }
518
+ interface DnnSearchbox {
519
+ /**
520
+ * Debounces the queryChanged by 500ms.
521
+ */
522
+ "debounced"?: boolean;
523
+ /**
524
+ * Fires up each time the search query changes. The data passed is the new query.
525
+ */
526
+ "onQueryChanged"?: (event: CustomEvent<any>) => void;
527
+ /**
528
+ * Sets the field placeholder text.
529
+ */
530
+ "placeholder"?: string;
531
+ /**
532
+ * Sets the query
533
+ */
534
+ "query"?: string;
535
+ }
536
+ interface DnnSortIcon {
537
+ /**
538
+ * Emitted when the sort is changed.
539
+ */
540
+ "onSortChanged"?: (event: CustomEvent<"asc"|"desc"|"none">) => void;
541
+ /**
542
+ * Defines the current sort direction
543
+ */
544
+ "sortDirection"?: "asc" | "desc" | "none";
545
+ }
546
+ interface DnnTab {
547
+ /**
548
+ * Defines the tab title.
549
+ */
550
+ "tabTitle": string;
551
+ }
552
+ interface DnnTabs {
553
+ }
554
+ interface DnnToggle {
555
+ /**
556
+ * If 'true' the toggle is checked (on).
557
+ */
558
+ "checked"?: boolean;
559
+ /**
560
+ * If 'true' the toggle is not be interacted with.
561
+ */
562
+ "disabled"?: boolean;
563
+ /**
564
+ * Fires when the toggle changed
565
+ */
566
+ "onCheckChanged"?: (event: CustomEvent<DnnToggleChangeEventDetail>) => void;
567
+ }
568
+ interface DnnTreeviewItem {
569
+ /**
570
+ * Defines if the current node is expanded
571
+ */
572
+ "expanded"?: boolean;
573
+ }
574
+ interface IntrinsicElements {
575
+ "dnn-button": DnnButton;
576
+ "dnn-checkbox": DnnCheckbox;
577
+ "dnn-chevron": DnnChevron;
578
+ "dnn-collapsible": DnnCollapsible;
579
+ "dnn-color-picker": DnnColorPicker;
580
+ "dnn-dropzone": DnnDropzone;
581
+ "dnn-image-cropper": DnnImageCropper;
582
+ "dnn-modal": DnnModal;
583
+ "dnn-searchbox": DnnSearchbox;
584
+ "dnn-sort-icon": DnnSortIcon;
585
+ "dnn-tab": DnnTab;
586
+ "dnn-tabs": DnnTabs;
587
+ "dnn-toggle": DnnToggle;
588
+ "dnn-treeview-item": DnnTreeviewItem;
589
+ }
590
+ }
591
+ export { LocalJSX as JSX };
592
+ declare module "@stencil/core" {
593
+ export namespace JSX {
594
+ interface IntrinsicElements {
595
+ "dnn-button": LocalJSX.DnnButton & JSXBase.HTMLAttributes<HTMLDnnButtonElement>;
596
+ "dnn-checkbox": LocalJSX.DnnCheckbox & JSXBase.HTMLAttributes<HTMLDnnCheckboxElement>;
597
+ "dnn-chevron": LocalJSX.DnnChevron & JSXBase.HTMLAttributes<HTMLDnnChevronElement>;
598
+ "dnn-collapsible": LocalJSX.DnnCollapsible & JSXBase.HTMLAttributes<HTMLDnnCollapsibleElement>;
599
+ "dnn-color-picker": LocalJSX.DnnColorPicker & JSXBase.HTMLAttributes<HTMLDnnColorPickerElement>;
600
+ "dnn-dropzone": LocalJSX.DnnDropzone & JSXBase.HTMLAttributes<HTMLDnnDropzoneElement>;
601
+ "dnn-image-cropper": LocalJSX.DnnImageCropper & JSXBase.HTMLAttributes<HTMLDnnImageCropperElement>;
602
+ "dnn-modal": LocalJSX.DnnModal & JSXBase.HTMLAttributes<HTMLDnnModalElement>;
603
+ "dnn-searchbox": LocalJSX.DnnSearchbox & JSXBase.HTMLAttributes<HTMLDnnSearchboxElement>;
604
+ "dnn-sort-icon": LocalJSX.DnnSortIcon & JSXBase.HTMLAttributes<HTMLDnnSortIconElement>;
605
+ "dnn-tab": LocalJSX.DnnTab & JSXBase.HTMLAttributes<HTMLDnnTabElement>;
606
+ "dnn-tabs": LocalJSX.DnnTabs & JSXBase.HTMLAttributes<HTMLDnnTabsElement>;
607
+ "dnn-toggle": LocalJSX.DnnToggle & JSXBase.HTMLAttributes<HTMLDnnToggleElement>;
608
+ "dnn-treeview-item": LocalJSX.DnnTreeviewItem & JSXBase.HTMLAttributes<HTMLDnnTreeviewItemElement>;
609
+ }
610
+ }
611
+ }
@@ -0,0 +1,3 @@
1
+ export { Components, JSX } from './components';
2
+ export * from './utilities/debounce';
3
+ export * from './utilities/dnnServicesFramework';