@simsustech/quasar-components 0.11.18 → 0.11.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.20
4
+
5
+ ### Patch Changes
6
+
7
+ - 3c91d3e: fix(components): fix icons in PasswordChangeStepper
8
+
9
+ ## 0.11.19
10
+
11
+ ### Patch Changes
12
+
13
+ - 989f4c0: feat(components): add data-testid to AccountsTable search button
14
+ - b109c88: fix(components): remove flat from AccountsTable search button
15
+ - 3253b20: chore: update dependencies
16
+
3
17
  ## 0.11.18
4
18
 
5
19
  ### Patch Changes
@@ -139,22 +139,9 @@ const loadLang = async (isoName) => {
139
139
  loadingLanguage = false;
140
140
  }
141
141
  };
142
- function _typeof$1(o) {
143
- "@babel/helpers - typeof";
144
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
145
- return typeof o2;
146
- } : function(o2) {
147
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
148
- }, _typeof$1(o);
149
- }
150
142
  function assertString(input) {
151
- var isString = typeof input === "string" || input instanceof String;
152
- if (!isString) {
153
- var invalidType = _typeof$1(input);
154
- if (input === null) invalidType = "null";
155
- else if (invalidType === "object") invalidType = input.constructor.name;
156
- throw new TypeError("Expected a string but received a ".concat(invalidType));
157
- }
143
+ if (input === void 0 || input === null) throw new TypeError("Expected a string but received a ".concat(input));
144
+ if (input.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
158
145
  }
159
146
  function isRegExp(obj) {
160
147
  return Object.prototype.toString.call(obj) === "[object RegExp]";
@@ -168,19 +155,19 @@ function checkHost(host, matches) {
168
155
  }
169
156
  return false;
170
157
  }
171
- function _typeof(o) {
158
+ function _typeof$1(o) {
172
159
  "@babel/helpers - typeof";
173
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
160
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
174
161
  return typeof o2;
175
162
  } : function(o2) {
176
163
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
177
- }, _typeof(o);
164
+ }, _typeof$1(o);
178
165
  }
179
166
  function isByteLength(str, options) {
180
167
  assertString(str);
181
168
  var min;
182
169
  var max;
183
- if (_typeof(options) === "object") {
170
+ if (_typeof$1(options) === "object") {
184
171
  min = options.min || 0;
185
172
  max = options.max;
186
173
  } else {
@@ -252,23 +239,35 @@ function isFQDN(str, options) {
252
239
  return true;
253
240
  });
254
241
  }
242
+ function _typeof(o) {
243
+ "@babel/helpers - typeof";
244
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
245
+ return typeof o2;
246
+ } : function(o2) {
247
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
248
+ }, _typeof(o);
249
+ }
255
250
  var IPv4SegmentFormat = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
256
251
  var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
257
252
  var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
258
253
  var IPv6SegmentFormat = "(?:[0-9a-fA-F]{1,4})";
259
- var IPv6AddressRegExp = new RegExp("^(" + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ")(%[0-9a-zA-Z-.:]{1,})?$");
260
- function isIP(str) {
261
- var version = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
262
- assertString(str);
263
- version = String(version);
254
+ var IPv6AddressRegExp = new RegExp("^(" + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
255
+ function isIP(ipAddress) {
256
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
257
+ assertString(ipAddress);
258
+ var version = (_typeof(options) === "object" ? options.version : arguments[1]) || "";
264
259
  if (!version) {
265
- return isIP(str, 4) || isIP(str, 6);
260
+ return isIP(ipAddress, {
261
+ version: 4
262
+ }) || isIP(ipAddress, {
263
+ version: 6
264
+ });
266
265
  }
267
- if (version === "4") {
268
- return IPv4AddressRegExp.test(str);
266
+ if (version.toString() === "4") {
267
+ return IPv4AddressRegExp.test(ipAddress);
269
268
  }
270
- if (version === "6") {
271
- return IPv6AddressRegExp.test(str);
269
+ if (version.toString() === "6") {
270
+ return IPv6AddressRegExp.test(ipAddress);
272
271
  }
273
272
  return false;
274
273
  }
@@ -871,7 +870,11 @@ const __default__$8 = {
871
870
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
872
871
  ...__default__$8,
873
872
  props: {
874
- input: {}
873
+ input: { default: void 0 },
874
+ icons: { default: () => ({
875
+ visibility: "visibility",
876
+ visibilityOff: "visibility_off"
877
+ }) }
875
878
  },
876
879
  emits: ["requestOtp", "changePassword"],
877
880
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -975,8 +978,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
975
978
  form: { id: "passwordChangeForm" },
976
979
  email: email.value,
977
980
  input: _ctx.input,
981
+ icons: _ctx.icons,
978
982
  onSubmit: changePassword
979
- }, null, 8, ["email", "input"])
983
+ }, null, 8, ["email", "input", "icons"])
980
984
  ]),
981
985
  _: 1
982
986
  }, 8, ["title"])
