hrenpack_js 3.4.0 → 3.4.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 (3) hide show
  1. package/index.js +16 -15
  2. package/package.json +2 -2
  3. package/types.d.ts +4 -6
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  // ===== File: arraywork.js =====
2
3
  "use strict";
3
4
  function arrayIsEmpty(arr) {
@@ -327,16 +328,16 @@ function password_format(shownPasswordHTML, hiddenPasswordHTML) {
327
328
  toggleBtn.type = 'button';
328
329
  toggleBtn.className = 'show-password-btn';
329
330
  toggleBtn.innerHTML = hiddenPasswordHTML;
330
- toggleBtn.style.cssText = `
331
- position: absolute;
332
- left: 45%;
333
- top: 50%;
334
- transform: translateY(-50%);
335
- cursor: pointer;
336
- user-select: none;
337
- background: none;
338
- border: none;
339
- padding: 0;
331
+ toggleBtn.style.cssText = `
332
+ position: absolute;
333
+ left: 45%;
334
+ top: 50%;
335
+ transform: translateY(-50%);
336
+ cursor: pointer;
337
+ user-select: none;
338
+ background: none;
339
+ border: none;
340
+ padding: 0;
340
341
  `;
341
342
  toggleBtn.addEventListener('click', () => {
342
343
  const isShowing = input.type === 'text';
@@ -2678,9 +2679,9 @@ class StepElement extends HTMLElement {
2678
2679
  super();
2679
2680
  if (this.textContent)
2680
2681
  this.label = this.textContent;
2681
- this.innerHTML = `
2682
- <div data-sb-generated="circle"></div>
2683
- <div data-sb-generated="label"><slot></slot></div>
2682
+ this.innerHTML = `
2683
+ <div data-sb-generated="circle"></div>
2684
+ <div data-sb-generated="label"><slot></slot></div>
2684
2685
  `;
2685
2686
  }
2686
2687
  static get observedAttributes() {
@@ -2755,8 +2756,8 @@ class Stepbar extends HTMLElement {
2755
2756
  value: void 0
2756
2757
  });
2757
2758
  this.attachShadow({ mode: 'open' });
2758
- this.shadowRoot.innerHTML = `
2759
- <slot></slot>
2759
+ this.shadowRoot.innerHTML = `
2760
+ <slot></slot>
2760
2761
  `;
2761
2762
  }
2762
2763
  static get observedAttributes() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrenpack_js",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Универсальная frontend библиотека javascript/typescript для большинства задач",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "build": "tsc",
16
- "bundle": "tsb . -j index.js -d index.d.ts"
16
+ "bundle": "tsb . -j index.js -d index.d.ts"
17
17
  },
18
18
  "author": "Маг Ильяс DOMA (MagIlyasDOMA)",
19
19
  "license": "MIT",
package/types.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- /*
2
- * hrenpack_js 3.1.2
3
- * Copyright (c) 2024-2025, Маг Ильяс DOMA (MagIlyasDOMA)
4
- * Licensed under MIT (https://github.com/MagIlyasDOMA/hrenpack_js/blob/main/LICENSE)
5
- */
6
-
7
1
  type NullStr = string | null;
8
2
  type NullNum = number | null;
9
3
  type Dict = {
@@ -16,4 +10,8 @@ type NumStr = number | string;
16
10
  type NullBool = boolean | null;
17
11
 
18
12
  type OnOffType = 'on' | 'off';
13
+
14
+ type Optional<T> = T | null
15
+ type Nullable<T> = T | null | undefined
16
+
19
17
  //# sourceMappingURL=types.d.ts.map