sn-date-picker 1.0.1

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 (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -0
  3. package/dist/sn-date-picker.esm.js +43 -0
  4. package/dist/sn-date-picker.js +43 -0
  5. package/dist-types/components/App.d.ts +3 -0
  6. package/dist-types/components/mui-setup.d.ts +2 -0
  7. package/dist-types/data.d.ts +14 -0
  8. package/dist-types/ext.d.ts +702 -0
  9. package/dist-types/index.d.ts +892 -0
  10. package/dist-types/object-properties.d.ts +146 -0
  11. package/dist-types/types.d.ts +18 -0
  12. package/dist-types/utils/config.d.ts +134 -0
  13. package/dist-types/utils/date.d.ts +10 -0
  14. package/dist-types/utils/list-object.d.ts +26 -0
  15. package/dist-types/vendor/date-kit/DatePicker/DatePicker.d.ts +13 -0
  16. package/dist-types/vendor/date-kit/DatePicker/DateRangePicker.d.ts +22 -0
  17. package/dist-types/vendor/date-kit/DatePicker/components/CalDay.d.ts +42 -0
  18. package/dist-types/vendor/date-kit/DatePicker/components/CalDayHeader.d.ts +6 -0
  19. package/dist-types/vendor/date-kit/DatePicker/components/CalMonth.d.ts +34 -0
  20. package/dist-types/vendor/date-kit/DatePicker/components/DatePickerFooter.d.ts +8 -0
  21. package/dist-types/vendor/date-kit/DatePicker/components/DatePickerHeader.d.ts +10 -0
  22. package/dist-types/vendor/date-kit/DatePicker/components/Grids.d.ts +52 -0
  23. package/dist-types/vendor/date-kit/DatePicker/components/index.d.ts +3 -0
  24. package/dist-types/vendor/date-kit/DatePicker/hooks/useCommonPickerState.d.ts +22 -0
  25. package/dist-types/vendor/date-kit/DatePicker/hooks/useDatePickerData.d.ts +15 -0
  26. package/dist-types/vendor/date-kit/DatePicker/hooks/useDayKeyboardNavigation.d.ts +12 -0
  27. package/dist-types/vendor/date-kit/DatePicker/hooks/useKeyboardMouseFocus.d.ts +12 -0
  28. package/dist-types/vendor/date-kit/DatePicker/hooks/useMonthKeyboardNavigation.d.ts +13 -0
  29. package/dist-types/vendor/date-kit/DatePicker/hooks/usePickerNavigation.d.ts +13 -0
  30. package/dist-types/vendor/date-kit/DatePicker/hooks/useViewModeManagement.d.ts +13 -0
  31. package/dist-types/vendor/date-kit/DatePicker/hooks/useYearKeyboardNavigation.d.ts +15 -0
  32. package/dist-types/vendor/date-kit/DatePicker/index.d.ts +6 -0
  33. package/dist-types/vendor/date-kit/DatePicker/shared/date-utils.d.ts +12 -0
  34. package/dist-types/vendor/date-kit/DatePicker/shared/month-year-handlers.d.ts +19 -0
  35. package/dist-types/vendor/date-kit/DatePicker/shared/types.d.ts +1 -0
  36. package/dist-types/vendor/date-kit/hooks/useI18n.d.ts +43 -0
  37. package/dist-types/vendor/date-kit/html-types.d.ts +11 -0
  38. package/package.json +84 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Riley MacDonald
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # sn-date-picker
2
+
3
+ A Nebula.js date picker visualization for Qlik Sense and embedded apps.
4
+
5
+ The package publishes the supernova module for host web apps, and the same repo can still generate a Qlik extension bundle for tenant registration.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install sn-date-picker @nebula.js/stardust
11
+ ```
12
+
13
+ ## Use in a host app
14
+
15
+ Register the visualization type in your Nebula/Stardust configuration, then render it like any other supernova:
16
+
17
+ ```ts
18
+ import embed from "@nebula.js/stardust";
19
+ import snDatePicker from "sn-date-picker";
20
+
21
+ const n = embed(app, {
22
+ types: [
23
+ {
24
+ name: "sn-date-picker",
25
+ load: () => Promise.resolve(snDatePicker),
26
+ },
27
+ ],
28
+ });
29
+ ```
30
+
31
+ If you want to render existing saved objects from a Qlik app, keep the registered `name` aligned with the object type/load path used by the extension in Qlik Sense.
32
+
33
+ ## Package surface
34
+
35
+ The published package exposes:
36
+
37
+ - CommonJS: `dist/sn-date-picker.js`
38
+ - ESM: `dist/sn-date-picker.esm.js`
39
+ - TypeScript declarations: `dist-types/index.d.ts`
40
+
41
+ The default export is the supernova factory from `src/index.tsx`.
42
+
43
+ ## Local development
44
+
45
+ Install dependencies:
46
+
47
+ ```bash
48
+ npm install --legacy-peer-deps
49
+ ```
50
+
51
+ Start the Nebula development server:
52
+
53
+ ```bash
54
+ npm start
55
+ ```
56
+
57
+ Build the JavaScript bundles:
58
+
59
+ ```bash
60
+ npm run build
61
+ ```
62
+
63
+ Build the full npm package surface, including declaration files:
64
+
65
+ ```bash
66
+ npm run build:package
67
+ ```
68
+
69
+ Preview the publish tarball:
70
+
71
+ ```bash
72
+ npm run pack:check
73
+ ```
74
+
75
+ ## Publish to npm
76
+
77
+ 1. Log in to npm with `npm login`.
78
+ 2. Bump the version with `npm version patch`, `npm version minor`, or `npm version major`.
79
+ 3. Run `npm run pack:check`.
80
+ 4. Publish with `npm publish`.
81
+
82
+ If you move to a scoped package name such as `@your-org/sn-date-picker`, publish with `npm publish --access public`.
83
+
84
+ ## Package for Qlik Sense
85
+
86
+ Build the Qlik extension bundle:
87
+
88
+ ```bash
89
+ npm run sense:package
90
+ ```
91
+
92
+ Build and deploy the extension:
93
+
94
+ ```bash
95
+ npm run sense
96
+ ```
97
+
98
+ Optional environment variables:
99
+
100
+ ```bash
101
+ QLIK_EXTENSION_BUILD_PATH=../extension_build
102
+ QLIK_TENANT=your-tenant.eu.qlikcloud.com
103
+ PYTHON_BIN=python3
104
+ ```
105
+
106
+ ## Testing
107
+
108
+ Run linting:
109
+
110
+ ```bash
111
+ npm run lint
112
+ ```
113
+
114
+ Run Playwright end-to-end tests:
115
+
116
+ ```bash
117
+ npm run test:e2e
118
+ ```
119
+
120
+ Open the Playwright report:
121
+
122
+ ```bash
123
+ npm run test:e2e:report
124
+ ```
125
+
126
+ ## Requirements
127
+
128
+ - Node.js >= 18.10.0
129
+ - Qlik Sense, if you also want to deploy the extension bundle
130
+
131
+ ## License
132
+
133
+ MIT