@@ -1866,7 +1870,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1866
1870
  "top-right": withCtx(() => [
1867
1871
  createVNode(_component_q_btn, {
1868
1872
  icon: unref(searchIcon),
1869
- flat: ""
1873
+ "data-testid": "search-button"
1870
1874
  }, {
1871
1875
  default: withCtx(() => [
1872
1876
  createVNode(_component_q_menu, null, {
package/dist/form.js CHANGED
@@ -449,9 +449,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
449
449
  filled: false,
450
450
  outlined: false,
451
451
  standout: false,
452
- rounded: false,
453
- ref_for: true
454
- }, dateProps.value[part], {
452
+ rounded: false
453
+ }, { ref_for: true }, dateProps.value[part], {
455
454
  inputmode: "numeric",
456
455
  dense: ""
457
456
  }), {
@@ -3,6 +3,10 @@ export interface Props {
3
3
  input?: Omit<QInputProps, 'id' | 'name' | 'modelValue' | 'label' | 'rules' | 'type' | 'lazy-rules' | 'autofocus' | ('label' & {
4
4
  style?: Partial<CSSStyleDeclaration>;
5
5
  })>;
6
+ icons?: {
7
+ visibility: string;
8
+ visibilityOff: string;
9
+ };
6
10
  }
7
11
  declare const _default: import("vue").DefineComponent<Props, {
8
12
  variables: import("vue").Ref<{
@@ -41,5 +45,13 @@ declare const _default: import("vue").DefineComponent<Props, {
41
45
  email: string;
42
46
  done: () => void;
43
47
  }) => any) | undefined;
44
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
+ }>, {
49
+ icons: {
50
+ visibility: string;
51
+ visibilityOff: string;
52
+ };
53
+ input: Omit<QInputProps, "id" | "name" | "modelValue" | "label" | "rules" | "type" | "lazy-rules" | "autofocus" | ("label" & {
54
+ style?: Partial<CSSStyleDeclaration>;
55
+ })>;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
57
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.18",
3
+ "version": "0.11.20",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -51,24 +51,24 @@
51
51
  },
52
52
  "bugs": "https://github.com/simsusech/quasar-components/issues",
53
53
  "dependencies": {
54
- "@vueuse/core": "^13.2.0",
55
- "validator": "^13.15.0"
54
+ "@vueuse/core": "^13.3.0",
55
+ "validator": "^13.15.15"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "quasar": "^2.18.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@iconify-json/flagpack": "^1.2.2",
62
- "@types/node": "^22.15.21",
62
+ "@types/node": "^22.15.29",
63
63
  "@types/validator": "^13.15.1",
64
64
  "@types/ws": "^8.18.1",
65
- "@typescript-eslint/eslint-plugin": "^8.32.1",
66
- "@typescript-eslint/parser": "^8.32.1",
65
+ "@typescript-eslint/eslint-plugin": "^8.33.0",
66
+ "@typescript-eslint/parser": "^8.33.0",
67
67
  "@vitejs/plugin-vue": "^5.2.4",
68
- "@vue/server-renderer": "^3.5.14",
69
- "eslint": "^9.27.0",
68
+ "@vue/server-renderer": "^3.5.16",
69
+ "eslint": "^9.28.0",
70
70
  "eslint-config-prettier": "^10.1.5",
71
- "eslint-plugin-prettier": "^5.4.0",
71
+ "eslint-plugin-prettier": "^5.4.1",
72
72
  "eslint-plugin-prettier-vue": "^5.0.0",
73
73
  "eslint-plugin-vue": "^10.1.0",
74
74
  "glob": "^11.0.2",
@@ -77,10 +77,10 @@
77
77
  "quasar": "^2.18.1",
78
78
  "rimraf": "^6.0.1",
79
79
  "typescript": "5.8.3",
80
- "typescript-eslint": "^8.32.1",
80
+ "typescript-eslint": "^8.33.0",
81
81
  "unplugin-vue-components": "^28.7.0",
82
82
  "vite": "^6.3.5",
83
- "vue": "^3.5.14",
83
+ "vue": "^3.5.16",
84
84
  "vue-eslint-parser": "^10.1.3",
85
85
  "vue-router": "^4.5.1",
86
86
  "vue-tsc": "^2.2.10"
@@ -17,7 +17,7 @@
17
17
  </q-tr>
18
18
  </template>
19
19
  <template #top-right>
20
- <q-btn :icon="searchIcon" flat>
20
+ <q-btn :icon="searchIcon" data-testid="search-button">
21
21
  <q-menu>
22
22
  <div class="q-pa-sm">
23
23
  <q-input v-model="name" :label="lang.account.fields.name">
@@ -15,6 +15,7 @@
15
15
  :form="{ id: 'passwordChangeForm' }"
16
16
  :email="email"
17
17
  :input="input"
18
+ :icons="icons"
18
19
  @submit="changePassword"
19
20
  >
20
21
  </password-change-form>
@@ -65,8 +66,18 @@ export interface Props {
65
66
  | 'autofocus'
66
67
  | ('label' & { style?: Partial<CSSStyleDeclaration> })
67
68
  >
69
+ icons?: {
70
+ visibility: string
71
+ visibilityOff: string
72
+ }
68
73
  }
69
- defineProps<Props>()
74
+ withDefaults(defineProps<Props>(), {
75
+ input: undefined,
76
+ icons: () => ({
77
+ visibility: 'visibility',
78
+ visibilityOff: 'visibility_off'
79
+ })
80
+ })
70
81
  // const attrs = useAttrs();
71
82
  const emit = defineEmits<{
72
83
  (