@quidgest/ui 0.16.32 → 0.16.33

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.16.32",
2
+ "version": "0.16.33",
3
3
  "components": [
4
4
  {
5
5
  "name": "QAccordion",
@@ -4305,6 +4305,20 @@
4305
4305
  "required": false,
4306
4306
  "category": "Behavior"
4307
4307
  },
4308
+ {
4309
+ "name": "multiple",
4310
+ "type": "boolean | undefined",
4311
+ "description": "Whether multiple options can be selected.",
4312
+ "required": false,
4313
+ "category": "Behavior"
4314
+ },
4315
+ {
4316
+ "name": "badges",
4317
+ "type": "boolean | undefined",
4318
+ "description": "Whether to display the selected option(s) as badge(s).",
4319
+ "required": false,
4320
+ "category": "Presentation"
4321
+ },
4308
4322
  {
4309
4323
  "name": "loading",
4310
4324
  "type": "boolean | undefined",
@@ -4446,6 +4460,16 @@
4446
4460
  "title": "Description In Items",
4447
4461
  "description": "Select with description items.",
4448
4462
  "code": "<QSelect :items=\"[\n\t\t\t{\n\t\t\t\tkey: 'copy',\n\t\t\t\tlabel: 'Copy',\n\t\t\t\ticon: { icon: 'content-copy' },\n\t\t\t\tdescription: 'Is used to duplicate the selected information.'\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'cut',\n\t\t\t\tlabel: 'Cut',\n\t\t\t\ticon: { icon: 'content-cut' },\n\t\t\t\tdescription:\n\t\t\t\t\t'This allows the cut information to be pasted in another location, effectively moving it from its original place to a new one.'\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'duplicate',\n\t\t\t\tlabel: 'Duplicate',\n\t\t\t\ticon: { icon: 'content-duplicate' },\n\t\t\t\tdescription:\n\t\t\t\t\t'Is used to create an exact copy of the selected item. Does not rely on the clipboard'\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'paste',\n\t\t\t\tlabel: 'Paste',\n\t\t\t\ticon: { icon: 'content-paste' },\n\t\t\t\tdescription: \"Is used to insert the information stored in the system's clipboard.\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'save',\n\t\t\t\tlabel: 'Save',\n\t\t\t\ticon: { icon: 'content-save' },\n\t\t\t\tdescription:\n\t\t\t\t\t'Is used to store the current state of a document, file, or project to a specified location on a storage device.'\n\t\t\t}\n\t\t]\" />"
4463
+ },
4464
+ {
4465
+ "title": "Multiple",
4466
+ "description": "Allows the selection of multiple items.",
4467
+ "code": "<QSelect :items=\"[\n\t\t\t{ key: 'italic', label: 'Italic' },\n\t\t\t{ key: 'bold', label: 'Bold' },\n\t\t\t{ key: 'underlined', label: 'Underlined' },\n\t\t\t{ key: 'strikethrough', label: 'Strikethrough' },\n\t\t\t{ key: 'superscript', label: 'Superscript' },\n\t\t\t{ key: 'subscript', label: 'Subscript' },\n\t\t\t{ key: 'uppercase', label: 'Uppercase' },\n\t\t\t{ key: 'lowercase', label: 'Lowercase' },\n\t\t\t{ key: 'capitalize', label: 'Capitalize' },\n\t\t\t{ key: 'highlight', label: 'Highlight' }\n\t\t]\" :multiple=\"true\" />"
4468
+ },
4469
+ {
4470
+ "title": "Badges",
4471
+ "description": "Displays the selected options as badges.",
4472
+ "code": "<QSelect :items=\"[\n\t\t\t{ key: 'copy', label: 'Copy', icon: { icon: 'content-copy' } },\n\t\t\t{ key: 'cut', label: 'Cut', icon: { icon: 'content-cut' } },\n\t\t\t{ key: 'duplicate', label: 'Duplicate', icon: { icon: 'content-duplicate' } },\n\t\t\t{ key: 'paste', label: 'Paste', icon: { icon: 'content-paste' } },\n\t\t\t{ key: 'save', label: 'Save', icon: { icon: 'content-save' } }\n\t\t]\" :multiple=\"true\" :badges=\"true\" />"
4449
4473
  }
4450
4474
  ]
4451
4475
  },
package/dist/ui.css CHANGED
@@ -4249,6 +4249,21 @@ body *::-webkit-scrollbar-track {
4249
4249
  pointer-events: none;
4250
4250
  min-height: 1lh;
4251
4251
  }
4252
+ .q-select__badge-container {
4253
+ display: flex;
4254
+ gap: 0.1rem;
4255
+ overflow: hidden;
4256
+ width: 100%;
4257
+ }
4258
+ .q-select__badge-container .q-select__badge-count {
4259
+ font-weight: bold;
4260
+ }
4261
+ .q-select__badge-container .q-select__badge-hidden {
4262
+ visibility: hidden;
4263
+ }
4264
+ .q-select__badge-container .q-badge__content {
4265
+ height: 0.85em;
4266
+ }
4252
4267
  .q-select__placeholder {
4253
4268
  font-style: italic;
4254
4269
  color: var(--q-theme-neutral);
@@ -4258,11 +4273,6 @@ body *::-webkit-scrollbar-track {
4258
4273
  opacity: 0;
4259
4274
  cursor: inherit;
4260
4275
  }
4261
- .q-select .q-field__prepend {
4262
- padding-left: 0.5rem;
4263
- padding-right: 0.5rem;
4264
- }
4265
-
4266
4276
  .q-select__chevron {
4267
4277
  padding: 0.1rem;
4268
4278
  opacity: 0.5;
@@ -4270,7 +4280,6 @@ body *::-webkit-scrollbar-track {
4270
4280
  .q-select__chevron:hover {
4271
4281
  cursor: inherit;
4272
4282
  }
4273
-
4274
4283
  .q-select__body {
4275
4284
  display: flex;
4276
4285
  flex-direction: column;
@@ -4285,7 +4294,6 @@ body *::-webkit-scrollbar-track {
4285
4294
  margin-left: 0.25rem;
4286
4295
  margin-right: 0.25rem;
4287
4296
  }
4288
-
4289
4297
  .q-select__items {
4290
4298
  min-width: -moz-fit-content;
4291
4299
  min-width: fit-content;
@@ -4293,17 +4301,18 @@ body *::-webkit-scrollbar-track {
4293
4301
  max-height: 240px;
4294
4302
  align-items: start;
4295
4303
  }
4296
-
4297
4304
  .q-select__loader {
4298
4305
  display: flex;
4299
4306
  justify-content: center;
4300
4307
  width: 100%;
4301
4308
  }
4302
-
4303
- .q-select__loader,
4304
- .q-select__empty {
4309
+ .q-select__loader, .q-select__empty {
4305
4310
  margin: 1rem 0;
4306
4311
  }
4312
+ .q-select .q-field__prepend {
4313
+ padding-left: 0.5rem;
4314
+ padding-right: 0.5rem;
4315
+ }
4307
4316
 
4308
4317
  .q-sidebar {
4309
4318
  height: 100%;