@tulipnpm/timekit_project_selector 1.0.6 → 1.0.9-rc.0

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.
package/README.md CHANGED
@@ -95,10 +95,21 @@ For each projects you can apply default filters by meta data. You can add many f
95
95
 
96
96
  ``` js
97
97
  filters: {
98
- 't_disabled': false,
99
- 't_private': false
98
+ 't_disabled': 0,
99
+ 't_private': 0
100
100
  }
101
101
  ```
102
+
103
+ #### Geo Search Bar
104
+ Geo search bar is an alternative to the selector option bar and they shouldn't be used together.
105
+ When this option is specified, the user will be asked for their geolocation in the browser. If the user shares it, the list of the 5 closest stores will be displayed.
106
+
107
+ ``` js
108
+ geo_search_bar: {
109
+ placeholder: 'Search for a city or postal code'
110
+ }
111
+ ```
112
+
102
113
  #### Standard Strings
103
114
 
104
115
  Adding a string such as 'Select a Store' will display that hardcoded string in the place of the placeholder. This can also be used to display custom HTML elements like icons in the UI.
@@ -129,8 +140,8 @@ timekit_project_selector.init({
129
140
  card_body: '[meta]t_appointment_type_description',
130
141
  card_footer: '<i class="far fa-clock"></i> {{[project]availability.length}}',
131
142
  filters: {
132
- 't_disabled': false,
133
- 't_private': false
143
+ 't_disabled': 0,
144
+ 't_private': 0
134
145
  }
135
146
  },
136
147
  store_project: {
@@ -302,8 +313,8 @@ timekit_project_selector.selectProject(timekitProject);
302
313
  card_body: '[meta]t_appointment_type_description',
303
314
  card_footer: '<i class="far fa-clock"></i> {{[project]availability.length}}',
304
315
  filters: {
305
- 't_disabled': false,
306
- 't_private': false
316
+ 't_disabled': 0,
317
+ 't_private': 0
307
318
  }
308
319
  },
309
320
  store_project: {
@@ -344,8 +355,8 @@ timekit_project_selector.selectProject(timekitProject);
344
355
  card_body: '[meta]t_appointment_type_description',
345
356
  card_footer: '<i class="far fa-clock"></i> {{[project]availability.length}}',
346
357
  filters: {
347
- 't_disabled': false,
348
- 't_private': false
358
+ 't_disabled': 0,
359
+ 't_private': 0
349
360
  }
350
361
  }
351
362
  }
@@ -0,0 +1,3 @@
1
+ <svg width="27" height="28" viewBox="0 0 27 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.4965 19.8023L17.6668 11.2512C17.8997 10.6235 17.2888 10.0126 16.661 10.2455L8.10653 13.4168C7.38541 13.6846 7.44166 14.7218 8.18753 14.9097L12.0418 15.8783L13.0037 19.7202C13.1915 20.4661 14.2299 20.5235 14.4965 19.8023V19.8023Z" stroke="#214DE6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>