dphelper 0.2.88 → 0.2.89

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 (116) hide show
  1. package/.editorconfig +13 -0
  2. package/.env +3 -0
  3. package/.eslintignore +13 -0
  4. package/.eslintrc.json +87 -0
  5. package/.eslintrc.legacy.json +91 -0
  6. package/.gitattributes +2 -0
  7. package/.hintrc +11 -0
  8. package/.jsbeautifyrc +25 -0
  9. package/.jshintrc +16 -0
  10. package/.prettierignore +2 -0
  11. package/.prettierrc.json +8 -0
  12. package/.stylelintignore +0 -0
  13. package/.stylelintrc.json +468 -0
  14. package/.vscode/launch.json +34 -0
  15. package/.vscode/settings.json +58 -0
  16. package/3party/shortcut.js +224 -0
  17. package/__mocks__/fileMock.js +3 -0
  18. package/__mocks__/styleMock.js +3 -0
  19. package/babel.config.js +30 -0
  20. package/backup.bat +43 -0
  21. package/coverage/coverage-final.json +1 -0
  22. package/coverage/lcov-report/base.css +224 -0
  23. package/coverage/lcov-report/block-navigation.js +87 -0
  24. package/coverage/lcov-report/favicon.png +0 -0
  25. package/coverage/lcov-report/index.html +101 -0
  26. package/coverage/lcov-report/prettify.css +1 -0
  27. package/coverage/lcov-report/prettify.js +2 -0
  28. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  29. package/coverage/lcov-report/sorter.js +196 -0
  30. package/coverage/lcov.info +0 -0
  31. package/data/list.json +19 -0
  32. package/dist/LICENSE.txt +209 -0
  33. package/dist/README.md +79 -0
  34. package/elements/button/component.js +0 -0
  35. package/elements/code/component.js +0 -0
  36. package/elements/costants.tsx +13 -0
  37. package/elements/fieldset/component.js +0 -0
  38. package/elements/input/checkbox/component.js +0 -0
  39. package/elements/input/date/component.js +27 -0
  40. package/elements/input/number/component.js +0 -0
  41. package/elements/input/radio/component.js +0 -0
  42. package/elements/input/search/component.js +0 -0
  43. package/elements/input/select/component.js +0 -0
  44. package/elements/input/slider/component.js +0 -0
  45. package/elements/input/switch/component.js +0 -0
  46. package/elements/tab/component.js +0 -0
  47. package/elements/table/component.js +0 -0
  48. package/elements/tags.less +0 -0
  49. package/elements/textarea/component.js +0 -0
  50. package/elements/x-foo/define.js +33 -0
  51. package/elements/x-foo/namespace.d.ts +7 -0
  52. package/index.js +12 -2
  53. package/init.js +87 -0
  54. package/jest.config.js +81 -0
  55. package/node/createTag.js +7 -0
  56. package/node/gitDeploy.js +7 -0
  57. package/node/goLive.js +7 -0
  58. package/package.json +7 -7
  59. package/{assets → public/assets}/images/banner.png +0 -0
  60. package/{assets → public/assets}/logos/logo.svg +0 -0
  61. package/{documents → public/documents}/iDB/list.html +0 -0
  62. package/{documents → public/documents}/iDB/toState.html +0 -0
  63. package/scripts/.OLD/import.js +48 -0
  64. package/scripts/.OLD/onBeforeUnLoad.js +120 -0
  65. package/scripts/.OLD/purge.js +53 -0
  66. package/scripts/.OLD/string.js +27 -0
  67. package/scripts/anchor.js +73 -0
  68. package/scripts/array.js +203 -0
  69. package/scripts/avoid.js +48 -0
  70. package/scripts/browser.js +100 -0
  71. package/scripts/color.js +121 -0
  72. package/scripts/console.js +97 -0
  73. package/scripts/console.mapped.js +160 -0
  74. package/scripts/coods.js +57 -0
  75. package/scripts/cookie.js +105 -0
  76. package/scripts/date.js +179 -0
  77. package/scripts/disable.js +91 -0
  78. package/scripts/errors.js +3 -0
  79. package/scripts/event.js +57 -0
  80. package/scripts/font.js +60 -0
  81. package/scripts/form.js +211 -0
  82. package/scripts/format.js +71 -0
  83. package/scripts/function.js +55 -0
  84. package/scripts/iDB.js +688 -0
  85. package/scripts/json.js +84 -0
  86. package/scripts/load.js +112 -0
  87. package/scripts/math.js +100 -0
  88. package/scripts/obj.js +118 -0
  89. package/scripts/path.js +101 -0
  90. package/scripts/promise.js +56 -0
  91. package/scripts/screen.js +82 -0
  92. package/scripts/scrollbar.js +293 -0
  93. package/scripts/shortcut.js +83 -0
  94. package/scripts/socket.js +184 -0
  95. package/scripts/state.js +87 -0
  96. package/scripts/storage.js +93 -0
  97. package/scripts/store.js +115 -0
  98. package/scripts/svg.js +380 -0
  99. package/scripts/text.js +116 -0
  100. package/scripts/time.js +43 -0
  101. package/scripts/timer.js +54 -0
  102. package/scripts/tool.js +73 -0
  103. package/scripts/trigger.js +57 -0
  104. package/scripts/type.js +76 -0
  105. package/scripts/ui.js +41 -0
  106. package/scripts/window.js +244 -0
  107. package/styles/console.less +95 -0
  108. package/tests/setupJest.tsx +4 -0
  109. package/typings/.OLD/cordova.d.ts +12 -0
  110. package/typings/.OLD/layerpro.d.ts +20 -0
  111. package/typings/.OLD/menupro.d.ts +20 -0
  112. package/typings/dphelper.d.ts +26 -0
  113. package/typings/image.d.ts +5 -0
  114. package/typings/styles.d.ts +23 -0
  115. package/webpack.config.js +249 -0
  116. package/index.js.LICENSE.txt +0 -31
