@paperless/core 2.0.1-beta.26 → 2.0.1-beta.27
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 +12 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-54f7740e.entry.js → p-04f4b015.entry.js} +2 -2
- package/dist/build/p-28601ee5.entry.js +2 -0
- package/dist/build/p-28601ee5.entry.js.map +1 -0
- package/dist/build/{p-cd3c25ac.entry.js → p-38edcb47.entry.js} +2 -2
- package/dist/build/p-3e3983ec.js +2 -0
- package/dist/build/{p-ccbd2de0.entry.js → p-3fec2247.entry.js} +2 -2
- package/dist/build/{p-d82e4315.entry.js → p-45d789f5.entry.js} +2 -2
- package/dist/build/{p-f56de35e.entry.js → p-610eb0ff.entry.js} +2 -2
- package/dist/build/{p-401ff01b.entry.js → p-68647b9e.entry.js} +2 -2
- package/dist/{paperless/p-9cac28b6.js → build/p-6bcfa4d5.js} +2 -2
- package/dist/build/p-859c4fb1.entry.js +2 -0
- package/dist/build/{p-7929ec90.entry.js → p-886c060f.entry.js} +2 -2
- package/dist/build/{p-9406a32e.entry.js → p-963f037a.entry.js} +2 -2
- package/dist/build/{p-e5a54d05.entry.js → p-971aac89.entry.js} +2 -2
- package/dist/{paperless/p-dc06602f.entry.js → build/p-9a0262b1.entry.js} +2 -2
- package/dist/build/{p-fde8b75b.entry.js → p-a0fad3d8.entry.js} +2 -2
- package/dist/build/{p-a38a330d.entry.js → p-a93ce615.entry.js} +2 -2
- package/dist/build/p-e839a672.entry.js +2 -0
- package/dist/build/p-efbc122f.js +2 -0
- package/dist/build/p-efbc122f.js.map +1 -0
- package/dist/build/{p-8b1a485b.entry.js → p-f173bb97.entry.js} +2 -2
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/is-mobile-browser-0e393879.js +19 -0
- package/dist/cjs/is-mobile-browser-0e393879.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +3 -3
- package/dist/cjs/p-datepicker.cjs.entry.js +64 -3
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +4 -4
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-input-group.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +62 -5
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
- package/dist/collection/components/molecules/field/field.component.js +3 -3
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/is-mobile-browser.js +14 -0
- package/dist/collection/utils/is-mobile-browser.js.map +1 -0
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/dropdown.component.js +3 -3
- package/dist/components/field.component.js +3 -3
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/is-mobile-browser.js +17 -0
- package/dist/components/is-mobile-browser.js.map +1 -0
- package/dist/components/p-datepicker.js +68 -5
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-input-group.js +3 -3
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/pagination.component.js +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-footer.component.js +1 -1
- package/dist/components/table-row.component.js +2 -2
- package/dist/esm/{index-538f1fd8.js → index-64e10183.js} +2 -2
- package/dist/esm/{index-538f1fd8.js.map → index-64e10183.js.map} +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/is-mobile-browser-0f0bfd54.js +17 -0
- package/dist/esm/is-mobile-browser-0f0bfd54.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +3 -3
- package/dist/esm/p-datepicker.entry.js +65 -4
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-floating-menu-container_8.entry.js +4 -4
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-input-group.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-54f7740e.entry.js → p-04f4b015.entry.js} +2 -2
- package/dist/paperless/p-28601ee5.entry.js +2 -0
- package/dist/paperless/p-28601ee5.entry.js.map +1 -0
- package/dist/paperless/{p-cd3c25ac.entry.js → p-38edcb47.entry.js} +2 -2
- package/dist/paperless/{p-ccbd2de0.entry.js → p-3fec2247.entry.js} +2 -2
- package/dist/paperless/{p-d82e4315.entry.js → p-45d789f5.entry.js} +2 -2
- package/dist/paperless/{p-f56de35e.entry.js → p-610eb0ff.entry.js} +2 -2
- package/dist/paperless/{p-401ff01b.entry.js → p-68647b9e.entry.js} +2 -2
- package/dist/{build/p-9cac28b6.js → paperless/p-6bcfa4d5.js} +2 -2
- package/dist/paperless/p-859c4fb1.entry.js +2 -0
- package/dist/paperless/{p-7929ec90.entry.js → p-886c060f.entry.js} +2 -2
- package/dist/paperless/{p-9406a32e.entry.js → p-963f037a.entry.js} +2 -2
- package/dist/paperless/{p-e5a54d05.entry.js → p-971aac89.entry.js} +2 -2
- package/dist/{build/p-dc06602f.entry.js → paperless/p-9a0262b1.entry.js} +2 -2
- package/dist/paperless/{p-fde8b75b.entry.js → p-a0fad3d8.entry.js} +2 -2
- package/dist/paperless/{p-a38a330d.entry.js → p-a93ce615.entry.js} +2 -2
- package/dist/paperless/p-e839a672.entry.js +2 -0
- package/dist/paperless/p-efbc122f.js +2 -0
- package/dist/paperless/p-efbc122f.js.map +1 -0
- package/dist/paperless/{p-8b1a485b.entry.js → p-f173bb97.entry.js} +2 -2
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +7 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/is-mobile-browser.d.ts +1 -0
- package/hydrate/index.js +106 -30
- package/hydrate/index.mjs +106 -30
- package/package.json +1 -1
- package/dist/build/p-23ccc7b6.entry.js +0 -2
- package/dist/build/p-23ccc7b6.entry.js.map +0 -1
- package/dist/build/p-2f613a2a.entry.js +0 -2
- package/dist/build/p-e078f787.entry.js +0 -2
- package/dist/build/p-faf3a10b.js +0 -2
- package/dist/paperless/p-23ccc7b6.entry.js +0 -2
- package/dist/paperless/p-23ccc7b6.entry.js.map +0 -1
- package/dist/paperless/p-2f613a2a.entry.js +0 -2
- package/dist/paperless/p-e078f787.entry.js +0 -2
- /package/dist/build/{p-54f7740e.entry.js.map → p-04f4b015.entry.js.map} +0 -0
- /package/dist/build/{p-cd3c25ac.entry.js.map → p-38edcb47.entry.js.map} +0 -0
- /package/dist/build/{p-ccbd2de0.entry.js.map → p-3fec2247.entry.js.map} +0 -0
- /package/dist/build/{p-d82e4315.entry.js.map → p-45d789f5.entry.js.map} +0 -0
- /package/dist/build/{p-f56de35e.entry.js.map → p-610eb0ff.entry.js.map} +0 -0
- /package/dist/build/{p-401ff01b.entry.js.map → p-68647b9e.entry.js.map} +0 -0
- /package/dist/build/{p-9cac28b6.js.map → p-6bcfa4d5.js.map} +0 -0
- /package/dist/build/{p-2f613a2a.entry.js.map → p-859c4fb1.entry.js.map} +0 -0
- /package/dist/build/{p-7929ec90.entry.js.map → p-886c060f.entry.js.map} +0 -0
- /package/dist/build/{p-9406a32e.entry.js.map → p-963f037a.entry.js.map} +0 -0
- /package/dist/build/{p-e5a54d05.entry.js.map → p-971aac89.entry.js.map} +0 -0
- /package/dist/build/{p-dc06602f.entry.js.map → p-9a0262b1.entry.js.map} +0 -0
- /package/dist/build/{p-fde8b75b.entry.js.map → p-a0fad3d8.entry.js.map} +0 -0
- /package/dist/build/{p-a38a330d.entry.js.map → p-a93ce615.entry.js.map} +0 -0
- /package/dist/build/{p-e078f787.entry.js.map → p-e839a672.entry.js.map} +0 -0
- /package/dist/build/{p-8b1a485b.entry.js.map → p-f173bb97.entry.js.map} +0 -0
- /package/dist/paperless/{p-54f7740e.entry.js.map → p-04f4b015.entry.js.map} +0 -0
- /package/dist/paperless/{p-cd3c25ac.entry.js.map → p-38edcb47.entry.js.map} +0 -0
- /package/dist/paperless/{p-ccbd2de0.entry.js.map → p-3fec2247.entry.js.map} +0 -0
- /package/dist/paperless/{p-d82e4315.entry.js.map → p-45d789f5.entry.js.map} +0 -0
- /package/dist/paperless/{p-f56de35e.entry.js.map → p-610eb0ff.entry.js.map} +0 -0
- /package/dist/paperless/{p-401ff01b.entry.js.map → p-68647b9e.entry.js.map} +0 -0
- /package/dist/paperless/{p-9cac28b6.js.map → p-6bcfa4d5.js.map} +0 -0
- /package/dist/paperless/{p-2f613a2a.entry.js.map → p-859c4fb1.entry.js.map} +0 -0
- /package/dist/paperless/{p-7929ec90.entry.js.map → p-886c060f.entry.js.map} +0 -0
- /package/dist/paperless/{p-9406a32e.entry.js.map → p-963f037a.entry.js.map} +0 -0
- /package/dist/paperless/{p-e5a54d05.entry.js.map → p-971aac89.entry.js.map} +0 -0
- /package/dist/paperless/{p-dc06602f.entry.js.map → p-9a0262b1.entry.js.map} +0 -0
- /package/dist/paperless/{p-fde8b75b.entry.js.map → p-a0fad3d8.entry.js.map} +0 -0
- /package/dist/paperless/{p-a38a330d.entry.js.map → p-a93ce615.entry.js.map} +0 -0
- /package/dist/paperless/{p-e078f787.entry.js.map → p-e839a672.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b1a485b.entry.js.map → p-f173bb97.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,KAAK,EACL,UAAU,GACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAOzC,MAAM,OAAO,UAAU;;;;8BAcY,KAAK;;;;+BAoBJ,KAAK;oBAKC,KAAK;sBAarB,YAAY;kCAKC,KAAK;oBAKb,MAAM;;;;;;wBA8BS,KAAK;wBAKrB,UAAU;yBAKS,cAAc;6BAOxB,KAAK;;;;8BAID,EAAE;;IAxE5C;;OAEG;IAIH,WAAW,CAAoB;IAyD/B;;OAEG;IACgB,GAAG,CAAc;IAQ5B,eAAe,CAAiB;IAChC,SAAS,CAAyC;IAElD,eAAe,GAAG;QACzB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,YAAY;QACnB,GAAG,EAAE,YAAY;KACjB,CAAC;IAGQ,UAAU,CAAC,KAAoB;QACxC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACnC,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;QACpB,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ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n\tWatch,\n} from '@stencil/core';\nimport {\n\tformat,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisValid,\n\tparse,\n\tstartOfDay,\n} from 'date-fns';\nimport { childOf } from '../../../utils';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-datepicker'>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tdisableTriggerClick={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tapplyFullWidth={false}\n\t\t\t\t\tinsideClick={true}\n\t\t\t\t\tshow={this._showDropdown}\n\t\t\t\t>\n\t\t\t\t\t<p-field\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t\t}\n\t\t\t\t\t\ticonPosition='start'\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\t\tlabel={this.label}\n\t\t\t\t\t\thelper={this.helper}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail)}\n\t\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t\t></p-field>\n\t\t\t\t\t<div slot='items'>\n\t\t\t\t\t\t<p-calendar\n\t\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur() {\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, this.format, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value) || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = parse(value, this.format, new Date());\n\t\t\tif (!isValid(parsedValue)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvalue = startOfDay(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement, Strategy } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport {\n\tformat,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisValid,\n\tisWeekend,\n\tparse,\n\tstartOfDay,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-datepicker'>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tdisableTriggerClick={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tapplyFullWidth={false}\n\t\t\t\t\tinsideClick={true}\n\t\t\t\t\tshow={this._showDropdown}\n\t\t\t\t>\n\t\t\t\t\t<p-field\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t\t}\n\t\t\t\t\t\ticonPosition='start'\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\t\tlabel={this.label}\n\t\t\t\t\t\thelper={this.helper}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail)}\n\t\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t\t></p-field>\n\n\t\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\ttype='date'\n\t\t\t\t\t\t\tclass='h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself\n\t\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\t\tvalue={this._value && format(this._value, 'yyyy-MM-dd')}\n\t\t\t\t\t\t\tmin={this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\t\tmax={this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<div slot='items'>\n\t\t\t\t\t\t<p-calendar\n\t\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, this.format, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value) || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = parse(value, this.format, new Date());\n\t\t\tif (!isValid(parsedValue)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target.value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = new Date(ev.target.value);\n\t\t\tif (!isValid(parsedValue)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd')\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue = startOfDay(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
|
|
@@ -69,12 +69,12 @@ export class Dropdown {
|
|
|
69
69
|
};
|
|
70
70
|
let dropdownContainer;
|
|
71
71
|
if (this.usePortal) {
|
|
72
|
-
dropdownContainer = (h("p-portal", { key: '
|
|
72
|
+
dropdownContainer = (h("p-portal", { key: '29771f6605845a7405eac16a0ecb8507dfe72652', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '661a105fb422bf4a0b837723d27fbdb503bf0aaa', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: 'dcf0da03816e272433b28c6493308b9b60708c48', name: 'items' }))));
|
|
73
73
|
}
|
|
74
74
|
else {
|
|
75
|
-
dropdownContainer = (h("p-dropdown-menu-container", { key: '
|
|
75
|
+
dropdownContainer = (h("p-dropdown-menu-container", { key: 'edbc08640c6649f482e0671685465edf33d0aae7', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '273351e85c9394b0f46f945cfb7047f3ec2239b6', name: 'items' })));
|
|
76
76
|
}
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '1b96d478f16098d14898a717b29bb332168cb259', class: 'p-dropdown relative' }, h("div", { key: '39c0b1ea854f867bd213dba74ac4e11d7cc8aaf4', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: 'ecffbef9f15d01088eba7109222483db6459ca52', name: 'trigger' })), dropdownContainer));
|
|
78
78
|
}
|
|
79
79
|
_checkButtons(active = false) {
|
|
80
80
|
if (!this.applyChevron) {
|
|
@@ -139,16 +139,16 @@ export class Field {
|
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
141
|
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
142
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: '91d6377ae01b58324a749c565fc22eaee2b0b8c8', class: 'p-field' }, h("p-field-container", { key: '65d1abd51cf6bb46f023b8c2ef94a5caac3f0d15', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: 'eb1884d5cc3a499af35b96b9d3433bab4fa6193d', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '6b76e96f1f0da866edeb7c96295a69eded338b54', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'ad1c7f1098f01b356a74debdd870437465a28778', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '46eca97a7bbcd2b90168ebcb39530c49b34e8eda', name: 'error', slot: 'error' })), h("div", { key: '65fde62eda58d9b012e6e87e9e084da6c6dc197a', class: field({
|
|
143
143
|
error: !!this.error?.length,
|
|
144
144
|
disabled: this.disabled,
|
|
145
145
|
focused: this.focused || this._focused,
|
|
146
146
|
size: this.size,
|
|
147
|
-
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
147
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '817046243995e3b1a870daeabddd6db7bf6a5392', class: prefixAndSuffic({
|
|
148
148
|
error: !!this.error?.length,
|
|
149
149
|
disabled: this.disabled,
|
|
150
150
|
focused: this.focused || this._focused,
|
|
151
|
-
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
151
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: 'bd6a931cca1b8b8ea13566a5f559746c30e2a311', class: prefixAndSuffic({
|
|
152
152
|
error: !!this.error?.length,
|
|
153
153
|
disabled: this.disabled,
|
|
154
154
|
focused: this.focused || this._focused,
|
|
@@ -6,7 +6,7 @@ export class InputError {
|
|
|
6
6
|
this._showTooltip = false;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'ac5ab660850ac1908dd9645aec4e96238946ecf2', class: 'p-input-error' }, h("p-tooltip", { key: 'f9d2588446e1f675c4de4d58fd0d24e7d2af1fe9', variant: 'error', content: this.error, show: this.forceShowTooltip, onIsOpen: ev => (this._showTooltip = ev.detail) }, h("p-icon", { key: '4e6eaa812e9b30b07299a617c1fcb24261c00fee', class: `${this._showTooltip ? 'text-negative' : 'text-negative-light'} hover:text-negative`, slot: 'trigger', variant: 'question-circle' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-input-error"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,11 +32,11 @@ export class InputGroup {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const { hasHeaderSlot, helper, label, prefix, suffix, errorAndErrorIsNotBoolean, errorVariant, } = this._getSlotInfo();
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '7c6b1a6a99947e106e1643c7fc1be75a8f2b7cee', class: `p-input-group ${this.error?.length && 'error'} ${this.disabled && 'disabled'} ${this.focused && 'focused'} size-${this.size}` }, h("div", { key: 'e5169853ae114e0bb28dde38a9ca01a419c483fa', class: 'flex items-end justify-between' }, label && (h("div", { key: 'd6a86094fa1c23aa2ad0ae9be4e7b2c2e5f6b08a', class: 'input-label', onClick: () => this._focusInput() }, label, this.required && h("span", { key: '784a019a9e528c2ba660c1cf5ac639c0d22a7d49', class: 'ml-1 text-negative' }, "*"))), (helper || hasHeaderSlot) && (h("div", { key: 'ebcfae4c6dd40d6cf396a9e5e9bb3a92d3b97e6e', class: 'input-header' }, hasHeaderSlot && h("slot", { key: '88a47687137491526b7a4910cf525c6ca83feda5', name: 'header' }), helper && (h("p-helper", { key: 'c2e55ad18f1b42283698849e3d9d5ddbfe5bed56', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))), h("p-tooltip", { key: 'bf382febbfbc2f79c4d7d18011173eadd779b786', class: 'w-full', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean &&
|
|
36
36
|
errorVariant === 'element' &&
|
|
37
|
-
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, h("div", { key: '
|
|
37
|
+
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, h("div", { key: '306065f4b9df5467febe25a249111a67affe7382', class: 'content', slot: 'trigger' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '8ee0a54494f54c91e812ac19692fe33de55b16ee', class: `prefix size-${this.size}`, onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), (suffix ||
|
|
38
38
|
(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||
|
|
39
|
-
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
39
|
+
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '07dae7781dd393de1101c6c6d5d8937d743bc5e5', class: `suffix size-${this.size}`, onClick: () => this._focusInput() }, errorAndErrorIsNotBoolean && errorVariant === 'icon' ? (h("p-input-error", { error: this.error, forceShowTooltip: this.forceShowTooltip || this._forceShowTooltip })) : this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))), h("slot", { key: 'e9244425d359da5540cafa9d24f920254c0caefa', name: 'input' })))));
|
|
40
40
|
}
|
|
41
41
|
handleFocusIn() {
|
|
42
42
|
this._forceShowTooltip = true;
|
|
@@ -37,14 +37,14 @@ export class Label {
|
|
|
37
37
|
this.keepMobileContent = false;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '1ea6b62ca882280297a9da6f6621c656ab5e5ad2', class: 'p-label' }, h("div", { key: '59a0a606b8d20ccf79154dd94436a2ecac6a78d7', class: label({
|
|
41
41
|
variant: this.variant,
|
|
42
42
|
iconOnly: this.iconOnly,
|
|
43
43
|
keepMobileContent: this.keepMobileContent,
|
|
44
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
44
|
+
}) }, this.icon && (h("p-icon", { key: 'c0a2010bdb110d4b9d94f4dd74d3070eaaf33c0c', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: '3080a8dea111f38a9eb73b60a984bdd39276c7ae', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm', {
|
|
45
45
|
hidden: !this.keepMobileContent,
|
|
46
46
|
'desktop-xs:block': !this.keepMobileContent,
|
|
47
|
-
}) }, h("slot", { key: '
|
|
47
|
+
}) }, h("slot", { key: 'f2f655c88df2ef9c953b0993fdd34b818a062567' }))))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "p-label"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,10 +43,10 @@ export class NavigationItem {
|
|
|
43
43
|
render() {
|
|
44
44
|
const TagType = this.as;
|
|
45
45
|
const active = this.active || this.class?.includes('active');
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'fd0d001679ae464ac2b9f0e4fa20f0fb64c8523d', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '69b28661607031697191fc1f4b0587e2bd2cee25', class: navigationItem({
|
|
47
47
|
icon: !!this.icon,
|
|
48
48
|
active,
|
|
49
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
49
|
+
}), href: this.href, target: this.target }, h("div", { key: 'aa9e7c60e62a4e82af779f94770b58ae10757ac8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '31a6d07a4c90acc898ac346c7e7ecbbe8cb39a37', variant: this.icon })), h("span", { key: 'b9eaee4eddd78500657eee76ea19ef5a12d10479', class: this.counter && 'has-counter' }, h("slot", { key: '932d02bcf7251608a35cda8df7cfb6b545e83fca' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '7b992d27f6accd7df40d20609045cc9e1f6f4974' }, this.counter)), !!this.loading && h("p-loader", { key: 'cad21a90aab7f340a78ce7b31cf60426649d835c', class: 'ml-auto' }))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "p-navigation-item"; }
|
|
52
52
|
static get originalStyleUrls() {
|
package/dist/collection/components/molecules/navigation-section/navigation-section.component.js
CHANGED
|
@@ -4,7 +4,7 @@ export class NavigationSection {
|
|
|
4
4
|
this.header = undefined;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'aa7af42074a08744f5b6e07d5d878209790215cb', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '1ff0422bad541f4cb25e497151f4239cd2657548' }, this.header)), h("div", { key: 'f1c1089ff6a40535315efc1203d47cfdc1cf03b6', class: 'flex flex-col' }, h("slot", { key: '024ed5e805f64ee6c4beb018c4be83f2b910613d' }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "p-navigation-section"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -16,7 +16,7 @@ export class Pagination {
|
|
|
16
16
|
this._generate();
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '2059378b68c7958bced60dc09f6bf46587724dc1', class: `p-pagination ${this.hideOnSinglePage && this._set?.length === 3 && 'hidden'}` }, this._set?.map(p => {
|
|
20
20
|
if (p.type === 'previous' || p.type === 'next') {
|
|
21
21
|
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
22
22
|
? this._previousClick()
|
|
@@ -26,7 +26,7 @@ export class Profile {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const content = this._getContent();
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'ed8dcfa862e21eb3e08871b88b376ec9ccccc74b', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
30
30
|
}
|
|
31
31
|
slotchange() {
|
|
32
32
|
this._checkDropdownSlot();
|
|
@@ -174,7 +174,7 @@ export class Select {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
render() {
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: 'c8e6d0b1ea9133a463bdd3fcd5a7bbe7344bfbd3', class: 'p-select' }, h("p-dropdown", { key: '4901191964e4ba438141b39d3328359683374aa1', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-field-container", { key: 'ba296caea08b2cb0c973be1ff8a8f29f4ea71ad7', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: '18437b40ba02760454809f1e2f92354e38b30e29', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '8bb161da7fa806ae480083c2e719430b1a36bcf0', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
|
|
178
178
|
}
|
|
179
179
|
documentClickHandler({ target }) {
|
|
180
180
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -91,7 +91,7 @@ export class Stepper {
|
|
|
91
91
|
this._generateSteps(true);
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '51f99206402f99e4376b21ab8d62467c48ebee4d', class: 'p-stepper' }, h("slot", { key: 'e5d42ec1843f8a98034d1fade84a39ec9ecd17f5', onSlotchange: this._onSlotChange })));
|
|
95
95
|
}
|
|
96
96
|
_onActiveStepChange() {
|
|
97
97
|
this._generateSteps();
|
|
@@ -83,7 +83,7 @@ export class TableCell {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: 'd4a279d8bf16c93cfcab39340c65a73b73b9208a', class: {
|
|
87
87
|
'p-table-cell': true,
|
|
88
88
|
[`variant-${this.variant}`]: true,
|
|
89
89
|
...this._getColumnClasses(),
|
|
@@ -35,7 +35,7 @@ export class TableFooter {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'ef96f7c0d01bd9d85f36becfc5458ae1e335bebf', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-page-size-select", { key: '6acc6c9aec481853f9bf376dc3e2644a60836386', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: 'b58677035576cd44ffdda3b95de496caeb7ada12', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination", { key: '1d6c73ecfb6aff3b3e061616c9ad100f08cc4c62', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: '5ba22bf6410c30242baccb5b999176a73eefe665', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
|
|
39
39
|
}
|
|
40
40
|
async _setLocales() {
|
|
41
41
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -5,9 +5,9 @@ export class TableRow {
|
|
|
5
5
|
this.enableHover = true;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'ef1fdb723ada0436bb2635a6befb0a2d4d3ffa87', class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
9
9
|
this.variant === 'default' &&
|
|
10
|
-
'enable-hover'} group` }, h("div", { key: '
|
|
10
|
+
'enable-hover'} group` }, h("div", { key: 'fd05bf187d722815cbe86d90b7ffac78188b7b17', class: "content" }, h("slot", { key: 'b9ac1208c608c7b50b3e7398ed6a22e551aeb5e0' })), this.variant === 'default' && h("p-divider", { key: '2222dbad0f1cd7f742e76a218cd7981589d3bff0', class: "m-0" })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "p-table-row"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class Toast {
|
|
|
14
14
|
*/
|
|
15
15
|
action;
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '3b395df421e00c30e6327c2fd441eb28529e1284', class: `p-toast variant-${this.variant}`, onClick: () => this._onClick() }, h("div", { key: '462c79c5f7f601efefdbd62816c7e530a9962256', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '6d3164bcbb24221af015c96c3348a65a379633e9', class: 'font-semibold text-storm' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '803017ee064e98e746f9f98979694ea19aed17af', class: 'w-full text-sm text-storm-medium' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("p-button", { key: 'cf478aa9b216e6091c5bf073af57110fe94b14e1', variant: 'secondary', iconOnly: true, size: 'sm', icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: 'flex-shrink-0' }))));
|
|
18
18
|
}
|
|
19
19
|
_onClick() {
|
|
20
20
|
if (this.enableAction) {
|
|
@@ -44,7 +44,7 @@ export class Navbar {
|
|
|
44
44
|
this._show = false;
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '900ed939d2ab652ff4d9770f4fbcbb606cdbd3ba', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, h("p-backdrop", { key: '6e9cc4a3aab95fcf7eddb2846a5ffdb853ae9f8e', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '838482d57234a24ce435536c227fdf3ab226b8cc', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '368f1a39868f592f40303fb217200d265a0201dd', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: '40c8f44565fa3798ee09900d2ac87230ca4fa0ea', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: 'f39bde405fdfa2a004c0e12c77aa7b825cadacc8', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '7f9c30322714025dc9922e368397c8147b2bae5a', name: 'company' })), h("div", { key: '18360a19ea43cab962960001202327467a235ffb', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: '1c99bfc9b34dfe6eaa802b67d43f78a6d5e6e20f', name: 'content' })), h("div", { key: 'cc250265c364af33026dbcb972ba4f3b1cc99bfc', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: '8b79bd563e93d6d3ea5aafca92d4499a4ef07a62', name: 'user' }))), h("div", { key: 'a1dd20c5b11a758c11a44b024aebd454b881c342', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '02723bb57b6d1e5e93f20d13cd87879020527fa0', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: '03647eeeb2ee42c14ab373cf1cf46c909be9a973', name: 'topbar' }))));
|
|
48
48
|
}
|
|
49
49
|
handleCloseNavbar() {
|
|
50
50
|
this._show = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC","sourcesContent":["export * from './child-of';\nexport * from './icons-deprecated';\nexport * from './icons';\nexport * from './illustrations';\nexport * from './localization';\nexport * from './table-helpers';\nexport * from './object-get-by-path';\nexport * from './transformers';\nexport * from './screens';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './child-of';\nexport * from './icons-deprecated';\nexport * from './icons';\nexport * from './illustrations';\nexport * from './localization';\nexport * from './table-helpers';\nexport * from './object-get-by-path';\nexport * from './transformers';\nexport * from './screens';\nexport * from './is-mobile-browser';\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// http://detectmobilebrowsers.com/
|
|
2
|
+
const browserRegex = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;
|
|
3
|
+
const otherRegex = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
4
|
+
export const isMobileBrowser = () => {
|
|
5
|
+
const userAgent = navigator.userAgent || navigator.vendor || window['opera'];
|
|
6
|
+
if (browserRegex.test(userAgent)) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
if (otherRegex.test(userAgent.substr(0, 4))) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=is-mobile-browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-mobile-browser.js","sourceRoot":"","sources":["../../src/utils/is-mobile-browser.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,MAAM,YAAY,GACjB,0TAA0T,CAAC;AAC5T,MAAM,UAAU,GACf,ykDAAykD,CAAC;AAE3kD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IACnC,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAE7E,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC","sourcesContent":["// http://detectmobilebrowsers.com/\nconst browserRegex =\n\t/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;\nconst otherRegex =\n\t/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i;\n\nexport const isMobileBrowser = () => {\n\tconst userAgent = navigator.userAgent || navigator.vendor || window['opera'];\n\n\tif (browserRegex.test(userAgent)) {\n\t\treturn true;\n\t}\n\n\tif (otherRegex.test(userAgent.substr(0, 4))) {\n\t\treturn true;\n\t}\n\n\treturn false;\n};\n"]}
|
|
@@ -3101,6 +3101,6 @@ function defineCustomElement() {
|
|
|
3101
3101
|
} });
|
|
3102
3102
|
}
|
|
3103
3103
|
|
|
3104
|
-
export { Calendar as C, _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, defineCustomElement as d, getUTCISOWeek as e, getDefaultOptions as f, getUTCWeekYear as g, subMilliseconds as h, getTimezoneOffsetInMilliseconds as i, defaultLocale as j, isProtectedWeekYearToken as k, longFormatters$1 as l, throwProtectedError as m, isProtectedDayOfYearToken as n, isValid as o, isBefore as p, isAfter as q, requiredArgs as r, startOfUTCWeek as s, toDate as t,
|
|
3104
|
+
export { Calendar as C, _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, defineCustomElement as d, getUTCISOWeek as e, getDefaultOptions as f, getUTCWeekYear as g, subMilliseconds as h, getTimezoneOffsetInMilliseconds as i, defaultLocale as j, isProtectedWeekYearToken as k, longFormatters$1 as l, throwProtectedError as m, isProtectedDayOfYearToken as n, isValid as o, isBefore as p, isAfter as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, format as u, startOfDay as v, isSameDay as w };
|
|
3105
3105
|
|
|
3106
3106
|
//# sourceMappingURL=calendar.component.js.map
|
|
@@ -75,12 +75,12 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
75
75
|
};
|
|
76
76
|
let dropdownContainer;
|
|
77
77
|
if (this.usePortal) {
|
|
78
|
-
dropdownContainer = (h("p-portal", { key: '
|
|
78
|
+
dropdownContainer = (h("p-portal", { key: '29771f6605845a7405eac16a0ecb8507dfe72652', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '661a105fb422bf4a0b837723d27fbdb503bf0aaa', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: 'dcf0da03816e272433b28c6493308b9b60708c48', name: 'items' }))));
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
81
|
-
dropdownContainer = (h("p-dropdown-menu-container", { key: '
|
|
81
|
+
dropdownContainer = (h("p-dropdown-menu-container", { key: 'edbc08640c6649f482e0671685465edf33d0aae7', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '273351e85c9394b0f46f945cfb7047f3ec2239b6', name: 'items' })));
|
|
82
82
|
}
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '1b96d478f16098d14898a717b29bb332168cb259', class: 'p-dropdown relative' }, h("div", { key: '39c0b1ea854f867bd213dba74ac4e11d7cc8aaf4', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: 'ecffbef9f15d01088eba7109222483db6459ca52', name: 'trigger' })), dropdownContainer));
|
|
84
84
|
}
|
|
85
85
|
_checkButtons(active = false) {
|
|
86
86
|
if (!this.applyChevron) {
|
|
@@ -150,16 +150,16 @@ const Field = /*@__PURE__*/ proxyCustomElement(class Field extends HTMLElement {
|
|
|
150
150
|
}
|
|
151
151
|
render() {
|
|
152
152
|
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: '91d6377ae01b58324a749c565fc22eaee2b0b8c8', class: 'p-field' }, h("p-field-container", { key: '65d1abd51cf6bb46f023b8c2ef94a5caac3f0d15', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: 'eb1884d5cc3a499af35b96b9d3433bab4fa6193d', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '6b76e96f1f0da866edeb7c96295a69eded338b54', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'ad1c7f1098f01b356a74debdd870437465a28778', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '46eca97a7bbcd2b90168ebcb39530c49b34e8eda', name: 'error', slot: 'error' })), h("div", { key: '65fde62eda58d9b012e6e87e9e084da6c6dc197a', class: field({
|
|
154
154
|
error: !!this.error?.length,
|
|
155
155
|
disabled: this.disabled,
|
|
156
156
|
focused: this.focused || this._focused,
|
|
157
157
|
size: this.size,
|
|
158
|
-
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
158
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '817046243995e3b1a870daeabddd6db7bf6a5392', class: prefixAndSuffic({
|
|
159
159
|
error: !!this.error?.length,
|
|
160
160
|
disabled: this.disabled,
|
|
161
161
|
focused: this.focused || this._focused,
|
|
162
|
-
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
162
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: 'bd6a931cca1b8b8ea13566a5f559746c30e2a311', class: prefixAndSuffic({
|
|
163
163
|
error: !!this.error?.length,
|
|
164
164
|
disabled: this.disabled,
|
|
165
165
|
focused: this.focused || this._focused,
|
package/dist/components/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { c as childOf } from './child-of.js';
|
|
|
7
7
|
export { i as iconsDeprecated } from './icons-deprecated.js';
|
|
8
8
|
export { c as categorized, i as icons } from './icons.js';
|
|
9
9
|
export { f as formatTranslation, g as getLocaleComponentStrings } from './localization.js';
|
|
10
|
+
export { i as isMobileBrowser } from './is-mobile-browser.js';
|
|
10
11
|
|
|
11
12
|
const camelToSnakeCase = (str) => str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
|
|
12
13
|
const snakeToCamelCase = (str) => str
|