@studio-west/employees 0.0.9 → 0.0.10

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.
@@ -0,0 +1 @@
1
+ .wrapper[data-v-1e7f76f5]{display:flex}.wrapper .month_year[data-v-1e7f76f5]{display:flex;justify-content:space-around;align-items:center}.wrapper .month_year span:not(.text) button[data-v-1e7f76f5]{font-size:1.3em}.wrapper>div[data-v-1e7f76f5]:not(:first-child){margin-left:2rem}.wrapper button[data-v-1e7f76f5]{height:30px;text-align:center;line-height:30px;cursor:pointer;background:none;border:none;border-radius:.2rem;transition:all .3s ease}.wrapper button[data-v-1e7f76f5]:hover:not(.disabled):not(.active){color:var(--el-color-success)}.wrapper .week[data-v-1e7f76f5]{border-bottom:1px solid var(--el-color-info);margin-bottom:.5rem}.wrapper .month[data-v-1e7f76f5],.wrapper .week[data-v-1e7f76f5]{width:250px;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;gap:.2rem}.wrapper .month>button[data-v-1e7f76f5],.wrapper .week>button[data-v-1e7f76f5]{width:30px}.wrapper .month>button.disabled[data-v-1e7f76f5],.wrapper .week>button.disabled[data-v-1e7f76f5]{color:var(--el-color-info);cursor:not-allowed}.wrapper .month>button.active[data-v-1e7f76f5],.wrapper .week>button.active[data-v-1e7f76f5]{background-color:#007bff}.noBorder .el-input__wrapper{box-shadow:none}
@@ -0,0 +1,41 @@
1
+ function g(t, r) {
2
+ if (arguments.length === 0 || !t)
3
+ return null;
4
+ const a = r || "{Y}-{m}-{d} {G}:{i}:{s}";
5
+ let e;
6
+ typeof t == "object" ? e = t : (typeof t == "string" && (/^[0-9]+$/.test(t) ? t = parseInt(t) : t = t.replace(new RegExp(/-/gm), "/")), typeof t == "number" && t.toString().length === 10 && (t = t * 1e3), e = new Date(t));
7
+ const o = "ru-RU", s = {
8
+ Y: e.getFullYear(),
9
+ m: (e.getMonth() + 1).toString().padStart(2, "0"),
10
+ d: e.getDate(),
11
+ dd: e.getDate().toString().padStart(2, "0"),
12
+ G: e.getHours(),
13
+ H: e.getHours().toString().padStart(2, "0"),
14
+ i: e.getMinutes().toString().padStart(2, "0"),
15
+ s: e.getSeconds().toString().padStart(2, "0"),
16
+ D: new Intl.DateTimeFormat(o, { weekday: "short" }).format(e),
17
+ F: new Intl.DateTimeFormat(o, { month: "long" }).format(e),
18
+ M: new Intl.DateTimeFormat(o, { month: "short" }).format(e)
19
+ };
20
+ return a.replace(/{(dd|[YmdGHisDFM])+}/g, (f, l) => s[l]);
21
+ }
22
+ function p(t, r) {
23
+ let e = t.replace(/[0-9]/g, "").split("").reverse().map((o) => o.charCodeAt(0));
24
+ return n(e, r, 0), e.map((o) => String.fromCharCode(o)).reverse().join("");
25
+ }
26
+ function u(t) {
27
+ return t.split(" ", 3).map((r, a) => a !== 0 ? r.slice(0, 1) + "." : r).join(" ");
28
+ }
29
+ function n(t, r, a) {
30
+ if (typeof r != "number" || r < 1) return !0;
31
+ if (r = r - 1, (typeof t[a] != "number" || t[a] < 65) && (t[a] = 65), t[a] + r <= 90) t[a] = t[a] + r;
32
+ else {
33
+ let e = Math.floor((t[a] - 65 + r) / 26);
34
+ t[a] = (t[a] - 65 + r) % 26 + 65, n(t, e, a + 1);
35
+ }
36
+ }
37
+ export {
38
+ u as b,
39
+ p as c,
40
+ g as p
41
+ };
@@ -0,0 +1 @@
1
+ "use strict";function f(t,r){if(arguments.length===0||!t)return null;const a=r||"{Y}-{m}-{d} {G}:{i}:{s}";let e;typeof t=="object"?e=t:(typeof t=="string"&&(/^[0-9]+$/.test(t)?t=parseInt(t):t=t.replace(new RegExp(/-/gm),"/")),typeof t=="number"&&t.toString().length===10&&(t=t*1e3),e=new Date(t));const n="ru-RU",l={Y:e.getFullYear(),m:(e.getMonth()+1).toString().padStart(2,"0"),d:e.getDate(),dd:e.getDate().toString().padStart(2,"0"),G:e.getHours(),H:e.getHours().toString().padStart(2,"0"),i:e.getMinutes().toString().padStart(2,"0"),s:e.getSeconds().toString().padStart(2,"0"),D:new Intl.DateTimeFormat(n,{weekday:"short"}).format(e),F:new Intl.DateTimeFormat(n,{month:"long"}).format(e),M:new Intl.DateTimeFormat(n,{month:"short"}).format(e)};return a.replace(/{(dd|[YmdGHisDFM])+}/g,(p,s)=>l[s])}function u(t,r){let e=t.replace(/[0-9]/g,"").split("").reverse().map(n=>n.charCodeAt(0));return o(e,r,0),e.map(n=>String.fromCharCode(n)).reverse().join("")}function g(t){return t.split(" ",3).map((r,a)=>a!==0?r.slice(0,1)+".":r).join(" ")}function o(t,r,a){if(typeof r!="number"||r<1)return!0;if(r=r-1,(typeof t[a]!="number"||t[a]<65)&&(t[a]=65),t[a]+r<=90)t[a]=t[a]+r;else{let e=Math.floor((t[a]-65+r)/26);t[a]=(t[a]-65+r)%26+65,o(t,e,a+1)}}exports.byInitials=g;exports.cellsDynamically=u;exports.parseTime=f;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studio-west/employees",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -10,6 +10,10 @@
10
10
  ".": {
11
11
  "import": "./dist/WorkTable.js",
12
12
  "require": "./dist/WorkTable.cjs"
13
+ },
14
+ "./table": {
15
+ "import": "./dist/VacationTable.js",
16
+ "require": "./dist/VacationTable.cjs"
13
17
  }
14
18
  },
15
19
  "type": "module",
@@ -20,6 +24,7 @@
20
24
  },
21
25
  "devDependencies": {
22
26
  "@vitejs/plugin-vue": "^5.2.1",
27
+ "sass-embedded": "^1.83.0",
23
28
  "vite": "^6.0.1"
24
29
  }
25
30
  }
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>