@dooboostore/dom-render 1.0.98

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 (230) hide show
  1. package/DomRender.d.ts +24 -0
  2. package/DomRender.js +115 -0
  3. package/DomRenderProxy.d.ts +38 -0
  4. package/DomRenderProxy.js +586 -0
  5. package/README.MD +938 -0
  6. package/components/ComponentBase.d.ts +41 -0
  7. package/components/ComponentBase.js +210 -0
  8. package/components/ComponentSet.d.ts +22 -0
  9. package/components/ComponentSet.js +23 -0
  10. package/components/appender/Appender.d.ts +23 -0
  11. package/components/appender/Appender.js +59 -0
  12. package/components/checkbox/CheckBox.d.ts +47 -0
  13. package/components/checkbox/CheckBox.js +118 -0
  14. package/components/choose/Choose.d.ts +39 -0
  15. package/components/choose/Choose.js +110 -0
  16. package/components/details/Details.d.ts +57 -0
  17. package/components/details/Details.js +199 -0
  18. package/components/dialog/Dialog.d.ts +1 -0
  19. package/components/dialog/Dialog.js +85 -0
  20. package/components/dialog/example/ImageEditorDialog.d.ts +1 -0
  21. package/components/dialog/example/ImageEditorDialog.js +116 -0
  22. package/components/forOf/ForOf.d.ts +18 -0
  23. package/components/forOf/ForOf.js +32 -0
  24. package/components/if/If.d.ts +21 -0
  25. package/components/if/If.js +40 -0
  26. package/components/index.d.ts +27 -0
  27. package/components/index.js +13 -0
  28. package/components/input/Input.d.ts +34 -0
  29. package/components/input/Input.js +86 -0
  30. package/components/promise/PromiseSwitch.d.ts +55 -0
  31. package/components/promise/PromiseSwitch.js +181 -0
  32. package/components/radio/Radio.d.ts +45 -0
  33. package/components/radio/Radio.js +123 -0
  34. package/components/select/Select.d.ts +23 -0
  35. package/components/select/Select.js +52 -0
  36. package/components/this/This.d.ts +24 -0
  37. package/components/this/This.js +62 -0
  38. package/components/timer/Timer.d.ts +26 -0
  39. package/components/timer/Timer.js +102 -0
  40. package/configs/Config.d.ts +34 -0
  41. package/configs/Config.js +2 -0
  42. package/configs/TargetAttr.d.ts +7 -0
  43. package/configs/TargetAttr.js +2 -0
  44. package/configs/TargetElement.d.ts +16 -0
  45. package/configs/TargetElement.js +2 -0
  46. package/css/parse/index.d.ts +49 -0
  47. package/css/parse/index.js +498 -0
  48. package/css/stringify/compiler.d.ts +34 -0
  49. package/css/stringify/compiler.js +36 -0
  50. package/css/stringify/compress.d.ts +104 -0
  51. package/css/stringify/compress.js +147 -0
  52. package/css/stringify/identity.d.ts +109 -0
  53. package/css/stringify/identity.js +183 -0
  54. package/css/stringify/index.d.ts +24 -0
  55. package/css/stringify/index.js +27 -0
  56. package/css/stringify/types.d.ts +15 -0
  57. package/css/stringify/types.js +2 -0
  58. package/css/types.d.ts +10 -0
  59. package/css/types.js +2 -0
  60. package/decorators/DomRenderNoProxy.d.ts +4 -0
  61. package/decorators/DomRenderNoProxy.js +15 -0
  62. package/events/EventManager.d.ts +68 -0
  63. package/events/EventManager.js +477 -0
  64. package/index.d.ts +2 -0
  65. package/index.js +2 -0
  66. package/iterators/Range.d.ts +24 -0
  67. package/iterators/Range.js +70 -0
  68. package/lifecycle/OnBeforeReturnGet.d.ts +4 -0
  69. package/lifecycle/OnBeforeReturnGet.js +2 -0
  70. package/lifecycle/OnBeforeReturnSet.d.ts +5 -0
  71. package/lifecycle/OnBeforeReturnSet.js +4 -0
  72. package/lifecycle/OnChangeAttrRender.d.ts +9 -0
  73. package/lifecycle/OnChangeAttrRender.js +4 -0
  74. package/lifecycle/OnChildRenderedByProperty.d.ts +5 -0
  75. package/lifecycle/OnChildRenderedByProperty.js +4 -0
  76. package/lifecycle/OnCreateRender.d.ts +5 -0
  77. package/lifecycle/OnCreateRender.js +4 -0
  78. package/lifecycle/OnCreateRenderData.d.ts +10 -0
  79. package/lifecycle/OnCreateRenderData.js +4 -0
  80. package/lifecycle/OnCreateRendered.d.ts +8 -0
  81. package/lifecycle/OnCreateRendered.js +4 -0
  82. package/lifecycle/OnCreatedThisChild.d.ts +6 -0
  83. package/lifecycle/OnCreatedThisChild.js +4 -0
  84. package/lifecycle/OnDestroyRender.d.ts +9 -0
  85. package/lifecycle/OnDestroyRender.js +4 -0
  86. package/lifecycle/OnInitRender.d.ts +6 -0
  87. package/lifecycle/OnInitRender.js +4 -0
  88. package/lifecycle/OnProxyDomRender.d.ts +5 -0
  89. package/lifecycle/OnProxyDomRender.js +2 -0
  90. package/lifecycle/dr-this/OnDrThisBind.d.ts +5 -0
  91. package/lifecycle/dr-this/OnDrThisBind.js +4 -0
  92. package/lifecycle/dr-this/OnDrThisUnBind.d.ts +5 -0
  93. package/lifecycle/dr-this/OnDrThisUnBind.js +4 -0
  94. package/managers/RenderManager.d.ts +2 -0
  95. package/managers/RenderManager.js +12 -0
  96. package/messenger/DefaultMessenger.d.ts +4 -0
  97. package/messenger/DefaultMessenger.js +4 -0
  98. package/messenger/Messenger.d.ts +79 -0
  99. package/messenger/Messenger.js +185 -0
  100. package/operators/Appender.d.ts +15 -0
  101. package/operators/Appender.js +90 -0
  102. package/operators/Dr.d.ts +9 -0
  103. package/operators/Dr.js +53 -0
  104. package/operators/DrAppender.d.ts +9 -0
  105. package/operators/DrAppender.js +69 -0
  106. package/operators/DrFor.d.ts +9 -0
  107. package/operators/DrFor.js +58 -0
  108. package/operators/DrForOf.d.ts +9 -0
  109. package/operators/DrForOf.js +120 -0
  110. package/operators/DrForm.d.ts +9 -0
  111. package/operators/DrForm.js +79 -0
  112. package/operators/DrIf.d.ts +9 -0
  113. package/operators/DrIf.js +70 -0
  114. package/operators/DrInnerHTML.d.ts +9 -0
  115. package/operators/DrInnerHTML.js +48 -0
  116. package/operators/DrInnerText.d.ts +9 -0
  117. package/operators/DrInnerText.js +46 -0
  118. package/operators/DrPre.d.ts +8 -0
  119. package/operators/DrPre.js +22 -0
  120. package/operators/DrRepeat.d.ts +9 -0
  121. package/operators/DrRepeat.js +70 -0
  122. package/operators/DrStripElement.d.ts +9 -0
  123. package/operators/DrStripElement.js +50 -0
  124. package/operators/DrTargetAttr.d.ts +8 -0
  125. package/operators/DrTargetAttr.js +45 -0
  126. package/operators/DrTargetElement.d.ts +13 -0
  127. package/operators/DrTargetElement.js +91 -0
  128. package/operators/DrTargetElementIsElement.d.ts +13 -0
  129. package/operators/DrTargetElementIsElement.js +79 -0
  130. package/operators/DrThis.d.ts +7 -0
  131. package/operators/DrThis.js +72 -0
  132. package/operators/DrThisProperty.d.ts +11 -0
  133. package/operators/DrThisProperty.js +93 -0
  134. package/operators/OperatorExecuter.d.ts +50 -0
  135. package/operators/OperatorExecuter.js +50 -0
  136. package/operators/OperatorExecuterAttrRequire.d.ts +9 -0
  137. package/operators/OperatorExecuterAttrRequire.js +25 -0
  138. package/package.json +70 -0
  139. package/rawsets/AttrInitCallBack.d.ts +6 -0
  140. package/rawsets/AttrInitCallBack.js +2 -0
  141. package/rawsets/Attrs.d.ts +27 -0
  142. package/rawsets/Attrs.js +2 -0
  143. package/rawsets/CreatorMetaData.d.ts +20 -0
  144. package/rawsets/CreatorMetaData.js +2 -0
  145. package/rawsets/DestroyOptionType.d.ts +5 -0
  146. package/rawsets/DestroyOptionType.js +6 -0
  147. package/rawsets/ElementInitCallBack.d.ts +9 -0
  148. package/rawsets/ElementInitCallBack.js +2 -0
  149. package/rawsets/RawSet.d.ts +180 -0
  150. package/rawsets/RawSet.js +1450 -0
  151. package/rawsets/RawSetOperatorType.d.ts +4 -0
  152. package/rawsets/RawSetOperatorType.js +5 -0
  153. package/rawsets/RawSetType.d.ts +8 -0
  154. package/rawsets/RawSetType.js +9 -0
  155. package/rawsets/Render.d.ts +27 -0
  156. package/rawsets/Render.js +2 -0
  157. package/routers/HashRouter.d.ts +24 -0
  158. package/routers/HashRouter.js +86 -0
  159. package/routers/PathRouter.d.ts +23 -0
  160. package/routers/PathRouter.js +73 -0
  161. package/routers/Router.d.ts +68 -0
  162. package/routers/Router.js +132 -0
  163. package/types/Types.d.ts +12 -0
  164. package/types/Types.js +26 -0
  165. package/validators/AllCheckedValidatorArray.d.ts +7 -0
  166. package/validators/AllCheckedValidatorArray.js +11 -0
  167. package/validators/AllUnCheckedValidatorArray.d.ts +7 -0
  168. package/validators/AllUnCheckedValidatorArray.js +11 -0
  169. package/validators/CheckedValidator.d.ts +6 -0
  170. package/validators/CheckedValidator.js +11 -0
  171. package/validators/CountEqualsCheckedValidatorArray.d.ts +8 -0
  172. package/validators/CountEqualsCheckedValidatorArray.js +12 -0
  173. package/validators/CountEqualsUnCheckedValidatorArray.d.ts +8 -0
  174. package/validators/CountEqualsUnCheckedValidatorArray.js +12 -0
  175. package/validators/CountGreaterThanCheckedValidatorArray.d.ts +8 -0
  176. package/validators/CountGreaterThanCheckedValidatorArray.js +12 -0
  177. package/validators/CountGreaterThanEqualsCheckedValidatorArray.d.ts +8 -0
  178. package/validators/CountGreaterThanEqualsCheckedValidatorArray.js +12 -0
  179. package/validators/CountGreaterThanEqualsUnCheckedValidatorArray.d.ts +8 -0
  180. package/validators/CountGreaterThanEqualsUnCheckedValidatorArray.js +12 -0
  181. package/validators/CountGreaterThanUnCheckedValidatorArray.d.ts +8 -0
  182. package/validators/CountGreaterThanUnCheckedValidatorArray.js +12 -0
  183. package/validators/CountLessThanCheckedValidatorArray.d.ts +8 -0
  184. package/validators/CountLessThanCheckedValidatorArray.js +12 -0
  185. package/validators/CountLessThanEqualsCheckedValidatorArray.d.ts +8 -0
  186. package/validators/CountLessThanEqualsCheckedValidatorArray.js +12 -0
  187. package/validators/CountLessThanEqualsUnCheckedValidatorArray.d.ts +8 -0
  188. package/validators/CountLessThanEqualsUnCheckedValidatorArray.js +12 -0
  189. package/validators/CountLessThanUnCheckedValidatorArray.d.ts +8 -0
  190. package/validators/CountLessThanUnCheckedValidatorArray.js +12 -0
  191. package/validators/CountUnCheckedValidatorArray.d.ts +8 -0
  192. package/validators/CountUnCheckedValidatorArray.js +12 -0
  193. package/validators/EmptyValidator.d.ts +6 -0
  194. package/validators/EmptyValidator.js +12 -0
  195. package/validators/ExcludeCheckedValidatorArray.d.ts +9 -0
  196. package/validators/ExcludeCheckedValidatorArray.js +17 -0
  197. package/validators/FormValidator.d.ts +8 -0
  198. package/validators/FormValidator.js +16 -0
  199. package/validators/IncludeCheckedValidatorArray.d.ts +9 -0
  200. package/validators/IncludeCheckedValidatorArray.js +17 -0
  201. package/validators/MultipleValidator.d.ts +9 -0
  202. package/validators/MultipleValidator.js +25 -0
  203. package/validators/NonPassValidator.d.ts +6 -0
  204. package/validators/NonPassValidator.js +10 -0
  205. package/validators/NotEmptyValidator.d.ts +6 -0
  206. package/validators/NotEmptyValidator.js +13 -0
  207. package/validators/NotRegExpTestValidator.d.ts +7 -0
  208. package/validators/NotRegExpTestValidator.js +20 -0
  209. package/validators/PassValidator.d.ts +6 -0
  210. package/validators/PassValidator.js +10 -0
  211. package/validators/RegExpTestValidator.d.ts +7 -0
  212. package/validators/RegExpTestValidator.js +21 -0
  213. package/validators/RequiredValidator.d.ts +6 -0
  214. package/validators/RequiredValidator.js +12 -0
  215. package/validators/UnCheckedValidator.d.ts +6 -0
  216. package/validators/UnCheckedValidator.js +11 -0
  217. package/validators/ValidMultipleValidator.d.ts +10 -0
  218. package/validators/ValidMultipleValidator.js +12 -0
  219. package/validators/ValidValidator.d.ts +7 -0
  220. package/validators/ValidValidator.js +11 -0
  221. package/validators/ValidValidatorArray.d.ts +8 -0
  222. package/validators/ValidValidatorArray.js +11 -0
  223. package/validators/Validator.d.ts +58 -0
  224. package/validators/Validator.js +203 -0
  225. package/validators/ValidatorArray.d.ts +18 -0
  226. package/validators/ValidatorArray.js +77 -0
  227. package/validators/ValueEqualsValidator.d.ts +7 -0
  228. package/validators/ValueEqualsValidator.js +11 -0
  229. package/validators/ValueNotEqualsValidator.d.ts +7 -0
  230. package/validators/ValueNotEqualsValidator.js +11 -0
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@dooboostore/dom-render",
3
+ "version": "1.0.98",
4
+ "main": "dist/index.js",
5
+ "license": "MIT",
6
+ "description": "html view template engine",
7
+ "keywords": [
8
+ "front",
9
+ "spa",
10
+ "SPA",
11
+ "view template",
12
+ "view",
13
+ "template",
14
+ "template engine",
15
+ "dom-render",
16
+ "front-end",
17
+ "framwork",
18
+ "node"
19
+ ],
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "**/*.js",
23
+ "**/*.d.ts"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "dependencies": {
29
+ "reflect-metadata": "^0.2.2",
30
+ "@dooboostore/core": "1.0.5",
31
+ "@dooboostore/core-node": "1.0.1",
32
+ "@dooboostore/core-web": "1.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.24.0",
36
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
37
+ "@babel/plugin-proposal-decorators": "^7.24.0",
38
+ "@babel/plugin-transform-private-property-in-object": "^7.25.9",
39
+ "@babel/preset-env": "^7.24.0",
40
+ "@babel/preset-typescript": "^7.24.0",
41
+ "@types/jest": "^26.0.22",
42
+ "@typescript-eslint/eslint-plugin": "^4.16.1",
43
+ "@typescript-eslint/parser": "^4.16.1",
44
+ "html-webpack-plugin": "^5.6.3",
45
+ "simple-boot-front-cli": "^1.0.10",
46
+ "supertest": "^6.1.3",
47
+ "ts-loader": "^9.5.2",
48
+ "ts-node": "^10.0.0",
49
+ "ts-node-dev": "^2.0.0",
50
+ "tslib": "^2.8.1",
51
+ "@types/node": "^20",
52
+ "typescript": "^5.8.2",
53
+ "webpack": "^5.98.0",
54
+ "webpack-cli": "^5.1.4",
55
+ "webpack-dev-server": "^5.2.0"
56
+ },
57
+ "scripts": {
58
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
59
+ "clean": "rm -rf dist",
60
+ "npm:build": "pnpm run build && cp README.MD dist/ && pnpm pack && TARBALL_NAME=$(ls dooboostore-dom-render-*.tgz | head -n 1) && tar -xzf \"$TARBALL_NAME\" -C dist --strip-components=1 package/package.json && rm \"$TARBALL_NAME\"",
61
+ "npm:clean": "rm -rf dist",
62
+ "npm:publish": "pnpm run npm:build && cd dist && pnpm publish --no-git-checks",
63
+ "npm:publish:clean": "pnpm run npm:publish && rm -rf dist",
64
+ "ts:clean": "find . -name '*.js' -o -name '*.map' -o -name '*.d.ts' | xargs rm -f",
65
+ "webpack:dev": "webpack serve --mode development",
66
+ "webpack:build": "webpack --mode production",
67
+ "webpack:preview": "webpack serve --mode production",
68
+ "typecheck": "tsc --noEmit"
69
+ }
70
+ }
@@ -0,0 +1,6 @@
1
+ export type AttrInitCallBack = {
2
+ attrName: string;
3
+ attrValue: string;
4
+ obj: any;
5
+ };
6
+ //# sourceMappingURL=AttrInitCallBack.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AttrInitCallBack.js.map
@@ -0,0 +1,27 @@
1
+ export type Attrs = {
2
+ dr: string | null;
3
+ drIf: string | null;
4
+ drAppender: string | null;
5
+ drFor: string | null;
6
+ drForOf: string | null;
7
+ drThisProperty: string | null;
8
+ drRepeat: string | null;
9
+ drThis: string | null;
10
+ drStripElement: string | null;
11
+ drReplaceTargetElementIs: string | null;
12
+ drForm: string | null;
13
+ drPre: string | null;
14
+ drInnerHTML: string | null;
15
+ drInnerText: string | null;
16
+ drItOption: string | null;
17
+ drVarOption: string | null;
18
+ drAfterOption: string | null;
19
+ drNextOption: string | null;
20
+ drBeforeOption: string | null;
21
+ drCompleteOption: string | null;
22
+ drStripOption: string | null;
23
+ drDestroyOption: string | null;
24
+ drHasKeysOption: string | null;
25
+ drKeyOption: string | null;
26
+ };
27
+ //# sourceMappingURL=Attrs.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Attrs.js.map
@@ -0,0 +1,20 @@
1
+ import { Router } from '../routers/Router';
2
+ import { Attrs } from './Attrs';
3
+ import { RawSet } from './RawSet';
4
+ /** @deprecated */
5
+ export type CreatorMetaData = {
6
+ thisVariableName?: string | null;
7
+ thisFullVariableName?: string | null;
8
+ componentKey?: string | null;
9
+ rawSet: RawSet;
10
+ scripts?: {
11
+ [n: string]: any;
12
+ };
13
+ router?: Router;
14
+ innerHTML: string;
15
+ drAttrs?: Attrs;
16
+ rootCreator: any;
17
+ attribute: any;
18
+ creator: any;
19
+ };
20
+ //# sourceMappingURL=CreatorMetaData.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CreatorMetaData.js.map
@@ -0,0 +1,5 @@
1
+ export declare enum DestroyOptionType {
2
+ NO_DESTROY = "NO_DESTROY",
3
+ NO_MESSENGER_DESTROY = "NO_MESSENGER_DESTROY"
4
+ }
5
+ //# sourceMappingURL=DestroyOptionType.d.ts.map
@@ -0,0 +1,6 @@
1
+ export var DestroyOptionType;
2
+ (function (DestroyOptionType) {
3
+ DestroyOptionType["NO_DESTROY"] = "NO_DESTROY";
4
+ DestroyOptionType["NO_MESSENGER_DESTROY"] = "NO_MESSENGER_DESTROY";
5
+ })(DestroyOptionType || (DestroyOptionType = {}));
6
+ //# sourceMappingURL=DestroyOptionType.js.map
@@ -0,0 +1,9 @@
1
+ import { TargetElement } from '../configs/TargetElement';
2
+ import { CreatorMetaData } from './CreatorMetaData';
3
+ export type ElementInitCallBack = {
4
+ name: string;
5
+ obj: any;
6
+ targetElement: TargetElement;
7
+ creatorMetaData: CreatorMetaData;
8
+ };
9
+ //# sourceMappingURL=ElementInitCallBack.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ElementInitCallBack.js.map
@@ -0,0 +1,180 @@
1
+ import { Config } from '../configs/Config';
2
+ import { ComponentSet } from '../components/ComponentSet';
3
+ import { TargetElement } from '../configs/TargetElement';
4
+ import { TargetAttr } from '../configs/TargetAttr';
5
+ import { DestroyOptionType } from './DestroyOptionType';
6
+ import { Attrs } from './Attrs';
7
+ import { RawSetType } from './RawSetType';
8
+ import { Render } from './Render';
9
+ import { OnDestroyRenderParams } from '../lifecycle/OnDestroyRender';
10
+ export declare class RawSet {
11
+ uuid: string;
12
+ type: RawSetType;
13
+ point: {
14
+ start: (Comment | Text | HTMLMetaElement);
15
+ node: Node;
16
+ end: Comment | Text | HTMLMetaElement;
17
+ parent?: Node | null;
18
+ parentRawSet?: RawSet;
19
+ childrenRawSets?: RawSet[];
20
+ };
21
+ dataSet: {
22
+ config: Config;
23
+ fragment: DocumentFragment;
24
+ render?: Render;
25
+ };
26
+ detect?: {
27
+ action: Function;
28
+ };
29
+ static readonly DR_NAME = "dr";
30
+ static readonly DR_IF_NAME = "dr-if";
31
+ static readonly DR_FOR_NAME = "dr-for";
32
+ static readonly DR_FOR_OF_NAME = "dr-for-of";
33
+ static readonly DR_THIS_PROPERTY_NAME = "dr-this-property";
34
+ static readonly DR_REPEAT_NAME = "dr-repeat";
35
+ static readonly DR_THIS_NAME = "dr-this";
36
+ static readonly DR_FORM_NAME = "dr-form";
37
+ static readonly DR_PRE_NAME = "dr-pre";
38
+ static readonly DR_APPENDER_NAME = "dr-appender";
39
+ static readonly DR_INNERHTML_NAME = "dr-inner-html";
40
+ static readonly DR_INNERTEXT_NAME = "dr-inner-text";
41
+ static readonly DR_DETECT_NAME = "dr-detect";
42
+ static readonly DR_STRIP_NAME = "dr-strip";
43
+ static readonly DR_REPLACE_TARGET_ELEMENT_IS_NAME = "dr-replace-target-element-is";
44
+ static readonly DR_DETECT_IF_OPTIONNAME = "dr-detect-option-if";
45
+ static readonly DR_DETECT_FILTER_OPTIONNAME = "dr-detect-option-filter";
46
+ static readonly DR_DETECT_ATTR_OPTIONNAME = "dr-detect-option-attr";
47
+ /**
48
+ * @deprecated
49
+ */
50
+ static readonly DR_THIS_OPTIONNAME = "dr-option-this";
51
+ static readonly DR_ATTR_OPTIONNAME = "dr-option-attr";
52
+ static readonly DR_IF_OPTIONNAME = "dr-option-if";
53
+ static readonly DR_IT_OPTIONNAME = "dr-option-it";
54
+ static readonly DR_VAR_OPTIONNAME = "dr-option-var";
55
+ static readonly DR_AFTER_OPTIONNAME = "dr-option-after";
56
+ static readonly DR_NEXT_OPTIONNAME = "dr-option-next";
57
+ static readonly DR_BEFORE_OPTIONNAME = "dr-option-before";
58
+ static readonly DR_COMPLETE_OPTIONNAME = "dr-option-complete";
59
+ static readonly DR_STRIP_OPTIONNAME = "dr-option-strip";
60
+ static readonly DR_DESTROY_OPTIONNAME = "dr-option-destroy";
61
+ static readonly DR_THIS_NAME_OPTIONNAME = "dr-option-this-name";
62
+ /**
63
+ * @deprecated
64
+ */
65
+ static readonly DR_COMPONENT_NAME_OPTIONNAME = "dr-option-component-name";
66
+ static readonly DR_COMPONENT_INNER_HTML_NAME_OPTIONNAME = "dr-option-component-inner-html-name";
67
+ static readonly DR_KEY_OPTIONNAME = "dr-option-key";
68
+ static readonly DR_HAS_KEYS_OPTIONNAME = "dr-option-has-keys";
69
+ static readonly DR_ON_CREATE_ARGUMENTS_OPTIONNAME = "dr-on-create:arguments";
70
+ static readonly DR_ON_CREATED_CALLBACK_OPTIONNAME = "dr-on-create:callback";
71
+ /** 우선 쓰는곳이 없어서 deprecated를 걸어놨음
72
+ @deprecated
73
+ */
74
+ static readonly DR_ON_INIT_ARGUMENTS_OPTIONNAME = "dr-on-init:arguments";
75
+ static readonly DR_ON_CONSTRUCTOR_ARGUMENTS_OPTIONNAME = "dr-on-constructor:arguments";
76
+ static readonly drAttrsOriginName: Attrs;
77
+ static readonly DR_TAGS: any[];
78
+ static readonly DR_ATTRIBUTES: readonly ["dr", "dr-appender", "dr-if", "dr-for-of", "dr-this-property", "dr-for", "dr-this", "dr-form", "dr-pre", "dr-inner-html", "dr-inner-text", "dr-repeat", "dr-detect", "dr-strip"];
79
+ constructor(uuid: string, type: RawSetType, point: {
80
+ start: (Comment | Text | HTMLMetaElement);
81
+ node: Node;
82
+ end: Comment | Text | HTMLMetaElement;
83
+ parent?: Node | null;
84
+ parentRawSet?: RawSet;
85
+ childrenRawSets?: RawSet[];
86
+ }, dataSet: {
87
+ config: Config;
88
+ fragment: DocumentFragment;
89
+ render?: Render;
90
+ }, detect?: {
91
+ action: Function;
92
+ });
93
+ get isConnected(): boolean;
94
+ getUsingTriggerVariables(config?: Config): Set<string>;
95
+ render(obj: any, config: Config): Promise<RawSet[]>;
96
+ private static generateRuleSelector;
97
+ static generateStyleTransform(styleBody: string | string[], componentKey: string, styleTagWrap?: boolean): string;
98
+ applyEvent(obj: any, fragment?: DocumentFragment, config?: Config): void;
99
+ onRenderedEvent(obj: any, nodes: Node[], config?: Config): void;
100
+ getAttribute(element: Element, attr: string): string;
101
+ getAttributeAndDelete(element: Element, attr: string): string;
102
+ getDrAppendAttributeAndDelete(element: Element, obj: any): string;
103
+ replaceBody(genNode: Node): void;
104
+ static checkPointCreates(element: Node, obj: any, config: Config): RawSet[];
105
+ static createStartEndPoint(data: {
106
+ node?: Node;
107
+ id: string;
108
+ type: RawSetType;
109
+ }, config: Config): {
110
+ start: HTMLMetaElement;
111
+ end: HTMLMetaElement;
112
+ } | {
113
+ start: Comment;
114
+ end: Comment;
115
+ };
116
+ remove(): void;
117
+ childAllRemove(): void;
118
+ childs(stopNext?: (node: Node) => boolean): any[];
119
+ getHasRawSet(key: string): RawSet;
120
+ static drItOtherEncoding(element: Element | DocumentFragment, postFix?: string): string;
121
+ static drItOtherDecoding(element: Element | DocumentFragment, random: string): void;
122
+ static drVarDecoding(element: Element, vars: {
123
+ name: string;
124
+ value: string;
125
+ regex: RegExp;
126
+ random: string;
127
+ }[]): void;
128
+ static replaceInnerHTML(element: Element, config: {
129
+ asIs: string | RegExp;
130
+ toBe?: string;
131
+ }): string;
132
+ static drThisEncoding(element: Element, drThis: string, config: {
133
+ asIs: RegExp;
134
+ toBe?: string;
135
+ }): string;
136
+ static drThisBindEncoding(element: Element, variable: RegExp, config: {
137
+ config: Config;
138
+ otherReplaceVariablePath: string;
139
+ }): string;
140
+ static drThisBindDecoding(element: Element, config: {
141
+ asIs: string;
142
+ toBe: string;
143
+ config: Config;
144
+ }): void;
145
+ static drThisDecoding(element: Element, config: {
146
+ asIs: string;
147
+ toBe: string;
148
+ }): void;
149
+ static drFormOtherMoveAttr(element: Element, as: string, to: string, config: Config): void;
150
+ static drVarEncoding(element: Element, drVarOption: string): {
151
+ name: string;
152
+ value: string;
153
+ regex: RegExp;
154
+ random: string;
155
+ }[];
156
+ static drThisCreate(rawSet: RawSet, element: Element, drThis: string, drVarOption: string, drStripOption: boolean | string | null, obj: any, config: Config, set?: ComponentSet): Promise<DocumentFragment>;
157
+ private static fetchTemplateStyle;
158
+ static createComponentTargetAttribute(name: string, getThisObj: (element: Element, attrValue: string, obj: any, rawSet: RawSet) => any, factory: (element: Element, attrValue: string, obj: any, rawSet: RawSet) => DocumentFragment): TargetAttr;
159
+ static createComponentTargetElement({ name, objFactory, template, styles, noStrip }: {
160
+ name: string;
161
+ noStrip?: boolean;
162
+ objFactory: (element: Element, obj: any, rawSet: RawSet, counstructorParam: any[]) => any;
163
+ template: string;
164
+ styles?: string | (string[]);
165
+ }): TargetElement;
166
+ static isExpression(data: string | null): boolean;
167
+ static expressionGroups(data: string | null): any[];
168
+ static destroy(obj: any | undefined, parameter: OnDestroyRenderParams, config: Config, destroyOptions?: (DestroyOptionType | string)[]): void;
169
+ findNearThis: (obj: any, rawSet?: RawSet) => any;
170
+ findParentThis: (obj: any, rawSet?: RawSet) => any;
171
+ findNearThisPath: (rawSet?: RawSet) => string | undefined;
172
+ findParentThisPath: (rawSet?: RawSet) => string | undefined;
173
+ findThisPaths: (rawSet?: RawSet) => string[];
174
+ static getAttributeObject(element: Element, config: {
175
+ script: string;
176
+ obj: any;
177
+ renderData?: any;
178
+ }): any;
179
+ }
180
+ //# sourceMappingURL=RawSet.d.ts.map