intelliwaketssveltekitv25 0.3.41 → 0.3.43

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.
@@ -61,6 +61,41 @@ export interface ISpinItem<T = number> {
61
61
  style?: string;
62
62
  classItem?: string | null;
63
63
  }
64
+ /**
65
+ * Represents a List Group Item with various customizable properties and configurations.
66
+ * The object defines the structure and attributes for a single item in a list group.
67
+ *
68
+ * @typedef {Object} TListGroupItem
69
+ * @property {string} title - The main title of the list group item.
70
+ * @property {string} [sub_title] - Optional subtitle displayed beneath the title.
71
+ * @property {string} [hover_title] - Optional title displayed when the item is hovered over.
72
+ * @property {boolean} [hidden] - Indicates whether the item should be hidden.
73
+ * @property {IFAProps} [faProps] - Optional FontAwesome properties for the item.
74
+ * @property {IconDefinition} [icon] - Icon to display alongside the item.
75
+ * @property {boolean} [selected] - Indicates whether the item is selected.
76
+ * @property {string} [href] - URL to navigate to when the item is clicked, if set.
77
+ * @property {boolean} [strikeThrough] - Whether the title should be displayed with a strikethrough style.
78
+ * @property {Function} [linkClick] - Optional function to be triggered on link click.
79
+ * @property {number|string|null} [badgeValue] - Defines the badge value: undefined for no badge, null for badge with spinner, or number/string for specific value.
80
+ * @property {TDefaultColorPalate|null} [badgeColor] - Color of the badge, or null for default.
81
+ * @property {string|null} [badgeClass] - Additional class applied to badge styling.
82
+ * @property {string|null} [rightText] - Additional text displayed on the right of the item.
83
+ * @property {string} [paneName] - Identifier for a specific pane associated with the item.
84
+ * @property {string|null} [value] - A value related to the list item, if any.
85
+ * @property {string|null} [key] - Optional key used as a unique identifier for the list item.
86
+ * @property {string} [section] - Defines a section or grouping the item belongs to.
87
+ * @property {string|null} [parent_value] - The value of the parent item, if the item belongs to a nested structure.
88
+ * @property {string|null} [start_date] - Start date associated with the item.
89
+ * @property {string|null} [end_date] - End date associated with the item.
90
+ * @property {boolean|null} [disabled] - Whether the item is inactive or not clickable.
91
+ * @property {string[]|string|null} [feature] - Optional features associated with the item.
92
+ * @property {TListGroupItem[]} [subs] - Array of child items, defining a nested structure.
93
+ * @property {boolean} [collapsed] - Whether the item is collapsed in a nested structure.
94
+ * @property {'tap'|'hover'} [dataSvelteKitPreloadData] - Preload behavior for SvelteKit data ('tap' or 'hover').
95
+ * @property {boolean} [noLinkReplace] - Prevents link replacement when set to true.
96
+ * @property {boolean} [bigIcon] - Indicates if a larger icon should be used for this item.
97
+ * @property {string} [itemClass] - Custom class name for the item, used for additional styling.
98
+ */
64
99
  export type TListGroupItem = {
65
100
  title: string;
66
101
  sub_title?: string;
@@ -267,7 +267,7 @@
267
267
  {/if}
268
268
  </div>
269
269
  {/if}
270
- {#if (listItem.pathFromItem) && !listItem.linkClick}
270
+ {#if listItem.pathFromItem && !listItem.linkClick}
271
271
  <a href={listItem.pathFromItem}
272
272
  tabindex={-1}
273
273
  data-sveltekit-preload-data={listItem.dataSvelteKitPreloadData ?? "tap"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.3.41",
3
+ "version": "0.3.43",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -82,8 +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 && git add -A && git commit -m \"chore: release v$(node -p \\\"require('./package.json').version\\\")\" && pnpm publish --access public && git tag v$(node -p \\\"require('./package.json').version\\\") && git push && git push --tags",
86
- "PublishOld": "pnpm version patch && git push && pnpm svelte-package && tailwindcss -i src/app.css -o ./dist/app.css --minify && pnpm publish && git push && git push --tags",
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",
87
86
  "Version-Minor-Advance": "pnpm version minor"
88
87
  }
89
88
  }