intelliwaketssveltekitv25 0.3.45 → 0.3.47

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.
@@ -101,79 +101,80 @@
101
101
  }
102
102
  </script>
103
103
 
104
- <div class="overflow-hidden grid place-items-center object-contain" style="container-type: size; {!maxWidth ? undefined : `max-width: ${maxWidth} !important; aspect-ratio: 3/2;`}">
105
- <div
106
- class="@container grid grid-rows-[auto_auto_1fr] aspect-[3/2] h-auto max-w-full max-h-full min-w-0 min-h-0 w-[min(100cqw,calc(1.5*100cqh))] text-xs {clazz}">
107
- {#if hideNavigation}
108
- <div class="@min-[35em]:text-lg @min-[45em]:text-xl text-center">
109
- {DateFormatAny('MMMM YYYY', baseDate) ?? ''}
110
- </div>
111
- {:else}
112
- <div class="grid grid-cols-[1fr_3fr_2fr_1fr] gap-1 @min-[35em]:text-lg @min-[45em]:text-xl">
113
- <button
114
- class="btnLink"
115
- onclick={() => setDate(DateOnly(baseDate, selectRange === 'Week' ? {weeks: -1} : {months: -1}), false)}>
116
- &#9664;
117
- </button>
118
- <select
119
- class="border-none p-0 w-full !bg-transparent dark:text-slate-100 text-center "
120
- onchange={e => setDate(DateOnly(baseDate, {months: CleanSubtractNumbers(0, e.target?.value, currentMonth)}), false)}>
121
- {#each MonthNames as month, idx (month)}
122
- <option value={idx + 1} selected={currentMonth === idx + 1}>{month}</option>
123
- {/each}
124
- </select>
125
- <select
126
- class="border-none p-0 w-full !bg-transparent dark:text-slate-100 text-center"
127
- class:bg-transparent={true}
128
- onchange={e => setDate(DateOnly(baseDate, {years: CleanSubtractNumbers(0, e.target?.value, currentYear)}), false)}>
129
- {#each years as year (year)}
130
- <option value={year} selected={currentYear === year}>{year}</option>
131
- {/each}
132
- </select>
133
- <button
134
- class="btnLink"
135
- onclick={() => setDate(DateOnly(baseDate, selectRange === 'Week' ? {weeks: 1} : {months: 1}), false)}>
136
- &#9654;
137
- </button>
138
- </div>
139
- {/if}
140
- <div class="grid grid-cols-7 border text-center text-xs @min-[25em]:text-md @min-[35em]:text-lg py-1">
141
- <div>S</div>
142
- <div>M</div>
143
- <div>T</div>
144
- <div>W</div>
145
- <div>T</div>
146
- <div>F</div>
147
- <div>S</div>
148
- </div>
104
+ <div class="overflow-hidden grid place-items-center object-contain"
105
+ style="container-type: size; {!maxWidth ? undefined : `max-width: ${maxWidth} !important; aspect-ratio: 3/2;`}">
149
106
  <div
150
- class="grid grid-cols-7 border-l border-r border-b @min-[35em]:text-lg @min-[45em]:text-xl">
151
- {#each largeDateParameters.weeks as week (week)}
152
- {#each week.days as day (day)}
153
- {#if dayBlock}
154
- {@render dayBlock(day, week)}
155
- {:else}
156
- <button
157
- onmousedown={e => e.preventDefault()}
158
- class="btnClean text-center"
159
- class:text-slate-400={day.outOfMonth}
160
- class:font-bold={day.isToday}
161
- class:font-thin={!day.isToday}
162
- class:bg-primary-main={day.isSelected && selectRange !== 'None'}
163
- class:dark:bg-primary-light={day.isSelected && selectRange !== 'None'}
164
- class:text-white={day.isSelected && selectRange !== 'None'}
165
- class:rounded-l-2xl={day.isSelectedFirst && selectRange !== 'None'}
166
- class:rounded-r-2xl={day.isSelectedLast && selectRange !== 'None'}
167
- {disabled}
168
- onclick={e => {
107
+ class="@container grid grid-rows-[auto_auto_1fr] aspect-[3/2] h-auto max-w-full max-h-full min-w-0 min-h-0 w-[min(100cqw,calc(1.5*100cqh))] text-xs {clazz}">
108
+ {#if hideNavigation}
109
+ <div class="@min-[35em]:text-lg @min-[45em]:text-xl text-center">
110
+ {DateFormatAny('MMMM YYYY', baseDate) ?? ''}
111
+ </div>
112
+ {:else}
113
+ <div class="grid grid-cols-[1fr_3fr_2fr_1fr] gap-1 @min-[35em]:text-lg @min-[45em]:text-xl">
114
+ <button
115
+ class="btnLink"
116
+ onclick={() => setDate(DateOnly(baseDate, selectRange === 'Week' ? {weeks: -1} : {months: -1}), false)}>
117
+ &#9664;
118
+ </button>
119
+ <select
120
+ class="border-none p-0 w-full !bg-transparent dark:text-slate-100 text-center "
121
+ onchange={e => setDate(DateOnly(baseDate, {months: CleanSubtractNumbers(0, e.target?.value, currentMonth)}), false)}>
122
+ {#each MonthNames as month, idx (month)}
123
+ <option value={idx + 1} selected={currentMonth === idx + 1}>{month}</option>
124
+ {/each}
125
+ </select>
126
+ <select
127
+ class="border-none p-0 w-full !bg-transparent dark:text-slate-100 text-center"
128
+ class:bg-transparent={true}
129
+ onchange={e => setDate(DateOnly(baseDate, {years: CleanSubtractNumbers(0, e.target?.value, currentYear)}), false)}>
130
+ {#each years as year (year)}
131
+ <option value={year} selected={currentYear === year}>{year}</option>
132
+ {/each}
133
+ </select>
134
+ <button
135
+ class="btnLink"
136
+ onclick={() => setDate(DateOnly(baseDate, selectRange === 'Week' ? {weeks: 1} : {months: 1}), false)}>
137
+ &#9654;
138
+ </button>
139
+ </div>
140
+ {/if}
141
+ <div class="grid grid-cols-7 border text-center text-xs @min-[25em]:text-md @min-[35em]:text-lg py-1">
142
+ <div>S</div>
143
+ <div>M</div>
144
+ <div>T</div>
145
+ <div>W</div>
146
+ <div>T</div>
147
+ <div>F</div>
148
+ <div>S</div>
149
+ </div>
150
+ <div
151
+ class="grid grid-cols-7 border-l border-r border-b @min-[35em]:text-lg @min-[45em]:text-xl">
152
+ {#each largeDateParameters.weeks as week (week)}
153
+ {#each week.days as day (day)}
154
+ {#if dayBlock}
155
+ {@render dayBlock(day, week)}
156
+ {:else}
157
+ <button
158
+ onmousedown={e => e.preventDefault()}
159
+ class="btnClean text-center"
160
+ class:text-slate-400={day.outOfMonth}
161
+ class:font-bold={day.isToday}
162
+ class:font-thin={!day.isToday}
163
+ class:bg-primary-main={day.isSelected && selectRange !== 'None'}
164
+ class:dark:bg-primary-light={day.isSelected && selectRange !== 'None'}
165
+ class:text-white={day.isSelected && selectRange !== 'None'}
166
+ class:rounded-l-2xl={day.isSelectedFirst && selectRange !== 'None'}
167
+ class:rounded-r-2xl={day.isSelectedLast && selectRange !== 'None'}
168
+ {disabled}
169
+ onclick={e => {
169
170
  e.stopPropagation()
170
171
  setDate(day.day, true)
171
172
  }}>
172
- {day.dateNumber}
173
- </button>
174
- {/if}
173
+ {day.dateNumber}
174
+ </button>
175
+ {/if}
176
+ {/each}
175
177
  {/each}
176
- {/each}
178
+ </div>
177
179
  </div>
178
180
  </div>
179
- </div>
@@ -104,11 +104,13 @@
104
104
  <div class="mx-auto border-b-2 border-transparent"
105
105
  class:border-b-secondary-light={applyRangeToSecondDate}>{DateOnly(customDateRange.end, { formatLocale: true })}</div>
106
106
  </div>
107
- <Calendar baseDate={baseDateNearToday}
108
- bind:dateRangeString={customDateRange}
109
- bind:applyRangeToSecondDate={applyRangeToSecondDate}
110
- {fyMonthsAdjust}
111
- selectRange="Range" />
107
+ <div class="grid grid-rows-1 w-64 aspect-[3/2] overflow-hidden p-2">
108
+ <Calendar baseDate={baseDateNearToday}
109
+ bind:dateRangeString={customDateRange}
110
+ bind:applyRangeToSecondDate={applyRangeToSecondDate}
111
+ {fyMonthsAdjust}
112
+ selectRange="Range" />
113
+ </div>
112
114
  <div class="grid grid-cols-2 mt-2">
113
115
  <div class="text-center">
114
116
  <button class="btnLink" onclick={() => customDateRange = null}>
@@ -199,7 +199,7 @@
199
199
  {@const showSection = listItem?.section && listItem.section !== subItems[idx - 1]?.section}
200
200
  {#if showSection}
201
201
  <li
202
- class='listGroupHeader block w-full z-10 select-none font-bold p-1 cursor-pointer sticky top-0 bg-primary-lighter text-white'
202
+ class='listGroupHeader block w-full z-10 select-none font-bold p-1 cursor-pointer [&_*]:cursor-pointer sticky top-0 bg-primary-lighter text-white'
203
203
  class:mt-4={rounded}
204
204
  class:overflow-x-hidden={wrapText || ellipses}
205
205
  class:whitespace-nowrap={!wrapText}
@@ -220,6 +220,7 @@
220
220
  {/if}
221
221
  <li class={`listGroupItem select-none relative ${listItem.itemClass ?? ''}`}
222
222
  class:overflow-x-hidden={wrapText || ellipses}
223
+ class:cursor-pointer={!listItem.disabled}
223
224
  class:[&_*]:cursor-pointer={!listItem.disabled}
224
225
  class:block={!useSubsExist}
225
226
  class:grid={useSubsExist}
@@ -243,7 +244,7 @@
243
244
  onkeydown={e => doKeyExecute(e, listItem.linkClick)}
244
245
  onclick={listItem.linkClick}>
245
246
  {#if useSubsExist}
246
- <div class='[&_*]:cursor-pointer text-center pt-3'
247
+ <div class='[&_*]:cursor-pointer cursor-pointer text-center pt-3'
247
248
  role='button'
248
249
  tabindex={-1}
249
250
  onkeydown={(e) => {
@@ -272,7 +273,7 @@
272
273
  <a href={listItem.pathFromItem}
273
274
  tabindex={-1}
274
275
  data-sveltekit-preload-data={listItem.dataSvelteKitPreloadData ?? "tap"}
275
- class='py-1 grid grid-cols-[auto_1fr_auto] overflow-x-hidden'
276
+ class='py-1 grid grid-cols-[auto_1fr_auto] overflow-x-hidden [&_*]:cursor-pointer'
276
277
  class:pl-3={!useSubsExist}>
277
278
  <div
278
279
  class='inline-block relative'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.3.45",
3
+ "version": "0.3.47",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -82,7 +82,7 @@
82
82
  "lint": "prettier --check . && eslint .",
83
83
  "format": "prettier --write .",
84
84
  "Install-IntelliWake": "pnpm install && pnpm update -P @solidbasisventures/intelliwaketsfoundation",
85
- "Publish": "pnpm version patch --no-git-tag-version && VER=`node -p \"require('./package.json').version\"` && git add -A && git commit -m \"chore: release v$VER\" && pnpm publish --access public && node -e \"const {execSync}=require('node:child_process');const name='intelliwaketssveltekitv25';const ver=process.env.VER;function ok(cmd){try{execSync(cmd,{stdio:'ignore'});return true;}catch{return false}};const deadline=Date.now()+180000; // 3min max wait while(Date.now()<deadline){try{const v=execSync(`npm view ${name} version`,{encoding:'utf8'}).trim();const latest=execSync(`npm view ${name} dist-tags.latest`,{encoding:'utf8'}).trim();if(v===ver && latest===ver && ok(`node -e \\\"https=require('https');https.get('https://registry.npmjs.org/${name}/-/${name}-${ver}.tgz',r=>{if(r.statusCode===200)process.exit(0);process.exit(1);}).on('error',()=>process.exit(1));\\\"`)){process.exit(0);} }catch{};Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,2000);}process.exit(1);\" && git tag \"v$VER\" && git push && git push --tags",
85
+ "Publish": "pnpm version patch && git push --tags && pnpm svelte-package && tailwindcss -i src/app.css -o ./dist/app.css --minify && git push && pnpm publish",
86
86
  "Version-Minor-Advance": "pnpm version minor"
87
87
  }
88
88
  }