@@ -0,0 +1,468 @@
1
+ {
2
+ "extends": "stylelint-config-standard",
3
+ "plugins": [
4
+ "stylelint-order"
5
+ ],
6
+ "rules": {
7
+ "comment-empty-line-before": null,
8
+ "function-linear-gradient-no-nonstandard-direction": null,
9
+ "function-whitespace-after": null,
10
+ "no-descending-specificity": null,
11
+ "no-duplicate-selectors": null,
12
+ "no-unknown-animations": true,
13
+ "media-feature-name-no-unknown": [true, {
14
+ "ignoreMediaFeatureNames": [
15
+ "prefers-reduced-motion",
16
+ "min--moz-device-pixel-ratio"
17
+ ]
18
+ }],
19
+ "number-leading-zero": "always",
20
+ "order/order": [
21
+ "custom-properties",
22
+ "dollar-variables",
23
+ {
24
+ "type": "at-rule",
25
+ "hasBlock": false
26
+ },
27
+ "declarations",
28
+ "rules",
29
+ {
30
+ "type": "at-rule",
31
+ "hasBlock": true
32
+ }
33
+ ],
34
+ "order/properties-order": [
35
+ "position",
36
+ "z-index",
37
+ "top",
38
+ "right",
39
+ "bottom",
40
+ "left",
41
+
42
+ "display",
43
+ "visibility",
44
+ "float",
45
+ "clear",
46
+ "overflow",
47
+ "overflow-x",
48
+ "overflow-y",
49
+ "-ms-overflow-x",
50
+ "-ms-overflow-y",
51
+ "-webkit-overflow-scrolling",
52
+ "clip",
53
+ "zoom",
54
+
55
+ "flex",
56
+ "flex-flow",
57
+ "flex-direction",
58
+ "flex-wrap",
59
+ "flex-basis",
60
+ "flex-grow",
61
+ "flex-shrink",
62
+ "flex-order",
63
+ "flex-pack",
64
+
65
+ "-ms-grid",
66
+ "grid",
67
+ "grid-area",
68
+ "grid-template",
69
+ "grid-template-areas",
70
+ "-ms-grid-rows",
71
+ "grid-template-rows",
72
+ "-ms-grid-columns",
73
+ "grid-template-columns",
74
+ "grid-row",
75
+ "-ms-grid-row",
76
+ "grid-row-start",
77
+ "grid-row-end",
78
+ "grid-column",
79
+ "-ms-grid-column",
80
+ "grid-column-start",
81
+ "grid-column-end",
82
+ "grid-auto-rows",
83
+ "grid-auto-columns",
84
+ "grid-auto-flow",
85
+ "grid-gap",
86
+ "grid-row-gap",
87
+ "grid-column-gap",
88
+ "-ms-grid-row-align",
89
+ "-ms-grid-column-align",
90
+
91
+ "place-content",
92
+ "place-items",
93
+ "align-content",
94
+ "align-items",
95
+ "align-self",
96
+ "justify-content",
97
+ "justify-items",
98
+ "justify-self",
99
+
100
+ "order",
101
+
102
+ "-webkit-box-sizing",
103
+ "-moz-box-sizing",
104
+ "box-sizing",
105
+ "width",
106
+ "min-width",
107
+ "max-width",
108
+ "height",
109
+ "min-height",
110
+ "max-height",
111
+ "margin",
112
+ "margin-top",
113
+ "margin-right",
114
+ "margin-bottom",
115
+ "margin-left",
116
+ "margin-block-start",
117
+ "margin-block-end",
118
+ "margin-inline-start",
119
+ "margin-inline-end",
120
+ "padding",
121
+ "padding-top",
122
+ "padding-right",
123
+ "padding-bottom",
124
+ "padding-left",
125
+ "padding-block-start",
126
+ "padding-block-end",
127
+ "padding-inline-start",
128
+ "padding-inline-end",
129
+
130
+ "table-layout",
131
+ "-webkit-columns",
132
+ "-moz-columns",
133
+ "columns",
134
+ "-webkit-column-span",
135
+ "-moz-column-span",
136
+ "column-span",
137
+ "-webkit-column-width",
138
+ "-moz-column-width",
139
+ "column-width",
140
+ "-webkit-column-count",
141
+ "-moz-column-count",
142
+ "column-count",
143
+ "-webkit-column-fill",
144
+ "-moz-column-fill",
145
+ "column-fill",
146
+ "-webkit-column-gap",
147
+ "-moz-column-gap",
148
+ "column-gap",
149
+ "-webkit-column-rule",
150
+ "-moz-column-rule",
151
+ "column-rule",
152
+ "-webkit-column-rule-width",
153
+ "-moz-column-rule-width",
154
+ "column-rule-width",
155
+ "-webkit-column-rule-style",
156
+ "-moz-column-rule-style",
157
+ "column-rule-style",
158
+ "-webkit-column-rule-color",
159
+ "-moz-column-rule-color",
160
+ "column-rule-color",
161
+ "empty-cells",
162
+ "caption-side",
163
+ "border-spacing",
164
+ "border-collapse",
165
+ "$counter-style",
166
+ "list-style",
167
+ "list-style-position",
168
+ "list-style-type",
169
+ "list-style-image",
170
+
171
+ "content",
172
+ "quotes",
173
+ "counter-reset",
174
+ "counter-increment",
175
+ "resize",
176
+ "cursor",
177
+ "-webkit-user-select",
178
+ "-moz-user-select",
179
+ "-ms-user-select",
180
+ "user-select",
181
+ "nav-index",
182
+ "nav-up",
183
+ "nav-right",
184
+ "nav-down",
185
+ "nav-left",
186
+ "-webkit-transition",
187
+ "-moz-transition",
188
+ "-ms-transition",
189
+ "-o-transition",
190
+ "transition",
191
+ "-webkit-transition-delay",
192
+ "-moz-transition-delay",
193
+ "-ms-transition-delay",
194
+ "-o-transition-delay",
195
+ "transition-delay",
196
+ "-webkit-transition-timing-function",
197
+ "-moz-transition-timing-function",
198
+ "-ms-transition-timing-function",
199
+ "-o-transition-timing-function",
200
+ "transition-timing-function",
201
+ "-webkit-transition-duration",
202
+ "-moz-transition-duration",
203
+ "-ms-transition-duration",
204
+ "-o-transition-duration",
205
+ "transition-duration",
206
+ "-webkit-transition-property",
207
+ "-moz-transition-property",
208
+ "-ms-transition-property",
209
+ "-o-transition-property",
210
+ "transition-property",
211
+ "-webkit-transform",
212
+ "-moz-transform",
213
+ "-ms-transform",
214
+ "-o-transform",
215
+ "transform",
216
+ "-webkit-transform-origin",
217
+ "-moz-transform-origin",
218
+ "-ms-transform-origin",
219
+ "-o-transform-origin",
220
+ "transform-origin",
221
+ "$keyframes",
222
+ "-webkit-animation",
223
+ "-moz-animation",
224
+ "-ms-animation",
225
+ "-o-animation",
226
+ "animation",
227
+ "-webkit-animation-name",
228
+ "-moz-animation-name",
229
+ "-ms-animation-name",
230
+ "-o-animation-name",
231
+ "animation-name",
232
+ "-webkit-animation-duration",
233
+ "-moz-animation-duration",
234
+ "-ms-animation-duration",
235
+ "-o-animation-duration",
236
+ "animation-duration",
237
+ "-webkit-animation-play-state",
238
+ "-moz-animation-play-state",
239
+ "-ms-animation-play-state",
240
+ "-o-animation-play-state",
241
+ "animation-play-state",
242
+ "-webkit-animation-timing-function",
243
+ "-moz-animation-timing-function",
244
+ "-ms-animation-timing-function",
245
+ "-o-animation-timing-function",
246
+ "animation-timing-function",
247
+ "-webkit-animation-delay",
248
+ "-moz-animation-delay",
249
+ "-ms-animation-delay",
250
+ "-o-animation-delay",
251
+ "animation-delay",
252
+ "-webkit-animation-iteration-count",
253
+ "-moz-animation-iteration-count",
254
+ "-ms-animation-iteration-count",
255
+ "-o-animation-iteration-count",
256
+ "animation-iteration-count",
257
+ "-webkit-animation-direction",
258
+ "-moz-animation-direction",
259
+ "-ms-animation-direction",
260
+ "-o-animation-direction",
261
+ "animation-direction",
262
+ "text-align",
263
+ "-webkit-text-align-last",
264
+ "-moz-text-align-last",
265
+ "-ms-text-align-last",
266
+ "text-align-last",
267
+ "vertical-align",
268
+ "white-space",
269
+ "text-decoration",
270
+ "text-emphasis",
271
+ "text-emphasis-color",
272
+ "text-emphasis-style",
273
+ "text-emphasis-position",
274
+ "text-indent",
275
+ "-ms-text-justify",
276
+ "text-justify",
277
+ "text-transform",
278
+ "letter-spacing",
279
+ "word-spacing",
280
+ "-ms-writing-mode",
281
+ "text-outline",
282
+ "text-transform",
283
+ "text-wrap",
284
+ "text-overflow",
285
+ "-ms-text-overflow",
286
+ "text-overflow-ellipsis",
287
+ "text-overflow-mode",
288
+ "-ms-word-wrap",
289
+ "word-wrap",
290
+ "word-break",
291
+ "-ms-word-break",
292
+ "-moz-tab-size",
293
+ "-o-tab-size",
294
+ "tab-size",
295
+ "-webkit-hyphens",
296
+ "-moz-hyphens",
297
+ "hyphens",
298
+ "pointer-events",
299
+ "direction",
300
+ "unicode-bidi",
301
+ "orphans",
302
+ "widows",
303
+ "object-fit",
304
+ "object-position",
305
+
306
+ "opacity",
307
+ "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
308
+ "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
309
+ "-webkit-filter",
310
+ "-ms-filter",
311
+ "filter",
312
+ "-ms-interpolation-mode",
313
+ "color",
314
+ "border",
315
+ "border-collapse",
316
+ "border-width",
317
+ "border-style",
318
+ "border-color",
319
+ "border-top",
320
+ "border-top-width",
321
+ "border-top-style",
322
+ "border-top-color",
323
+ "border-right",
324
+ "border-right-width",
325
+ "border-right-style",
326
+ "border-right-color",
327
+ "border-bottom",
328
+ "border-bottom-width",
329
+ "border-bottom-style",
330
+ "border-bottom-color",
331
+ "border-left",
332
+ "border-left-width",
333
+ "border-left-style",
334
+ "border-left-color",
335
+ "border-block-start",
336
+ "border-block-start-width",
337
+ "border-block-start-style",
338
+ "border-block-start-color",
339
+ "border-inline-end",
340
+ "border-inline-end-width",
341
+ "border-inline-end-style",
342
+ "border-inline-end-color",
343
+ "border-block-end",
344
+ "border-block-end-width",
345
+ "border-block-end-style",
346
+ "border-block-end-color",
347
+ "border-inline-start",
348
+ "border-inline-start-width",
349
+ "border-inline-start-style",
350
+ "border-inline-start-color",
351
+ "-webkit-border-radius",
352
+ "-moz-border-radius",
353
+ "border-radius",
354
+ "-webkit-border-top-left-radius",
355
+ "-moz-border-radius-topleft",
356
+ "border-top-left-radius",
357
+ "-webkit-border-top-right-radius",
358
+ "-moz-border-radius-topright",
359
+ "border-top-right-radius",
360
+ "-webkit-border-bottom-right-radius",
361
+ "-moz-border-radius-bottomright",
362
+ "border-bottom-right-radius",
363
+ "-webkit-border-bottom-left-radius",
364
+ "-moz-border-radius-bottomleft",
365
+ "border-bottom-left-radius",
366
+ "-webkit-border-image",
367
+ "-moz-border-image",
368
+ "-o-border-image",
369
+ "border-image",
370
+ "-webkit-border-image-source",
371
+ "-moz-border-image-source",
372
+ "-o-border-image-source",
373
+ "border-image-source",
374
+ "-webkit-border-image-slice",
375
+ "-moz-border-image-slice",
376
+ "-o-border-image-slice",
377
+ "border-image-slice",
378
+ "-webkit-border-image-width",
379
+ "-moz-border-image-width",
380
+ "-o-border-image-width",
381
+ "border-image-width",
382
+ "-webkit-border-image-outset",
383
+ "-moz-border-image-outset",
384
+ "-o-border-image-outset",
385
+ "border-image-outset",
386
+ "-webkit-border-image-repeat",
387
+ "-moz-border-image-repeat",
388
+ "-o-border-image-repeat",
389
+ "border-image-repeat",
390
+ "outline",
391
+ "outline-width",
392
+ "outline-style",
393
+ "outline-color",
394
+ "outline-offset",
395
+ "background",
396
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
397
+ "background-color",
398
+ "background-image",
399
+ "background-repeat",
400
+ "background-attachment",
401
+ "background-position",
402
+ "background-position-x",
403
+ "-ms-background-position-x",
404
+ "background-position-y",
405
+ "-ms-background-position-y",
406
+ "-webkit-background-clip",
407
+ "-moz-background-clip",
408
+ "background-clip",
409
+ "background-origin",
410
+ "-webkit-background-size",
411
+ "-moz-background-size",
412
+ "-o-background-size",
413
+ "background-size",
414
+ "box-decoration-break",
415
+ "-webkit-box-shadow",
416
+ "-moz-box-shadow",
417
+ "box-shadow",
418
+ "filter:progid:DXImageTransform.Microsoft.gradient",
419
+ "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
420
+ "text-shadow",
421
+
422
+ "$font-face",
423
+ "font",
424
+ "font-family",
425
+ "src",
426
+ "$font-feature-values",
427
+ "$swash",
428
+ "$annotation",
429
+ "$ornaments",
430
+ "$stylistic",
431
+ "$styleset",
432
+ "$character-variant",
433
+ "font-variant-alternates",
434
+ "font-size",
435
+ "font-weight",
436
+ "font-style",
437
+ "font-variant",
438
+ "font-size-adjust",
439
+ "font-stretch",
440
+ "font-effect",
441
+ "font-emphasize",
442
+ "font-emphasize-position",
443
+ "font-emphasize-style",
444
+ "font-smooth",
445
+ "line-height"
446
+ ],
447
+ "property-no-unknown": null,
448
+ "rule-empty-line-before": null,
449
+ "selector-pseudo-element-colon-notation": null,
450
+ "shorthand-property-no-redundant-values": null,
451
+ "string-quotes": "double",
452
+ "unit-allowed-list": ["ch", "deg", "em", "ex", "fr", "ms", "rem", "%", "s", "px", "vw", "vh"],
453
+ "value-keyword-case": ["lower", {
454
+ "ignoreProperties": [
455
+ "--font-family",
456
+ "font-family"
457
+ ]
458
+ }]
459
+ },
460
+ "ignoreFiles": [
461
+ "assets/vendor/**/*.css",
462
+ "tests/Drupal/Tests/Core/Asset/css_test_files/**/*.css",
463
+ "modules/media/css/plugins/drupalmedia/ckeditor.drupalmedia.css",
464
+ "themes/stable/css/core/assets/vendor/**/*.css",
465
+ "themes/stable9/css/core/assets/vendor/**/*.css",
466
+ "themes/stable9/css/media/plugins/drupalmedia/ckeditor.drupalmedia.css"
467
+ ]
468
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "configurations": [
3
+ {
4
+ "type": "node",
5
+ "name": "vscode-jest-tests-1633480870182",
6
+ "request": "launch",
7
+ "console": "integratedTerminal",
8
+ "internalConsoleOptions": "neverOpen",
9
+ "disableOptimisticBPs": true,
10
+ "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
11
+ "cwd": "${workspaceFolder}",
12
+ "args": [
13
+ "test",
14
+ "--runInBand",
15
+ "--watchAll=false"
16
+ ]
17
+ },
18
+ {
19
+ "type": "node",
20
+ "name": "vscode-jest-tests",
21
+ "request": "launch",
22
+ "console": "integratedTerminal",
23
+ "internalConsoleOptions": "neverOpen",
24
+ "disableOptimisticBPs": true,
25
+ "program": "${workspaceFolder}\\jest",
26
+ "cwd": "${workspaceFolder}",
27
+ "args": [
28
+ "test",
29
+ "--runInBand",
30
+ "--watchAll=false"
31
+ ]
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "npm.exclude": [
3
+ "**/dist", "dist"
4
+ ],
5
+ "editor.hover.enabled": true,
6
+ "editor.hover.delay": 2000,
7
+ "editor.quickSuggestions": {
8
+ "comments": "on",
9
+ "strings": "on",
10
+ "other": "on"
11
+ },
12
+ "editor.quickSuggestionsDelay": 2000,
13
+
14
+ "editor.tabCompletion": "off",
15
+ "editor.renderWhitespace": "all",
16
+ "editor.acceptSuggestionOnEnter": "on",
17
+ "editor.defaultFormatter": null,
18
+ "editor.formatOnSave": false,
19
+ "editor.autoClosingBrackets": "always",
20
+ "editor.autoClosingOvertype": "always",
21
+ "editor.insertSpaces": true,
22
+ "editor.detectIndentation":false,
23
+ "editor.tabSize": 2,
24
+
25
+ "files.trimTrailingWhitespace": true,
26
+ "typescript.format.semicolons": "remove",
27
+ "typescript.referencesCodeLens.enabled": true,
28
+ "typescript.suggestionActions.enabled": false,
29
+ "javascript.suggestionActions.enabled": false,
30
+ "explorer.compactFolders":false,
31
+
32
+ "[typescript]": {},
33
+ "[javascript]": {},
34
+ "[markdown]": {},
35
+ "[php]": {},
36
+ "[css]": {},
37
+ "[less]": {},
38
+ "[sass]": {},
39
+ "[js]": {},
40
+
41
+ "search.exclude": {
42
+ ".editorconfig": true,
43
+ "**/.cache": true,
44
+ "**/.DS_Store": true,
45
+ "**/.git": true,
46
+ "**/.svg": true,
47
+ "**/.xml": true,
48
+ "**/bower_components": true,
49
+ "**/node_*": true,
50
+ "**/node_modules": true,
51
+ "**/tmp": true,
52
+ "babel.config.js": true,
53
+ "jest.config.js": true,
54
+ "node_modules": true,
55
+ "package-lock.json": true,
56
+ }
57
+
58
+ }