@cloudparker/moldex.js 0.0.102 → 0.0.104

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.
@@ -35,7 +35,7 @@ export declare function openAlertDialog(params?: DialogProps & {
35
35
  export declare function openDeleteConfirmDialog({ msg, title, footerOkButtonLable, footerOkButtonClassName, ...params }?: DialogProps & {
36
36
  msg?: string;
37
37
  }): Promise<unknown>;
38
- export declare function openPickerDialog<R>({ items, value, multiple, hasCheckbox, hasArrow, maxlength, maxlengthMsg, identityFieldName, titleFieldName, searchFieldName, subtitleFieldName, itemTileSnippet, ...params }: DialogProps & PickerDialogProps): Promise<R>;
38
+ export declare function openPickerDialog<R>({ items, value, multiple, hasCheckbox, hasArrow, maxlength, maxlengthMsg, identityFieldName, titleFieldName, searchFieldName, subtitleFieldName, hasIcon, iconPath, iconClassName, isCircularIcon, circularIconClassName, itemTileSnippet, ...params }: DialogProps & PickerDialogProps): Promise<R>;
39
39
  export declare function openNumberFieldDialog({ title, value, label, name, maxlength, fieldClassName, autofocus, required, appearance, size, floatingLabel, ...params }?: DialogProps & InputFieldProps & {
40
40
  fieldClassName?: string;
41
41
  }): Promise<unknown>;
@@ -82,7 +82,7 @@ export async function openDeleteConfirmDialog({ msg = 'Are you sure to delete?',
82
82
  size: DialogSizeEnum.SM,
83
83
  });
84
84
  }
85
- export async function openPickerDialog({ items, value, multiple, hasCheckbox = true, hasArrow, maxlength, maxlengthMsg, identityFieldName, titleFieldName, searchFieldName, subtitleFieldName, itemTileSnippet, ...params }) {
85
+ export async function openPickerDialog({ items, value, multiple, hasCheckbox = true, hasArrow, maxlength, maxlengthMsg, identityFieldName, titleFieldName, searchFieldName, subtitleFieldName, hasIcon, iconPath, iconClassName, isCircularIcon, circularIconClassName, itemTileSnippet, ...params }) {
86
86
  if (hasArrow) {
87
87
  multiple = false;
88
88
  hasCheckbox = false;
@@ -101,6 +101,11 @@ export async function openPickerDialog({ items, value, multiple, hasCheckbox = t
101
101
  titleFieldName,
102
102
  searchFieldName,
103
103
  subtitleFieldName,
104
+ hasIcon,
105
+ iconPath,
106
+ iconClassName,
107
+ isCircularIcon,
108
+ circularIconClassName,
104
109
  itemTileSnippet,
105
110
  },
106
111
  hasHeader: true,
@@ -1,11 +1,11 @@
1
1
  <script lang="ts" module></script>
2
2
 
3
- <script lang="ts">import { DialogSizeEnum, getDialogSize, showToast } from "../../../../../services";
3
+ <script lang="ts">import { showToast } from "../../../../../services";
4
4
  import ButtonListItem from "../../../button/components/button-list-item/button-list-item.svelte";
5
5
  import ButtonSearch from "../../../button/components/button-search/button-search.svelte";
6
- import { onMount } from "svelte";
7
- import Icon from "../../../icon/components/icon/icon.svelte";
8
6
  import { mdiCheckCircle, mdiCheckCircleOutline, mdiChevronRight } from "../../../icon";
7
+ import Icon from "../../../icon/components/icon/icon.svelte";
8
+ import { onMount } from "svelte";
9
9
  import { SvelteSet } from "svelte/reactivity";
10
10
  let {
11
11
  value,
@@ -30,6 +30,7 @@ let {
30
30
  hasIcon,
31
31
  iconClassName,
32
32
  circularIconClassName,
33
+ iconPath,
33
34
  itemTileSnippet,
34
35
  closeDialog,
35
36
  setResult,
@@ -149,6 +150,7 @@ onMount(() => {
149
150
  {isCircularIcon}
150
151
  {circularIconClassName}
151
152
  {iconClassName}
153
+ {iconPath}
152
154
  />
153
155
  {/if}
154
156
  </div>
@@ -18,6 +18,7 @@ export type PickerDialogProps = {
18
18
  arrowIconPath?: string;
19
19
  arrowClassName?: string;
20
20
  hasIcon?: boolean;
21
+ iconPath?: string;
21
22
  iconClassName?: string;
22
23
  isCircularIcon?: boolean;
23
24
  circularIconClassName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudparker/moldex.js",
3
- "version": "0.0.102",
3
+ "version": "0.0.104",
4
4
  "author": "cloudparker.com",
5
5
  "license": "MIT",
6
6
  "keywords": [